components_guide
bfasm
components_guide | bfasm | |
---|---|---|
1 | 2 | |
21 | 0 | |
- | - | |
9.6 | 10.0 | |
2 months ago | over 6 years ago | |
Elixir | WebAssembly | |
Creative Commons Attribution Share Alike 4.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
components_guide
-
WebAssembly Text Code Samples
This is fantastic. The specs and the MDN documentation are pretty detailed, but I’ve found I need a fair bit of trial and error to understand some WAT language features.
The loop with a block directly inside is a good regular pattern! I’ll be using that all the time now.
I’ve been writing an Elixir DSL for WAT. Elixir has a powerful macro system, so I can closer to that pseudo C-syntax in this post, plus some other niceties. I plan to open source it as a library soon.
Here are examples I’ve written in it, like an HTML escaper, stateful HTML component, bump allocator, and a few state machines.
https://github.com/ComponentsGuide/components_guide/tree/mas...
bfasm
-
Understanding Every Byte in a WASM Module
I have a hand-written BF interpreter in WAT, along with hand-written asm.js for comparison, over here https://github.com/magcius/bfasm
-
WebAssembly Text Code Samples
At one point I hand-wrote a simple Brainfuck interpreter in both WAT (called WAST at the time...) and asm.js. Both are extremely tedious, but it seems WAT has improved a bit ergonomically since...
https://github.com/magcius/bfasm/blob/master/bfasm.js
https://github.com/magcius/bfasm/blob/master/bfwasm.wast
What are some alternatives?
ffmpeg.wasm - FFmpeg for browser, powered by WebAssembly
v86 - x86 PC emulator and x86-to-wasm JIT, running in the browser
livebook - Interactive and collaborative code notebooks for Elixir - made with Phoenix LiveView [Moved to: https://github.com/livebook-dev/livebook]
website - WebAssembly website
uneebee - Platform for creating interactive courses.
website - AssemblyScript's website and documentation.
Drab - Remote controlled frontend framework for Phoenix.
livebook - Automate code & data workflows with interactive Elixir notebooks