6 ms·
This is what's really nice about Nim. It writes like Python, but is fast like Rust. Ran across Option in it the other day, though it's not used heavily. I real
by aaron-lebo 9y ago
This is what's really nice about Nim. It writes like Python, but is fast like Rust.
Ran across Option in it the other day, though it's not used heavily. I really wish there was something like Haskell but with a runtime like Nim or Go. Perhaps that is OCaml?
- captainmuon 9y agoExactly. For me, Haskell was a gateway to Nim. I wanted something that feels familiar, but with a strong type system and native speed. I wish I could invest some time in working with Nim. It doesn't get as much attention as it deserves in my opinion, and it would really benefit from growing the community a bit.
- nicoburns 9y agoHave 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?
- 9y ago