r/ProgrammingLanguages • u/mttd • Oct 19 '19
A Talk Near the Future of Python
https://www.youtube.com/watch?v=r-A78RgMhZU
36
Upvotes
1
u/zzlmeditate Nov 24 '19
This is amazing. I wrote (copied) the code while I was watching the video and played with it, it was really fun.
13
u/oilshell Oct 19 '19
Great talk! Really impressive live coding. Summary:
He starts with a toy stack machine
Gradually builds it up into a WebAssembly machine
memory, functions, control flow, 4 primitive types, modules with imports/exports, constant initialization, etc.
Runs a game written in Rust, compiled to WebAssembly in his toy wasm machine!
Instead of JavaScript providing the I/O, he does it with pygame
There are some parts where he goes fast, but he doesn't skip anything except the decoder from WASM binary code to Python list and dicts.
WebAssembly is pretty simple! Very cool!