2 ms·
> With http://www.ponylang.org/ http://www.ponylang.org/ its much better, it can export functions like C does it, but its fully managed. You can do that with m
by masklinn 11y ago
> With http://www.ponylang.org/ http://www.ponylang.org/ its much better, it can export functions like C does it, but its fully managed.
You can do that with most "managed" languages. You can call Python, Haskell, Go or OCaml from C, pony isn't exactly special here.
One issue in all these cases is you're carrying a whole runtime with you, possibly one per library you're using, praying they don't conflict with one another[0] and limiting the portability of the whole[1]. You're also significantly increasing the cost of using the library in question as it now brings in megabytes of runtime along for the ride.
[0] with conflicting signal handling for instance
[1] if only because all those runtimes you're bringing in might be doing stuff like spawning their own threads and the like, so that needs to be available on the target platform