CatCompiler.dev

The cat compiler.

Hi! I like cats, computers and compilers and I sometimes write blog posts.

  • GitHub

Buy me a coffee

  • The Stupid Stones Problem

    I made a silly maths problem 1000x* faster So yeah, I did a thing yay me. A few weeks ago (December 2024) I participated in the international nerd competition “Advent of Code”. If you’re the kind of person who reads my blogs, you have certainly heard of it, if for some reason you haven’t you…

    January 22, 2025
    C language, Go, Performance, Programming, Rist, Uncategorized
  • Nobody Knows What a String Is

    The title might seem a bit nonsensical… and awkwardly long too. You think you know what a string is right? You’ve used them more times than you can count.Perhaps you’re most familiar with JavaScript, and you can define a string, check what’s in it and even pass it into a function or get one out.…

    January 7, 2025
    Uncategorized
  • 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…

    December 26, 2024
    Go, Programming
    go, golang, learning, Programming, self-study
  • 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…

    November 11, 2024
    nand2tetris, Programming, Uncategorized
    HACK architechture, learning, nand2tetris, native, Programming, self-study, virtual machiene
  • 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…

    November 4, 2024
    nand2tetris, Programming, Uncategorized
    compiler, intermiate language, learning, nand2tetris, native, Programming, self-study, stack, virtual machiene, vm-translator
  • 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…

    October 24, 2024
    C language, Programming
    allocator, c language, c library, free, heap, learning, libc, libc2, linked list allocator, linux, malloc, memory, native, Programming, self-study, story
  • 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,…

    May 23, 2024
    Programming, Rist, Uncategorized
    hello world, learning, linux, native, Programming, Rust, story
  • 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…

    May 12, 2024
    Programming, Rist
    learning, Programming, Rust
  • 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.

    March 2, 2024
    Uncategorized
    assembly, learning, Programming, resources, self-study
  • 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…

    February 13, 2024
    Uncategorized
    Cat, Conversion, Maths, Programming, Sauce, Sauces, Unit, Web design
1 2
Next Page→

Subscribe to this blog

We don’t spam! Read more in our privacy policy

Check your inbox or spam folder to confirm your subscription.

This site is not endorsed by the rust foundation

Copyright (C)

CatCompiler.dev

Ashamedly powered by WordPress