On Mon, Mar 31, 2014 at 9:08 AM, Trevor Linton <[email protected]>wrote:

> Hi All,
>
> For the past few months i've been porting webkit to JavaScript using
> emscripten.
>

Very cool!


> You can find a working demo (Firefox only) here:
> http://trevorlinton.github.io/webkit.js/demo.html
>

It doesn't seem to render anything for me: Firefox 27.0.1


> You can find the project sources (compile settings are in common.gypi)
> here: http://github.com/trevorlinton/webkit.js
>
> I have a few issues with Emscripten I haven't been able to work around:
>
>    1. Is there anyway memory can be initialized with a Uint32 rather than
>    Uint8? I'm my tests this would cut down my code size of webkit.js from 19MB
>    to 15MB!!!
>
> We would appreciate that too.  :)  Alas, we can't use the external memory
map file, and the array of 8-bit numbers static data is pretty wasteful.

>
>    1. Closure compilers ran on it actually produce INVALID javascript, I
>    get a syntax error of '--/a' which is nonsensical and fairly surprising.
>
> Fascinating!  I've heard rumors of such things happening but never seen it
in practice.  Can you narrow it down?

>
>    1. There's no seemingly easy way to compress/inflate/deflate code
>    using XZ, this would be hugely helpful as it cuts the JS code down to
>    3.5MB! I realize this will happen on a server level but would be VERY
>    helpful.
>
> There are some folks at Google that are starting to resurrect the
discussion around web compression technologies.  It's 2014, why haven't we
moved beyond gzip, etc. etc.  LZMA is a huge win for certain types of
content, but broken proxy servers that assume any Content-Encoding header
implies gzip either need to be worked around or fixed.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to