Quantcast
Channel: Dr. Dobb's C/C++ Articles
Browsing all 123 articles
Browse latest View live

Microsoft Visual Studio 2012 Reviewed

The new IDE from Microsoft is a must-have tool for Windows 8 development. For developers working on current platforms, it has many attractive new features — but you'll have to abide its peculiar UI

View Article


Padding and Rearranging Structure Members

Exploring memory alignment and the use of padding in structures in C/C++

View Article


Handling Errors in iOS and OS X with Cocoa

Cocoa provides two classes for smooth handling of errors: NSError and NSResponder, which allow programs to dispatch an error object and respond to it from key points in the application. Only by knowing...

View Article

Component Programming in D

Composability or the ability to write highly reusable software using a data source → algorithm → data sink model is a feature that depends heavily on language support. New facilities in D now make this...

View Article

Parallel In-Place Merge

Merging sorted arrays in parallel and in place can be done very efficiently, using this algorithm. Comparisons with the performance of similar STL functions are included.

View Article


Discriminated Unions

Unions that depend on a separate field to determine access to members can be useful in some applications — but they require careful use.

View Article

Developer's Reading List

New books on C++11, parallel programming, CoffeeScript, requirements, and more.

View Article

Creating and Using Libraries with OpenACC

How to write reusable methods (libraries, subroutines, and functions) that can transparently call optimized CPU and GPU libraries using OpenACC pragmas.

View Article


Malicious Work with the modify-function-return-value Hack

The modify-function-return-value hack is particularly dangerous because it can be used to intercept function calls in code, user libraries, and in runtime libraries. Knowing how it operates is...

View Article


Storage Layout of Polymorphic Objects

Adding at least one virtual function to a class alters the storage layout for all objects of that class type.

View Article

Introduction to CUDA C/C++

Nvidia's Mark Ebersole introduces core concepts of heterogeneous computing concepts with CUDA C/C++ in this 30 minute tutorial.

View Article

Writing Your First Windows 8 App: The Lay of the Land

A lot of the basic features of Windows apps have changed with the release of Win 8. Here is a step-by-step explanation of what's new and how to get started writing Win8-compliant apps.

View Article

The Scourge of Error Handling

Return values and exceptions are both inadequate tools for handling errors. But we're stuck with them for the foreseeable future — just as we have been for decades.

View Article


Heterogeneous Programming

AMD's Ben Sander shares details about the heterogeneous system architecture (HSA) and how it will change the way people program in the future.

View Article

Customizing the Appearance of Windows 8 Apps

Appearance is managed by images and XML files spread throughout the app. Here's how to figure where each asset goes and how to marshal them together to give Win8 apps a finished look

View Article


Introduction to OpenCL [video]

Ben Gaster from AMD Research talks about the design and use of the language OpenCL, which has been embraced by Apple, Intel, and Nvidia among other companies, to accelerate programs.

View Article

Access Data with REST in Windows 8 Apps

Develop and consume a REST service that provides data to a Windows Store app that uses the Grid app — using C# and XAML.

View Article


CUDA vs. Phi: Phi Programming for CUDA Developers

Both CUDA and Phi coprocessors provide high degrees of parallelism that can deliver excellent application performance. For the most part, CUDA programmers with existing application code have already...

View Article

Initializing Derived Polymorphic Objects

Each class in a hierarchy of polymorphic objects should have a function that initializes its vptr properly.

View Article

Developer Reading List

New books on C, C#, Node, Win8 Apps, Perl and Groovy.

View Article
Browsing all 123 articles
Browse latest View live