Kotlin LuaJ port (LUA interpreter)
- LuaJ Java Implementation: https://sourceforge.net/projects/luaj/ (released under MIT)
- LUA Language: https://www.lua.org/ (released under MIT)
LUAK - Kotlin port of JLua
License: MIT License
Kotlin LuaJ port (LUA interpreter)
Since courutines are supported in common code (#3) i was wondering if it is now possible to call a suspended function from lua?
I tryed to implement:
object : VarArgFunctionSuspend(){
override suspend fun invokeSuspend(args: Varargs): Varargs {
delay(1000)
}
}
and added it as a module like in MathLib but i am unable to call/resume it
I also tryed to wrap the function in a LuaThread but it also do not work.
@soywiz Do you have an ide how an externeal suspended kotlin function can be called?
👋 Hello,
Recently, I've been enjoying playing around with luak.
I created a small game engine with Kotlin Multiplatform. The great thing about luak is that it allows you to create games using LUA scripting.
Behind the scene, it's using luak and as you can see, It's working splendidly 👏.
During my exploration, I delved into the LUA coroutine support and discovered that the implementation relies on the notify/wait system provided by Java (lua4j legacy). However, when it comes to the JavaScript version, the implementation is currently missing.
This led me to wonder if there's a way to address this gap. Despite my best efforts, I couldn't find a suitable solution to enable coroutine support in luak on the JavaScript platform.
I was hoping you might have some insights or knowledge about whether it's possible to support coroutines in luak on the JavaScript platform.
Thank you!
As mentiond in the titel. is the project right now in a state where it could be compiled?
Using Dokka documentation so that it can be pushed to github pages for easy reading
Forgot to mention it here but Jitpack also does not build the repository, and as such I still cant use luak as a external repo.
I originally was going to make a PR for it, but after attempting for a few hours to fix it, I decided to leave it to people who actually know what they are doing,
Hope this could get fixed soon! I would really like to use the repo.
https://jitpack.io/com/github/korlibs/korge-luak/8b8e9619d8/build.log
The maven-publish
plugin is missing, meaning this library cannot be easy installed.
Aside from JVM using java 1.8 and Android using java 11, what other differences are there?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.