Skip to content

Conversation

@RaphaelIT7
Copy link
Collaborator

The C++ side should be somewhat implemented now, though I still suck at C# and before I make a mess it would probably be best to get some feedback of which functions for FFI to add and what the best way to bridge C# & C++ would be

@RaphaelIT7 RaphaelIT7 requested a review from marchc1 December 1, 2025 10:01
@RaphaelIT7 RaphaelIT7 added the Enhancement New feature or request label Dec 1, 2025
@The404Studios
Copy link

fyi, I think this is the right approach. LuaJIT really wants to stay native and in-process for hot paths. Keeping lua_State, GC, userdata, hooks, and math types in a small native core with a boring C ABI, and letting C# just orchestrate and call into it synchronously, feels like the cleanest and most Source-accurate way to do this. That keeps the bridge minimal and avoids turning FFI into a mess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants