News for hackers. Stuff that matters.
Re:Sectorforth: A 16-bit x86 Forth that fits in a boot sector by samatman on Sunday September 27, 2020 @06:35PM (#24610740)
Related advice would be to annotate every stack effect with a comment, no exceptions.

Back when I was into Forth, I had this wild notion of adding a stack checker, defining two additional comment words which would be aware of the stack effect of all core words, and require a stack effect to be defined for every new piece of vocabulary.

Never did anything with it, don't write Forth anymore, doubt I will again. I still think it's a good idea though, so I like to put it out there.

Re:Sectorforth: A 16-bit x86 Forth that fits in a boot sector by dfischer on Sunday September 27, 2020 @07:42PM (#24611192)
Have you seen Factor? https://factorcode.org/
Re:Sectorforth: A 16-bit x86 Forth that fits in a boot sector by TapamN on Sunday September 27, 2020 @06:52PM (#24610841)
That's actually been done. It's called StrongForth.

http://www.arestlessmind.org/2009/02/03/intro.html

Re:Sectorforth: A 16-bit x86 Forth that fits in a boot sector by MaxBarraclough on Monday September 28, 2020 @04:32AM (#24614346)
You beat me to it. See also this other page on StrongForth: https://www.stephan-becher.de/strongforth/

See also the Kitten programming language, which does something similar: https://kittenlang.org/

Re:Sectorforth: A 16-bit x86 Forth that fits in a boot sector by cblum on Sunday September 27, 2020 @10:46PM (#24612468)
Yep, annotating the examples with stack effects is in my plans :)