Some Nuances of Undefined Behavior in Rust

I recently came across an interesting FFI situation, which I wanted to understand a bit better. Now I’d like to share what I found in the hopes of making everyone a better programmer. 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 »

Boxes and Trees – Smart Pointers in Rust

Recently, I tried to implement a binary tree data structure in Rust.Each binary tree has a root value, a left, and a right subtree.I started from this Python implementation, which is quite straightforward.class Tree: def __init__(self, val, left=None, ri... (more…)

Read more »