6 ms·
The CLI of Open Firmware, used on SPARC and older (PPC?) Apple systems, is Forth-based: * https://en.wikipedia.org/wiki/Open_Firmware https://en.wikipedia.org/
by throw0101a 4y ago
The CLI of Open Firmware, used on SPARC and older (PPC?) Apple systems, is Forth-based:
* https://en.wikipedia.org/wiki/Open_Firmware https://en.wikipedia.org/wiki/Open_Firmware
- DonHopkins 4y agoMitch Bradley singing the Open Firmware Song: https://www.youtube.com/watch?v=b8Wyvb9GotM https://www.youtube.com/watch?v=b8Wyvb9GotM I've written lots more about Open Firmware on HN before (I was Mitch's summer intern at Sun in 1987): https://news.ycombinator.com/item?id=21822840 https://news.ycombinator.com/item?id=21822840 >Here's the interview with Mitch Bradley saved on archive.org: >https://web.archive.org/web/20120118132847/http://howsoftwareisbuilt.com/2008/03/27/interview-with-mitch-bradley-firmware-olpc/ https://web.archive.org/web/20120118132847/http://howsoftwar... >[...lots more links and info...] Mitch's programming and debugging process has to be seen to be believed. Open Firmware is definitely a highly polished work of love. Its well-commented and meticulously organized source code reads like fine literature or classical music! Stuff like the metacompiler and kernel, for example: https://github.com/MitchBradley/openfirmware/blob/master/forth/kernel/metacompile.fth https://github.com/MitchBradley/openfirmware/blob/master/for... https://github.com/MitchBradley/openfirmware/blob/master/forth/kernel/kernel.fth https://github.com/MitchBradley/openfirmware/blob/master/for...
- drewg123 4y agoAnd the FreeBSD boot loader uses forth scripting: https://www.freebsd.org/cgi/man.cgi?loader(8) https://www.freebsd.org/cgi/man.cgi?loader(8) (lua support was recently added as well)
- rsaxvc 4y agoAnd you can even use it to support booting from new types of block devices.