News for hackers. Stuff that matters.
Re:Forth: The programming language that writes itself: The W... by benhoyt on Sunday July 16, 2023 @05:51PM (#36751756)
My first programming languages were x86 assembly and Forth. My Dad was into Forth, and I learned programming from him. I wrote several x86 Forth systems for DOS as a teenager, culminating in a somewhat-polished ANS compatible one I called "Third": https://github.com/benhoyt/third -- it's kind of amazing being able to have a fully bootstrapped Forth compiler (including an assembler) in a couple thousand lines of code.

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.

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.

http://www.merlintec.com/download/color.html

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. :-)

Re:Forth: The programming language that writes itself: The W... by anta40 on Monday July 17, 2023 @10:07AM (#36758426)
OK got it :)