[{"data":1,"prerenderedAt":271},["ShallowReactive",2],{"project-13906014":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":43,"post_text":44,"what":45,"said":74,"maker_in_thread":174,"shape":183,"grid":188,"attempts":235,"same_week":236,"maker_shows":185,"maker_hidden":263,"reader_version":264,"card":265},"13906014","Klipse","A new way of blogging about Lua","title","Show HN: A new way of blogging about Lua","http:\u002F\u002Fblog.klipse.tech\u002Flua\u002F2017\u002F03\u002F19\u002Fblog-lua.html","blog.klipse.tech","viebel",1489913633,2017,111,23,405,2242,19,"notable","dev_tools","embedded code snippets","web_app",[24,25,26,27,28],"lua","live code","wasm","blogging","code snippets","mixed",0.281,{"positive":32,"neutral":33,"mixed":34,"critical":33},8,3,0,14,{"idea":37,"performance":39,"execution":42},{"positive":38,"critical":34},1,{"positive":40,"critical":41},5,2,{"positive":38,"critical":38},[40,34,33,34,33,40,33,34,34,40,34,40,34,40,38,34,40,38,34,34,40,40,38],null,{"problem":46,"audience":44,"pricing":44,"motivation":44,"time_to_build":44,"stack":56,"openness":72,"stage":73,"team_size":72},{"value":47,"source":48,"evidence":49},"Lua code examples in blog posts cannot be run in the reader's browser","inferred",[50,52],{"id":51},"post",{"id":53,"by":54,"text":55},"13906261","Honiix","One of these things that feels natural after 1 minute. I never want to go back to the rest of Internet now :-(",[57,61],{"value":58,"source":48,"evidence":59},"Lua",[60],{"id":51},{"value":62,"source":63,"evidence":64},"WebAssembly (wasm_lua)","maker",[65,69],{"id":66,"by":67,"text":68},"13906355","daurnimator","My browser doesn't (yet) support web assembly. Is there a reason you picked wasm_lua over (e.g.) lua.vm.js?",{"id":70,"by":11,"text":71},"13906383","I was not aware of lua.vm.js Thanks for the pointer","unknown","launched",{"praise":75,"objections":108,"requests":141,"questions":150,"alternatives":155},[76,85],{"value":77,"source":78,"evidence":79},"Feels natural and is a great way to read and explore code","commenter",[80,81],{"id":53,"by":54,"text":55},{"id":82,"by":83,"text":84},"13909119","tejasmanohar","This obviously doesn't work everywhere, but I just want to say it's really awesome that it's possible altogether. Great work!",{"value":86,"source":78,"evidence":87},"Works across browsers and devices tested",[88,92,96,100,104],{"id":89,"by":90,"text":91},"13906435","raverbashing","Interesting. 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 \u003C= gets converted to the…",{"id":93,"by":94,"text":95},"13906647","js4all","Also works on current Chrome (v57.0.2987.110) on Mac. Nice.",{"id":97,"by":98,"text":99},"13907113","pimeys","Works with Firefox on Android. Nice!",{"id":101,"by":102,"text":103},"13907053","fxj","works well on ubuntu 14.04 and Chrome Version 57.0.2987.110 (64-bit)",{"id":105,"by":106,"text":107},"13909713","SpaceManiac","Worked for me on Firefox for Android 52.0.1.",[109,116,123,133],{"value":110,"source":78,"evidence":111},"Does not work in Safari or on iPad",[112],{"id":113,"by":114,"text":115},"13907560","AstroJetson","Does not work on iPad and safari or Chrome.",{"value":117,"source":78,"evidence":118},"Crashes the tab on mobile Chrome",[119],{"id":120,"by":121,"text":122},"13906788","ethernetsalad","Crashes the tab after a second or two in Chrome Canary 59.0.3044.3 on a OnePlus 3 running Android 7.0",{"value":124,"source":63,"evidence":125},"Infinite loops freeze the page for Lua snippets",[126,129],{"id":127,"by":11,"text":128},"13906436","Thanks. I fixed it by returning 1 for negative numbers. With clojure snippets, Klipse protects itself from infinite loops - but not with lua snippets.",{"id":130,"by":131,"text":132},"13906344","GRiMe2D","I typed -1 in factorial demo and script ended responding :)",{"value":134,"source":78,"evidence":135},"Requires WebAssembly, unsupported in some browsers",[136,140],{"id":137,"by":138,"text":139},"13906759","oneeyedpigeon","\"--the evaluation will appear here (soon)...\" Does this mean my browser doesn't support web assembly?",{"id":66,"by":67,"text":68},[142],{"value":143,"source":78,"evidence":144},"Support browsers without WebAssembly by using a JS fallback like asm.js or lua.vm.js",[145,149],{"id":146,"by":147,"text":148},"13907703","frik","Then use ASM.js, at least it's JS and works with all browsers. Then it would work on mobile browsers too.",{"id":66,"by":67,"text":68},[151],{"value":152,"source":78,"evidence":153},"Why wasm_lua instead of lua.vm.js",[154],{"id":66,"by":67,"text":68},[156,163,170],{"value":157,"source":78,"evidence":158},"The Book of Shaders live WebGL snippets",[159],{"id":160,"by":161,"text":162},"13907316","roywiggins","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:…",{"value":164,"source":78,"evidence":165},"Org mode coding notes",[166],{"id":167,"by":168,"text":169},"13906339","Veen","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.",{"value":171,"source":78,"evidence":172},"lua.vm.js",[173],{"id":66,"by":67,"text":68},{"comments":40,"answered":41,"key":175},[176,179,180],{"id":177,"text":178},"13906786","Yes :(",{"id":70,"text":71},{"id":181,"text":182},"13906485","This is done by FiraCode fonts: https:\u002F\u002Fgithub.com\u002Ftonsky\u002FFiraCode",{"commenters":184,"max_depth":185,"maker_replies":40,"first_comment_mins":186,"lifespan_hours":187},17,4,92,12,[189,191,193,195,196,197,199,200,202,204,205,207,208,211,213,216,217,219,222,225,227,232,233],[53,34,40,190,54,34],"project\u002Fpositive\u002Fidea",[160,38,34,192,161,34],"other\u002Fneutral\u002Fnone",[137,41,33,194,138,34],"project\u002Fneutral\u002Fperformance",[177,41,34,194,11,38],[146,41,33,194,147,34],[105,41,40,198,106,34],"project\u002Fpositive\u002Fperformance",[66,33,33,194,67,34],[70,33,34,201,11,38],"maker\u002Fneutral\u002Fnone",[203,33,34,192,67,34],"13906576",[89,185,40,198,90,34],[181,185,34,206,11,38],"other\u002Fneutral\u002Fdesign",[93,40,40,198,94,34],[209,40,34,210,11,38],"13906729","maker\u002Fpositive\u002Fexecution",[82,212,40,210,83,34],6,[120,214,38,215,121,34],7,"project\u002Fcritical\u002Fperformance",[167,32,34,192,168,34],[97,218,40,198,98,34],9,[130,220,38,221,131,34],10,"project\u002Fcritical\u002Fexecution",[223,220,34,224,90,34],"13906429","commenter\u002Fneutral\u002Fnone",[127,220,34,226,11,38],"maker\u002Fneutral\u002Fexecution",[228,229,40,230,231,34],"13907192",11,"project\u002Fpositive\u002Fnone","sanatgersappa",[101,187,40,198,102,34],[113,234,38,215,114,34],13,[],[237,241,245,250,254,258],{"id":238,"name":239,"points":240,"category":20},"13907010","Aeneas",188,{"id":242,"name":243,"points":244,"category":20},"13901005","Ladon",158,{"id":246,"name":247,"points":248,"category":249},"13921364","Marta",106,"productivity",{"id":251,"name":252,"points":253,"category":20},"13908606","OS",97,{"id":255,"name":256,"points":257,"category":20},"13913413","go-sumtype",75,{"id":259,"name":260,"points":261,"category":262},"13920588","FaaS",73,"infrastructure",false,"v2",{"id":266,"name":5,"line":6,"ai":263,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":267,"top":18,"kw":268,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":269,"url":9,"mix":270,"praise":77,"objection":110,"sub":21},13906014,0.28,[24,25,26,27,28],"50303530050505105100551",[32,33,34,33],1794036553617]