3 ms·
> If you want to build a native app across platforms, you’re either: > - Writing it as many times as platforms you want to support > - Using some middle-man s
by agentultra 4y ago
> If you want to build a native app across platforms, you’re either:
> - Writing it as many times as platforms you want to support
> - Using some middle-man software to write-once-compile-everywhere
Weeeeeeeell, there's also a third option that a lot of game developers/engines use: write most of your code in cross-platform C/C++ as an object file and write platform-specific loaders that do the OS-specific bits to start your program, load your object file, and call your main entry point. It's not that bad.
It's really the OS's that get nasty about adding more and more layers between our programs and the hardware they run on. Some of that is for good reason: ie security or debugging. But some aren't: vendor lock in, user tracking, backdoors.
- deleted 4y ago[deleted]
- mwcampbell 4y agoA good UI that everyone can use isn't as simple as just directly drawing to the screen and handling input. You also have to handle things like accessibility that require heavy interaction with the OS.
- agentultra 4y agoSure. There are OS APIs for these things and other toolkits for it. Browsers are fine and all but I don’t think they’re the only reasonable option in town for cross platform development.