grpc-lua icon indicating copy to clipboard operation
grpc-lua copied to clipboard

Lua 5.1 / LuaJIT support

Open rurounijones opened this issue 7 years ago • 6 comments

Attempting to run the examples with Lua52, Lua51 and LuaJIT result in the examples hanging or crashing.

Is there any possibility of supporting lua51 release which will also add support for the popular and the very fast http://luajit.org/ lua implementation?

I am relatively new to the lua ecosystem so I am not sure how difficult this will be (although I am assuming it is not trivial amount of work given the number of dependencies etc.).

Based on https://github.com/martanne/vis/issues/291 it looks like it could be possible to get LuaJit compatible with 5.2 although most applications of luaJit would probably not be using this patch.

rurounijones avatar May 06 '18 14:05 rurounijones

It is easy to support Lua51 and LuaJIT. But I have no time to do this.

jinq0123 avatar May 07 '18 02:05 jinq0123

If you think it should be easy then I will have a look and see if I can make the changes. If you have any starting points / advice that would be useful. Thanks for the info.

[EDIT] In my newness to lua I was missing an obvious thing here in that the versions of lua are not ABI compatible so I believe that dlls compiled with the current build system are for 5.3 and won7t be usable from earlier versions. Step 1 is my figuring out how to actually compile with the correct version of lua.

rurounijones avatar May 07 '18 13:05 rurounijones

I add a section TODO: Integrate into Unity in README.

jinq0123 avatar May 08 '18 07:05 jinq0123

Thanks for the information.

I will have a look but since I am completely new to lua and the ecosystem in general ~~I am happy to sponsor this feature to $200 if anyone can do it to @jinq0123 satisfaction and get it merged.~~

Edit: I am using a different RPC system for the moment which does the job. ~~I would be interested in sponsoring any work to get this working in 5.1 in an environment (Specifically the Mission Scripting Encironment of the game DigitalCombatSimulator) where the GRPC server is not the main event loop.~~

rurounijones avatar May 17 '18 07:05 rurounijones

Any updates?

subnetmarco avatar Sep 24 '18 22:09 subnetmarco

Wondering the same

4mig4 avatar Mar 03 '21 16:03 4mig4