Factor: a stack-based programming language
As you may already know, I’m a big fan of stack-based languages such as Forth, functional languages such as Haskell and reflexive languages such as Smalltalk. You can imagine how happy I was when I...
View ArticleRecursion and while loops in Factor
Tonight, I was willing to create a while construct in Factor taking two items on the stack: a quotation to execute when the test is true a test quotation For example, I wanted to be able to find the...
View ArticleSomething nice about every language I use
I’ll follow Dave Ray and will try to say something nice about a bunch of programming languages I use or have used seriously: Ada – The only language I would trust my life to. C – It gets things done...
View ArticleFeed and relative links
{% include urls Yesterday, the Factor section of this blog was added to Planet Factor. Soon after, Jon Harper noticed that some links in one of my posts were incorrectly directed onto the Planet Factor...
View ArticleSend yourself a greetings email from me
Every new year, on January 1st, a good friend of mine sends automated greeting emails at midnight sharp. However, this year, he forgot to set the subject correctly. While the message body appropriately...
View ArticlePositional factoring
Last summer, someone asked on stackoverflow how to factor a positive integer into prime numbers, and give the output on the form of powers at the right position in a sequence. Let us take a simple...
View ArticleAccessing serial ports the easy way
Every once in a while, I see people having a hard time accessing a RS232 or USB serial port from Java. There exist several solutions to do this in Java: The Java Communications 3.0 API looks awfully...
View ArticleLes nombres en français
Après avoir il y a plusieurs années écrit le vocabulaire math.text.french pour le langage de programmation Factor permettant de transformer un nombre en sa représentation textuelle en français, il...
View Article