[erlang-questions] LuaJIT on Erlang
Thu Aug 18 12:06:22 CEST 2016
Thank you guys for all the responses. I was able to create a port to call
which in turns uses luaJIT to call lua code.
I really appreciate the help.
On Wed, Aug 17, 2016 at 11:36 PM Jesper Louis Andersen <
> On Wed, Aug 17, 2016 at 7:58 PM, Roger Lipscombe <roger@REDACTED>
>> Robby Raschke did it with a C Node:
> This is rather close to a solution I would do as well: write a port
> process which runs the LuaJIT system on top of a small C node. When I did
> this for OCaml, my pipelined req/s rate was about 1 million or 1us per
> request in roundtrip. This is usually fine as the reason you want to
> outsource computation to a separate system is that it is often request
> heavy and on the order of several milliseconds.
> I wouldn't really worry too much about the speed aspect. What is the
> primary problem is that you have a good deal of Lua code which you need to
> get to run. The quickest way to do that is not to rewrite it, but to
> interact with it. Once you have that established, you can start looking
> into if a rewrite is worth it, or is even necessary. LuaJIT is faster than
> Erlang, but the question remains if that matters in the domain you are
> working in. More often than not, efficiency doesn't matter as much as
> people think since there are other things in a system than raw
> computational turnaround.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions