Shunting Yard in Rust

demonstrating shunting yard algorithm and evaluation of arithmetic expressions – GitHub – Skarlett/shunting-yard-rs: demonstrating shunting yard algorithm and evaluation of arithmetic expressions… Read more

Similar

Rust to WebAssembly, Made Easy

Compiling Rust to WebAssembly is still difficult. On macOS, there are weird bugs that require reinstalling LLVM and moving files around. On Linux, the official Emscripten binary in many cases isn’t bundled with the right LLVM, and the fix is to compile fr... (more…)

Read more »

Implementing a Type-safe printf in Rust

I show how to use heterogeneous lists and traits to implement a type-safe printf in Rust. These mechanisms can ensure that two variadic argument lists share important properties, like the number of format string holes matches the number of printf argument... (more…)

Read more »