6 ms·
This is pretty cool especially since Forth is gaining interest in some circles.
by bifrost 5y ago
This is pretty cool especially since Forth is gaining interest in some circles.
- threatofrain 5y agoHow so?
- codezero 5y agoFor 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.
- anthk 5y agoQemu PPC uses Forth too.
- monocasa 5y agoBecause 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.
- codezero 5y agoI thought I bricked my 21 year old iBook and a forth command saved me. They don’t teach you that in algebra school.
- lebuffon 5y agoOpen 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.
- anthk 5y agoBTw, is there a way to have numbers bigger than 2^15-1 in collapseOS'Forth, or under 8/16 bit Forths?
- codezero 5y agoDidn't get deep enough to need to test those limits, but I assume they would need to be hand rolled.
- frompdx 5y agoPersonally I came across FlashForth last year and have had a lot of fun hacking on my Arduino boards with Forth.
- bradrn 5y agoThanks for the recommendation! I have an Arduino and just started playing with Forth yesterday, so I’ll have to try this.
- frompdx 5y agoDon't forget to grab a programmer. I use a HiLetgo USBTiny programmer. They go for about $8. Also, do some googling about how to work with Forth on the Arduino. Not too much out there but it should help round out the FlashForth docs. arduino-forth.com is a good resource as well.
- bradrn 5y ago> Don't forget to grab a programmer. I use a HiLetgo USBTiny programmer. Hmm… I’m pretty inexperienced with Arduino (or indeed any microcontroller), so I have no idea what you’re talking about here. What’s a ‘programmer’? > arduino-forth.com Thanks for the link! Added to my reading list.
- frompdx 5y agoOne of these: https://www.amazon.com/HiLetgo-USBTiny-USBtinyISP-Programmer-Bootloader/dp/B01CZVZ1XM https://www.amazon.com/HiLetgo-USBTiny-USBtinyISP-Programmer... It allows you to burn the FlashForth bootloader on an Arduino, or to re-burn the Arduino bootloader if you'd like to program your Arduino with C/C++ instead of Forth. This blog has a good walkthrough of burning the FlashForth bootloader: https://rickcarlino.com/2017/05/26/up-and-running-with-flashforth-on-arduino-html.html https://rickcarlino.com/2017/05/26/up-and-running-with-flash...
- frompdx 5y agoIn addition to arduino-forth.com, definitely check out Starting Forth by Leo Brodie. It's a great book. Probably one of the best technical books out there. You can read it for free online. Sadly, it is out of print. You can find used copies though.
- Klwohu 5y agoIn my city it's becoming more popular than Rust in the hacker spaces.
- wsgeek 5y agoWhat general area if I may ask?
- tartoran 5y agoSmall is the new big. Not being serious but frameworks took the joy out of programming in a dogmatic way but lost a lot of the beauty and creativity in coding in exchange of too many features that a lot of the time we don’t need. People started looking at the past and what has been overlooked by many and started to bring it back. I am glad I starated learning Lisps and Scheme in particular. I don’t know why I like it so much but I am thankful people bring old things in fashion, even if for personal growth. My ignorance built upon the general consensus (what I thought of at the time) was that Lisp was a forget about proposition, that parantheses make it a horrible coding experience which couldn’t be further from the truth. I think i prefer this syntax now. Keep up exploring and sharing folks, you are making a dent.
- bifrost 5y agoPeople are just poking around with it because its a mature language thats been used for a lot of embedded things. Its been in several bootloaders as well. The FreeBSD bootloader uses it so I technically use it any time I boot my machine heh. Imagine being able to run LISP in the bootrom of a random machine :)
- sigjuice 5y agoThe FreeBSD bootloader made the switch to Lua.
- ajdude 5y agoOne of the circles that I am in, people have been realistically considering Forth for a bootstrapper; it's very easy to build up the rest of Forth using Forth once you have a minimal set of keywords implemented in assembly for your hardware of choice.
- guenthert 5y agoYeah, some circles. It's guys getting to middle-ages or retirement age, having more time on their hands, feeling a bit nostalgic and are tinkering. That's fine, I do have a weak spot for Lisp and FORTH myself, but don't confuse that with applicability in the industry.
- bifrost 5y agoThey said that about Javascript too and well... look at what we have now.