nullptr in C++11 -- FangLu
Another quick taste of C++11:
nullptr in C++11
by FangLu
Intro:
The C++11 standard introduced a new keyword,
nullptras a null pointer constant...
March 11-13, Online
March 16-18, Madrid, Spain
March 23-28, Croydon, London, UK
March 30, Kortrijk, Belgium
May 4-8, Aspen, CO, USA
May 4-8, Toronto, Canada
June 8 to 13, Brno, Czechia
June 17-20, Folkestone, UK
September 12-18, Aurora, CO, USA
November 6-8, Berlin, Germany
November 16-21, Búzios, Rio De Janeiro, Brazil
By Blog Staff | Sep 18, 2014 03:56 AM | Tags: basics
Another quick taste of C++11:
nullptr in C++11
by FangLu
Intro:
The C++11 standard introduced a new keyword,
nullptras a null pointer constant...
By Meeting C++ | Sep 17, 2014 05:45 AM | Tags: user groups community
I'd like to try something new tomorrow at 17:00 CET:
Tomorrow: Community Planning Session
by Jens Weller
From the article
I spoke at CppCon about founding C++ User Groups and Community work for C++. In general I'd like to give people the opportunity to meet once a month online, and exchange ideas for local C++ User Groups/communities.
By Blog Staff | Sep 17, 2014 01:49 AM | Tags: advanced
Look at this image again: That's C++ in Lisp. And that's just for starters...
Embedding Lisp in C++ -- A Recipe
by Chris Kohlhepp
As a teaser, consider this from midway through the article:
Just to recap, so far we have seen C++ calling in-line Lisp; Lisp calling C++; a Lisp REPL inside of a C++ process; a full symbolic Lisp debugger inside of C++; byte compiled and interpreted mode of execution; as well as trivial Live-Programming.
We are yet to see full integration with Lisp’s package management system and fully compiled Lisp code inside of C++...
By Blog Staff | Sep 16, 2014 11:43 AM | Tags: intermediate
Recently on Tales of C++:
When Size Does Matter
by K-ballo
In the C++ lands every object has mass; for any complete type T, sizeof(T) is greater than zero. This keeps array indexing and pointer arithmetics from collapsing, but it also means that empty objects occupy space. Furthermore, when an empty object is placed in a class next to a bigger member, padding may — and in all likeliness will — be added due to alignment requirements, resulting in an empty member taking more than just one byte of storage.
Certainly something has to be done about this...
By Blog Staff | Sep 16, 2014 11:25 AM | Tags: basics
Today on Dr. Dobb's:
The C++14 Standard
by Mark Nelson
From the article:
Voting on the C++14 standard was completed in August, and all that remains before we can say it is officially complete is publication by the ISO. In this article, I will visit the high points of the new standard, demonstrating how the upcoming changes will affect the way you program, particularly when using the idioms and paradigms of Modern C++.
The committee seems intent on keeping the standards process in a higher gear than in the past. This means that C++14, having had just three years since the last standard, is a somewhat constrained release. Far from being disappointing, this is a boon for programmers because it means implementers have been able to push out compliance with the new features in real time. Yes, you can start using C++14 features today — nearly all of them if you are flexible on your tool chain...
By Blog Staff | Sep 16, 2014 09:57 AM | Tags: None
If you're in Europe and couldn't attend last week's CppCon, you have a closer option available: C++ and Beyond in Stuttgart with Scott Meyers, Herb Sutter, and Andrei Alexandrescu will be held on September 29 through October 1. Registration is still open.
C&B is a different event from CppCon -- a more intimate and interactive seminar, with classic material that the Three Amigos gave at C++ and Beyond in the past, plus breaking updates.
From the blogosphere:
C&B Stuttgart Just Two Weeks Away!
by Scott Meyers
Next stop: Stuttgart
by Herb Sutter
By cbpowell | Sep 15, 2014 03:58 PM | Tags: None
I composed this review of CppCon 2014, and think it might be interesting to the ISOCPP audience.
I’ve just returned from the week-long CppCon 2014 in Bellevue, Washington. Here’s what I experienced.
I’ve absorbed a great deal from a variety of C++ developer conferences -- CppNow, Going Native, C++ And Beyond -- but always virtually, via video and webcast. This was an opportunity to jump into the thick of things and participate in person. With community heavyweights like Herb Sutter and Scott Meyers in attendance I knew the content would be stimulating and informative. (Honestly, the speaker list featured nearly every name in the “C++ royalty” that you could imagine. I smiled to myself seeing Bjarne Stroustrup standing in the registration line like he was just another attendee.) So when the conference’s early-bird admission opened in March, I eagerly sent in my hard-earned dollars and blocked off the week of September eighth on my calendar...
By Blog Staff | Sep 15, 2014 02:45 PM | Tags: None
As folks are heading home, a number are writing up trip reports for the companies or colleagues. Here's one from the Qt community:
CppCon Just Ended
by Charley
From the post:
Apologies for cross-post qt-interest and qt-dev, but wanted to be sure both groups saw the announcement for next year (20-25 Sep-2015).
WOW AGAIN for a great conference. Really heavy-hitters there, with information I don't know is available elsewhere...
This was a "first-year" conference, and it was a huge success (about 600 people, it exceeded their goals). There is a strong possibility that it will double in size for next year, and they have a venue that can handle that...
Even though it was a "first-year" conference, it is interesting to note that a "culture" is clearly starting to form. It was incredibly open, and collegiate, and supportive across the different industries and companies -- for newcomers and for experienced people (although it is most definitely a place where experienced people can finally discuss their advanced issues when they have nobody else at their company to help).
These were incredibly smart people merely coming together to talk about problems and solutions and experiences in using and growing C++. I'm going back again next year (assuming their restraining order against me has expired by then).
By Blog Staff | Sep 15, 2014 02:30 PM | Tags: None
Wrapup:
CppCon 2014 is done
by Jon Kalb
From the article:
Some of the announcements made at the close of the conference include the fact that conference tee shirts are now available on our on-line store, presentation notes will be available on git hub, and our dates for next year will be September 20 – 25, 2015.
Before looking to next year and CppCon 2015, I’d like to thank all the people that made CppCon 2014 such a big success. First I’d like to thank the sponsors whose support is critical to the existence of the conference. I’d also like to thank all the presenters whose content made the conference what it is; the keynotes, the regular program presenters, the panelists and moderators, the Open Content presenters, and the Lightning Talk presenters. These presenters are busy, smart people, but they’ve taken the time to create presentations that excited attendees from all over the world.
I’ve a very big thanks for the conference staff who did so many things in so many ways to make this week-long experience valuable for our almost six hundred attendees.
Finally, and most importantly, I want to thank the attendees. They are the real value and attraction of this conference.
I can’t wait to see you all again next year.
Jon
By Blog Staff | Sep 15, 2014 02:29 PM | Tags: None
At CppCon last week, Dropbox announced Djinni (pronounced "genie"), a new open source C++ library. From the announcement:
Djinni is a tool for generating cross-language type declarations and interface bindings. It's designed to connect C++ with either Java or Objective-C.
We at Dropbox use Djinni to interface cross-platform C++ library code with platform-specific Java and Objective-C on Android and iOS.
We announced Djinni at CppCon 2014. See the slides here: https://bit.ly/djinnitalk Video coming soon!
Main Features
- Generates parallel C++, Java and Objective-C type definitions from a single interface description file.
- Supports the intersection of the three core languages' primitive types, and user-defined enums, records, and interfaces.
- Generates interface code allowing bidirectional calls between C++ and Java (with JNI) or Objective-C (with Objective-C++).
- Can autogenerate comparator functions (equality, ordering) on data types.
Dropbox's CppCon talk slides explain more details, including that Dropbox is using C++ not for "legacy" reasons. Rather, Dropbox is "building (mostly) new apps. Not dealing with lots of legacy code. Not dealing with (very) old platforms. We're building multiple apps." And the language of choice for having a single source code base that can target iOS, Android, OS X, Linux, and Windows is... C++. Their approach is to use C++ for the common code, and a thin bridge (via Djinni) to the Java-specific code on Android, the Objective-C-specific code on iOS, and so on.
A full video of the presentation will be available in approximately one month.