On.Programming

For most of us, programming (or more generally – software development) is all the life is about.

IT Hares are not different. And they have more than just quite a few bits to share about programming…

App-level Developer on std::error Exceptions Proposal for C++. Part I. The Good

May 23, 2018 by “No Bugs” Bunny

BB_emotionM_0012b.png

Quote:

No single error handling method is good enough for ALL the projects – which in turn leads to segmentation, with some of the projects using exceptions, and some others using error codes

Another Quote:

Right above I said that I like the std::error exception proposal a.k.a.[P0709R0]. However, as soon as I look at competing proposals, I begin to love it.

Filed under: On.ProgrammingProgramming Languages

Tagged With: C/C++
Read more

C++: On Using int*_t as Overload and Template Parameters

May 14, 2018 by “No Bugs” Bunny

Quote:

We decide which set of types we’re using (fundamental or int*_t), and use it consistently

Another Quote:

The only thing we’re doing here, is changing the name of the type, NOT its behavior

Filed under: On.ProgrammingTips and TricksProgramming Languages

Tagged With: C/C++
Read more

‘Speedy Gonzales’ Serializing (Re)Actors via Allocators

May 1, 2018 by “No Bugs” Bunny

Serializing Allocators

Quote:

Allocator-based serialization for (Re)Actors is extremely fast (for x64 – around tens of ms per 100MB of state)

Another Quote:

Per-(Re)Actor allocators can be implemented without any changes within (Re)Actor itself (i.e. all the necessary changes can be confined to Infrastructure Code).

Filed under: On.ProgrammingProgramming LanguagesOptimizations

Read more

Parallel STL for Newbies: Reduce and Independent Modifications

April 26, 2018 by “No Bugs” Bunny

Parallel Programming: Good Way and Bad Way

Quote:

with std::reduce() such code, while it compiles at least under MSVC, MAY occasionally provide wrong results

Another Quote:

if you happen to need something beyond that – take a deep breath and allocate at least several months to understand how does parallelism really work under the hood.

Filed under: On.ProgrammingTips and TricksOptimizations

Read more