Skip to content

Latest commit

 

History

History
executable file
·
56 lines (45 loc) · 2.35 KB

web-assembly.md

File metadata and controls

executable file
·
56 lines (45 loc) · 2.35 KB

Web Assembly

WebASMmbly WasmMVP (first implemenatation) -> WasmGC

C applications can be compiled to webassembly target. The future!

  • Understanding Every Byte in a WASM Module

    • Compile a+b in C and see what the code is compiled
  • V8 Blog: WasmGC A new way to bring garbage collected programming languages efficiently to WebAssembly 2023 Escape analysis to move heap allocations to locals. Devirtualization to turn indirect calls into direct ones (that can then be inlined, potentially). More powerful global dead code elimination. Whole-program type-aware content flow analysis (GUFA). Cast optimizations such as removing redundant casts and moving them to earlier locations. Type pruning. Type merging. Type refining (for locals, globals, fields, and signatures).

  • CheerpX

    • CheerpX -> repl
    • is a x86 to WebAssembly virtualization technology
    • can virtualize native executables or full operating systems
    • can run any x86 application, fully client side
  • The State of WebAssembly 2022

    • Rust is the most popular compiled labguage
    • Strangely Compiling a javascript runtime in WASM and executing JS code is reasonably feasable

Python (in browser)