lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sorry, just re-read your email. I didn't realize CoCo was removed form LuaJIT 2.0 (it was one of the things I was researching). I'm surprised that there is no replacement mechanism in 2.0?

I was also looking at other projects for polling/threading and one I found was luasys but requires a Posix API or Mingwin. I've recently settled on cqueues, which is a similar concept to coco (i think?) in that it uses yielding to allow for kernel level polling in C. Unfortunately, everything I have looked at is Posix specific. 

From a brief glance at the coco code (reading the patch file), lua_newcthread looks like a wrapper around existing lua tools: http://www.lua.org/manual/5.3/manual.html#lua_newthread. If you just need a new thread, perhaps you should implement your own wrapper? Caveat: I know little about lua C interfacing. 


Russ

On Thu, Oct 13, 2016 at 11:50 AM, Russell Haley <russ.haley@gmail.com> wrote:
While I don't know all the details, my understanding is the author, Mike Pall, doesn't like Lua 5.3.

You could look at switching over to the ‎LuaJIT project as it is currently frozen at the 5.1 syntax and supports Coco out of the box because it's the same author (Mike Pall)?

Good luck!
Russ

Sent from my BlackBerry 10 smartphone on the Virgin Mobile network.
From: Bizins'kyi Yurii
Sent: Thursday, October 13, 2016 11:17 AM
Reply To: Lua mailing list
Subject: LuaCoCo+Lua 5.3.x

Hi,

I'm porting older game to x64 platform. It uses Lua 5.1 (alpha) + LuaJIT 1.0.3. It also uses LuaCoCo patch, specifically lua_newcthread from it. To get x64 support I have 2 options: either take Lua 5.3.x or LuaJIT 2.0.x, but neither have LuaCoCo support. Is there any change that LuaCoCo patch will be adapted to Lua 5.3.x or LuaJIT 2.0.x.

Thank you.
With best regards,
Yurii Bizinskyi