intrepidhero ,
@intrepidhero@vmst.io avatar

Playing around with this morning on my workstation. First impressions are good. The CLI tool is easy to use and syntax is pretty clean. Language design choices appear to borrow some convenience from scripting languages, while giving you options for static typing.

Not sure I personally have a use case for it but reading through the language tour I experienced relatively few WTF moments and that's about the highest praise I can give ANY language.

https://docs.swift.org/swift-book/documentation/the-swift-programming-language/guidedtour/

intrepidhero OP ,
@intrepidhero@vmst.io avatar

I like 's enumerations and pattern matching. Nicely done.

Wish that documentation didn't throw around the term "async" without defining it. One of the worst overloaded concepts in CS.

intrepidhero OP ,
@intrepidhero@vmst.io avatar

uh oh, SDL2 bindings and static builds for linux are possible... I may have to play with this more.

https://github.com/ctreffs/SwiftSDL2

https://www.swift.org/documentation/articles/static-linux-getting-started.html

@vampiress Is there a reason you went with C++ instead of swift for game dev? I feel like you've talked about how great swift is before.

vampiress ,
@vampiress@eigenmagic.net avatar

@intrepidhero

  1. 25+ years experience of C++ vs a year or so of playing around in Swift
  2. I want to be able to port my engine to literally every platform I felt like, without relying on which platforms have Swift ported to them already
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines