[–] Honiix 9y ago ↗ One of these things that feels natural after 1 minute. I never want to go back to the rest of Internet now :-(
[–] Veen 9y ago ↗ I really enjoy making coding notes in org mode because you can do stuff like this. Be nice to see it come to the web.
[–] GRiMe2D 9y ago ↗ I typed -1 in factorial demo and script ended responding :) [–] raverbashing 9y ago ↗ Fix it then run the code again ;) [–] viebel 9y ago ↗ Thanks. I fixed it by returning 1 for negative numbers.With clojure snippets, Klipse protects itself from infinite loops - but not with lua snippets.
[–] viebel 9y ago ↗ Thanks. I fixed it by returning 1 for negative numbers.With clojure snippets, Klipse protects itself from infinite loops - but not with lua snippets.
[–] daurnimator 9y ago ↗ My browser doesn't (yet) support web assembly.Is there a reason you picked wasm_lua over (e.g.) lua.vm.js? [–] viebel 9y ago ↗ I was not aware of lua.vm.js Thanks for the pointer [–] daurnimator 9y ago ↗ See my comment from yesterday: https://news.ycombinator.com/item?id=13900372 as a quick comparison of the various lua-in-js implementations.
[–] viebel 9y ago ↗ I was not aware of lua.vm.js Thanks for the pointer [–] daurnimator 9y ago ↗ See my comment from yesterday: https://news.ycombinator.com/item?id=13900372 as a quick comparison of the various lua-in-js implementations.
[–] daurnimator 9y ago ↗ See my comment from yesterday: https://news.ycombinator.com/item?id=13900372 as a quick comparison of the various lua-in-js implementations.
[–] raverbashing 9y ago ↗ Interesting. It does work on Firefox 52Edit: working on Chrome 57.0.2987.110 on Mac OSX (just check for the latest version)The funny thing is that <= gets converted to the actual symbol (less than or equal to) automatically when typing. [–] viebel 9y ago ↗ This is done by FiraCode fonts: https://github.com/tonsky/FiraCode
[–] js4all 9y ago ↗ Also works on current Chrome (v57.0.2987.110) on Mac. Nice. [–] viebel 9y ago ↗ That's fantastic! I've updated the article
[–] oneeyedpigeon 9y ago ↗ "--the evaluation will appear here (soon)..."Does this mean my browser doesn't support web assembly? [–] viebel 9y ago ↗ Yes :( [–] frik 9y ago ↗ Then use ASM.js, at least it's JS and works with all browsers.Then it would work on mobile browsers too. [–] SpaceManiac 9y ago ↗ Worked for me on Firefox for Android 52.0.1.
[–] viebel 9y ago ↗ Yes :( [–] frik 9y ago ↗ Then use ASM.js, at least it's JS and works with all browsers.Then it would work on mobile browsers too. [–] SpaceManiac 9y ago ↗ Worked for me on Firefox for Android 52.0.1.
[–] frik 9y ago ↗ Then use ASM.js, at least it's JS and works with all browsers.Then it would work on mobile browsers too. [–] SpaceManiac 9y ago ↗ Worked for me on Firefox for Android 52.0.1.
[–] ethernetsalad 9y ago ↗ Crashes the tab after a second or two in Chrome Canary 59.0.3044.3 on a OnePlus 3 running Android 7.0 [–] [deleted] 9y ago ↗ (comment deleted)
[–] roywiggins 9y ago ↗ The other place "live" coding snippets has taken off is in webgl, the other language your browser probably supports. The Book Of Shaders uses this to good effect:https://thebookofshaders.com
[–] tejasmanohar 9y ago ↗ This obviously doesn't work everywhere, but I just want to say it's really awesome that it's possible altogether. Great work!
24 comments
[ 2.8 ms ] story [ 64.4 ms ] threadWith clojure snippets, Klipse protects itself from infinite loops - but not with lua snippets.
Is there a reason you picked wasm_lua over (e.g.) lua.vm.js?
Edit: working on Chrome 57.0.2987.110 on Mac OSX (just check for the latest version)
The funny thing is that <= gets converted to the actual symbol (less than or equal to) automatically when typing.
Does this mean my browser doesn't support web assembly?
Then it would work on mobile browsers too.
https://thebookofshaders.com