feat: add simplicity wasm runner - #56
Conversation
|
@stringhandler I really like this in-page way of educating people. |
|
I'm not positive on where this functionality should live (but this repo is one real possibility). Totally agreed with @imaginator that this is a wonderful thing to have and we should use it more. Current short-term plan is to use it for the "try it in your browser" on the reworked docs site. (I built that version using a clone of @stringhandler's original tree, not this version.) Other ideas: (1) @stringhandler suggested a "SimplicityHL by example" book which would have various examples of language features and idioms for people to try in their browsers while they read. |
|
The way we do it now on the live site is by building something with other tooling (that @stringhandler also made!) and then manually copying individual instances of a build interactive demo page into our tree to load via an |
| - tables: | ||
| - def_list: | ||
|
|
||
| hooks: |
There was a problem hiding this comment.
This is a bug. There is already a hooks: section elsewhere in this file. The duplicate one gets ignored entirely; the plugin needs to be added to the existing section.
|
After testing this, I'm convinced that this is the right approach and a huge benefit to the site. @stringhandler Could you fix that one thing about the |
|
I did some additional work testing this and adding a feature with some AI assistance to cache transactions locally in the tree as files (so that we don't rely on live availability of Esplora and don't load it unnecessarily). However, this is still optional (it will still fall back to loading that data from the API if a given transaction is not cached). This PR worked well for me locally and I've just attempted a first live deploy using it; in a moment we can see how it goes. |
|
It works great! Thanks, @stringhandler. |
No description provided.