[{"data":1,"prerenderedAt":207},["ShallowReactive",2],{"project-14084774":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":40,"post_text":41,"what":42,"said":53,"maker_in_thread":117,"shape":120,"grid":124,"attempts":169,"same_week":170,"maker_shows":198,"maker_hidden":199,"reader_version":200,"card":201},"14084774","Glua","A Full-Featured Lua VM for Nodejs and the Browser","title","Show HN: Glua, a Full-Featured Lua VM for Nodejs and the Browser","https:\u002F\u002Fgithub.com\u002Ffiatjaf\u002Fglua","github.com","fiatjaf",1491883647,2017,70,17,633,2242,29,"notable","languages","lua runtime","library",[24,25,26,27,28],"lua","lua vm","javascript","nodejs","webassembly","curious",0.077,{"positive":32,"neutral":33,"mixed":34,"critical":32},1,3,0,5,{"execution":37,"performance":38,"idea":39},{"positive":34,"critical":34},{"positive":34,"critical":32},{"positive":32,"critical":34},[34,34,34,33,33,33,32,35,34,34,34,34,34,34,34,34,34],null,{"problem":41,"audience":41,"pricing":41,"motivation":41,"time_to_build":41,"stack":43,"openness":52,"stage":52,"team_size":52},[44],{"value":45,"source":46,"evidence":47},"Go (via gopher-lua)","commenter",[48],{"id":49,"by":50,"text":51},"14086428","daliwali","This seems to be a thin wrapper for the actual Lua VM implemented in Go: https:\u002F\u002Fgithub.com\u002Fyuin\u002Fgopher-lua","unknown",{"praise":54,"objections":62,"requests":85,"questions":86,"alternatives":87},[55],{"value":56,"source":46,"evidence":57},"Commenters found it cool and welcomed the Lua-to-JavaScript idea",[58],{"id":59,"by":60,"text":61},"14086946","etiene","Really cool! Reminds me of another awesome Lua->JS project called starlight: http:\u002F\u002Fstarlight.paulcuth.me.uk",[63,74],{"value":64,"source":46,"evidence":65},"Running two garbage collectors side by side may leak memory",[66,70],{"id":67,"by":68,"text":69},"14086993","giann","This suffers from the same issue as https:\u002F\u002Fdaurnimator.github.io\u002Flua.vm.js\u002Flua.vm.js.html and others: there is 2 GC working side by side and it's bound to lead to never freed…",{"id":71,"by":72,"text":73},"14087396","CryZe","This isn't just because of 2 GC's working side by side. This happens to any memory that isn't a JavaScript object. So every asm.js and WebAssembly library is affected by the same…",{"value":75,"source":46,"evidence":76},"Lua to Go to JavaScript chain is inefficient for performance",[77,81],{"id":78,"by":79,"text":80},"14089854","russellsprouts","Well, the original Lua VM is written in C, so it's more like C to Go to JavaScript.",{"id":82,"by":83,"text":84},"14091289","shinymark","This description made me chuckle. It reads to me like someone was intentionally concocting the most complex and least efficient method of programming a computer. I come from a…",[],[],[88,95,99,106,110],{"value":89,"source":46,"evidence":90},"lua.vm.js",[91,94],{"id":92,"by":11,"text":93},"14086797","Yes: https:\u002F\u002Fdaurnimator.github.io\u002Flua.vm.js\u002Flua.vm.js.html",{"id":67,"by":68,"text":69},{"value":96,"source":46,"evidence":97},"starlight",[98],{"id":59,"by":60,"text":61},{"value":100,"source":46,"evidence":101},"wasm_lua",[102],{"id":103,"by":104,"text":105},"14087460","NiLSPACE","There is also one in WebAssembly: https:\u002F\u002Fgithub.com\u002Fvvanders\u002Fwasm_lua",{"value":107,"source":46,"evidence":108},"gopher-lua",[109],{"id":49,"by":50,"text":51},{"value":111,"source":46,"evidence":112},"Emscripten-compiled Lua",[113],{"id":114,"by":115,"text":116},"14086729","shakna","Yes [0] [0] https:\u002F\u002Fnews.ycombinator.com\u002Fitem?id=5794772 | http:\u002F\u002Fmozakai.blogspot.com.au\u002F2013\u002F05\u002Flua-in-javascript-running-vm-in-vm.html",{"comments":32,"answered":32,"key":118},[119],{"id":92,"text":93},{"commenters":121,"max_depth":35,"maker_replies":32,"first_comment_mins":122,"lifespan_hours":123},16,282,51,[125,127,129,131,134,138,139,141,143,148,151,153,156,159,163,166,167],[67,34,34,126,68,34],"commenter\u002Fcritical\u002Fexecution",[71,34,34,128,72,34],"commenter\u002Fneutral\u002Fexecution",[103,32,34,130,104,34],"other\u002Fneutral\u002Fnone",[49,132,33,133,50,34],2,"project\u002Fneutral\u002Fexecution",[135,132,33,136,137,34],"14086666","project\u002Fneutral\u002Fperformance","swah",[78,132,33,136,79,34],[82,132,32,140,83,34],"project\u002Fcritical\u002Fperformance",[59,33,35,142,60,34],"project\u002Fpositive\u002Fidea",[144,145,34,146,147,34],"14085929",4,"other\u002Fneutral\u002Fidea","jlebrech",[149,145,34,130,150,34],"14086003","warpech",[152,145,34,130,150,34],"14086011",[154,145,34,130,155,34],"14086081","oblio",[157,145,34,130,158,34],"14104804","Elves",[160,145,34,161,162,34],"14090286","other\u002Fcritical\u002Fidea","icebraining",[164,35,34,130,165,34],"14086698","make3",[114,35,34,130,115,34],[92,35,34,168,11,32],"project\u002Fneutral\u002Fnone",[],[171,176,180,184,189,193],{"id":172,"name":173,"points":174,"category":175},"14058815","Resumegen",227,"productivity",{"id":177,"name":178,"points":179,"category":20},"14068525","therecipe\u002Fqt",222,{"id":181,"name":182,"points":183,"category":175},"14097011","Remote Stash",214,{"id":185,"name":186,"points":187,"category":188},"14076198","LuaGB",136,"games",{"id":190,"name":191,"points":187,"category":192},"14096982","Kim","dev_tools",{"id":194,"name":195,"points":196,"category":197},"14091952","strategic-options.com",96,"finance_crypto",19,false,"v2",{"id":202,"name":5,"line":6,"ai":199,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":203,"top":18,"kw":204,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":205,"url":9,"mix":206,"praise":56,"objection":64,"sub":21},14084774,0.08,[24,25,26,27,28],"00033315000000000",[32,33,34,32],1794036554276]