News for hackers. Stuff that matters.
Re:Lisp in Forth by codezero on Tuesday April 20, 2021 @06:44PM (#26882909)
For me I got interested in it while getting into some retro computing stuff during the pandemic, curious where others are getting that itch from!

[1] Playing with open boot on my old iBook power PC - realizing it's a forth

[2] Playing with durexForth on c64 emulators

[3] collapse-os recently switching to forth.

Re:Lisp in Forth by anthk on Wednesday April 21, 2021 @09:54AM (#26889714)
BTw, is there a way to have numbers bigger than 2^15-1 in collapseOS'Forth, or under 8/16 bit Forths?
Re:Lisp in Forth by codezero on Wednesday April 21, 2021 @05:24PM (#26895621)
Didn't get deep enough to need to test those limits, but I assume they would need to be hand rolled.
Re:Lisp in Forth by anthk on Tuesday April 20, 2021 @07:38PM (#26883442)
Qemu PPC uses Forth too.
Re:Lisp in Forth by monocasa on Tuesday April 20, 2021 @09:44PM (#26884455)
Because OpenFirmware, the more or less standard bootloader of PowerPC and Sparc specified forth as it's command language. Even let you write PCI option ROMs in forth to have ISA independent boot drivers.
Re:Lisp in Forth by lebuffon on Wednesday April 21, 2021 @08:50AM (#26888959)
Open Firmware written by Mitch Bradley is actually just a byte-code Forth custom extended to be the system firmware. :)

So it's not that the language was specified but rather the language is the Firmware. By using byte-codes for the Forth keywords and allowing new wordlists to be created and extended you get a nice virtual machine that has the low-level chops to let you write device drivers and such, as you mentioned, while keeping the object code very small.

It quite clever. Unfortunately Forth itself is so "other" that it can never win the popularity contest. However like Lisp it is one of those mind expanding paradigms that should be sampled for the insights into minimalist computing that it provides.

Re:Lisp in Forth by codezero on Wednesday April 21, 2021 @01:36AM (#26885775)
I thought I bricked my 21 year old iBook and a forth command saved me. They don’t teach you that in algebra school.