Co-author of https://wasmgroundup.com โ learn Wasm by building a simple compiler in JavaScript.
Prev: CDG/HARC, Google, BumpTop
It's the book we wish we'd had 3 years ago.
No messing with tools and frameworks. It's a hands-on guide to the core of Wasm: the instruction set and module format.
Link below. ๐
If you bought it in early access, thanks for your support! ๐
If you haven't bought it yet, please check it out!!
A WebAssembly interpreter (Part 1)
โ wasmgroundup.com/blog/wasm-vm...
We build up a simple interpreter from scratch, in JavaScript, for a small subset of Wasm instructions (arithmetic and comparison).
โ github.com/pdubroy/til/...
โ github.com/pdubroy/til/...
"My First Fifteen Compilers" by Lindsey Kuper
blog.sigplan.org/2019/07/09/m...
"My First Fifteen Compilers" by Lindsey Kuper
blog.sigplan.org/2019/07/09/m...
devlog: garbage collection is useful
โ dubroy.com/blog/garbage...
Trying something new: quick, technical posts about things I'm working on. Let's see if it sticks.
devlog: garbage collection is useful
โ dubroy.com/blog/garbage...
Trying something new: quick, technical posts about things I'm working on. Let's see if it sticks.
const newCount = checkNotNull(refCounts.get(node)) - 1;
I generally wouldn't assign the result into a new var, I agree that an assertion or type predicate is preferable then.
const newCount = checkNotNull(refCounts.get(node)) - 1;
I generally wouldn't assign the result into a new var, I agree that an assertion or type predicate is preferable then.
So useful! Surprisingly I haven't seen many TS resources which mention this specific pattern.
So useful! Surprisingly I haven't seen many TS resources which mention this specific pattern.
So I buy the argument for C++, but it's less clear to me that it makes sense for languages like Mojo or Odin.
So I buy the argument for C++, but it's less clear to me that it makes sense for languages like Mojo or Odin.
"Try to avoid unsigned types (except for representing bitfields or modular arithmetic). Do not use an unsigned type merely to assert that a variable is non-negative."
Example of a possible bug: abseil.io/tips/227
(via @wingolog.org)
"Try to avoid unsigned types (except for representing bitfields or modular arithmetic). Do not use an unsigned type merely to assert that a variable is non-negative."
Example of a possible bug: abseil.io/tips/227
(via @wingolog.org)
An Empirical Evaluation of Property-Based Testing in Python
โ dl.acm.org/doi/pdf/10.1...
Some interesting findings:
- "Each property-based test finds about 50x as many mutations as the average unit test"
- "76% of mutations were found within the first 20 inputs"
An Empirical Evaluation of Property-Based Testing in Python
โ dl.acm.org/doi/pdf/10.1...
Some interesting findings:
- "Each property-based test finds about 50x as many mutations as the average unit test"
- "76% of mutations were found within the first 20 inputs"
Authors Patrick @dubroy.com and @marianoguerra.org think it's crucial for learning. They join #WasmAssembly host Thomas Steiner to discuss their ebook, "WebAssembly from the Ground Up" โ goo.gle/3Ln67Pp
Authors Patrick @dubroy.com and @marianoguerra.org think it's crucial for learning. They join #WasmAssembly host Thomas Steiner to discuss their ebook, "WebAssembly from the Ground Up" โ goo.gle/3Ln67Pp
github.com/microsoft/px...
Also described in a 2019 MPLR paper: www.microsoft.com/en-us/resear...
github.com/microsoft/px...
Also described in a 2019 MPLR paper: www.microsoft.com/en-us/resear...
Bytecode VMs in surprising places
โ dubroy.com/blog/bytecod...
If you are interested in a hands-on way to learn #wasm, check out the book that @marianoguerra.org and I wrote together!
It's the book we wish we'd had 3 years ago.
No messing with tools and frameworks. It's a hands-on guide to the core of Wasm: the instruction set and module format.
Link below. ๐
If you are interested in a hands-on way to learn #wasm, check out the book that @marianoguerra.org and I wrote together!
Dodrio (by Nick Fitzgerald) is an experimental virtual DOM library for Rust and Wasm. It uses bump allocation for the VDOM nodes and uses a stack machine language to represent change lists: github.com/fitzgen/dodrio
Dodrio (by Nick Fitzgerald) is an experimental virtual DOM library for Rust and Wasm. It uses bump allocation for the VDOM nodes and uses a stack machine language to represent change lists: github.com/fitzgen/dodrio
Bytecode VMs in surprising places
โ dubroy.com/blog/bytecod...
Bytecode VMs in surprising places
โ dubroy.com/blog/bytecod...
We (@dubroy.com and @marianoguerra.org) are planning to be there. Patrick tomorrow, and both of us on Thursday for the Research Day.
If you see us, come say hi!