- Learn WebAssembly
- Mike Rourke
- 269字
- 2021-08-13 15:38:52
Role in the development process
The text format allows for the representation of a binary Wasm module in textual form. This has some profound implications with regard to the ease of development and debugging. Having a textual representation of a WebAssembly module allows developers to view the source of a loaded module in a browser, which eliminates the black-box issues that inhibited the adoption of NaCl. It also allows for tooling to be built around troubleshooting modules. The official website describes the use cases that drove the design of the text format:
? Presentation in browser development tools when source maps aren't present (which is necessarily the case with the Minimum Viable Product (MVP)).
? Writing WebAssembly code directly for reasons including pedagogical, experimental, debugging, optimization, and testing of the spec itself.
The last item in the list reflects that the text format isn't intended to be written by hand in the course of normal development, but rather generated from a tool like Emscripten. You probably won't see or manipulate any .wat files when you're generating modules, but you may be viewing them in a debugging context.
Not only is the text format valuable with regards to debugging, but having this intermediate format reduces the amount of reliance on a single tool for compilation. Several different tools currently exist to consume and emit this s-expression syntax, some of which are used by Emscripten to compile your code down to a .wasm file.
- SQL Server 從入門到項(xiàng)目實(shí)踐(超值版)
- 案例式C語言程序設(shè)計(jì)
- 小創(chuàng)客玩轉(zhuǎn)圖形化編程
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- 云原生Spring實(shí)戰(zhàn)
- 單片機(jī)應(yīng)用技術(shù)
- Julia Cookbook
- HTML5 and CSS3 Transition,Transformation,and Animation
- 利用Python進(jìn)行數(shù)據(jù)分析(原書第3版)
- Java程序設(shè)計(jì)與項(xiàng)目案例教程
- 并行編程方法與優(yōu)化實(shí)踐
- Python自然語言理解:自然語言理解系統(tǒng)開發(fā)與應(yīng)用實(shí)戰(zhàn)
- IPython Interactive Computing and Visualization Cookbook
- Groovy 2 Cookbook
- AI輔助編程Python實(shí)戰(zhàn):基于GitHub Copilot和ChatGPT