Coder Social home page Coder Social logo

korge-luak's Introduction

korge-luak's People

Contributors

derswastaken avatar dwursteisen avatar jochengucksnk avatar soywiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

korge-luak's Issues

Call of a suspended Kotlin function

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?

Support of coroutines

👋 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!

Dokka Documentation

Using Dokka documentation so that it can be pushed to github pages for easy reading

Maven publishing

The maven-publish plugin is missing, meaning this library cannot be easy installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.