summaryrefslogtreecommitdiff
path: root/bedrock-core.wat
Commit message (Collapse)AuthorAge
* Zero the cycle counter in WASM core on resetBen Bridle2025-09-13
| | | | | This was incrementing higher and higher each time the program was re-run after halting.
* Implement a faster core in WebAssemblyBen Bridle2025-09-12
This is a massive commit that restructures a lot of the library. The primary change is the implementation of a second Bedrock core using WebAssembly, which performs much better than the existing JavaScript core. The JavaScript core has been retained as a fallback for browsers that don't support WebAssembly. Benchmarking both cores using the numbers benchmark and with all of the devices stubbed out in the emulator demonstrates a 40x speedup for the WebAssembly implementation (going from 4800ms to 120ms).