News for hackers. Stuff that matters.
Re:ChipWits FORTH is now Open Source A taste of Game Dev in ... by anyfoo on Monday November 25, 2024 @08:16PM (#42241705)
I have a soft spot for FORTH. I don’t know if it makes for elegant larger programs at all, but it’s really easy and elegant to bootstrap a port of FORTH itself, and then use it to do more and more complex system tasks. That’s probably why it was chosen for e.g. OpenBIOS.

Lately, I’ve taken a liking to embedded forth, because it allows me to, say, build layers of forth vocabulary to control I2C devices, potentially starting by even writing I2C bit banging itself in forth first, and then progressively building higher levels of abstraction, but all of that completely ad-hoc and interactively on the forth prompt.

It’s a really great way to explore devices hardware-wise, without having to write a lot of boilerplate C or rust code on an external development environment.

Again, I don’t know if anything like that translates well into writing large, user-facing applications. Maybe the article will tell me?

Re:ChipWits FORTH is now Open Source A taste of Game Dev in ... by idatum on Monday November 25, 2024 @08:33PM (#42241777)
> It’s a really great way to explore devices hardware-wise, without having to write a lot of boilerplate C or rust code on an external development environment.

Yes, second this. It's why I still use Forth. A UART and picocom (for example) and I'm interacting with an MCU. No complex (bloated) tooling needed for prototyping and learning. I've used this with STM32 devices and lately a Raspberry Pi Pico.