SDL Support with Web Assembly

Hi all,

After following the early conception of the WebAssembly cross-browser
collaboration effort (https://github.com/WebAssembly) I noticed that there
is initial effort to make sure both POSIX and SDL libraries are available
for C/C++ programmers early on in the Web Assembly MVP. After doing more
research, I haven’t noticed any discussion about this in the SDL
development mailing list or anywhere else. Are there contributors working
on this support or planning to?

For reference, this is the part of the WebAssembly design discussing SDL:

Could anyone shed some light on whether the SDL team is officially planning
on working on an early WebAssembly implementation?

Thanks,
Ben

Ben Henning wrote:

Could anyone shed some light on whether the SDL team is officially planning on working on an early WebAssembly implementation?

If I remember correctly about WebAssembly’s status, it is still going through a pretty low level design process. I.e. WebAssembly’s developers are trying to figure out what WebAssembly itself is, and how it might work with a wide variety of libraries and applications. As such, there’s very little available in the way of tooling, or APIs, that others can use.

I do recall, in reading about WebAssembly, that some of Emscripten’s main developers were working on WebAssembly (https://github.com/kripken/emscripten/issues/3594 ). As such, this seems like Emscripten’s compiler(s) might, someday, include the ability to output WebAssembly, possibly using Emscripten APIs (which SDL2 does have support for, in hg.libsdl.org). That’s all just speculation on my part, though.

Cheers!
– David L.

I appreciate the insight, thanks David!On Fri, Sep 25, 2015 at 9:02 PM, DLudwig wrote:

Ben Henning wrote:

Could anyone shed some light on whether the SDL team is officially
planning on working on an early WebAssembly implementation?

If I remember correctly about WebAssembly’s status, it is still going
through a pretty low level design process. I.e. WebAssembly’s developers
are trying to figure out what WebAssembly itself is, and how it might work
with a wide variety of libraries and applications. As such, there’s very
little available in the way of tooling, or APIs, that others can use.

I do recall, in reading about WebAssembly, that some of Emscripten’s main
developers were working on WebAssembly (
https://github.com/kripken/emscripten/issues/3594 ). As such, this seems
like Emscripten’s compiler(s) might, someday, include the ability to output
WebAssembly, possibly using Emscripten APIs (which SDL2 does have support
for, in hg.libsdl.org). That’s all just speculation on my part, though.

Cheers!
– David L.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org