Re:Using Lua coroutines to create an RPG dialogue system
by Pica_soO on Tuesday January 10, 2017 @06:34PM
(#13370318)
Im wondering, could one auto-convert JavaScript- librarys to lua-code?
[ Parent
| on HN ]
Re:Using Lua coroutines to create an RPG dialogue system
by veli_joza on Wednesday January 11, 2017 @04:15AM
(#13372732)
The trend is to compile anything under the sun into JS, not the other way around. Although they are quite similar under the hood, Lua programmers take pride in Lua's elegant and minimalistic design, along with JIT speed. JS warts would not be very welcome.
That said, there was a project called lua-colony that attempted the conversion.
Re:Using Lua coroutines to create an RPG dialogue system
by etiene on Wednesday January 11, 2017 @05:47AM
(#13373055)
There are some JS to Lua transpilers around, but I'm not sure how robust they are. I want to try some of them later to try to convert some handy JS libraries and feed them into LuaRocks.