Languages for servers (Go, D, and more)

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 5 07:51:02 PDT 2014


On Sat, 2014-07-05 at 11:46 +0000, ponce via Digitalmars-d wrote:
> On Saturday, 5 July 2014 at 06:43:31 UTC, Russel Winder via 
> Digitalmars-d wrote:
> >
> > All the C++ folk are saying that with C++14 is you are using 
> > any heap at
> > all you are more than likely doing it wrong. Modern C++ idiom 
> > is for
> > completely new/delete free code.
> 
> Minor nitpick, it is indeed devoid of "delete".
> But in modern C++ but the _heap_ is still used an awful lot, 
> everytime a std::vector is copied, everytime a std::string is 
> concatenated, etc. And it's very much silent. Modern C++ is a 
> style that makes resource release timely and painless, but still 
> let a lot of allocations go unchecked.

Not a minor nitpick, an error on my part: I should have included the
term "explicitly". Thanks for picking me up on this.  As others have
pointed out in the interim, modern C++ still uses unique_ptr, etc. and
RAII so there is heap use, just no unconstrained use.
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140705/bb2fb15c/attachment.sig>


More information about the Digitalmars-d mailing list