An approachable platform for hacking Forth is the OLPC laptop[1]. For about $25 USD[2], that's a pretty cheap way to go Forth and multiply :-). 1 - http://www.openfirmware.info/Forth/FCode 2 - http://www.ebay.com/sch/items/?_nkw=olpc+laptop&_sacat=&_ex_...
If you have an OLPC XO 1 then you can also download the specifications for the AMD CPU here: http://www.versalogic.com/support/Downloads/PDF/LXManualMay0... That tells you how to do graphics hacks and so on. I had fun with that on my OLPC. I optimized the Forth console to scroll using hardware BLIT (much faster than CPU copy of the framebuffer) and I ported Squeak Smalltalk to run directly on OFW using hardware graph…
Starting Forth
41–50 of 71 posts
Re: Starting Forth
#42And here is what Forth creator Chuck Moore does today: http://www.greenarraychips.com/
Re: Starting Forth
#43There was a Forth debug/service terminal included in an electronic typewriter / typing tutor device from the 80's with an integrated CRT display. So an educated guess is that its software was also written in Forth. It was made between 1981 and 1987 and I think it was a golf ball-style printer, so if anyone have an idea as to the make and model, that would be great.
Re: Starting Forth
#44Earlier quoted context omitted.
What has the industry moved onto now?
Embedded stuff is nearly always C. Arduino have made the "Wiring" language popular for rapid prototyping (based on processing and hence javascript). But these days, embedded full Linux systems are just too cheap to not be the default option when you want to develop on the device itself.
Re: Starting Forth
#45Forth seems to have one thing in common with Lisp: a small dedicated following that believe it's the way forward and considerably easier to learn, despite never really having taken off. I suspect this is something to do with different ways of conceptualising programs.
Jewelers don't build skyscrapers.
A friend of mine who programmed solely in Forth (and who taught me just about everything I know about the language) quipped that 'C is such a great language'. That was his way of saying he considered C to be bloated compared to Forth.
Re: Starting Forth
#46Is Forth still being used in industry other than for legacy systems? (genuine question)
Re: Starting Forth
#47It's really cool to see all of this interest in Forth. I think when I learned Forth, it made me a significantly better developer over all; it's also an awesome base for DSLs and really a fascinating paradigm.
(Also, curiously, gave me an increased respect for K&R C, which allows minimalist programming in a way that ANSI C doesn't.)
Re: Starting Forth
#48Earlier quoted context omitted.
Sorry, I'm wrong regarding OSX and iOS. OpenFirmware is used at numerous places, but Apple is not one of them.
Apple used it when they were still PowerPC-based. They sadly dropped it with the move to Intel.
Re: Starting Forth
#49It's really cool to see all of this interest in Forth. I think when I learned Forth, it made me a significantly better developer over all; it's also an awesome base for DSLs and really a fascinating paradigm.
Honest question, wouldn't you just write a lexer with yacc/bison for a DSL? How does a full programming language act as a base for a DSL, which is usually more limited than a programming language?
FORTH is a bit like smalltalk in that you usually work in an interactive environment and save images. FORTH code compiles down to essentially a jump table and so it is also really, really efficient, space wise. You can decompile code easily and modify it in your image.
If you were trying to write a control language for some small embedded device, it would be ideal. If you were trying to write a DSL for configuring a build system (or something like that) it would be less nice ;-)
My first few paying jobs (when I was in university) was writing FORTH code, but that's a very long time ago ;-) I'm still quite nostalgic about it even though I've forgotten almost everythng I once knew.
Re: Starting Forth
#50And here is what Forth creator Chuck Moore does today: http://www.greenarraychips.com/
Asking the obvious question: What should I use that for? (The computer, and Forth too)