News for hackers. Stuff that matters.
Re:The Joy of Nand2Tetris by hcm on Tuesday February 18, 2025 @02:55AM (#43087127)
I can't recommend nand2tetris highly enough – it's a great crash course in computer architecture, operating systems, compilers, etc. but also it's just mega fun.

A big part of the joy came from making up my own extra credit side quests: implementing a compile-to-WASM emulator for the hack machine, adding optimisations to the compiler to produce smaller and/or faster programs, etc.

Re:The Joy of Nand2Tetris by ashdnazg on Tuesday February 18, 2025 @08:13AM (#43089067)
Ooh, I also did the compile-to-WASM side quest! There are some really fun optimizations one can do to make the emulation run faster.

It's orders of magnitude faster than my naive hand-written emulator.