News

Free two-day event: Silicon Valley codecamp_12 for C++11

The page's own intro says it all:


C++ is Hot!

Mobile and cloud technologies are re-energizing interest in the uncompromising performance that C++ delivers and the new ISO/ANSI standard (C++11) introduces features that allow programmers to achieve that performance with ever greater expressiveness.

Join us as we discuss how to get the most out of Classic C++ and discover the new features of C++11 that are being delivered now by the latest compilers.

Sessions in this track are being given by award winning presenters. We will go beyond Procedural and Object-Oriented Paradigms to explore Generic Programming and Logic Paradigms. We will teach you how to write code in both Classic C++ and C++11 that you can be confident is performant, maintainable, and 100% robust in the face of exceptions. We will cover new C++11 features, including the new standard for threading and what Scott Meyer’s calls “the marquee feature of C++11,” move semantics. We will also introduce you to some powerful new tool sets, one from Microsoft and the other Open Source (Clang), for use with both Classic C++ and C++11.

Fall WG21 meeting: Register by Fri Sep 14 (this week)

Via Clark Nelson:

Final reminder: The registration page for the Portland meeting (Oct 15-19, 2012) closes after this Friday, September 14. If you're planning to come and haven't made your reservation yet, don't delay to get the discount room rate.

Registration page for Portland meeting

A few people have asked about reserving a room at the DoubleTree outside the range of dates acceptable to the web site. Just reserve what you can, and make your request for additional days in the "Special Requirements" box. Be advised that the DoubleTree is already all booked up for both Saturday nights, October 13 and 20.

More information about the Portland meeting:

VC++ 2012 Desktop Express (free)

Today Microsoft released another free Express version of Visual C++ 2012. In addition to the free Express Visual C++ compiler for building tablet applications, Visual Studio Express 2012 for Windows Desktop directly supports traditional Windows and command-line applications in C++.

This a great free C++ compiler on Windows for everything from hobby development to using and contributing to open source projects. Besides additional C++11 standards conformance with range-for, override and final on the language side (with more to come in the coming months; watch this space) and a complete C++11 standard library implementation, the free compiler also includes unit testing framework for C++, code analysis for C++ (try /analyze today if you haven't already, as John Carmack says so well), C++ AMP for GPGPU programming, and much more.

See also the longer announcement here.

just::thread 1.8.0 released

Version 1.8.0 of just::thread was released today. just::thread is Just Software Solutions' C++11 Thread Library.

What's new:

  • The big news with this release is the new support for Microsoft Visual Studio 2012, so you can continue to take advantage of just::thread when upgrading your compiler.
  • A fix for using just::thread in a DLL on Windows XP.
  • Minor fixes and improvements to the generated code across all platforms.

Boost 1.51.0 released

Release 1.51.0 of the Boost C++ Libraries is now available.

These open-source libraries work well with the C++ Standard Library, and are usable across a broad spectrum of applications. The Boost license encourages both commercial and non-commercial use.

This release contains 1 new library (Boost.Context, by Oliver Kowalke) and numerous enhancements and bug fixes for existing libraries.

Thanks,

--The Boost release team

    Beman Dawes
    Daniel James
    Eric Niebler
    Marshall Clow
    Rene Rivera
    Vladimir Prus

 

Adobe flascc: C++ Compiler for Flash

Want to reach a billion people with your C++ program?

Flash Runtime C++ Compiler (flascc)

Bring your native C/C++ games from consoles and PCs to over a billion people on the web — across browsers, with no install. ... console-quality games with blazing fast performance across web browsers, including Chrome, Firefox, Internet Explorer, and Safari.

“Games built for high-end consoles can now run on the Web or as Facebook apps, reaching an enormous user base. This totally changes the playing field for game developers.” — Tim Sweeney, Founder, Epic Games

“The Flash Player version of Unreal Tournament 3 turned out to look even better than the version we shipped on Xbox 360 and PlayStation 3.” — Mark Rein, Vice President, Epic Games

Where To Get the Standard (and Drafts)

I'm not calling out all the changes we're making as we gradually add information to the site, but here's a new page many people will find useful...

The Standard: "Want to read the standard, or working drafts of the standard? You have several options, most of them free." This page summarizes:

  • where to get the current standard (official for $30, or almost-official for free);
  • where to get working drafts (prebuilt or at GitHub); and
  • what to expect, that the standard is a treaty, not a tutorial.

Enjoy!

C++11 Style: A Touch of Class -- Bjarne Stroustrup

Bjarne Stroustrup will be appearing live next month to deliver his popular talk on what "Modern C++" should mean in the 2010s.

C++11 Style: A Touch of Class
Bjarne Stroustrup

Date: September 19, 2012
Time: 6:30pm
Location: Austin, TX, USA 

We know how to write bad code: Litter our programs with casts, macros, pointers, naked new and deletes, and complicated control structures. Alternatively (or in addition), obscure every design decision in a mess of deeply nested abstractions using the latest object-oriented programming and generic programming tricks. For good measure, complicate our algorithms with interesting special cases. Such code is incomprehensible, unmaintainable, usually inefficient, and not uncommon.

But how do we write good code? What principles, techniques, and idioms can we exploit to make it easier to produce quality code? I will make an argument for type-rich interfaces, compact data structures, integrated resource management and error handling, and highly-structured algorithmic code. I will illustrate my ideas and motivate my guidelines with a few idiomatic code examples.

I will use C++11 freely. Examples include auto, general constant expressions, uniform initialization, type aliases, type safe threading, and user-defined literals. C++ features are only just starting to appear in production compilers, so some of my suggestions have the nature of conjecture. However, developing a “modern style” is essential if we don’t want to maintain newly-written 1970s and 1980s style code in 2020.

This presentation reflects my thoughts on what “Modern C++” should mean in the 2010s: a language for programming based on light-weight abstraction with a direct and efficient mapping to hardware, suitable for infrastructure code.

Core C++, 3 of N: Overload Resolution -- Stephan T. Lavavej

Core C++, 3 of N: Overload Resolution -- Stephan T. Lavavej

Stephan T. Lavavej, aka STL, will take us on a journey of discovery within the exciting world of Core C++. We know lots of folks are either coming back to C++, coming to C++, or have never left C++. This lecture series, in n parts, is for all of you! Only STL can make that work (novice, intermediate, and advanced all bundled together and presented in a way only STL can do).

In Part 3, STL digs into Overload Resolution. A function template can overload non-template functions of the same name. In this scenario, function calls are resolved by first using template argument deduction to instantiate the function template with a unique specialization (STL taught us all about TAD in Part 2). If template argument deduction fails, the other function overloads are considered to resolve the call. These other overloads, also known as the candidate set, include nontemplate functions and other instantiated function templates. If template argument deduction succeeds, then the generated function is compared with the other functions to determine the best match, following the rules for overload resolution. [source]

As STL says: "I walk through why foo(const T&) beats foo(const T *), when given int *. The reason is surprisingly subtle."

Tune in.