Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I wish rust could have taken a similar approach.

Then use Swift. Other than the approach to memory, Swift is extremely similar to Rust.

> I wish swift scene on linux becomes viable in the next version.

Swift 3.0 is totally viable on Linux. And Swift package manager works great, although it's not quite as nice as Cargo (yet!). I've been very impressed with Swift on Linux, but I've yet to use it for production (although there are lots of folks who are). There are some very nice web frameworks for Linux in Swift. I'd say that for web, Swift on Linux is more advanced than Rust. Take a look at Perfect, Zewo, Kitura, etc. They've even got lots of authentication/authorization plugins, which last I checked no Rust framework had.



There are lots of things missing in the standard lib though: https://github.com/apple/swift-corelibs-foundation/blob/mast..., it is improving for sure. I am waiting for it to become more mature as well.


Swift's ties to Grand Central Dispatch for concurrency are wholly unfortunate though. I would have far preferred to see a native language take on that instead of porting GCD to every platform.


There will be a Swift-specific concurrency story, it's just a lower-priority since GCD is available to fill in the gap for now.

Here's an overview of how theoretical language features could enable library implementations of coroutines+channels, async/await, or actors:

https://github.com/apple/swift/blob/master/docs/proposals/Co...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: