Results 1 to 5 of 5

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

  1. #1
    Join Date
    Jan 2007
    Posts
    15,438

    Default 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

  2. #2
    Join Date
    Dec 2012
    Posts
    573

    Default

    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).

  3. #3
    Join Date
    Jun 2012
    Posts
    117

    Default

    Quote 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

  4. #4
    Join Date
    Feb 2008
    Posts
    213

    Default

    Quote 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

  5. #5
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,801

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •