Live data from Hacker News

Hello Lua

haxe.org

71–74 of 74 posts

Re: Hello Lua

#71
post #52

Earlier quoted context omitted.

Definitely. I use it for some game development projects and its able to compile and run code on all Windows/Mac/Linux/iOS/Android (all native code) and even Javascript+WebGL. Obviously the framework I use is targeted to games but there are other frameworks that target webdev (can target Node.js/PHP and lots of other things).

Obviously the framework I use is targeted to games Which one is that, and how well does it do cross-platform?

The framework is Luxe [1][2] and it/Haxe support the platforms I listed above really well (there are published/commercial games made with it on all platforms).

If you have any questions about it, their Gitter/chat [3] is pretty active.

[1] https://github.com/underscorediscovery/luxe

[2] http://luxeengine.com/docs/

[3] https://gitter.im/snowkit/public

Re: Hello Lua

#72
post #17

Earlier quoted context omitted.

Can you explain what you mean by "not strictly unify or abstract every language & runtime"? In day-to-day use, how would you notice this problem? Can you give an example of what problems or hurdles this can cause? I've only used Haxe briefly for a few small game demos, and loved it, but I've only used the JS backend.

Some targets will have different behaviours regarding null[1], mostly for static language targets; e.g. basic types that are represented by primitives cannot be null when targeting C#, Java, Flash, or C++. Dynamic language targets don't have this issue. (Can be avoided by wrapping your values in Null ). Overflow is normally not handled consistently[2]; it's left up to the target platform to define the overflow behavi…

Thanks for an excellent list of examples!

Re: Hello Lua

#73
post #69
post #59

Earlier quoted context omitted.

> While I agree with your premise (LuaJIT is a pretty awesome project), this example means nothing in terms of performance. Yup, without knowing deployment details etc this number doesn't really mean much. perhaps you might have heard of the snabb-switch project ? which does line rate 10gbps forwarding of 64b packets on a single x86 core. entire thing is written in lua including the user land 'drivers' for Intel 10g…

Wait, wait. Lua or LuaJIT? That's amazing!

> Wait, wait. Lua or LuaJIT? That's amazing!

from 'user' perspective you are still writing lua code. lua-jit would be an optimizing compiler doing it's magic no ? get the code from here : https://github.com/snabbco/snabb

Re: Hello Lua

#74
post #73
post #69

Earlier quoted context omitted.

Wait, wait. Lua or LuaJIT? That's amazing!

> Wait, wait. Lua or LuaJIT? That's amazing! from 'user' perspective you are still writing lua code. lua-jit would be an optimizing compiler doing it's magic no ? get the code from here : https://github.com/snabbco/snabb

The README says it uses both Lua and LuaJIT, and I can see clear references to LuaJIT in the codebase.

I'd heard of snabb a little while ago (I think in the context of Erlang), but this only makes it even more interesting. Thanks for the pointer!

Post reply on HN