You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for example, I would like to use Candran, which like Teal does some preproccessing, and results in vanilla lua (it's really cool, supports lua 5.4 features, and a lot of nice syntax shorthands, and preprocessor macros, yet can compile down to lua 5.1)...but algernon doesn't support native modules...
I set the package.path and package.cpath in code, i require() the module, that much works...but it has a dependendy, lpeglabel which is a native compiled .so file...(unlike normal lpeg which has LuLPeg and LPegLJ, I'm not aware of any pure-lua implementations of lpeglabel)
and if I try to normally include Candran, the way which works with normal lua, I get
so it seems to only be looking for .lua file, instead of .so
apparently gopherlua doesn't support package.loadlib but algernon doesn't mention that, and it's annoying having to go on a hunt for whether any given part of the program itself, doesn't support something, or if it's just the program being buggy
I assume it would be possible to instead have a Plugin that runs it through another lua interpreter...but that seems quite annoying workaround, and assumes the host has it's own lua available...
or alternatively, would be required to manually compile candran code and send to the server, instead of being able to have the whole source be included in the .alg, which also sucks...
The text was updated successfully, but these errors were encountered:
I was not aware of the possibility to include native code for other Lua interpreters. For now, I'll add a note to the documentation, but contributions to make package.loadlib work would also be warmly welcome.
I'm curious what other Lua VM implementations support LoadLib, and in particular which ones written in Go that support LoadLib. Perhaps one that's just a wrapper around the C implementation, but then you're using cgo.
for example, I would like to use Candran, which like Teal does some preproccessing, and results in vanilla lua (it's really cool, supports lua 5.4 features, and a lot of nice syntax shorthands, and preprocessor macros, yet can compile down to lua 5.1)...but algernon doesn't support native modules...
I set the
package.path
andpackage.cpath
in code, irequire()
the module, that much works...but it has a dependendy,lpeglabel
which is a native compiled.so
file...(unlike normallpeg
which hasLuLPeg
andLPegLJ
, I'm not aware of any pure-lua implementations oflpeglabel
)and if I try to normally include Candran, the way which works with normal lua, I get
so it seems to only be looking for .lua file, instead of .so
apparently gopherlua doesn't support
package.loadlib
but algernon doesn't mention that, and it's annoying having to go on a hunt for whether any given part of the program itself, doesn't support something, or if it's just the program being buggyI assume it would be possible to instead have a Plugin that runs it through another lua interpreter...but that seems quite annoying workaround, and assumes the host has it's own lua available...
or alternatively, would be required to manually compile candran code and send to the server, instead of being able to have the whole source be included in the
.alg
, which also sucks...The text was updated successfully, but these errors were encountered: