Giter Site home page Giter Site logo

LuaJIT support about eris HOT 1 CLOSED

fnuecke avatar fnuecke commented on May 28, 2024
LuaJIT support

from eris.

Comments (1)

fnuecke avatar fnuecke commented on May 28, 2024

Short answer: probably not.

What exactly do you mean by "this"? The library as it is or the concept in general? For the first: Eris works on a pretty low level with the vanilla Lua structs (as does Pluto), and uses a ton of non-API macros and functions. I haven't had a look at LuaJIT's code, but I doubt there's much to any similarity there. So I don't think there's a way for that to work.

As for the concept in general... I frankly don't know. The basic data types, sure, but that's something you could do in plain Lua for the most part (userdata aside), so I assume you're asking with regards to coroutines. And that depends completely on how LuaJIT implements those.
Looking at the LuaJIT mailing list, Mike Pall didn't deny the possibility of that being done when someone else asked about it. So I assume it at least doesn't spawn a thread per coroutine (like, say, LuaJ), but keeps track of the call stack itself somehow. I imagine there'd be a few more hurdles than with vanilla Lua, such as getting the functions re-jitted after unpersisting them, but you'd probably be on your own should you decide to have a go at implementing that.

Thus, to wrap it up: there is no LuaJIT support in Eris and there probably never will be.

from eris.

Related Issues (20)

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.