Announcement

Collapse
No announcement yet.

You Can Now Run LLVM Assembly In Your Web-Browser

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • phoronix
    started a topic You Can Now Run LLVM Assembly In Your Web-Browser

    You Can Now Run LLVM Assembly In Your Web-Browser

    Phoronix: You Can Now Run LLVM Assembly In Your Web-Browser

    Thanks to some experimental and innovative work done on LLVM, it's now possible to parse and execute LLVM Assembly within your web-browser. This Assembly code from the LLVM compiler infrastructure is then translated to JavaScript using EmScripten...

    http://www.phoronix.com/vr.php?view=MTI2NzA

  • RealNC
    replied
    Emscripten is quite impressive in what it can achieve. And it uses the SDL API for canvas operations, which makes it easy to pick up.

    But JavaScript has some limitations at this point, so it's not possible to compile C or C++ code to it that makes use of longjmp() or setcontext() (used for C exception handling implementations or thin threads, for example.)

    Hopefully JavaScript will introduce compatible features soon.

    Leave a comment:


  • timofonic
    replied
    Originally posted by nslay View Post
    I used to think this way ... but it's really nothing like Java byte code and it is especially architecture-dependent. It is fun to dream of such a technology though.

    Have a look at this mailing list post:
    http://lists.cs.uiuc.edu/pipermail/l...er/043719.html
    What about Parrot?

    http://www.parrot.org

    Leave a comment:


  • nslay
    replied
    Originally posted by zanny View Post
    Since it is the New Year and all and everyone is making predictions:

    I easily see LLVM bytecode being a universal bytecode standard in 5 years. Translate any interpreted or JIT language into it, and either run it in a VM or compile it to native on any platform. Next generation OSes might ship with LLVM interpreters to sandbox applications at near-native speeds, rather than seperate C# / Java runtimes (and maybe instead of shipping Python / Perl / Ruby etc you just compile apps to LLVM and ship them like that).
    I used to think this way ... but it's really nothing like Java byte code and it is especially architecture-dependent. It is fun to dream of such a technology though.

    Have a look at this mailing list post:
    http://lists.cs.uiuc.edu/pipermail/l...er/043719.html

    Leave a comment:


  • zanny
    replied
    Since it is the New Year and all and everyone is making predictions:

    I easily see LLVM bytecode being a universal bytecode standard in 5 years. Translate any interpreted or JIT language into it, and either run it in a VM or compile it to native on any platform. Next generation OSes might ship with LLVM interpreters to sandbox applications at near-native speeds, rather than seperate C# / Java runtimes (and maybe instead of shipping Python / Perl / Ruby etc you just compile apps to LLVM and ship them like that).

    Leave a comment:

Working...
X