[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: native code for bitwise operators in LUA
- From: Miles Bader <miles@...>
- Date: Thu, 03 Nov 2011 08:59:36 +0900
Duncan Cross <firstname.lastname@example.org> writes:
>> If you find yourself writing bit-intensive programs in Lua, perhaps
>> a dedicated C function is recommended.
> I disagree - I believe the recommended first-instinct now should be to
> use LuaJIT if you want to do intensive stuff in Lua. It's not always
> possible, but then custom C isn't always possible either.
It of course depends on your portability goals. Presuming you have
the infrastructure to support a custom C function, it will probably be
more portable than an assumption of LuaJIT support.... :]
If you're fine with your code only running on x86+ppc+? then LuaJIT is
obviously a great way to crank up the speed with minimal effort!
Un-American, adj. Wicked, intolerable, heathenish.