Top
Best
New

Posted by phreda4 11 hours ago

Show HN: R3forth, a ColorForth-inspired language with a tiny VM(github.com)
68 points | 13 comments
watersb 5 hours ago|
Forth invented as a monitor and control system for one of the radio telescopes at NRAO in West Virginia...

So I have a tribal affinity for Color Forth, by original creator of Forth.

larsbrinkhoff 3 hours ago||
Forth was invented before Moore worked at NRAO. Granted, it was gradually expanded from a very small interpreter, so it's hard to say exactly when it became "Forth" as we mean it today.
larsbrinkhoff 30 minutes ago||
Source: "The Invention of Forth", by Chuck Moore. https://colorforth.github.io/HOPL.html
bitwize 3 hours ago||
Sadly, Chuck Moore is old, and Microsoft, in their unyielding quest for innovation, somehow broke the API contract for the BitBlt call in a way that permanently broke ColorForth, and Chuck has decided simply not to continue with it.
selvor 1 hour ago||
When he told about that in the Fireside chat, I was really puzzled at first. I think Chuck was just being the eccentric guy he is was telling a cautionary tale for the shock effect, in a kind of dark humorous way. Also the guy is 88 years old now, so it's somewhat understandable when your energy levels are extremely low, both physically and mentally. With the little time left of your life, you wouldn't want to spend it fixing some random breaking API change from Windows.

I imagine his ColorForth has been more like a retirement hobby for the past decade. He used to screenshare from his ColorForth during the calls, but that could have been overcome more easily with a VGA->HDMI capture dongle and running ColorForth natively. And I doubt he needed the TCP/IP stack directly on his ColorForth based on what he shared so far. So I don't see the point of porting over to Windows to begin with. After all, ColorForth runs more easily on bare metal, on UEFI/BIOS or whatever, so it didn't ever need BitBlt to draw things on screen for sure. The guy built a ColorForth processor, and the devkit from GreenArrays has a VGA connector, etc. So I believe Chuck was on to something else when he shared that, perhaps just to stimulate thinking, but people tend to take things at face value.

On another note, ColorForth (or FORTH for that matter) is not meant to be owned/controlled by him or a committee. So it's not like he was maintaining it. AFAIK, he didn't even endorse or support FORTH standardization efforts, and somewhere said it's silly. I also find it interesting that in his book A Problem Oriented Language, there is not a single mention of FORTH even once (except in the preface, and in his bio) yet he describes FORTH in the book, just calls it as "A Problem Oriented Language" without naming it. So it's almost like FORTH doesn't exist. It's just an idea. And what doesn't exist cannot be broken.

alexisread 10 hours ago||
Very impressive demos! I did a quick look through the docs- it’s single threaded (in the cpu sense) and not multi process yes?
phreda4 10 hours ago|
not for now, just launch many instances!
thristian 9 hours ago||
In the first code example in the readme ("First program"), there's `sdlcls`, `SDLinit`, and `SDLShow`. Is there some significance to the capitalisation?
phreda4 9 hours ago|
r3forth is case insensitive
thristian 6 hours ago||
Ah, it might be nice to mention that before the first code example, then. Or just use consistent case in the first example, to avoid distracting people with details that aren't the thing you're trying to demonstrate.
ripe 9 hours ago||
Very nice graphics using SDL2!

So many features-- sprite sheets, etc. Well done!

13415 10 hours ago|
Very interesting, great work! This reminded me of something. I just checked and to my amazement Mike Hore's Powermops is still around and even has an ARM version.[1]

[1] https://www.powermops.org

jhbadger 7 hours ago|
Yes, that's neat -- it is basically a modern Neon, which was an object-oriented Forth for the Mac in the 1980s.