Starting Forth
home.iae.nl
home.iae.nl
The company had standardized on Forth throughout their operation, so regardless of the hardware you were using, anything from a PIC-based counting system to the Windows servers, you only needed to know one language to understand the code. Clever stuff.
Now, if they could solve the problem that every Forth system is customized by the Forth programmer and so the entire language lacks standards, it would be amazing. Also, if you could add enough syntactic sugar to make it look sort-of like C or perl, you would have "the next big thing".
Having never played with Forth-like languages before, I'm finding writing even the simplest algorithms strains my mind -- in a good way, though. It's mind expanding in the same way Lisp was the first time.
I doubt that Factor is the next big thing, but I think that for smart people it's one of the most fascinating things around right now. Zed Shaw, for example, is a big fan:
All that said - I've never found it 100% natural, but (perhaps paradoxically) on the other hand I'm usually pleased with the results.
http://img301.imageshack.us/my.php?image=addtobinarytreescre...
It is shown compared to the analogous code in C++ and Lisp.
My Factor version could probably be improved. In fact, I just now realized that I could have factored out the two final calls to <node> into a single call.