lua-users home
lua-l archive

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



Thanks for the report.

There is a new 2.0.3 tarball, now, which fixes the Windows specific bugs.

	http://luaforge.net/frs/?group_id=265

For non-Windows platforms, there is no change between this and the earlier 2.0.3 tarball (now removed).

-asko


RJP Computing kirjoitti 23.1.2009 kello 22:35:

On Fri, Jan 23, 2009 at 3:16 PM, Asko Kauppi <askok@dnainternet.net> wrote:

"Lanes is a lightweight, native, lazy evaluating multithreading library for Lua 5.1. It allows efficient use of multicore processors in Lua, by passing
function calls into separate OS threads, and separate Lua states."

New features:
- finalizers
- call stack of errors as a separate table (not merged to a string)
- call stack from also lanes that throw an error

Reports on using this on Linux (32/64-bit), Windows, FreeBSD etc. are welcome.

2.0.3 has been tested on OS X PowerPC only. However, changes should not have anything to do with the OS, so most likely this continues to work on all supported systems.

       http://luaforge.net/frs/?group_id=265

       http://akauppi.googlepages.com/lanes-2.0.3-manual.html

Asko,

I just tried to build this for LfW and here is the errors. I am using Visual C++ 2005 Professional and Lua For Windows. I just opened a Visual Studio 2005 Command Prompt and 'cd' to the source of Lanes. Then I ran:
D:\devel\lua\LuaForWindows\lanes-2.0.3>make-vc.cmd
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

***
*** Using Lua from: C:\Program Files\Lua\5.1
***


D:\devel\lua\LuaForWindows\lanes-2.0.3>"C:\Program Files\Lua \5.1\luac.exe" -o delme src/keeper.lua

D:\devel\lua\LuaForWindows\lanes-2.0.3>"C:\Program Files\Lua \5.1\lua.exe" tools/bin2c.lua -o src/keeper.lch delme

D:\devel\lua\LuaForWindows\lanes-2.0.3>cl /Wall /wd4054 /wd4127 / wd4255 /wd4668 /wd4711 /wd4820 /wd4826 /O2 /LD /I "C:\Program Files \Lua\5.1\include" /Felua51-lanes.dll src\*.c "C:\Program Files\Lua \5.1\lib\lua5.1.lib" /link /NODEFAULTLIB:libcmt
lanes.c
src\lanes.c(1134) : error C2143: syntax error : missing ';' before 'type' src\lanes.c(1135) : error C2143: syntax error : missing ';' before 'type'
src\lanes.c(1136) : error C2065: 'lev' : undeclared identifier
src\lanes.c(1139) : error C2065: 'n' : undeclared identifier
src\lanes.c(1168) : error C2275: 'lua_State' : illegal use of this type as an expression C:\Program Files\Lua\5.1\include\lua.h(50) : see declaration of 'lua_State'
src\lanes.c(1168) : error C2065: 'L' : undeclared identifier
src\lanes.c(1172) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1172) : warning C4024: 'lua_pushcclosure' : different types for formal and actual parameter 1 src\lanes.c(1173) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1173) : warning C4024: 'lua_setfield' : different types for formal and actual parameter 1 src\lanes.c(1176) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1176) : warning C4024: 'lua_checkstack' : different types for formal and actual parameter 1 src\lanes.c(1176) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1176) : warning C4024: 'luaL_error' : different types for formal and actual parameter 1 src\lanes.c(1177) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1177) : warning C4024: 'lua_pushcclosure' : different types for formal and actual parameter 1 src\lanes.c(1178) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1178) : warning C4024: 'lua_insert' : different types for formal and actual parameter 1 src\lanes.c(1184) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1184) : warning C4024: 'lua_pcall' : different types for formal and actual parameter 1 src\lanes.c(1184) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1184) : warning C4024: 'lua_gettop' : different types for formal and actual parameter 1 src\lanes.c(1192) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1192) : warning C4024: 'lua_remove' : different types for formal and actual parameter 1 src\lanes.c(1198) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1198) : warning C4024: 'lua_checkstack' : different types for formal and actual parameter 1 src\lanes.c(1198) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1198) : warning C4024: 'luaL_error' : different types for formal and actual parameter 1 src\lanes.c(1199) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1199) : warning C4024: 'lua_pushlightuserdata' : different types for formal and actual parameter 1 src\lanes.c(1200) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1200) : warning C4024: 'lua_gettable' : different types for formal and actual parameter 1 src\lanes.c(1204) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1204) : warning C4024: 'lua_type' : different types for formal and actual parameter 1 src\lanes.c(1204) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1204) : warning C4024: 'lua_touserdata' : different types for formal and actual parameter 1 src\lanes.c(1225) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1225) : warning C4024: 'run_finalizers' : different types for formal and actual parameter 1 src\lanes.c(1233) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1233) : warning C4024: 'lua_insert' : different types for formal and actual parameter 1 src\lanes.c(1234) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1234) : warning C4024: 'lua_settop' : different types for formal and actual parameter 1 src\lanes.c(1239) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1239) : warning C4024: 'lua_createtable' : different types for formal and actual parameter 1 src\lanes.c(1260) : warning C4047: 'function' : 'lua_State *' differs in levels of indirection from 'int' src\lanes.c(1260) : warning C4024: 'lua_touserdata' : different types for formal and actual parameter 1
threading.c
tools.c
Generating Code...

Could Not Find D:\devel\lua\LuaForWindows\lanes-2.0.3\lua51-lanes.lib
Could Not Find D:\devel\lua\LuaForWindows\lanes-2.0.3\lua51-lanes.exp

Any help would be greatly appreciated.
--
Regards,
Ryan