New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua support #74

Open
RobLoach opened this Issue Oct 2, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@RobLoach
Member

RobLoach commented Oct 2, 2017

@RobLoach RobLoach closed this Oct 27, 2017

@RobLoach RobLoach reopened this Dec 10, 2017

@Ferk

This comment has been minimized.

Show comment
Hide comment
@Ferk

Ferk Jan 30, 2018

From the blog post and the intent to keep the "love" namespace and similar logo it appears that the goal is to be compatible with the Löve API and that lua support from this ticket would in the end be meant to allow running Löve games in chailove.

However, it's not clear to me to which extent is this the intention, it seems to me that the API is love inspired but not really fully compliant. Is the goal to progressively get closer to full compliance? There are also things that wouldn't be directly translatable from lua to chaiscript, like how some love functions might return more than one return value simultaneously, which is something that Lua allows but chaiscript does not, I believe.

Also, is it the intent that chailove should eventually replace lutro? It seems both projects kinda conflict, specially if chailove eventually could run love games.

Ferk commented Jan 30, 2018

From the blog post and the intent to keep the "love" namespace and similar logo it appears that the goal is to be compatible with the Löve API and that lua support from this ticket would in the end be meant to allow running Löve games in chailove.

However, it's not clear to me to which extent is this the intention, it seems to me that the API is love inspired but not really fully compliant. Is the goal to progressively get closer to full compliance? There are also things that wouldn't be directly translatable from lua to chaiscript, like how some love functions might return more than one return value simultaneously, which is something that Lua allows but chaiscript does not, I believe.

Also, is it the intent that chailove should eventually replace lutro? It seems both projects kinda conflict, specially if chailove eventually could run love games.

@RobLoach

This comment has been minimized.

Show comment
Hide comment
@RobLoach

RobLoach Jan 30, 2018

Member

This issue was mostly out of curiosity. Since the scripting language is so detacted from the rest of the system in ChaiLove, it is possible that we could support both ChaiScript and Lua. Detect if there's a main.chai or a main.lua, and load it accordingly. In the PR, I had troubles compiling Lua correctly.

Also, is it the intent that chailove should eventually replace lutro?

Some of the goals between the two projects differ. Lutro, for example, aims to be as minimalistic as possible (implements its own graphics engine, etc), while ChaiLove brings in SDL to ease the development process.

ChaiLove doesn't mean to replace Lutro, but add to the game development ecosystem within libretro.

seems both projects kinda conflict, specially if chailove eventually could run love games.

Would be pretty great if ChaiLove could run Love games. That's a far way off, but would be a neat achievement. Lutro is a ways from that too, but who knows!

Member

RobLoach commented Jan 30, 2018

This issue was mostly out of curiosity. Since the scripting language is so detacted from the rest of the system in ChaiLove, it is possible that we could support both ChaiScript and Lua. Detect if there's a main.chai or a main.lua, and load it accordingly. In the PR, I had troubles compiling Lua correctly.

Also, is it the intent that chailove should eventually replace lutro?

Some of the goals between the two projects differ. Lutro, for example, aims to be as minimalistic as possible (implements its own graphics engine, etc), while ChaiLove brings in SDL to ease the development process.

ChaiLove doesn't mean to replace Lutro, but add to the game development ecosystem within libretro.

seems both projects kinda conflict, specially if chailove eventually could run love games.

Would be pretty great if ChaiLove could run Love games. That's a far way off, but would be a neat achievement. Lutro is a ways from that too, but who knows!

@RobLoach

This comment has been minimized.

Show comment
Hide comment
@RobLoach

RobLoach Apr 28, 2018

Member

Hmm, perhaps re-open this later on. For now, Chai is good.

Member

RobLoach commented Apr 28, 2018

Hmm, perhaps re-open this later on. For now, Chai is good.

@RobLoach RobLoach closed this Apr 28, 2018

@RobLoach

This comment has been minimized.

Show comment
Hide comment
@RobLoach

RobLoach Oct 11, 2018

Member

Going to re-open this one, as it's not too crazy an idea... https://github.com/ThePhD/sol2

Member

RobLoach commented Oct 11, 2018

Going to re-open this one, as it's not too crazy an idea... https://github.com/ThePhD/sol2

@RobLoach RobLoach reopened this Oct 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment