Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yielding support to mlua #518

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

radiantgurl
Copy link
Contributor

No description provided.

@radiantgurl
Copy link
Contributor Author

woops

@radiantgurl radiantgurl reopened this Jan 25, 2025
@cheesycod
Copy link

cheesycod commented Jan 26, 2025

Oh wow, ig someone managed to do the impossible . Still seems to be some errors left to fix though like ``Assertion failed: (((nresults) < (L->top - L->ci->func)) && "not enough elements in the stack"), function lua_yieldk, file ldo.c, line 697.
test test_chunk_env ... ok
error: test failed, to rerun pass `--test thread```

@radiantgurl
Copy link
Contributor Author

Oh wow, ig someone managed to do the impossible . Still seems to be some errors left to fix though like ``Assertion failed: (((nresults) < (L->top - L->ci->func)) && "not enough elements in the stack"), function lua_yieldk, file ldo.c, line 697. test test_chunk_env ... ok error: test failed, to rerun pass `--test thread```

It still has many many issues, as i have to modify callback_error_ext

@cheesycod
Copy link

Oh wow, ig someone managed to do the impossible . Still seems to be some errors left to fix though like ``Assertion failed: (((nresults) < (L->top - L->ci->func)) && "not enough elements in the stack"), function lua_yieldk, file ldo.c, line 697. test test_chunk_env ... ok error: test failed, to rerun pass `--test thread```

It still has many many issues, as i have to modify callback_error_ext

How exactly does this solve the issue of the Rust/Lua call boundary?

@radiantgurl
Copy link
Contributor Author

Oh wow, ig someone managed to do the impossible . Still seems to be some errors left to fix though like ``Assertion failed: (((nresults) < (L->top - L->ci->func)) && "not enough elements in the stack"), function lua_yieldk, file ldo.c, line 697. test test_chunk_env ... ok error: test failed, to rerun pass `--test thread```

It still has many many issues, as i have to modify callback_error_ext

How exactly does this solve the issue of the Rust/Lua call boundary?

This doesn't, it relies on Err to stop it.

I'm planning to add both this and an async system where Lua acts as the waker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants