POC for loading dynamic library in the Koto runtime using a C interface.
Require Clang.
- Run the compile script:
or
./compile.ps1./compile.sh - Execute with test file:
cargo run --bin host -- test.koto
- For practical reasons we just
std::mem::forgetthe loaded dynamic library, outside a POC we should store it somewhere. - Unsafe grounds ... especially aliasing rules, needs to be reviewed carefully.