News for hackers. Stuff that matters.
Re:WebAssembly Browser Preview by LeanderK on Monday October 31, 2016 @01:30PM (#12838941)
i feel like one important piece thats missing is a standardised debugging-API. The introduction of WebAssembly will probably lead to a larger percentage of people compiling a (completely different) language to something running in the browser will rise. We need solid tooling for that.
Re:WebAssembly Browser Preview by kibwen on Monday October 31, 2016 @01:34PM (#12838971)
IIRC Firefox already implements the Chrome Debugging Protocol (https://developer.chrome.com/devtools/docs/debugger-protocol), which e.g. would mean that it should be possible to use Firefox's debug tools to debug web pages in Chrome (and vice-versa). Would be nice to have some clarification on this though.

EDIT: Some more clarification, apparently this is enabled by an official add-on (called "Valence") which is shipped by default on Firefox Developer Edition: https://developer.mozilla.org/en-US/docs/Tools/Valence

Re:WebAssembly Browser Preview by auchenberg on Monday October 31, 2016 @02:55PM (#12839811)
Firefox doesn't implement the Chrome Debugging Protocol, but has it's own (FDP).

Valence is an protocol adapter that adapts CDP to FDP, so Firefox DevTools (using FDP) can be used with iOS (which uses WDP)

Re:WebAssembly Browser Preview by LeanderK on Monday October 31, 2016 @01:37PM (#12839016)
i am not following this very closely and was not aware of this (Developed something in Chrome/Safari a few months ago and this bothered me. I needed a custom Webstorm-Extension). I think the push for Wasm would be perfect to sort this thing out and provide a real, standardised API.
Re:WebAssembly Browser Preview by s3th on Monday October 31, 2016 @02:20PM (#12839497)
We're very interested in exploring this space. It's possible that this capability is exposed through an extension of sourcemaps [0]. Definitely curious to hear more ideas and feedback in this space.

[0]: http://webassembly.org/docs/future-features/#source-maps-int...

Re:WebAssembly Browser Preview by dekimir on Wednesday November 02, 2016 @12:24PM (#12856481)
Before I left Google, I worked on this briefly and produced this PR: https://github.com/WebAssembly/design/pull/708

It summarizes the discussion so far between various stakeholders. I've since moved on to other things, and I don't know where the effort currently stands.

Re:WebAssembly Browser Preview by auchenberg on Monday October 31, 2016 @02:54PM (#12839795)
Have you seen, http://remotedebug.org? The initiative is moving forward.
Re:WebAssembly Browser Preview by stcredzero on Monday October 31, 2016 @01:34PM (#12838980)
If there is some kind of advanced debugging platform, then this would also make the browser a premier platform as a development environment.
Re:WebAssembly Browser Preview by kruhft on Monday October 31, 2016 @04:36PM (#12840711)
Solid tooling and plenty of prior art, tooling and standards that exist for adding debugging info to binaries[1]. I wonder if this could be layered into the WASM binary format in some way.

[1] DWARF2 et al.