Re:Forth: The programming language that writes itself: The W...
by 5- on Sunday July 16, 2023 @06:25PM
(#36752032)
> but the stack manipulation quickly gets tedious
it might just be that you (and i) are not chuck moore. his code generally has very little stack shuffling. e.g.
Re:Forth: The programming language that writes itself: The W...
by throwaway7868 on Sunday July 16, 2023 @07:58PM
(#36752619)
> a somewhat-polished ANS compatible one I called "Third"
Or should Forth++ == Sixth
Re:Forth: The programming language that writes itself: The W...
by anta40 on Monday July 17, 2023 @04:07AM
(#36755397)
I just take a look at third's source code. Looks interesting.
When bootstrapping, kernel.com is called.
OK, how did you build kernel.com?
Re:Forth: The programming language that writes itself: The W...
by benhoyt on Monday July 17, 2023 @04:22AM
(#36755494)
I'm pretty sure I wrote the first version of kernel.com in assembler.
Update: actually, more likely it was built using the meta compiler running on top of one of my previous Forths (I wrote a few). It's been too long to remember exact details, and I didn't use revision control back then. :-)
Just the other day I transcribed an old article I had co-written for the Forth Dimensions magazine. I still like the ideas in Forth, but the stack manipulation quickly gets tedious and is very hard to read. Just look at the code examples in https://benhoyt.com/writings/forth-lookup-tables/ -- especially Search-Table. Yikes! Yes, naming things is hard, but apparently not naming them is even harder.