Better HN
topnewbestaskshowjobs
Log inSign up

halst

427 karma · joined Jun 4, 2012 (14y ago) · 57 submissions

Submissions

1.

AI=true is an Anti-Pattern(keleshev.com ↗)

4 points · by halst · 9mo ago · discuss

2.

Against Human-AI Workflow Separation(keleshev.com ↗)

2 points · by halst · 9mo ago · discuss

3.

Say No to Human-AI Workflow Segregation(keleshev.com ↗)

2 points · by halst · 9mo ago · discuss

4.

ARM Assembly Programming (2024)(keleshev.com ↗)

5 points · by halst · 1y ago · discuss

5.

Abstract Syntax Tree: An Example in C (2022)(keleshev.com ↗)

4 points · by halst · 1y ago · discuss

6.

Beard Tax(en.wikipedia.org ↗)

1 points · by halst · 1y ago · discuss

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

9.

Writing Compilers (2022)(takashiidobe.com ↗)

1 points · by halst · 2y ago · discuss

10.

Composable Error Handling in OCaml (2018)(keleshev.com ↗)

2 points · by halst · 5y ago · discuss

11.

LDM: My Favorite ARM Instruction(keleshev.com ↗)

4 points · by halst · 6y ago · discuss

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Thank you for such a favorable comparison with the classics!

comment 6y ago · link · parent

Thanks for your early support and going through the draft! I'm glad you've been enjoying it!

15.

Compiling to Assembly from Scratch: the book, released(keleshev.com ↗)

87 points · by halst · 6y ago · 10 comments

16.

Compiling to Assembly from Scratch(keleshev.com ↗)

24 points · by halst · 6y ago · 2 comments

comment 6y ago · link · parent

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.

18.

One-pass Compiler(keleshev.com ↗)

163 points · by halst · 6y ago · 43 comments

19.

What happens when you call console.log(keleshev.com ↗)

1 points · by halst · 6y ago · discuss

20.

Standard IO: Under the Hood(keleshev.com ↗)

1 points · by halst · 6y ago · discuss

21.

Verbose Regular Expressions in JavaScript(keleshev.com ↗)

1 points · by halst · 6y ago · discuss

comment 6y ago · link · parent

So far, I got away with "In the following figure…"

23.

Writing a Book with Pandoc, Make, and Vim(keleshev.com ↗)

423 points · by halst · 6y ago · 60 comments

24.

Parsing Ambiguity: Type Argument vs. Less Than(keleshev.com ↗)

1 points · by halst · 6y ago · discuss

25.

EAX Register Meaning and History(keleshev.com ↗)

4 points · by halst · 6y ago · discuss

26.

Upcoming Book: Compiling to Assembly from Scratch(keleshev.com ↗)

45 points · by halst · 6y ago · 5 comments

27.

Composable Error Handling in OCaml(keleshev.com ↗)

1 points · by halst · 8y ago · discuss

28.

Namespacing Variants in ML(keleshev.com ↗)

59 points · by halst · 11y ago · 5 comments

12