6 ms·
Show HN: A new way of blogging about Lua
- Honiix 10y agoOne of these things that feels natural after 1 minute. I never want to go back to the rest of Internet now :-(
- Veen 10y agoI 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 10y agoI typed -1 in factorial demo and script ended responding :)
- raverbashing 10y agoFix it then run the code again ;)
- viebel 10y agoThanks. I fixed it by returning 1 for negative numbers. With clojure snippets, Klipse protects itself from infinite loops - but not with lua snippets.
- daurnimator 10y agoMy browser doesn't (yet) support web assembly. Is there a reason you picked wasm_lua over (e.g.) lua.vm.js?
- viebel 10y agoI was not aware of lua.vm.js Thanks for the pointer
- daurnimator 10y agoSee my comment from yesterday: https://news.ycombinator.com/item?id=13900372 https://news.ycombinator.com/item?id=13900372 as a quick comparison of the various lua-in-js implementations.
- raverbashing 10y agoInteresting. It does work on Firefox 52 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.
- viebel 10y agoThis is done by FiraCode fonts: https://github.com/tonsky/FiraCode https://github.com/tonsky/FiraCode
- js4all 10y agoAlso works on current Chrome (v57.0.2987.110) on Mac. Nice.
- viebel 10y agoThat's fantastic! I've updated the article
- oneeyedpigeon 10y ago"--the evaluation will appear here (soon)..." Does this mean my browser doesn't support web assembly?
- viebel 10y agoYes :(
- frik 10y agoThen use ASM.js, at least it's JS and works with all browsers. Then it would work on mobile browsers too.
- SpaceManiac 10y agoWorked for me on Firefox for Android 52.0.1.
- ethernetsalad 10y agoCrashes the tab after a second or two in Chrome Canary 59.0.3044.3 on a OnePlus 3 running Android 7.0
- deleted 10y ago[deleted]
- fxj 10y agoworks well on ubuntu 14.04 and Chrome Version 57.0.2987.110 (64-bit)
- pimeys 10y agoWorks with Firefox on Android. Nice!
- sanatgersappa 10y agoAmazing. klipse gets better and better.
- roywiggins 10y agoThe 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 https://thebookofshaders.com
- AstroJetson 10y agoDoes not work on iPad and safari or Chrome.
- tejasmanohar 10y agoThis obviously doesn't work everywhere, but I just want to say it's really awesome that it's possible altogether. Great work!