{"id":46,"date":"2008-08-24T18:36:00","date_gmt":"2008-08-25T02:36:00","guid":{"rendered":"http:\/\/eschatologist.net\/blog\/?p=46"},"modified":"2009-01-25T20:30:49","modified_gmt":"2009-01-26T04:30:49","slug":"erlang-on-llvm-or-outsource-your-jit","status":"publish","type":"post","link":"https:\/\/eschatologist.net\/blog\/?p=46","title":{"rendered":"Erlang on LLVM? or: Outsource your JIT!"},"content":{"rendered":"<p>Has anyone been working on using [LLVM][1] to do just-in-time code generation for the [Erlang][2] virtual machine?<\/p>\n<p>Depending on the design and structure of the Erlang virtual machine, it doesn&#8217;t seem like it would be all that tough a project.  And it could provide a nice performance boost for those projects that are starting to use Erlang like [CouchDB][3] and [ejabberd][4].<\/p>\n<p>For an example of what I&#8217;m talking about, there&#8217;s a project called [VMKit][5] that has implemented the Java and .NET virtual machines atop LLVM with reasonable performance.  Essentially, if you have a virtual machine, rather than skipping either just-in-time or static code generation entirely, or trying to do it all yourself for some specific platform on which you want to run, take a look at what you can do with LLVM and see if you can leverage its code generation instead.<\/p>\n<p>  [1]: http:\/\/llvm.org\/<br \/>\n  [2]: http:\/\/erlang.org\/<br \/>\n  [3]: http:\/\/couchdb.org\/<br \/>\n  [4]: http:\/\/www.ejabberd.im\/<br \/>\n  [5]: http:\/\/www.ejabberd.im\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Has anyone been working on using [LLVM][1] to do just-in-time code generation for the [Erlang][2] virtual machine? Depending on the design and structure of the Erlang virtual machine, it doesn&#8217;t seem like it would be all that tough a project. And it could provide a nice performance boost for those projects that are starting to&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[45,35,47,46,50,44,48,34,33,49],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-technology","tag-net","tag-compilers","tag-couchdb","tag-ejabberd","tag-erlang","tag-jabber","tag-java","tag-llvm","tag-performance","tag-xmpp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p74loH-K","_links":{"self":[{"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eschatologist.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}