Uploaded October 2024 | Updated September 2026, 5 hours ago
Today we will go over the #Zig implementation of a basic #Forth interpreter that I wrote. Now my #stoner friend #Claude, actually helped with this a little. But for a 15 year old on acid, he did a pretty decent job.
Ironically the previous video was flagged for 8 seconds of Cheap Trick's Surrender, when it obviously is fair use. But visibility would be restricted internationally, so hence this version.
Code: github.com/rdoetjes/zforth
Chapters:
00:00 Intro
00:27 setting the parameters and introducing my stoner friend Claude
02:40 Claude reminds me of Claude in Over the Edge (1979)
03:49 The code
05:40 Size does matter (for an interpreter)
08:10 Compiling
11:05 Interrupt Signal handling (issue with MacOS)
12:27 Repeat/begin/until/do interrupting and exit conditions
15:05 Explaining the actual lexer/parser/interpreter
22:55 Easily extending the interpreter with new words
22:30 Why LLMs suck (the distribution of crap)
24:12 Why is Claude is better at Zig than other language?
24:30 What Claude was helpful with
27:18 What Claude wasn't helpful with
27:23 FORTH DEMO TIME!!!
35:23 Outro/Conclusion
Today we will go over the #Zig implementation of a basic #Forth interpreter that I wrote. Now my #stoner friend #Claude, actually helped with this a little. But for a 15 year old on acid, he did a pretty decent job.
Ironically the previous video was flagged for 8 seconds of Cheap Trick's Surrender, when it obviously is fair use. But visibility would be restricted internationally, so hence this version.
Code: github.com/rdoetjes/zforth
Chapters:
00:00 Intro
00:27 setting the parameters and introducing my stoner friend Claude
02:40 Claude reminds me of Claude in Over the Edge (1979)
03:49 The code
05:40 Size does matter (for an interpreter)
08:10 Compiling
11:05 Interrupt Signal handling (issue with MacOS)
12:27 Repeat/begin/until/do interrupting and exit conditions
15:05 Explaining the actual lexer/parser/interpreter
22:55 Easily extending the interpreter with new words
22:30 Why LLMs suck (the distribution of crap)
24:12 Why is Claude is better at Zig than other language?
24:30 What Claude was helpful with
27:18 What Claude wasn't helpful with
27:23 FORTH DEMO TIME!!!
35:23 Outro/Conclusion










