2 ms·
C or C++ are probably the best choice since they allow for high performance, low memory footprint, and easy creation of binary packages suitable for distributio
by adbge 16y ago
C or C++ are probably the best choice since they allow for high performance, low memory footprint, and easy creation of binary packages suitable for distribution.
Java is also an option and Java programs can be compiled down to machine code with the GNU Compiler for Java, which removes Java's dependency on the JRE and allows binaries to start faster than if they had to load the JVM.
In fact, you could even "compile" Python programs into a binary package suitable for distributing via the cx_Freeze tool. This will still be interpreted, though it might feel more like a compiled language. You might want to look into Cython, which I believe allows for pseudo-compiled Python.
- huyegn 16y agoI initially looked at languages like clojure, but the slow load times of the JVM put me off. Now that you mentioned gcj, I found this note from Rich Hickey: http://groups.google.com/group/clojure/msg/58e3f8e5dfb876c9 http://groups.google.com/group/clojure/msg/58e3f8e5dfb876c9 which makes it sound like one could compile clojure => java => native binaries.
- gtani 16y agoThe load times are an issue, check out nailgun, -Xbootclasspath , java -client, javaRebel. There's a few other tricks i've seen mentioned, anybody else? http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flags.html http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flag... http://stackoverflow.com/questions/1316056/how-to-reduce-scala-java-startup-overhead http://stackoverflow.com/questions/1316056/how-to-reduce-sca... http://groups.google.com/group/clojure/browse_frm/thread/33f80f1bb8277351# http://groups.google.com/group/clojure/browse_frm/thread/33f... http://groups.google.com/group/leiningen/browse_thread/thread/66c6c72dba4bbd47 http://groups.google.com/group/leiningen/browse_thread/threa...