Greetings everyone,

I didn't actually plan it but I ended up participating in the ICFP
programming contest (http://www.icfpcontest.org). This year the task
was to move satellites from one orbit to another, to meet with other
satellites etc. Quite interesting, and to start it all you need to
implement a virtual machine for the physics simulator.

I used Clojure and managed to solve the first of the four problems,
which means I didn't get really far. I was simply too slow to get to
the really interesting stuff. I have written a rather long article
describing my solution so I hope some of you may find it interesting:

http://igor.rumiha.net/tag/icfp/

I have also put the code on github: 
http://github.com/irumiha/icfp-loneclojurian/tree/master

I hope someone has the interest and the time to take a look at the
code. I consider myself a Clojure beginner and any suggestions are
welcome, especially considering possible speed improvements to the
virtual machine. According to some of the people on the #icfp-contest
channel my VM implementation is 500x to 1000x slower than a typical
implementation written in C. It is, on the other hand, in the same
performance range as some VMs written in Python. Some people claim
that the JVM can give you C-like performance, but I would be more than
happy if I got my VM to be 10x slower than the C ones :)


Igor.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to