2 ms·
Luajit2 approaches C on speed [1] - and with the newly released FFI library the C is not really needed that much - so, pretty much all the work has been already
by ay 16y ago
Luajit2 approaches C on speed [1] - and with the newly released FFI library the C is not really needed that much - so, pretty much all the work has been already done. Just use the results of it :)
[1] http://news.ycombinator.com/item?id=641313 http://news.ycombinator.com/item?id=641313
- compay 16y agoLuaJIT is awesome but it doesn't run on as many architectures as the original Lua VM. The nice thing about a framework in C is that you can install it anywhere it compiles, and if you stick to ANSI C like Lua does then it compiles pretty much anywhere, like Lua itself.
- ay 16y agoAgree, just x86 and x86_64 - though realistically, is there a lot of usage of other platforms for high-performance servers ? And if the server is not high-performing, mongrel2 + $something can be a very good choice. (And has a more liberal license). But of course, the tastes differ - so the more, the merrier. as soon as the folks do not get pwned.
- compay 16y agoI'm thinking of small devices like wireless routers, phones and maybe even wristwatches. I like the idea of having a full stack framework for web apps, served locally on a tiny device. You could reuse a lot of code that way and at least for phones, potentially avoid some of the cost of having a native app with totally different code from your web app. But yeah, LuaJIT recently added support PPC and soon will add ARM, so point well taken - to do what I'm thinking of, it may not really be necessary to have anything in C.