halst
Against Human-AI Workflow Separation
Say No to Human-AI Workflow Segregation
ARM Assembly Programming (2024)
Abstract Syntax Tree: An Example in C (2022)
Beard Tax
Re:Compiling to Assembly from Scratch [free to read online]
on Monday September 23, 2024 @03:30PM (#41629640)
Such a sensible syntax, right? The official ARM docs use it too. Not even sure who invented it, ARM or GAS. Anyway, that's another good reason to start with ARM.
There's also legacy ARMASM syntax that is barely worth mentioning.
Re:Compiling to Assembly from Scratch [free to read online]
on Monday September 23, 2024 @07:20AM (#41624842)
ARM32 is much simpler to explain compared to ARM64. Registers are so much simpler, conditional execution is orthogonal, three-operand form is consistent. ARM64 made all the right practical choices, but has doubled the complexity. Still much better than x86 with its 10x complexity.
ARM32 is a gem, in my opinion. A truly simple instruction set, and easy to get your hands on with Raspberry Pi or emulation.
Writing Compilers (2022)
Composable Error Handling in OCaml (2018)
LDM: My Favorite ARM Instruction
Re:Compiling to Assembly from Scratch: the book, released
on Sunday September 27, 2020 @05:15PM (#24610179)
Yeah, and picking a language was the hardest decision for the book. I wrote the compiler prototype for it in OCaml, but using it for the book would have narrowed its audience unnecessarily. In the end, I'm very happy with picking TypeScript: it allowed to discuss the matters of static and dynamic typing within the same language. Using Python with mypy would be another option, but then, since I wanted the source language to be a subset of the implementation language, I would have to explain parsing whitespace-sensitive code, which is tricky.
Re:Compiling to Assembly from Scratch: the book, released
on Sunday September 27, 2020 @05:00PM (#24610095)
Thank you for such a favorable comparison with the classics!
Re:Compiling to Assembly from Scratch: the book, released
on Sunday September 27, 2020 @04:50PM (#24610043)
Thanks for your early support and going through the draft! I'm glad you've been enjoying it!
Compiling to Assembly from Scratch: the book, released
Compiling to Assembly from Scratch
Re:One-pass Compiler
on Saturday May 23, 2020 @02:46PM (#23285365)
In the book, lexing and parsing is done from scratch. I think tools like Flex and Bison are very handy, but for the book, my focus is on learning value.
One-pass Compiler
What happens when you call console.log
Standard IO: Under the Hood
Verbose Regular Expressions in JavaScript
Re:Writing a Book with Pandoc, Make, and Vim
on Monday April 13, 2020 @09:53AM (#22855814)
So far, I got away with "In the following figure…"