PistonDevelopers / PistonDevelopers/dyon
Loading functions from dynamic libraries
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.9k
- Forks
- 56
- Avg merge
- 1m
- Merged PRs (30d)
- 6
Description
Collecting some information to investigate whether Dyon can load and register external functions at run-time for a new dynamic module. This would make it possible to write a loader script that doesn't need setup in Rust, but could use pre-built binaries. Might also be possible to generate Rust code from Dyon and build a binary to use with Dyon.
A way to define an interface to load from an external library.
An idea is to create a C interface where Dyon can get a list of functions and their type information.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing rust-snek and hot-lib-reloader for approaches to loading external libraries at runtime. Then investigate how Dyon represents modules, functions, and type information; the issue suggests a C interface that exposes a function list and signatures. The issue does not define an acceptance test or a final interface, so completion would require an agreed design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100