www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - About functional C++

reply "bearophile" <bearophileHUGS lycos.com> writes:
A nice post Bartosz:

http://bartoszmilewski.com/2014/06/09/the-functional-revolution-in-c/

Perhaps it's a good moment to remove the monitor pointer from D 
classes (as in a recent front-dmd patch).

(D didn't follow the borrowing/linear types ideas of Bartosz that 
were more primitive than Rust ones, but perhaps sufficient to 
fend off the Rust menace :-) ).

Bye,
bearophile
Jun 09 2014
next sibling parent "Paulo Pinto" <pjmlp progtools.org> writes:
On Monday, 9 June 2014 at 23:56:05 UTC, bearophile wrote:
 A nice post Bartosz:

 http://bartoszmilewski.com/2014/06/09/the-functional-revolution-in-c/

 Perhaps it's a good moment to remove the monitor pointer from D 
 classes (as in a recent front-dmd patch).

 (D didn't follow the borrowing/linear types ideas of Bartosz 
 that were more primitive than Rust ones, but perhaps sufficient 
 to fend off the Rust menace :-) ).

 Bye,
 bearophile

I do like Rust given its ML heritage, but Swift, modern C++ and .NET Native are bigger menaces to D. The only languages that succeeded at mainstream adoption for systems programming are the ones that there is no way around them since they are the official OS languages. D needs the sponsorship of an OS vendor to succeeded in the systems area. -- Paulo
Jun 10 2014
prev sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
But is Bartosz forgetting the Rust solution? The latest video 
linked in this newsgroup shows that Rust instead of going the way 
of functional data structures, it disallows the presence at the 
same time of reference sharing and mutability. So the mutability 
of data is not intrinsic, it's related to how many references you 
can have to it.

Bye,
bearophile
Jun 10 2014