Factor as Enchilada's backend
Monday, 16. April 2007, 14:03:33
For the past four months i've been implementing Enchilada's immutable sequence in various languages.
Until now, I didn't consider Slava Pestov's Factor as a possible platform.
Guess what? The Factor version of the immutable sequence is very short in lines of code. Next to that, implementing the various arithmetical Enchilada operators is a breeze in Factor.
Factor's ability to compile quotations could also prove very fruitful to be able to speed up certain Enchilada expressions. That is, Enchilada expressions could in principle be compiled to Factor quotations.
Although I'm still learning Factor I am already convinced that the next version of Enchilada will be build on top of Factor instead of Java.
So for the next two months I'll be busy "porting" Enchilada's Java version to Factor.
Until now, I didn't consider Slava Pestov's Factor as a possible platform.
Guess what? The Factor version of the immutable sequence is very short in lines of code. Next to that, implementing the various arithmetical Enchilada operators is a breeze in Factor.
Factor's ability to compile quotations could also prove very fruitful to be able to speed up certain Enchilada expressions. That is, Enchilada expressions could in principle be compiled to Factor quotations.
Although I'm still learning Factor I am already convinced that the next version of Enchilada will be build on top of Factor instead of Java.
So for the next two months I'll be busy "porting" Enchilada's Java version to Factor.