Skip to content

Using luau as a drop in for lua-5.1 and/or luajit #240

Answered by JDaance
JDaance asked this question in Q&A
Discussion options

You must be logged in to vote

I have now completed my luau integration, debugger and all. It runs my game, passes all my tests, breaks on breakpoints and steps in code. But I have not and will not use it in a production capacity until I have been running it in development for a while, so I can't speak for crashes and things like that yet.

The only things that are not working and seemingly cant be fixed are:

  • string.dump
  • setfenv for userdata, used by lpeg and maybe others (cant use lpeg without rewriting things)
  • usage of __gc in libs has to be rewritten to lua_newuserdatactor or care has to be taken to close files/sockets etc

In my shim project I have added:

  • dofile
  • load
  • loadstring
  • require
  • module
  • debug.getfenv
  • debug.g…

Replies: 6 comments 32 replies

Comment options

You must be logged in to vote
3 replies
@JDaance
Comment options

@JDaance
Comment options

@zeux
Comment options

Comment options

You must be logged in to vote
6 replies
@JDaance
Comment options

@JDaance
Comment options

@JDaance
Comment options

@zeux
Comment options

@JDaance
Comment options

Comment options

You must be logged in to vote
8 replies
@JDaance
Comment options

@JDaance
Comment options

@zeux
Comment options

@zeux
Comment options

@JDaance
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@JDaance
Comment options

@JDaance
Comment options

Comment options

You must be logged in to vote
13 replies
@OlivierNicole
Comment options

@JDaance
Comment options

@OlivierNicole
Comment options

@mundusnine
Comment options

@ctemple
Comment options

Answer selected by JDaance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants