Every Linux distro seems to include a default compiler that is horribly out of date. Many times this is because academics on standards committees don’t have a clue about the real world. In particular how academics decided without seeking real industry input to force C/C++ compilers to store all integers as 2’s complement. Obviously they’ve never done device interface programming or worked on a Unisys mainframe. Yes, I’ve written about academics and their butchering of … Changing Default Compiler on OpenSuSERead more
C++
RedDiamond 3.6.4 Released
A new release of RedDiamond, version 3.6.4, has been released. You can find AppImage, RPM, and Debian packages here. For those of you unfamiliar with this OpenSource project, it really started off as part of the How Far We’ve Come series. These dovetailed into the CopperSpice Experiments series. Having come up on real operating systems with editors like EDT, I have always been annoyed at how futile most PC based programming editors are. They pack … RedDiamond 3.6.4 ReleasedRead more
C++ — Never Do’s
No, Never Do isn’t a new loop type though it can be what happens when you ASS-U-ME a default value for a loop variable. These are some things you should never do in your code. I’ve spent nearly 40 years in IT now. For the past decade I’ve been working in the medical device realm. Prior to that I wrote great big boring systems for great big companies. This be what you don’t do in … C++ — Never Do’sRead more
C++ – Defaults and Deletes – Pt. 3
In this installment for Defaults and Deletes we finish the code for the example program. So far, among the things you have learned is that the default deconstructor does basically nothing. Near Heap allocations are reclaimed automatically when you return from a method/function. For Far Heap objects all it does is free the allocation. It will not free any sub allocations. You have already been shown the code for the ImplicitClass so we will not … C++ – Defaults and Deletes – Pt. 3Read more
C++ – Defaults and Deletes – Pt. 2
Before we go much further with this discussion on Defaults and Deletes, I need you to read the section titled Near Heap in this blog post. It’s a short read with pictures. Then you need to go thank the fools . . . err . . . “learned academics”, cough cough, who re-purposed the word heap to be a binary tree data structure. To understand why things are the way they are, I need you … C++ – Defaults and Deletes – Pt. 2Read more