by codedokode · 4y ago · 0 comments
What we need instead is better support in Linux for legacy Linux and Windows applications so that Linux could run any proprietary software written for it or for Windows (because there are no sources for it and it cannot be recompiled). Today it is not so: for example, very old Firefox builds don't run or crash on modern Linux.
> What we need instead is better support in Linux for legacy Linux and Windows applications (...) Today it is not so: for example, very old Firefox builds don't run or crash on modern Linux.
But that is the exact reason why "legacy Linux and Windows" doesn't work, and why APE works: you should target the "specific architectrure" directly instead of hopefully trusting that the entire underlying system is a completly static target.
That or using containers/shim layers, those of course bringing such entire underlying system with them.
I think WASM is a much more promising avenue for true cross platform executables. You don't have the architecture issue and aren't using weird old formats.
It has some way to go though.
Can you see how the problem that you described in the subsequent paragraph could easily be solved if the applications were compiled in such a format?
APE format doesn't solve the problem with shared libraries changing over time, it dosn't solve the problem that different plaforms provide different APIs (for example, windowing APIs, audio APIs etc).
APE doesn't use shared libraries at all and it's intended to be statically linked?
> APE (...) dosn't solve the problem that different plaforms provide different APIs
APE provides the most important POSIX APIs (or shims) for every platform it supports.