[chuck-dev] EaRing - dynamic assembler

Stephen Sinclair radarsat1 at gmail.com
Mon Oct 6 11:33:18 EDT 2008


I just read about this because it was posted on reddit..

http://www.zedshaw.com/projects/earing/

It just made me wonder.. it actually sounds like it would make an
interesting back-end for something like ChucK.  It assembles a sort of
high-level assembler code, loads it into memory dynamically and
compiles it to actual machine code to run at 100% CPU speed.

Features (from the site):

    *  You can swap the contents of functions or alter them as if they
were data.
    * You can plug in any memory management you need.
    * It can open dynamic libraries and run the functions like they
are another module.
    * You can ship the code to other machines and they'll just run it.
    * It's still fast because, after the first compile, it runs at CPU speed.

Pretty interesting!  The thought of using an alternative VM for
running ChucK code more efficiently is kind of interesting.. ChucK
could compile down to this EaRing bytecode and then let its VM and
"assembler" take care of the heavy lifting to make things run at top
speed.


Steve


More information about the chuck-dev mailing list