sol icon indicating copy to clipboard operation
sol copied to clipboard

Is this still "no longer in active development"?

Open Ravenslofty opened this issue 6 years ago • 11 comments
trafficstars

There has been a flurry of commits recently, so I was wondering if this was still officially abandoned, or worth giving a try.

Ravenslofty avatar Feb 27 '19 11:02 Ravenslofty

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).

emilk avatar Feb 27 '19 12:02 emilk

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 .

Ravenslofty avatar Feb 27 '19 12:02 Ravenslofty

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.

emilk avatar Feb 27 '19 12:02 emilk

How would one go about defining intrinsic function definitions, for things like LuaJIT's bit or ffi modules?

Ravenslofty avatar Feb 27 '19 15:02 Ravenslofty

You can declare types of externally defined stuff like so:

global bit = {
	tobit = extern : function(number) -> number;
	tohex = extern : function(number, number?) -> number;
}

emilk avatar Feb 28 '19 09:02 emilk

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.

emilk avatar Mar 12 '19 07:03 emilk

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.

Ravenslofty avatar Mar 12 '19 08:03 Ravenslofty

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?

emilk avatar Mar 12 '19 08:03 emilk

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 .

Ravenslofty avatar Mar 12 '19 08:03 Ravenslofty

IIUC sol should work fine in its current state?

randombyte-developer avatar Dec 11 '19 17:12 randombyte-developer

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.

emilk avatar Dec 11 '19 17:12 emilk