@mcc
how would it work? would the "proper" rust parts be compiled and used by the interpreter or be interpreted themselves? I don't know much about the ABI.
Sounds like a cool idea tho. I catch myself getting sidetracked on every little hiccup when making a game with bevy. I can't seem to sketch out ideas as easily as I do in Lua or Python; the facts you mentioned sound like the culprit.

@manosΜον Τέλος The way I'm thinking is, compiled parts are compiled regular, but also when you build with the crate you include a list of types/structs/fns which are available to the interpreter. Those structs then get the appropriate generics built for the interpreter to use. Any attempt to load a function or thing-with-impl that isn't on the list won't work, and can't work, because Rust uses a lot of generics and so any generic will need a specialized version for the interpreter's Option<Variant> type

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115783107667886401 on your instance and quote it. (Note that quoting is not supported in Mastodon.)