News for hackers. Stuff that matters.
Re:My Vision of D’s Future by dmix on Tuesday October 15, 2019 @11:22AM (#21259390)
> We’re mostly there—using the actor model eliminates a lot of problems that would otherwise naturally occur.

So D comes with an actor system baked in at the language level? I like that sort of thing after using Erlang and using some half baked libraries in other languages.

I’m curious how good it is...

Re:My Vision of D’s Future by ttkciar on Tuesday October 15, 2019 @03:54PM (#21262931)
D comes with a lot of "casual parallelism" baked in at the language level, and in its standard libraries. Actors are just one feature among many.

You -can- explicitly manage threads and processes like in other languages, but much of the time there is a more lightweight, expressive construct available.

For instance, you can turn this loop: foreach(ref i; arr) i = i * i;

Into a parallelized loop by simply: foreach(ref i; parallel(arr)) i = i * i;

Example was shamelessly lifted from: https://tour.dlang.org/tour/en/multithreading/std-parallelis...

Re:My Vision of D’s Future by macintux on Tuesday October 15, 2019 @06:42PM (#21264804)
Much like immutability, I don’t generally find it compelling when a language offers such a critical feature as just one among many. I prefer my languages to be opinionated.

I’m curious how the actor model works on a large system with lots of 3rd party libraries (or even different development teams) when you can’t guarantee that everyone is using it.

Re:My Vision of D’s Future by mochomocha on Tuesday October 15, 2019 @12:16PM (#21260135)
Yes! I've only used it minimally in a non high load scenario, but it's been a pretty smooth experience.