sol
sol copied to clipboard
Is this still "no longer in active development"?
There has been a flurry of commits recently, so I was wondering if this was still officially abandoned, or worth giving a try.
Hi! I have been just dusting it off a bit in the last few days, but I don't foresee any more serious development of it. I would love to work on it more, but sadly I simply do not have the time to do so.
That being said, it is in a decent state. Give it a try!
If nothing else you can use it as a linter. (You can check your lua code with lua install/solc.lua --parse my_lua_file.lua).
If somebody would be interested in sponsoring this work I'd be happy to spend more time on it (and maybe rewrite it in Rust).
Sadly I am a poor university student, but while I might not be able to spare change, I could probably spare time instead. I very much enjoy working in Rust and this could be a fun project.
On Wed, 27 Feb 2019, 12:01 Emil Ernerfeldt, [email protected] wrote:
Hi! I have been just dusting it off a bit in the last few days, but I don't foresee any more serious development of it. I would love to work on it more, but sadly I simply do not have the time to do so.
That being said, it is in a decent state. Give it a try!
If nothing else you can use it as a linter. (You can check your lua code with lua install/solc.lua --parse my_lua_file.lua).
If somebody would be interested in sponsoring this work I'd be happy to spend more time on it (and maybe rewrite it in Rust).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emilk/sol/issues/2#issuecomment-467836064, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbx2xaL4YDucyC-uPpEy2y6EpJRaOyoks5vRnORgaJpZM4bUU_Y .
I made a port of the Sol parser to C++ some five years back: https://github.com/emilk/luastrip I think that would be a good starting point for a Rust port.
How would one go about defining intrinsic function definitions, for things like LuaJIT's bit or ffi modules?
You can declare types of externally defined stuff like so:
global bit = {
tobit = extern : function(number) -> number;
tohex = extern : function(number, number?) -> number;
}
I have started porting Sol to Rust now! I think if you are considering this project you could do well by waiting a few weeks for the rust version.
I did end up getting caught on things like nullable functions in my code (I monkey patch them in), but couldn't find an accepted syntax for them.
global function_or_nil = extern : (function(number) -> string) or nil; ?
Btw, I am leaning towards changing this syntax to this:
declare function_or_nil = (function(number) -> number) or nil;
This is the syntax TypeScript uses.
Maybe I should try to publish the Rust port asap and you can be my beta tester?
Sure, that sounds like a plan.
On Tue, 12 Mar 2019, 08:07 Emil Ernerfeldt, [email protected] wrote:
global function_or_nil = extern : (function(number) -> string) or nil; ?
Btw, I am leaning towards changing this syntax to this:
declare function_or_nil = (function(number) -> number) or nil;
This is the syntax TypeScript uses.
Maybe I should try to publish the Rust port asap and you can be my beta tester?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emilk/sol/issues/2#issuecomment-471896883, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbx21P8jaM0tjeOJELGA866H54Jp1V6ks5vV2AtgaJpZM4bUU_Y .
IIUC sol should work fine in its current state?
I don't have time to work on this, sadly. I do have a Rust port that I haven't pushed to GitHub yet. It is not quite feature complete, but probably good enough to get started with if someone is interested.