Skip to content

Conversation

aatxe
Copy link
Collaborator

@aatxe aatxe commented Sep 16, 2025

@green-real is going to keep working on the FFI branch, so we'd like to keep it in sync with primary to the extent possible.

ActualMasterOogway and others added 12 commits August 6, 2025 17:36
Title relevant
This PR fixes the type definitions in `definitions/luau`.

It adds `env` and `chunkname` to the parameters, and adds `...any` to
the parameters of the returned function.
I'm trying the meme AI terminal, I guess, don't want to commit the
markdown context file for it.
Uses a different LUT method to provide a general speed up for encoding
operations
The setup options text might be redundant
fifteen billionth iteration of fixing this later, these should be
optional
There are print cases not covered by `printBlock` and `printExpr`, so I
figure this is useful to have

If anything, we can replace `printBlock` with this function and export
it as `print` instead, [since`visitStatement` encompasses
blocks](https://github.com/luau-lang/lute/blob/primary/lute/std/libs/syntax/visitor.luau#L796),
in addition to many statement types

---------

Co-authored-by: ariel <[email protected]>
)

When first implementing this, I didn't realize that the compiler checks
for exhaustivity when switching over an enum. This is an improvement
that helps us catch errors at compile-time by being more explicit.
Based on this PR in the Luau repository:
luau-lang/luau#1967.

I also spent a while trying to get newlines in error messages to play
nicely, but we still have some issues that we'll need to address later.
Main tension is that `lua_debugtrace` automatically puts a newline at
the end of the trace, but a "regular" error on a thread is usually just
a string with no newline.
@aatxe aatxe merged commit 705d13a into ffi Sep 16, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

9 participants