Arc Forumnew | comments | leaders | submitlogin
The Factor programming language. What do 'ya think (factorcode.org)
3 points by mekon 5425 days ago | 3 comments


3 points by silverlake 5424 days ago | link

I was just going to post about this. In Graham's early essay on succinct languages, he asks, "Are there languages that force you to write code in a way that is crabbed and incomprehensible?"

Factor feels incomprehensible until you learn to hold the stack in your head. The result is you eliminate all the intermediate variables in a program, which makes the language extremely succinct. All that's left are function calls and control-flow, which you can't remove anyway.

I believe the key to succinctness is (1) minimal boilerplate, (2) higher-order functions and (3) reducing intermediate variables. Functional languages achieve (3) with function composition. But Factor (and Forth et al) goes way beyond what functional languages can do.

Anyway, I'm having lots of fun with Factor.

-----

1 point by mekon 5423 days ago | link

Locals are a pain. Who needs locals when you can keep multiple values on the stack and keep them there.

Factor is to FORTH like Java is to C. because of FORTH's nature it's essentially lisp without parenthesis. On the other hand Java is about as powerful as C with training wheels.

-----

1 point by mekon 5425 days ago | link

Concatinative programming allows for lisp style metaprograming (without ()). what do you think arc can learn from factor, and other concatinative PLs.

For example the implementation is written by 5 guys and it is one of the fastest dynamic languages.

-----