7 Ways to Get Better at C++ During this Summer

June 25, 2017 in C++ by Adrian Marius

Summer Is Coming.

With it comes the sea, the sun, the beach, or the mountain or perhaps your family house. But there is also a great thing that comes with summer: more time. Maybe you’re taking some time off, or maybe this is just because work is less intensive during this period. In all cases, summer is a limited period where time is less scarce than during the rest of the year.

You have two options: 1) Spend all of it chilling out. And it’s ok to have a good time. 2) Or, you could invest a part of it into levelling up your skills, in C++ in particular, and start next year with a boost (pun very much intended).

If you feel that option 1) is better for you just then shut down that phone or laptop and get some real rest! But if you’re up for option 2) then this post is made for you.

Better C++ summer

Here are 7 ideas that will let you leverage on your summertime to get a real push in C++. And after that I give you a couple of tips to help you actually achieve the goals that you choose.

How to Create a Custom Physics Engine

June 20, 2017 in C++, Tutorial by Adrian Marius

There are many reasons you might want to create a custom physics engine: first, learning and honing your skills in mathematics, physics and programming are great reasons to attempt such a project; second, a custom physics engine can tackle any sort of technical effect the creator has the skill to create. In this series, Randy Gaul provides a solid introduction on how to create a custom physics engine entirely from scratch.




by admin

Qt Speech (Text to Speech) is here

January 25, 2017 in C++, News, Programming, Programming Languages, Qt by admin

via Qt blog:

“I’m happy that with Qt 5.8.0 we’ll have Qt Speech added as a new tech preview module. It took a while to get it in shape since the poor thing sometimes did not get the attention it deserved. We had trouble with some Android builds before that backend received proper care. Luckily there’s always the great Qt community to help out.

What’s in the package? Text to speech, that’s about it. The module is rather small, it abstracts away different platform backends to let you (or rather your apps) say smart things. In the screen shot you see that speech dispatcher on Linux does not care much about gender, that’s platform dependent and we do our best to give you access to the different voices and information about them.”

For more details, follow this link.

C++11 multithreading tutorial

January 23, 2017 in C++, Tutorial by Adrian Marius

The code for this tutorial is on GitHub: https://github.com/sol-prog/threads.

In  previous tutorials I’ve presented some of the newest C++11 additions to the language: regular expressions, raw strings and lambdas.

Perhaps one of the biggest change to the language is the addition of multithreading support. Before C++11, it was possible to target multicore computers using OS facilities (pthreads on Unix like systems) or libraries like OpenMP and MPI.

This tutorial is meant to get you started with C++11 threads and not to be an exhaustive reference of the standard.



by admin

Low-level plugins in Unity WebGL

January 20, 2017 in C++, Game Engines, OpenCL, Tips & Tricks, Tutorial, Unity by admin

Last year the guys at Unity launched on their blog a series of technical articles on WebGL. They are now back with a new article, showing how to reuse existing C / C++ such as graphic effect written in OpenGL ES code in a webpage, using Unity WebGL.

For the article, follow this link.

by admin

Live debugging ESP8266 with open-source tools

December 28, 2016 in C, C++, DIY, ESP8266, Microcontroller, Tips & Tricks by admin

The ESP8266 is a low-cost Wi-Fi chip with full TCP/IP stack and MCU (Micro Controller Unit) capability produced by Shanghai-based Chinese manufacturer, Espressif Systems.

Since 2014, when first came in the attention of the western makers, the documentation became quite available, together with couple of SDKs and firmwares for various programming langauges like Lua, together with the low price, made reasonable easy to develop applications hosted on this tiny chip. Some of this little chip’s features:

  • 32-bit RISC CPU: Tensilica Xtensa LX106 running at 80 MHz (can be overclocked)
  • 64 KiB of instruction RAM, 96 KiB of data RAM
  • External QSPI flash – 512 KiB to 4 MiB (up to 16 MiB is supported)
  • IEEE 802.11 b/g/n Wi-Fi
  • Integrated TR switch, balun, LNA, power amplifier and matching network
  • WEP or WPA/WPA2 authentication, or open networks
  • 16 GPIO pins
  • SPI, I²C,
  • I²S interfaces with DMA (sharing pins with GPIO)
  • UART on dedicated pins, plus a transmit-only UART can be enabled on GPIO2
  • 1 10-bit ADC

Although developing software to be hosted on it isn’t such a big challenge like it used to be due to the plenty of information available on the internet, debugging the code running on the MCU is a different story. Luckily, at the Attachix blog there is a series of articles about writing software for this MCU, and in the 4th article the owner was nice enough to describe how to set up step-by-step debugging of the code either by command line or even from Eclipse IDE. Please follow this link for the entire article.

Unreal Engine C++ Tutorial – Episode 1: Classes

October 5, 2016 in C++, Uncategorized, Unreal Engine by Adrian Marius

unreal-logo-smallRemaking the basics series for the newest version of the unreal engine, since some of the code is now outdated/deprecated.


Survival Sample Game in C++ for Unreal Engine 4.12

June 10, 2016 in C++, Game Engines, Programming, Programming Languages, Unreal Engine by Adrian Marius

unreal-logo-smallSurvival Sample Game in C++ for Unreal Engine 4 is now updated for Version 4.12.

Code can be downloaded from github page.

by admin

Step by step debugging firmware on the Aliexpress / EBay STM32 boards

May 9, 2016 in ARM, C, C++, Hardware, Linux, Microcontroller, Programming, STM32, Tips & Tricks, Tutorial by admin

arm_cortex_logoIn some previous topics (here and here) I wrote about some cheap development boards which can be acquired from EBay or Aliexpress. Since System Workbench for STM32 is freely available for a while now, let’s see how can we use it to generate a project, compile it, upload it to a board and debugging it step by step. We’ll use for this the board I got from EBay, but it works the same with the any STM32 other board I have and also with some self-made ones.

For being able to install firmware on the board and debug it, first we need to have a hardware part which will sit between the computer and the board. There are various models and versions of these jtag debugers and they can be ordered online or found pretty cheap on ebay (clones). Another way to get hold of one of these is to have a development board which comes equiped with JTAG adapters, like the STM32 discovery series of boards. Some of these JTAG debuggers allow even breaking apart the JTAG debugger from the development board itself (LPCXpresso series, the nucleo boards).
Regardless of which JTAG interface is used, it should be one which is known to work with OpenOCD, as we’ll use OpenOCD for debugging. In our case we’ll use the stm32f4 discovery board’s stlink2 side. However, Before using it as a JTAG debugger, we need to disconnect the STLink part from the discovery board, by removing two jumpers. Once that is done, the STLink itself won’t be connected to the discovery board and it’s SWD header can be connected to any other board. Read the rest of this entry →

Multithreading in C++11/14

February 3, 2016 in C++ by Adrian Marius

Here is a series of Multithreading articles in C++11/14



Skip to toolbar