869 private links
Zero-dependency blink led as a demo on how to write embedded rust.
Take aways:
- use llvm's lld as linker to get around of platform-specific ld toolchain
- statically link musl libc to avoid platform specific glibc
A lot of stuff to learn about Rust build optimization, profiling, etc.
A clever idea. It uses an unsafe non-existent function to induce link-time error. Normally, if the call to this non-existence function is proven unreachable by the compiler, then the call to this function will be removed and won't catch any errors. Otherwise it raises a link-time error instead of runtime error.
Good performance tips and suggestion of profiling tools, specialized crates, etc.
The newtype pattern is known for its "zero-cost" nature. Well this article points out that this is probably not always true.
An informative series about executable file formats.
Besides an in-depth illustration of rust futures, this article also showcased some fany crates that I'm glad to learn about, which includes:
- color-eyre (failure handling)
- tracing (collect structured event-based diagnostic info)
- cargo-expand (print source code with macro expanded)
An online ide to play with webassembly. Supports both C and Rust languages.
<blockquote>The Adventures of OS: Making a RISC-V Operating System using Rust</blockquote>
<blockquote>Executables have been fascinating to me ever since I discovered, as a kid,
that they were just files. If you renamed a .exe to something else, you
could open it in notepad! An...</blockquote>
Good explanation of ELF format. (with a Rust parser as demo!)