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…

CAS (Re)Actor for Non-Blocking Multithreaded Primitives

July 23, 2018 by “No Bugs” Bunny

nano-(Re)Actors exchanging messages

Quote:

in 2017, I started to feel that the Dark Ages of mutex-based thread sync were over

Another Quote:

Another issue which almost universally rears its ugly head when speaking about not-so-trivial uses of CAS is the so-called ABA problem.

Filed under: On.System Architecture(Re)ActorsOn.ProgrammingTips and Tricks

Read more

Testing Memory Allocators: ptmalloc2 vs tcmalloc vs hoard vs jemalloc While Trying to Simulate Real-World Loads

July 4, 2018 by “No Bugs” Bunny

malloc-cpu.png

Quote:

if you DO want to get performance from changing mallocs, make sure to test them with your own app

Another Quote:

in our humble opinion, overall winner so far (by a nose) is jemalloc.

Filed under: On.ProgrammingOptimizations

Read more

The Curse of External Fragmentation: Relocate or Bust!

June 21, 2018 by “No Bugs” Bunny

freed_pages_32_and_128_per_page.png

Quote:

We won’t ever get (almost) any virtual memory back, plain and simple

Another Quote:

relocation allows not only to reduce fragmentation, but to eliminate it entirely.

Filed under: On.ProgrammingOptimizations

Read more

How to consume an HTTP API

June 11, 2018 by “No Bugs” Bunny

Consuming API

Quote:

Programs are not the self-contained, self-reliant, self-sufficient things they once were.

Another Quote:

I highly recommend you log every HTTP request you send and every HTTP response you receive.

Filed under: On.ProgrammingTips and Tricks

Read more