Webassembly and future of HTML5 bundle (DEF-2570)(SOLVED)

As you know webassembly is almost there.

Did you try to compile defold using webassembly?
Have you plans to make it in near futer?

5 Likes

Not sure. @Andreas_Tadic, @sven and @Mathias_Westerdahl, do you know?

1 Like

It’s definitely something we should support in the future, and it should be possible since we use Emscripten in our dev pipeline. :slight_smile: We don’t have it prioritised yet, but I have added an issue for it: DEF-2570

It would be very interesting to see if there is any load speed difference with WebAssembly in Defold!

5 Likes

WebAssembly is fast! But it’s difficult to appreciate it with more simple projects.

2 Likes

https://hacks.mozilla.org/2017/03/why-webassembly-is-faster-than-asm-js/

1 Like

I was just about to link the same article. It seems like the startup time can be improved with WebAssembly as well.

2 Likes

I’ve tested wasm vs asm.js in other engines and the startup is faster, plus it ‘seems’ more stable.
I think you guys should add this, even if as a ‘experimental’ extra option for the time being.

1 Like