3 ms·
I'll just add my 0.02 and say that for writing games, at least, I cannot imagine a better language than Swift, unless it's a slightly better version of Swift.
by Razengan 9y ago
I'll just add my 0.02 and say that for writing games, at least, I cannot imagine a better language than Swift, unless it's a slightly better version of Swift.
Combined with SpriteKit/SceneKit/GameplayKit/Metal, it's a decades-long dream come true.
- pjmlp 9y agoAnd Metal with its Swift/C++14 shaders is an actual modern graphics API, not stuck on C like Vulkan.
- dep_b 9y agoInteresting, where can I read more about that comparison?
- pjmlp 9y agoYou can read the documentation in https://developer.apple.com/metal/ https://developer.apple.com/metal/ , which includes a link to all WWDC videos. Vulkan is basically a C API, defined at https://www.khronos.org/registry/vulkan/ https://www.khronos.org/registry/vulkan/ There is a C++ wrapper, originally designed by NVidia, https://github.com/KhronosGroup/Vulkan-Hpp https://github.com/KhronosGroup/Vulkan-Hpp, but it isn't part of the specification as such. Likewise the shading languages are either GLSL or HLSL, although in theory others could be created for SPIR-V. Of course, Vulkan has the benefit of GNU/Linux, Desktop Windows (not on UWP) and about 14% Android devices (optional in 7+ versions), but middleware engines make it kind of irrelevant.
- cableshaft 9y agoIf you're only wanting to make games for iOS, sure. The moment you want to make games for any other platform in addition to iOS, you have to look to other options (or be willing to work on multiple codebases, which I have less and less time for nowadays). I've got a game half done in Swift with SpriteKit that I did as a learning exercise, and it was a smooth experience, but I'm having a hard time justifying putting more time into it when I would rather spend it working on something that I could make a build for PC, Android, and consoles as well. Hence why my efforts are more in Unity now.
- Razengan 9y ago> If you're only wanting to make games for iOS Not just iOS, but macOS, tvOS and watchOS as well. You can easily reuse like 90% of the code, save for the platform-specific windowing/views and player input subsystems. Xcode even comes with a cross-platform game template. Although I do want to be able to develop for the Nintendo Switch as well, I don't mind being limited to the Apple ecosystem for now; it's the more lucrative market, and I get faster access to the latest tech, but most important of all, is that I know my potential users will have access to that latest tech (see Android fragmentation and adoption rate). Sometimes, I don't even have to rewrite or do anything to have my games use the latest tech; when Metal was introduced, SpriteKit and SceneKit were updated to use it under the hood instead of OpenGL, giving a performance and efficiency boost to all existing games for free, without even recompiling!