viferga writes:
I wrote a base project which is already working: f449792
For making it work you have either to compile metacall manually or pass the CFLAGS and LDFLAGS pointing to the binaries (if you installed it by using binaries).
The test is passing, it's calling a NodeJS function, in my opinion, the C API should be wrapped through templates and simplify the invocation and values boilerplate. Do you want to keep working on it?
check out the unit test: https://github.com/metacall/core/blob/f449792d0e09f4536b50d964102812163036a0ba/source/ports/nim_port/test.nim
if anyone has time and knowledge, this project is exciting and can be a boon for your productivity. It may need some template work to make a nice API, does anybody want to continue this?