Skip to content

Unification of v2 and v3 to a new organization #54

Description

@dmitry-t

The versions 2 and 3 are basically compatible.
There are backward incompatible differences we should address or avoid.
@kunitoki Let's discuss the migration.

Activity

  1. dmitry-t commented on Mar 4, 2023

    @dmitry-t
    ContributorAuthor

    Main things to consider:

    • Modern compilers make std::function work as fast as older inheritance solutions.
    • Library code simplicity is important.
    • sol2 sucks: no modularity.
  2. changed the title [-]Miration from v.2[/-] [+]Migration from v.2[/+] on Mar 4, 2023
  3. kunitoki commented on Mar 4, 2023

    @kunitoki
    Owner

    Which kind of migration are you referring to ?

    The backwards incompatible changes you refer to are needed for additional security and speed (or when you can't use exceptions), so nothing to avoid here.

    Not sure exactly what you had in mind, would you mind elaborate a bit more ?

  4. kunitoki commented on Mar 4, 2023

    @kunitoki
    Owner

    My plans moving ahead (if they might be of interest to anyone):

    • secure c++ api usage free from lua panic calls (when not reentrant from lua)
    • improve error handling even more, allow more detailed contextual error descriptions
    • allow interacting with c++ references which are not registered luabridge classes (already started some investigations there). Now we always assume a reference is a userdata class
    • improved facilities to work with coroutines and sandboxed environments (now we always register in _G even tho i allow to register on any table in v3). Better and simpler api
    • improved overload resolution using type information for every argument (not only the arity) and faster lookup of matching overloads done in c++
    • allow the library to work with c++20 and make it interoperable with 20 features (ranges, span, ...)
    • more to come
  5. kunitoki commented on Mar 6, 2023

    @kunitoki
    Owner

    What about if we create a luabridge organization and move there ? @dmitry-t

  6. kunitoki commented on Mar 16, 2023

    @kunitoki
    Owner

    This is why LuaBridge3 was born, the original LuaBridge is stagnating, too slow to move even the smallest steps, and i couldn't wait weeks before getting approvals or discussions to move forward.

  7. kunitoki commented on Mar 29, 2023

    @kunitoki
    Owner
  8. rpatters1 commented on Mar 30, 2023

    @rpatters1
    Contributor

    I would love to see a LuaBridge organization! I am the developer of the Finale plugin RGP Lua, and while some of the code is proprietary, I have loaded as much of it as I am I legally allowed to into the Finale Lua organization, which also includes a large script repository. We created the organization to try to avoid what happened with the original Lua on Finale plugin, where the developer went offline and it froze.

    All by way of saying, that with a LuaBridge org, there would be less ambiguity about which LuaBridge I should be using. I have been using v2, but I am very attracted to some of the features of v3 and will probably migrate in the near future.

  9. changed the title [-]Migration from v.2[/-] [+]Unification of v2 and v3 to a new organization[/+] on Apr 1, 2023
  10. Repository owner locked and limited conversation to collaborators on Apr 1, 2023
  11. converted this issue into a discussion #89 on Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions