A Stoner writes Forth in Zig???

A Stoner writes Forth in Zig???

CallousCoder

54 года назад

737 Просмотров

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: https://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

Тэги:

#Callous_Code #Electonics #Computers #Programming #Forth #ZIg #Forth_programming_language #programming_language #interpreter #design #interpreter_implementation #lexer #parser #ast #kitt #knight_rider #Over_The_Edge #Matt_Dillon #Claude #70s #80s #90s #notalgia #retro #retro_coding #coding #embedded_systems #REPL #Cheap_Trick
Ссылки и html тэги не поддерживаются


Комментарии: