community

Making things do stuff – Part 5--Glennan Carnie

The series continues.

Making things do stuff – Part 5

by Glennan Carnie

From the article:

We’ve been looking at using C++ to manipulate I/O hardware.   Previously, we’ve looked at the fundamentals of hardware manipulation; and how to encapsulate these mechanisms into classes.  If you’ve not been following along I’d recommend reading the previous articles first before continuing.

This time we’ll explore a lesser-known feature of C++ and its application in hardware manipulation – placement new...

Making things do stuff – Part 4--Glennan Carnie

The series continues.

Making things do stuff – Part 4

by Glennan Carnie

From the article:

In the last article we explored the design of a class to encapsulate a physical hardware device.  In that article I deliberately ignored how the class would actually interact with the hardware.

In this article we explore the options available to us for accessing hardware and the consequences of those choices...

CppCon 2016: Building Software Capital: How to write the highest quality code and why--David Sankel

Have you registered for CppCon 2017 in September? Don’t delay – Registration is open now.

While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2016 for you to enjoy. Here is today’s feature:

Building Software Capital: How to write the highest quality code and why

by David Sankel

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

This talk discusses the ins and outs of how to write software that is at such a high standard that it gets reused everywhere. It covers organization, design, infrastructure, testing, documentation, reviews, and general suggestions based on my experience in the industry.

Meeting C++ 2017: Call for sponsors

The Meeting C++ conference is looking for sponsors

Meeting C++ 2017: Call for sponsors

by Jens Weller

From the article:

Like in the last 5 years, the Meeting C++ conference is looking for companies willing to support the conference through sponsoring! There is also the limited option of presenting your company at the conference with a booth!

CppCon 2016: The strange details of std::string at Facebook--Nicholas Ormrod

Have you registered for CppCon 2017 in September? Don’t delay – Registration is open now.

While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2016 for you to enjoy. Here is today’s feature:

The strange details of std::string at Facebook

by Nicholas Ormrod

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

Standard strings are slowing you down. Strings are everywhere. Changing the performance of std::string has a measurable impact on the speed of real-world C++ programs. But how can you make strings better? In this talk, we'll explore how Facebook optimizes strings, especially with our open-source std::string replacement, fbstring. We'll dive into implementation tradeoffs, especially the storage of data in the struct; examine which standard rules can and cannot be flouted, such as copy-on-write semantics; and share some of the things we've learned along the way, like how hard it is to abolish the null-terminator. War stories will be provided.

CppCon 2017 Call for Poster Submissions

The next CppCon conference is in Bellevue, Washington September 24-29.

CppCon 2017 Call for Poster Submissions

by Bob Steagall

From the announcement:

Are you doing something really cool with C++? We want you to share it with the C++ community by creating a poster and presenting it at CppCon 2017.

The poster submissions deadline is July 23, with decisions sent by August 14.  For topic ideas, submission instructions, and advice on making the best possible submission, see the CppCon 2017 Poster Submissions page.

 

Live Webinar: Developing C/C++ projects with CLion IDE and Conan C/C++ package manager--Kazakova

Learning about interesting tools!

Live Webinar: Developing C/C++ projects with CLion IDE and Conan C/C++ package manager

by Anastasia Kazakova

From the article:

This webinar will provide an introduction to developing large C/C++ projects using the package modularization and reuse offered by Conan package manager, and the power and convenience of the CLion IDE, using the CMake build system.

CppCon 2016: Bringing Clang and C++ to GPUs: An Open-Source, CUDA-Compatible GPU C++ Compiler--Lebar

Have you registered for CppCon 2017 in September? Don’t delay – Registration is open now.

While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2016 for you to enjoy. Here is today’s feature:

Bringing Clang and C++ to GPUs: An Open-Source, CUDA-Compatible GPU C++ Compiler

by Justin Lebar

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

GPU computing has gone mainstream. It is a dominant part of the performance landscape, providing the initial 10x performance lift to a wide variety of applications. However, programing for GPUs can be extremely challenging. C++ is rarely available in an unmodified form, and there are few portable and open source approaches available. One of the most popular platforms, CUDA, has no production quality open source implementation. As a consequence, its C++ support has lagged behind and it has been a less appealing area for researchers and others that weren’t comfortable relying on NVIDIA’s tooling.

However, today things are different. Clang is now a fully functional open-source GPU compiler. It provides a CUDA-compatible programming model and can compile most of the awesome CUDA libraries out there ranging from Thrust (the CUDA-enabled parallel algorithms library that gave rise to the new parallelism technical specification) to Eigen and TensorFlow.

In this talk we will give an overview of how LLVM and Clang support targeting C++ to GPUs, how they work to be compatible with existing CUDA code, and how you can build your code today to run on GPUs with this open source compiler.

Overload 139 is now available

ACCU’s Overload journal of June 2017 is out. It contains the following C++ related articles.

Overload 139 is now available

From the journal:

I am not a number
Description : When is a number not a number? Frances Buontempo counts the ways this happens. by Frances Buontempo

Allocator for (Re)Actors with Optional Kinda-Safety and Relocation
How do you deal with memory for (Re)Actors? Sergey Ignatchenko proposes an allocation scheme. by Sergey Ignatchenko

Initialization in C++ is Bonkers
Uninitialised variables can cause problems. Simon Brand reminds us how complicated it can get. by Simon Brand

Vulkan and you – Khronos’ successor to OpenGL
Various graphics APIs exist. Andy Thomason unravels the mysteries of Vulkan, the latest 3D Graphics API from Khronos, the custodians of OpenGL. by Andy Thomason

Kotlin for C++ Developers
What could a language the originated on the JVM possibly offer C or C++ devs? Hadi Hariri tells us. by Hadi Hariri

Getting Tuple Elements with a Runtime Index
Accessing a tuple with a runtime index is a challenge. Anthony Williams shows us his approach. by Anthony Williams

Afterwood
What makes programming fun? Chris Oldwood ponders what floats his boat. by Chris Oldwood

CppCon 2016: Practical Performance Practices--Jason Turner

Have you registered for CppCon 2017 in September? Don’t delay – Registration is open now.

While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2016 for you to enjoy. Here is today’s feature:

Practical Performance Practices

by Jason Turner

(watch on YouTube) (watch on Channel 9)

Summary of the talk:

In the past 6 years ChaiScript's performance has been improved by nearly 100x. This was not accomplished by adding a virtual machine or performing dynamic recompilation. Instead, these increases have been accomplished by moving to more simple, cleaner, idiomatic C++ and by following some simple rules. We will outline these concepts with examples for how they both simplified code while improving performance.