Hacker News new | ask | show | jobs
by iamcreasy 2231 days ago
> SDL only does so much, and you still need platform-specific APIs for file access, networking (if applicable), threading, etc. So you'll still need platform-specific code until someone writes those abstractions in Swift.

Isn't that handled by the swift runtime?

By without any changes I meant, without platform-specific recompilation. Very similar to what java runtime provides for JAR.

1 comments

You'll always need platform-specific recompilation for native executables, as the executable formats are different on different operating systems. The only exceptions are emulation systems like WSL and Wine.
I should have added it to my first post - SDL provides precompiles libraries for different platforms. All I have to do is to distribute them with my game. Does it solve the problem?