208 private links
Succinct but more detailed than a cheat sheet.
Why Rust is a secret weapon
Google has faced critical security issues within its Bluetooth drivers in Android for many years. Despite valiant effort, they were unable to eliminate these vulnerabilities from within C++. This essentially forced them to consider alternative languages. They’ve recently announced that they’ve been able to use 1.5 million lines of Rust code into Android, without detecting any security vulnerabilities. This compares to 1 vulnerability to 1k lines of C++ code using similar analysis.
Rust is a good fit whenever your business is concerned about cost.
Rust code is cheap to run. Rust-based applications use less RAM and RAM is expensive. Tilde’s story from migrating from Ruby on Rails is illustrative. Their server agent went down from needing 5GB of RAM at rest to 50MB.
Web services, whether they’re deployed in a traditional manner or use the serverless model, are an ideal fit for Rust. There is no garbage collector which can affect tail latencies or create load spikes.
Why it's hard to find jobs?
- It’s hard to hire Rust developers because it’s hard to evaluate them.
- Many people have been scared off by stories of Rust’s steep leaning curve
The writer has created a consulting enterprise for it: https://accelerant.dev/
A simple program for calculating sunrise, sunset and related times, which can be integrated with cron to trigger other programs to run when these events occur
This is god damn cool!
It may be useful to retrieve the favicon of a website :)
Build components for desktop apps, but also for the web.
A collection of rust libraries:
- Dioxus for react-like interface architecture
- Tauri to build desktop apps
- Xilem is a data-first UI architecture
- Sycamore is a reactive library for creating web apps in Rust and WebAssembly. It uses bind/signal semantics. TThere is also Perseus on top of it that adds State and template concepts.
And so much more!
An REPL for Rust
A playlist of rust video about rust.
A browser engine to render. It was started by the Mozilla foundation and it is now open-source and free to use 👍
Source code: https://github.com/servo/servo
Rust can be used to write all kinds of software (vertically scalable) and the development of software artifacts can be parallelized (horizontally scalable).
while it excels in the lowest half of the stack, it’s pretty ok everywhere else too.
The rust golden rule:
how function signatures are mandatory and authoritative and explicitly define the interface both for the callers of the function and for the function’s body. more
The second feature of Rust is its module system. It's first class support of the concept of libraries.
The third is cargo with its rigid specification for what a package of rust code.
Le successeur de LaTex? A service similar to Overleaf.
- Create construction zone where the result is affected to a variable
- Containing Side-Effects and Error-Handling (go)
- Restrincting variable lifetimes (rust)
An example of optimisation
A collection of resources about the rust programming language
A bit of thought about Rust that will replace C/C++ little by little. and how Rust will be (and is) wider used than Zig because of its safety.
A 4-days workshop to learn rust
Still lacking a lot of libraries
The Rust crate ecosystem is good, but C and C++ has a huge head start and it will take a long time for Rust to catch up. For us at Rerun, that pain is most urgently felt in the lack of libraries for scientific computing and computer vision, as well as the lack of mature GUI libraries.
... project ideas?
At the end of the day, a programming language is a tool like any other, and you need to pick the right tool for the job.
End thought: rust everywhere?
Coverage of ECMAScript is testable on current project implementation: https://boa-dev.github.io/boa/test262/