4 ms·
Have you looked at Swift? It's pretty similar to Rust, but eschews all the lifetime stuff in favour of a runtime that does reference counting.
by nicoburns 9y ago
Have you looked at Swift? It's pretty similar to Rust, but eschews all the lifetime stuff in favour of a runtime that does reference counting.
- pjmlp 9y agoActually Swift 4.0 just got some memory ownership support, with more to come later.
- kibwen 9y agoLink? Last I checked all of Swift's ownership ideas were just in-progress proposals, with implementation to be left to far-future releases.
- pjmlp 9y agoWatch the video about the talk, what is new in Swift 4.0 at WWDC 2017. Basically 4.0 will introduce the notion of exclusive access, with more affine type ideas to follow up on 4.x. EDIT: This feature is described by SE-0176. https://github.com/apple/swift-evolution/blob/master/proposals/0176-enforce-exclusive-access-to-memory.md https://github.com/apple/swift-evolution/blob/master/proposa...
- beefsack 9y agoSwift is useful if you're an Apple developer only targeting Apple users, seems like a bit of a niche.
- AlexeyBrin 9y agoSwift works reasonably well on Linux. You can even run Swift on Windows 10 through Windows Subsystem for Linux.
- beefsack 9y agoI tried under Arch a few months ago and found swathes of the standard library didn't appear to work, is this something which has been fixed?
- AlexeyBrin 9y agoAFAIK only the core language is fully ported, for the libraries ... it is a work in progress.
- jandrese 9y agoIn other words it is useless currently.
- AlexeyBrin 9y agoTell that to IBM that uses Swift in production. See IBM's Kitura open source server framework if you are interested.
- jandrese 9y agoThey use a language without a standard library in production?
- AlexeyBrin 9y agoI'm sure you can find yourself the answer if you are really interested, here is an example: http://www.computerworld.com/article/3122994/apple-mac/ibm-says-swift-is-now-ready-for-the-enterprise.html http://www.computerworld.com/article/3122994/apple-mac/ibm-s... Or this one https://developer.ibm.com/swift/ https://developer.ibm.com/swift/