News for hackers. Stuff that matters.
Re:Rust web framework, Iron by pjmlp on Monday August 17, 2015 @03:45PM (#10075595)
> Are you implying that these actor libraries give you the data race freedom guarantees that Rust's mutability rules give you? If so, that's trivially false.

No they don't give the freedom, but they give them comfort for the average developers.

I deal a lot with 9-5 enterprise developers that don't even know that HN and Reddit exist, or whatever languages exist out there besides what they use on the job.

Yet they do write multi-threaded code with help of such libraries, happy that someone gives them training wheels.

> But doubly linked lists/tree-like data structures are hard in Haskell too.

True, but laziness helps. However Haskell is hardly a mainstream language.

Re:Rust web framework, Iron by pcwalton on Monday August 17, 2015 @04:22PM (#10075847)
> Yet they do write multi-threaded code with help of such libraries, happy that someone gives them training wheels.

And they create a lot of bugs in the process. Empirically, a message passing framework does not eliminate data races as a very common class of bug.

> However Haskell is hardly a mainstream language.

Well, you brought up Haskell earlier. I agree of course that both Rust and Haskell make it hard to write doubly-linked lists and trees, and that Haskell is not a common industry language.

Re:Rust web framework, Iron by pjmlp on Monday August 17, 2015 @05:22PM (#10076221)
Haskell was just one of the languages on my list. I was basically referring to all languages with available compilers and better web frameworks than what Rust currently offers. And I did miss a few ones.

As for data races elimination, I don't see people really moving away from those libraries, but I might be wrong.