Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 78254

Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.

13 votes
Accepted

Why does Rust require external linkers? Any other similar languages?

Rust requires a linker to generate final output. It's only "external" insofar as it is a separate program from the compiler that generates object files. … Sure, Rust could bundle LLD, but what would be the advantage over using the system linker on Linux, or bundling MinGW (which is needed anyway) on Windows and using the LD inside? …
Sebastian Redl's user avatar
2 votes
Accepted

Intuition behind why Rust's io::stdin().read_line() relies on a side effect?

Imagine a simple program which reads a file line by line. There are two ways to write it: Here's the one where a new string is returned every iteration (hidden in the lines iterator). use std::fs::*; …
Sebastian Redl's user avatar