Results 1 to 9 of 9

Thread: Emscripten: Bang Out JavaScript From LLVM Bitcode

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

    Default Emscripten: Bang Out JavaScript From LLVM Bitcode

    Phoronix: Emscripten: Bang Out JavaScript From LLVM Bitcode

    There's an interesting new open-source LLVM-using project called Emscripten. Emscripten allows JavaScript to be automatically generated from LLVM bit-code. In other words, you can take C/C++ code-bases and easily translate them into JavaScript...

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

  2. #2
    Join Date
    Apr 2011
    Location
    Dhaka,Bangladesh
    Posts
    105

    Wink What a coincidence

    Is somehow Phoronix is tracking my history(at least in one of the tab, its open most of the time)??? I just saw the project 1/2 hour ago and now its on Phoronix .

    Anyway I found the page from a web based python interpreter's page. Seems to me its a quite interesting project like Pyjama and Google Web Toolkit. As the world of application is moving to web platform, newer complex projects could use it for reusing existing library.

  3. #3
    Join Date
    Oct 2009
    Posts
    343

    Default

    so.. what it does with python ? can someone explain me?

  4. #4
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,282

    Default

    It makes your python be interpreted in javascript. Yo dawg, we put an interpreter in your interpreter.

  5. #5
    Join Date
    Apr 2011
    Location
    Dhaka,Bangladesh
    Posts
    105

    Default

    Quote Originally Posted by NomadDemon View Post
    so.. what it does with python ? can someone explain me?
    Look for your self
    http://syntensity.com/static/python.html

  6. #6
    Join Date
    Nov 2008
    Location
    Madison, WI, USA
    Posts
    881

    Default

    Quote Originally Posted by Tiger_Coder View Post
    That's pretty awesome... Scary, but awesome.

  7. #7
    Join Date
    Apr 2010
    Posts
    797

    Default

    Not exactly a new project... it's been going six months already, and has been attracting a bit of attention, particularly on Mozilla and Chrome-related blogs...

  8. #8
    Join Date
    Jan 2009
    Posts
    302

    Default

    emscripten is written in python.. it generates llvm bytecode then it compiles it with llvm... apparently emscripten itself has even been compiled into js so you can run it in your browser.

  9. #9
    Join Date
    Oct 2008
    Posts
    3,216

    Default Emscriptem is pretty solid at translating C -> Javascript

    But it can result in some pretty unoptimized code. Generally people will use it to translate their project into javascript, then go and tweak the result to speed it up.

Posting Permissions

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