by pharmakom · 3y ago · 0 comments
Because it seems to me that once you compile something you are in the awkward world of ABI and CPU differences. And binary portability has been a paint point of programmers since before I was born (and I'm not that young).
So if there is a programming language that neatly gets around this problem, me and a lot of other folks would really like to know about it.
- a NuGet package with native deps (win, linux, osx) cross join (x86, arm) - a P/Invoke package that depends on the native one - actual software that uses the dependency
When you publish the actual software, it pulls the deps and includes the correct native build.
E.G, if you use, rust, through maturin, cross platform compilation is pretty decent: https://www.maturin.rs/distribution.html
This works far better in Rust, for example.
Of course if Python wasn’t so dog slow we wouldn’t need so many native packages.