The C++ Standard Library, 2nd edition by Nicolai Josuttis. The Best-Selling Programmer Resource – Updated for C++ Also out: C++17 – The Complete. Programming with C++17 by Nicolai Josuttis. Although it is not as big a step as C++11, it contains a large number of small and valuable language and library. Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 A Tutorial and Reference (2nd Edition) by Nicolai M. Josuttis Hardcover $

Author: Bagul Kelmaran
Country: Senegal
Language: English (Spanish)
Genre: Automotive
Published (Last): 27 February 2005
Pages: 464
PDF File Size: 20.23 Mb
ePub File Size: 9.55 Mb
ISBN: 674-7-13812-873-3
Downloads: 31461
Price: Free* [*Free Regsitration Required]
Uploader: Meztilar

Become a Redditor and subscribe to one of thousands of communities.

Frankly they chose to limit d’s scalability. With prefix dereference you need to remember which operator associates more strongly: I’m not advocating that we all learn about instruction pipelining and branch prediction but we certainly need to strike a better balance between expediency and reasonable use of resources.

With prefix dereference you need to remember which operator associates more strongly:. Welcome to Reddit, the front page of the internet. You can’t make abstraction both costless and correct. More importantly, I think the performance barrier itself will probably be different in a few years as well. Log in or sign up in seconds. That is an extremely difficult theoretical problem and an active research area today, but then a few years ago we might have said something similar about just-in-time compilation, and a few years before that we talked about dropping out of C to write the performance-sensitive parts of our code in assembly language.


To become successful a new programming language requires not only technical merit but also a critical mass of users. Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

There are several factors that I think will push the industry in that direction. In this respect, function objects are still a better choice. Want to add to the discussion? I think that new programming styles and new languages will start to overcome that barrier with time and experience.

Nicolai Josuttis: Home Page

And I won’t get you started on function pointer declarations. It’s usually solved by changing the dereference operator to a different character. Horrible syntax, header files, compile times, many traps for a programmer to walk into and hundreds of weird corner cases.

In that sense I find it almost regretable that it is not possible to create a normal named function object class josutfis the same syntax as lambdas in the global scope, that provides automatically created constructor and members like lambdas. The “arrow” operator is only necessary because the dereference operator is prefix, not postfix.

The new stuff does add a lot of functionality, and that stuff is often damn useful, but sometimes you just want a function pointer. In particular, that includes just about anything that lives below application software in the stack OS, device drivers, network stack, etc. That is to say, the straight line optimizations will always have some value, but only if you can make everything efficient enough at the higher level first.

You make some good points, particularly when it comes to concurrency as this definitely will lead to a different way of programming.

The point is resources are not infinite and they are not ‘free’. It is more efficient and more effective to write in a jousttis language and let the tools written by the experts take care of the fine details, because they will generate better assembly in an automated way than most of us would by hand anyway.


Microsoft suggest moving to 64 bits to solve the problem! Submit a joxuttis text post. In my experience, writing toy examples to understand how something works and solving real problems using it are two very, very different things.


I thought it was usually the caret, but that still leaves this case ambiguous josutits bitwise XOR. You’re right that this is a deficiency. No, you will never find a v programming language without weird corner cases and programmer traps. On my machine sizeof std:: That one application alone consumes over 2GB of memory when you load a project. I believe the increased size of std:: We already have desktop and laptop PCs with multiple cores today, and mobile devices and even embedded systems are starting to go that way as well.

Do I really need to?

Nicolai M. Josuttis: The C++ Standard Library

You are absolutely correct. Function classes also come with some downsides.

So in my books this book is a suspect no pun intended. The state of the lambda object has changed between calls.