News for hackers. Stuff that matters.
Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by irrational on Thursday December 05, 2019 @10:02AM (#21712804)
>crucially their modification of the TeX engine seems to be distributed only as the two `.wasm` binary files

I thought one of the selling points of webassembly is that wasm files must have a textual format that anyone can read the source.

Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by thekingofh on Thursday December 05, 2019 @10:13AM (#21712916)
Technically, yes. It's possible to easily disassemble the wasm into wasm code. The good part is that now the target format is a standard instead of something like asm.js or minimized javascript.

We reached a point where everyone was distributing browser code as minimized javascript to the point where reading the source of web pages wasn't really meaningful anymore. At least this way you can technically read the webassembly in something that is standardized. Anything can still be obfuscated though. The idea of a pure, readable webpages is long gone, but if they made the code clean and didn't do any trickery then it's still possible to read if you know the format.

Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by sp332 on Thursday December 05, 2019 @10:17AM (#21712969)
The binary format and the text format are completely interchangeable. https://www.webassemblyman.com/wat_webassembly_text_format.h... (As far as I can tell, comments are not preserved in the binary format though.)
Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by colejohnson66 on Thursday December 05, 2019 @12:04PM (#21713980)
It’s the same with regular assembly. When you compile/assemble a .S or .asm file, you get a binary file with none of the comments
Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by tambre on Thursday December 05, 2019 @10:14AM (#21712926)
Why you'd think that? It's assembly meant to run on a virtual machine in browsers. The textual representation is similar to your normal assembly code, albeit a bit more high-level.
Re:Web-assembly powered WYSIWYG LaTeX Editor, supporting nea... by irrational on Thursday December 05, 2019 @07:40PM (#21718303)
I read it here:

https://webassembly.org/

Open and debuggable

WebAssembly is designed to be pretty-printed in a textual format for debugging, testing, experimenting, optimizing, learning, teaching, and writing programs by hand. The textual format will be used when viewing the source of Wasm modules on the web.

Will WebAssembly support View Source on the Web?

Yes! WebAssembly defines a text format to be rendered when developers view the source of a WebAssembly module in any developer tool. Also, a specific goal of the text format is to allow developers to write WebAssembly modules by hand for testing, experimenting, optimizing, learning and teaching purposes. In fact, by dropping all the coercions required by asm.js validation, the WebAssembly text format should be much more natural to read and write than asm.js. Outside the browser, command-line and online tools that convert between text and binary will also be made readily available. Lastly, a scalable form of source maps is also being considered as part of the WebAssembly tooling story.