24 ms·
Okay, but what if I want to call python libraries from C (or any other language)? What we need is some sort of .net-like global interop in the Unix world.
by abrax3141 7y ago
Okay, but what if I want to call python libraries from C (or any other language)? What we need is some sort of .net-like global interop in the Unix world.
- 2fast4you 7y agoIf I want to make an application composed of C, C#, and Visual Basic, there nothing stopping me in Windows. You try to pull that shit in Unix though, and you get a whole mess of problems. This is why Unix is clearly just so inferior. /s
- dralley 7y agoYou can't really do that without including the entire Python runtime in your application, and cpython is (so I've heard) absolutely horrid at being embedded in things.
- abrax3141 7y agoWhy can’t we create a --server mode standard where every language can be started up in that mode and serves a standard API with standard linker types (where possible)?
- srean 7y agoExtending is ok, embedding is indeed quite horrid. Tcl got that right. Yu want to embed multiple interpreters in the same address space with no sharing -- no problem. The mantle has been passed to Lua I think, but Guile is pretty good and not as minimalistic as Lua (that's bit of an understatement though).
- vmchale 7y agoLinker types? I think I recall Amal Ahmed gave a talk on them. http://www.ccs.neu.edu/home/amal/papers/linking-types.pdf http://www.ccs.neu.edu/home/amal/papers/linking-types.pdf
- bepvte 7y agoYou might be interested in GraalVM, which can do this between certain languages implemented on top of it.
- int_19h 7y ago.NET-like interop relies on having a specific runtime. WinRT is a better model. Basically a higher-level ABI.