Live data from Hacker News

Porting to Emscripten

hacks.mozilla.org

1–10 of 14 posts

Re: Porting to Emscripten

#4
post #2

So when can we see Firefox ported to Emscripten?

That is a more serious question than it first appears at first glance.

Firefox, GCC, cat, gzip, PovRay are all things that should be potentially doable. Each one will not necessarily _have_ to be done, but the idea should be embraced to see if they are possible. If there is any reason why these things are impossible, that should be an area to focus on. Why is it not possible? Should it be possible, and if so, how to make it possible.

Re: Porting to Emscripten

#6
I can't wait until the tooling gets to where I don't have to debug natively first.

I perticularly ran into issue dealing with unimplemented functions in some POSIX libraries. Then I tried to use the source maps in a debug build to find out when and where they were being used during runtime because they would stop the rest of the program. Unfortunately I couldn't compile the debug build because emscripten kept getting stuck in the linking phase (I had to force quit). I hope one day this all works as well as the Android NDK.

Re: Porting to Emscripten

#7
One thing missing from the article: If you have a fullscreen mode, provide an alternative to the escape key for opening menus or whatever action you had bound to that key, because the browser interprets escape as a command to exit fullscreen mode. Plenty of the Humble Bundle asmjs games didn't get this.

Re: Porting to Emscripten

#8
This looked like great news until I came to "Heavy use of threads is also going to be a problem since Emscripten doesn't currently support them."

Sorry, this is a total showstopper for me. I'll check back when Emscripten actually lets me use more than 1/4 or 1/8 of the CPU.

Re: Porting to Emscripten

#9

This looked like great news until I came to "Heavy use of threads is also going to be a problem since Emscripten doesn't currently support them." Sorry, this is a total showstopper for me. I'll check back when Emscripten actually lets me use more than 1/4 or 1/8 of the CPU.

This is because of how JavaScript is implemented, you can't use threads in JS like you can in a C++ program.

Re: Porting to Emscripten

#10

This looked like great news until I came to "Heavy use of threads is also going to be a problem since Emscripten doesn't currently support them." Sorry, this is a total showstopper for me. I'll check back when Emscripten actually lets me use more than 1/4 or 1/8 of the CPU.

According to this document Jukka Jylänki is working on it: https://docs.google.com/spreadsheets/d/t3AwIGGaM-4Z9UZM2jpF6...
Post reply on HN