Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


General Programming Articles

Article Listing

Cache In A Multi-Core Environment

Published in General Programming

By Joshua Waring - In my previous article I discussed the use of cache and some practices that can provide increased performance while also teaching you what cache is...

Cache And How To Work For It

Published in General Programming

By Joshua Waring - programming and storing data in a cache-friendly manner is imperative to performance improvements and, in turn, a reduction in power consumption

Writing Efficient Endian-Independent Code in C++

Published in General Programming

By 'No Bugs' Hare - Better (simpler, faster, and more general) approaches, building on a previous GDnet article on this topic


View Complete Archive You cannot add articles


Like
6Likes
Dislike

D Exceptions and C Callbacks UNDER REVIEW

Aug 06 2013 07:30 AM | Posted By Mike "Aldacron" Parker in General Programming
D is often used in conjunction with C libraries, but there are certain potential issues to be aware of. Exception handling is one of them.

Tagged With:  d language  exception  callback  glfw 
Like
3Likes
Dislike

Getting Started with the D Programming Language

Jul 28 2013 10:53 AM | Posted By Mike "Aldacron" Parker in General Programming
A few tips about getting up and running with the D Programming Language. My way.

Tagged With:  d language  windows  derelict 3 
Like
1Likes
Dislike

MAME emulator disease: memset()

Jul 26 2013 04:09 PM | Posted By Andrey Karpov in General Programming
While analyzing the source codes of various programs I can't help creating associations that each program has a tendency to certain diseases. In many projects you can easily make out patterns of incorrect code that can be found in different project files. In some programs these are Copy-Paste errors, while in others it's "unsigned_integer < 0"-like checks. Each project has its own disease....

Tagged With:  c++  MAME  pvs-studio  Static Code Analyzer 
Like
9Likes
Dislike

Writing Endian Independent Code in C++

Jul 24 2013 11:13 PM | Posted By Promit Roy in General Programming
Endians are a confusing topic for many people. Hopefully, by reading this article you will understand both what endian means and how to write code to deal with it.

Tagged With:  c++  endian 
Like
5Likes
Dislike

Wade Not in Unknown Waters: Part Four UNDER REVIEW

Jul 24 2013 11:44 AM | Posted By Andrey Karpov in General Programming
This time we will discuss virtual inheritance in C++ and find out why one should be very careful using it.

Tagged With:  c++  cpp 
Like
4Likes
Dislike

Wade Not In Unknown Waters: Part Three UNDER REVIEW

Jul 23 2013 06:46 AM | Posted By Andrey Karpov in General Programming
Let's speak on shift operators &lt;&lt;, &gt;&gt;. The working principles of the shift operators are evident and many programmers even don't know that using them according to the C/C++ standard might cause undefined or unspecified behavior.

Tagged With:  c++  cpp  bit shift 
Like
11Likes
Dislike

Wade Not In Unknown Waters: Part Two UNDER REVIEW

Jul 22 2013 09:09 AM | Posted By Andrey Karpov in General Programming
We decided to write several small posts on how C/C++ programmers play with fire without knowing it. This time I want to speak on the 'printf' function.

Tagged With:  c++  cpp  vulnerabilities 
Like
6Likes
Dislike

Getting started with Team Foundation Service: Part 2

Jul 15 2013 09:40 PM | Posted By Oli Wilkinson in General Programming
Wraps up all the basics of using TFS for builds, tests, bug tracking, new feature requests and a practical demonstration of continuous integration

Tagged With:  tfs  visual studio  agile  continuous integration  unit testing 
Like
11Likes
Dislike

#include Little Toolkit UNDER REVIEW

Jun 25 2013 10:55 AM | Posted By Bartłomiej Filipek in General Programming
Include Guards, Pragma Once, Predeclarations and other hints that might be useful when dealing with includes.

Tagged With:  c++  c lang  includes 
Like
2Likes
Dislike

Useless Snippet #1: Transform Vec3f by Matrix4x4f UNDER REVIEW

Jun 17 2013 11:32 AM | Posted By Jim Drygiannakis in General Programming
The goal of this snippet is to multiply a batch of Vector3f’s with the same 4×4 matrix

Tagged With:  transforms  vectors  math  snippet 
Like
18Likes
Dislike

Finite State Machines and Regular Expressions

Jun 12 2013 04:30 AM | Posted By Eli Bendersky in General Programming
Explores the basics of Finite State Machines and regular expressions (regexes) then delves deep into their combined application

Tagged With:  fsm  finite state machine  regular expression  regex 
Like
27Likes
Dislike

Organizing Code Files in C and C++

Jun 07 2013 04:23 PM | Posted By Ben Sizer in General Programming
Splitting up your code files is a great way to stay organized, but can cause trouble for new programmers that may lead them away from this good practice. Learn the common problems and how to solve them

Tagged With:  c lang  c++  header file  source file  organization 
Like
18Likes
Dislike

