
Envoyé par
Mike Vanier
In the process of working on that other project (which involves Scheme and Objective Caml (Ocaml), an ML dialect), it occurred to me that Ocaml would be a better choice than Java for the intermediate layer. It's faster, has better type-checking, is much more powerful, and can even be used as its own scripting language because of the type inference and interactive REPL. If necessary, I could write a simple Lisp-like language on top of Ocaml with little difficulty. The C interface to Ocaml is also quite mature, and there is a good-sized standard library (though nothing like the enormous Java libraries). Also, it's much lighter weight than Java. But here is the most important reason: it's a hell of a lot more fun to program in than Java.
Writing Java code, though not particulary painful in the sense that C is painful (core dumps etc.), puts me to sleep. Writing Ocaml (which is a "language designed for smart people" if there ever was one) is exciting. My motivation to tackle the project has tripled overnight. The interesting question is: why is Ocaml so much more fun than Java? Why are "languages designed for smart people" (LFSPs) so much more fun to program in than "languages designed for the masses" (LFMs)?
Partager