3 ms·
It’s cool that languages support this kind of stuff. So if you’re writing python the employs this technique and you still want to keep the “OS agnostic” charac
by sovietmudkipz 3y ago
It’s cool that languages support this kind of stuff.
So if you’re writing python the employs this technique and you still want to keep the “OS agnostic” characteristic of python does that mean you’d have to compile multiple C++ binaries and check the OS to see which one to run?
- yw3410 3y agoYes, though hopefully it's been packaged up by the distro otherwise you'll end up having dependency problems if you compiled against a wrong libc or something else.
- lukevp 3y agoAlternatively, you could compile the C++ (or rust or zig) to WebAssembly, and a single binary would run anywhere.
- rat9988 3y agoWWouldn't you lose some of the performance benefit?
- sovietmudkipz 3y agoThanks for this. This is something I wouldn’t have considered.