News for hackers. Stuff that matters.
Re:Rust as a gateway drug to Haskell by aaron-lebo on Wednesday June 14, 2017 @02:07AM (#14550917)
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?

Re:Rust as a gateway drug to Haskell by captainmuon on Wednesday June 14, 2017 @02:48AM (#14551051)
Exactly. 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.

Re:Rust as a gateway drug to Haskell by nicoburns on Wednesday June 14, 2017 @04:45AM (#14551430)
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.
Re:Rust as a gateway drug to Haskell by beefsack on Wednesday June 14, 2017 @07:12AM (#14551899)
Swift is useful if you're an Apple developer only targeting Apple users, seems like a bit of a niche.
Re:Rust as a gateway drug to Haskell by AlexeyBrin on Wednesday June 14, 2017 @07:53AM (#14552047)
Swift works reasonably well on Linux. You can even run Swift on Windows 10 through Windows Subsystem for Linux.
Re:Rust as a gateway drug to Haskell by beefsack on Wednesday June 14, 2017 @08:17AM (#14552158)
I 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?
Re:Rust as a gateway drug to Haskell by AlexeyBrin on Wednesday June 14, 2017 @09:32AM (#14552541)
AFAIK only the core language is fully ported, for the libraries ... it is a work in progress.
Re:Rust as a gateway drug to Haskell by jandrese on Wednesday June 14, 2017 @11:12AM (#14553315)
In other words it is useless currently.
Re:Rust as a gateway drug to Haskell by AlexeyBrin on Wednesday June 14, 2017 @03:33PM (#14555388)
Tell that to IBM that uses Swift in production. See IBM's Kitura open source server framework if you are interested.
Re:Rust as a gateway drug to Haskell by jandrese on Thursday June 15, 2017 @09:55PM (#14566074)
They use a language without a standard library in production?
Re:Rust as a gateway drug to Haskell by AlexeyBrin on Friday June 16, 2017 @07:50AM (#14568121)
I'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-s...

Or this one https://developer.ibm.com/swift/

Re:Rust as a gateway drug to Haskell by pjmlp on Wednesday June 14, 2017 @05:38AM (#14551588)
Actually Swift 4.0 just got some memory ownership support, with more to come later.
Re:Rust as a gateway drug to Haskell by kibwen on Wednesday June 14, 2017 @12:51PM (#14553987)
Link? Last I checked all of Swift's ownership ideas were just in-progress proposals, with implementation to be left to far-future releases.
Re:Rust as a gateway drug to Haskell by pjmlp on Wednesday June 14, 2017 @01:13PM (#14554184)
Watch 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/proposa...