News for hackers. Stuff that matters.
Re:Tables by nikki93 on Wednesday September 12, 2018 @01:15PM (#17970914)
Yeah I think it does end up boiling down a lot to use cases because the big differences b/w Lua and JS are in availability of libs / integration and perf. In my case I do a lot of 2d graphics where love2d.org is available and perf is important. :) C interop is also really important, and LuaJIT C FFI is waaaaay nicer to use than JSC C API.

I’ve ended up doing a lot of JS with React Native for “app-y” mobile apps though.

Re:Tables by sdegutis on Wednesday September 12, 2018 @01:18PM (#17970937)
If perf is important, I'm surprised you're using Love2d and not just using C++ with SDL and Box2d directly. Afaik Love2d just uses vanilla Lua (and not LuaJIT) which, while faster than similar languages, is still pretty wasteful of cycles when high perf is needed.
Re:Tables by armitron on Wednesday September 12, 2018 @01:42PM (#17971127)
Love2d can use luajit or plain lua.
Re:Tables by nikki93 on Wednesday September 12, 2018 @04:28PM (#17972926)
perf is important but I also want user scriptability (as part of the actual app feature(s)). Love2d uses LuaJIT (it does use the C API to bind its native calls rather than the FFI -- but actually that has better perf when not JIT'ing).