Smart Pointers Gotchas UNDER REVIEW

Jun 04 2013 02:57 PM | Posted By Bartłomiej Filipek in General Programming
Answers for questions like - Why is auto_ptr deprecated? Why unique_ptr finally works good? How to use arrays with unique_ptr? Why create shared_ptr with make_shared? How to use arrays with shared_ptr? How to pass smart pointers to functions?

Tagged With:  pointers  smart pointers  c++  c++11 
Like
52Likes
Dislike

A Journey Through the CPU Pipeline

May 16 2013 09:09 AM | Posted By Bryan Wagstaff (frob) in General Programming
The CPU does not need to be an opaque box of mystery. Skilled programmers learn their tools, including what goes on inside the CPU. Very skilled programmers learn to optimize their code by knowing both what is inside and also how to manipulate the results.

Tagged With:  cpu  optimization 
Like
38Likes
Dislike

Multithreading

May 11 2013 06:29 AM | Posted By Vivien Oddou in General Programming
In games, performance is obviously critical, almost every device now features multi core systems; we have a tendency to naturally feel that going towards more threading is neat. I'd like to give a few insights about low level implications of threading.

Tagged With:  c++  mem-fence  thread  low-level  condition-variable  mutex  c# 
Like
13Likes
Dislike

Getting started with Team Foundation Service: Part 1

Apr 30 2013 01:40 PM | Posted By Oli Wilkinson in General Programming
This article discusses the reasons for using a source control and continuous integration system.It then shows you how to get started with Team Foundation Service - Microsoft's cloud-based service for agile planning, collaboration, source control and continuous integration.

Tagged With:  tfs  visual studio  agile  source control  continuous integration 
Like
15Likes
Dislike

Practical Cross Platform SIMD Math

Apr 26 2013 05:11 AM | Posted By AllEightUp in General Programming
Supporting multiple target SIMD dialects is a painful chore. Intel made this quite difficult by continually adding a little here and there and ending up with 8+ different variations. This article will present a solution of leveraging SIMD without too many hassles.

Tagged With:  C++  C language  SIMD  math  cross platform  C++ 11 
Like
7Likes
Dislike

Design Tradeoffs For Customized Script Interpreters

Apr 18 2013 03:35 PM | Posted By Brendan G Bohannon in General Programming
There may be a number of tradeoffs in the design of both a scripting language and the underlying interpreter. I will attempt to address a few of them here.

Tagged With:  script  VM  interpreter  language  bytecode  stack  register 
Like
31Likes
Dislike

C++: Custom memory allocation

Apr 15 2013 02:07 PM | Posted By Tiago Costa in General Programming
Being able to efficiently use the available (limited) memory is extremely important in high performance applications like computer games.

Tagged With:  c++  memory  allocation 
Like
13Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 4)

Apr 10 2013 04:10 AM | Posted By AllEightUp in General Programming
It is time to finish fleshing out the build environment and discussing some of the more advanced features of CMake. This article goes through the options system in more detail and shows how to add a cross compilation target for iOS. Many of the prior article details are put into use in the process and the resulting environment is not a bad starting point for further work.

Tagged With:  cross platform  makefile  c++  c++11  make  cmake 
Like
16Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 3)

Apr 08 2013 03:40 AM | Posted By AllEightUp in General Programming
In Part 3, it is time to finish off the basic build environment by adding the last target type, shared libraries. Unfortunately this portion involves Windows specifics and takes a while to make fully cross platform. When everything is functional it will be time to add the unit testing framework. The remainder of the article will cover how to setup the unit tests with CMake and various methods...

Tagged With:  make  cmake  makefile  cross platform  c++  c++11 
Like
13Likes
Dislike

Data Structures for Pre-College Programmers: Non-linear Data Structures

Apr 07 2013 07:23 PM | Posted By frob in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers the the non-linear data structures. These include data dictionaries, ordered sets, and unordered sets.

Tagged With:  beginner  data  data structure  dictionary  hash  set  unordered set  ordered set 
Like
12Likes
Dislike

Data Structures for Pre-College Programmers: Stacks and Queues

Apr 01 2013 03:51 PM | Posted By frob in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers stacks and queues.

Tagged With:  beginner  stack  queue  data structure  data 
Like
17Likes
Dislike

Data Structures for Pre-College Programmers: Trees and Heaps

Mar 31 2013 01:51 PM | Posted By Bryan Wagstaff (frob) in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers trees and heaps.

Tagged With:  beginner  data  data structure  trees  heaps 
Like
19Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 2)

Mar 31 2013 10:37 AM | Posted By AllEightUp in General Programming
In the first part of this series, a first use of CMake was presented and a very simple project outline was built. At the end of the article a build break was intentionally introduced in order to show how quickly a simple fix could be put in. This article continues from that point and begins the process of correcting the broken build in a better manner while introducing more CMake syntax and u...

Tagged With:  cmake  make  cross platform  makefile  c++  c++11 
PARTNERS