|
|
@ -6,19 +6,20 @@ wasm: wasm-life-1/game.wat
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
Lately in doing research on WebAssembly I've been looking around for examples
|
|
|
|
Lately in doing research on WebAssembly I've been looking around for examples
|
|
|
|
of things implemented in it, and I've come across several blog posts based on
|
|
|
|
of things implemented in it. In this search I've come across several blog
|
|
|
|
the fantastic *Rust And WebAssembly* tutorial for
|
|
|
|
posts that claim to be Conway's Game of Life in WebAssembly, but upon opening them,
|
|
|
|
[Conway's Game of Life](https://rustwasm.github.io/docs/book/game-of-life/introduction.html).
|
|
|
|
I find they are actually just Rust!
|
|
|
|
|
|
|
|
|
|
|
|
And I mean no shade towards the folks who wrote those, but I feel it's mildly
|
|
|
|
Now I mean no shade towards Rust or those posts (and if that's what you're
|
|
|
|
disingenuous to say that those are "Conway's Game of Life in WebAssembly" when
|
|
|
|
curious about doing, I recommend the fantastic [Conway's Game of Life](https://rustwasm.github.io/docs/book/game-of-life/introduction.html)
|
|
|
|
the actual game code was written entirely in Rust. In those sorts of projects
|
|
|
|
guide from *Rust and WebAssembly*) but around here I take pride in being
|
|
|
|
WebAssembly is really no more than a compilation target, not actually the
|
|
|
|
accurate to the point of pedantry. Rust is very much not WebAssembly, and
|
|
|
|
language used!
|
|
|
|
despite how much we front-end developers may get them conflated in our heads,
|
|
|
|
|
|
|
|
this feels like a distinction worth making!
|
|
|
|
|
|
|
|
|
|
|
|
So of course I knew what I had to do . . .
|
|
|
|
So of course I knew what I had to do . . .
|
|
|
|
|
|
|
|
|
|
|
|
Welcome to Conway's Game of Life, *actually implemented* in WebAssembly:
|
|
|
|
Welcome to Conway's Game of Life, ***actually implemented in WebAssembly:***
|
|
|
|
|
|
|
|
|
|
|
|
<noscript>[If you enable Javascript, you'll see a game board here]</noscript>
|
|
|
|
<noscript>[If you enable Javascript, you'll see a game board here]</noscript>
|
|
|
|
<canvas
|
|
|
|
<canvas
|
|
|
|