-
Going with go
Go is nice. Go is a high level procedural programming language. It’s philosophy is quite compelling to me – keep things simple wherever possible. It’s been a pleasant respite from rust where correctness is everything. I spent a month programming in it, here are my inaugural thoughts. The background This year I participated in an…
-
The HACK architecture sucks
This title is clickbait slop, it’s actually quite neat but I have some critiques I’d like to share. Before that, I’ll give you some background. The Some Background The HACK architecture is an invention by Noam Nisan and Shimon Shocken. It is a part of the `Nand2Tetris` course series. It is a CPU specification which is both…
-
The Nand2Tetris virtual machine specification
Today, I will unoffically document the Nand2tetris VM language. Let’s back up a bit – a short course I’m currently working on is nand2tetris project 7. It’s a lot of fun, it’s like a tour of the computer software and hardware stack. Don’t worry you don’t need to know anything about it, in this article…
-
I made a real allocator and it was hard
I finally did it! It took blood sweat and tears but it’s here now and I’m chuffed to bits! Please have a look, I’ve got loads of comments and it looks quite clean. https://github.com/largenumberhere/libc2/blob/main/lib2/malloc.c It’s not my first allocator but it is my first real one. I have made a bump allocator before which is…
-
Rust: Cursed hello world
Let’s start of with the simplest approach and work down from there… Well that’s it folks, time to pack-up shop. I’m joking of course, I think this is pretty solid and the maintainers must think so too because this is the file cargo generates when you ask for a new project. The benefits are enumerable,…
-
Rust: The heck is an option<> supposed to mean?
Option is similar to the null of other languages, except it is type safe.You must transform an Option before you can use it.You may see it like this Option<usize> or like this Option<Vec<u32>> or maybe like this std::Option<()>, or some other way – the possibilities are endless. Here’s some examples of how you can use…
-
How to learn assembly
The 0th step is to set your expectations carefully. Anyone can learn assembly, but you should be aware of what you’re getting yourself into.
-
But how many sauces is that?
I recently made a simple website where you can answer this exact question. For those who aren’t nose deep into programming, the simple overview is that this is saucify. You should go there to convert your centimetres or inches to sauces. It’s intended as a silly way to count how many sauces tall your cat…