“This module translates C to Rust”

This is a “Literate Haskell” source file. It is meant to be read as
documentation but it’s also compilable source code. The text is
formatted using Markdown so GitHub can render it nicely.

Similar

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 »

24 days of Rust – leftpad

Do you remember the time when one developer broke half of the Internet? Earlier this year a package called left-pad was pulled from the NPM registry (a counterpart of crates.io for the JavaScript folks). This caused... some drama, to say the least. Shall ...

Read more »

Writing a Raytracer in Rust (Part 1)

Introduction Hello! This is part one of a short series of posts on writing a simple raytracer in Rust. I’ve never written one of these before, so it should be a learning experience all around. So what is a raytracer anyway? The short version is it’s a com... (more…)

Read more »