Hi,

Another extension with a new image format if you're interested:
https://bellard.org/bpg/
https://bellard.org/bpg/gallery2.html
https://bellard.org/bpg/animation.html

Nice target choice for the emulator ;)

- Beuc

On 05/01/2019 22:20, Floh wrote:
> Not a question, just something interesting I've been doing in the past
> few days...
>
> I've been playing around with 8-bit computer emulation in WASM/asm.js
> for a while now, but
> only recently had the idea of "what if the emulator application would
> disappear completely"
> and would only serve as an "invisible" player/runner for emulator file
> formats...
>
> I experimented with this here in this blog post:
>
> https://floooh.github.io/2019/01/05/wasm-embedding.html
>
> There's an embedded emulator in there which acts like an "embedded
> video player",
> except it's "playing" an emulator snapshot file.
>
> The most interesting thing are the file sizes, the emulator is made
> from 3 files (sizes are compressed):
>
> cpc.html (2.1KB), cpc.wasm (72.9 KB), cpc.js (27.8 KB)... which adds
> up to about 100 KBytes before the
> emulator starts. Even on a slow connection this is nearly
> instantaneous, and the size of the 'player'
> is actually smaller than the size of the data it loads (129KB,
> although this is only because the .sna snapshot file isn't compressed
> by the github web servers).
>
> It's also interesting to note that the 73KB WASM size contains the
> embedded system ROMs for the
> Amstrad CPC6128: 48 KBytes Z80 machine code (uncompressed, which gzips
> to about 37 KBytes, so the actual compressed WASM bytecode is more
> like 35 KBytes!
>
> This also shows that the size of the Javascript runtime file starts to
> hurt :) In the beginning this was about
> 17 KBytes, but then I had to enable the ccall/cwrap stuff again, which
> I think was mainly responsible for the 10 KByte jump. The other big
> chunk of stuff is the WebGL shim. I hope the new WASM/JS bindingĀ 
> stuff will help here.
>
> But anyway... I think "extending" browsers with small WASM modules
> like this is a very interesting direction!
> -- 
> 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 emscripten-discuss+unsubscr...@googlegroups.com
> <mailto:emscripten-discuss+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to