4 ms·
Serious question: why could not those other devs learn from your Rust code, even decompile wasm back into it via their devtools and ye olde view source?
by BrendanEich 11y ago
Serious question: why could not those other devs learn from your Rust code, even decompile wasm back into it via their devtools and ye olde view source?
- hacst 11y agoOptimizing compilers.
- BrendanEich 11y agoSometimes you must build with -g. WebDWARF ;-).
- bsimpson 11y agoCan you please clarify? I've seen WebDWARF mentioned twice now, but when I Google, I get a bunch of results about a shareware clone of Dreamweaver.
- filereaper 11y agoDWARF is a debugging data format for ELF files.[1] WebDWARF then would be to WebASM, as DWARF is to ELF files. [1]https://en.wikipedia.org/wiki/DWARF https://en.wikipedia.org/wiki/DWARF
- bsimpson 11y agoThank you!
- BrendanEich 11y agoI'm suggesting that when debugging optimized code, you'll use -g as on native platforms. I'm speculating further that with wasm, decompilers will rise to the view source challenge.
- AriaMinaei 11y agoBecause the source-map may not be available. And they might not know Rust. Or perhaps having to setup a Rust dev env to play with this code is too much work and it's just not worth it. Anyway, I think I should explain my thoughts better instead of only pointing out a problem. I wrote this comment: https://news.ycombinator.com/item?id=9743859 https://news.ycombinator.com/item?id=9743859