[LLVMdev] LLVM IR execution in JavaScript

Alon Zakai azakai at mozilla.com
Wed Jan 2 12:10:36 PST 2013

----- Original Message -----
> From: "Sebastian Redl" <sebastian.redl at getdesigned.at>
> To: "Alon Zakai" <azakai at mozilla.com>
> Cc: "llvmdev" <llvmdev at cs.uiuc.edu>, "Eli Bendersky" <eliben at google.com>
> Sent: Wednesday, January 2, 2013 12:06:42 PM
> Subject: Re: [LLVMdev] LLVM IR execution in JavaScript
> On 02.01.2013, at 20:50, Alon Zakai wrote:
> > I agree both are useful approaches. I went with
> > clientside-everything in this demo because I work on that stuff
> > and like it ;)
> Oh, I agree that it is awesome. It just froze my browser completely
> for several seconds just compiling the Hello World program.

Yeah, as mentioned in the demo page, it isn't optimized, it's just something I hacked up. With some more work it could be much faster.

A few seconds is slower than I would expect though. It takes me about 1 second for hello world, I am on a nightly build of Firefox though (nightly builds tend to be faster than stable releases), perhaps that is the difference.

- azakai

More information about the llvm-dev mailing list