Sep 8, 2021How I solved a cool probability problemA couple of weeks ago I came across a very interesting math puzzle when a friend told me to check out the Jane Street current puzzle of the month. From a first look, it might seem like it’s a simple problem, but it does get quite tricky. …Mathematics8 min readMathematics8 min read
Aug 21, 2021Rust doesn’t support default function arguments. Or does it?When I was rewriting my game to learn Rust, I came across a situation in which I wanted to create a function that had default arguments. This is usually helpful for functions that are widely used from different places and on specific occasions need to behave slightly differently (i.e. …Rust8 min readRust8 min read
Jul 31, 2021Rewriting my mobile game in Rust targeting WASMTL;DR: I rewrote my C++ mobile game in Rust as a hobby project to learn Rust. The results were pretty satisfying to me: I’m quite excited with what I learnt and the new version of the game runs pretty smoothly in the browser, practically with the same look and feel…Rust13 min readRust13 min read