Hello World in Rust
Every programming journey starts with Hello World. Let’s write our first Rust program.
The Code
Create a file named hello.rs:
| |
Every programming journey starts with Hello World. Let’s write our first Rust program.
Create a file named hello.rs:
| |
Rust’s type system is one of its defining features—static, strong, and powerful enough to catch entire classes of bugs at compile time. But it’s also ergonomic: the compiler infers types …
Read more →Operators are the verbs of a programming language—the symbols that combine values into new ones. Rust gives you the familiar set of arithmetic, comparison, and logical operators, but its strong, …
Read more →Control flow is how a program decides what to do next—branching on conditions and repeating work. Rust gives you the familiar tools (if, while, for) but with a twist that reflects its multi-paradigm …
Functions are the building blocks of every Rust program—you have already met main, the special entry point. Beyond main, functions let you name a piece of behavior, give it typed inputs and a typed …
Input and output is where Rust’s philosophy becomes impossible to ignore: I/O can fail, and Rust refuses to let you pretend otherwise. Where C returns error codes you can silently discard and …
Read more →Every programming language eventually runs into the same wall: the programmer knows something at write time that the language cannot express directly. How to serialize a thousand different types …
Read more →The history of systems programming is, in part, a long procession of people standing up to announce that they had built a better C++.
They weren’t wrong. Many of them had built something better …
Read more →Ask a programmer which languages start arrays at 0 and which start them at 1, and you’ll get a confident answer. Ask them why, and the conversation gets interesting fast.
Most developers assume …
Read more →In 1973, Carl Hewitt published a paper describing something he called the Actor model — isolated computational units that communicated exclusively by message passing, with no shared memory, no locks, …
Read more →Showing 1–10 of 19 posts (page 1 of 2)