76 points · by wooby · 17y ago · 30 comments
LLVM is the best thing since sliced bread -- and there's even work to provide an alternative to Java's c1/c2/interpreter backends using LLVM -- but it's not really a direct replacement for the JVM or any other high-level virtual machine.
Something like this might be: http://vmkit.llvm.org/
Call me a luddite but I have never seen the point of Java and the JVM at all.
It's a monster.
1) (and this is also true for most if not all dynamic languages) that you can distribute your app to anyone on any machine and have it run. This does limit your access to the full capabilities if the hardware, but write once run anywhere was pretty close to being true (at least at the JVM level).
2) you can perform optimizations at runtime that you may not have known about at compile time.
As I see it, those are the main theoretical benefits.
As for #1, write once run anywhere still doesn't seem to be quite there, imho.
It'd make automated deployment of systems even more manageable -- turtles all the way down.
I have to say that I find Java generally distasteful, but I feel the same way about UNIX. An "OS" for my applications that is just some OO code I interact with would be much better than random shell scripts that talk to other random shell scripts via unstructured one-way text pipes. Turtles all the way down, indeed.
Of course, UNIX is trying to fix that too... so it will be interesting to see how this evolves.
You'll need some mechanism to re-deploy major updates that cannot be accomplished via custom mechanisms, and that's most likely to still be
ssh to xen master
upload new xen image
adjust xen master rc scripts to load new image on startup
Hardly turtles-all-the-way downWhy wouldn't the virtual machine bootstrap itself from network loaded code -- then it wouldn't be necessary to update the root Xen image.
Why couldn't I write a network service (also on the VM) that runs on other Xen instances and serves up the netboot code?
Why would updating the root VM require SSH? Couldn't I have a nice web management UI that I can just upload a new bootstrap JVM image to (on the rare occasions that I need to?). Perhaps systems could directly self-update the root Xen image on reboot?
I don't know why I'd have turtles-all-the-way down and then require some ugly update system that involves editing RC scripts.
Erlang can do that (more or less). People run dedicated machines where erlang vm is the init script. With the ability to distribute code in a cluster and update a live code it's a perfect environment to manage :) Running different services is already implemented through the standard "supervisor" processes.
There's still a lot of shell-script automation that has to be done via tools like chef/puppet/cfengine.
Unless your processor runs Lisp directly from microcode ;-)
Note: I haven't watched the video or read the source code yet.
And the slogan is: We put outdated buzzowords together!