Announcement

Collapse
No announcement yet.

You Can Now Run LLVM Assembly In Your Web-Browser

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

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

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    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).

    Comment


    • #3
      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:

      Comment


      • #4
        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?

        Comment


        • #5
          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.

          Comment

          Working...
          X