std::generate in modern c++

Posted on Fri 27 January 2023 in tech • Tagged with c++, std::generate, lambda, tutorial

std::generate

Many examples of std::generate in C++ involve a static. However using a static introduces issues around thread safety and usability in modern code. Here is a simple example using std::generate with a c++14 style lambda that defines and captures a local variable.

Full tutorial on …


Continue reading

History: Atilla

Posted on Sun 22 January 2023 in history • Tagged with history, person

?433- 453 CE - Atilla was ruler of the Huns in the fifth century. Atilla is known to have been a formidable opponent in battle, and the Huns in general were said to be savage combatants. This greatly influenced the Hun dynasty and Atilla expanded his empire to become one of …


Continue reading

M1 Mac: Should you enable efficiency cores in Docker?

Posted on Fri 20 January 2023 in tech • Tagged with docker, rust, c++, go, build, apple

Should you enable your efficiency cores for use by Docker on Apple Silicon?

If you enable the efficiency cores there are 2 additional cores for the system scheduler to allocate to your workload. However, if you leave them disabled, these 2 cores will remain in reserve for use by supportive …


Continue reading

History: heresy

Posted on Sun 15 January 2023 in history • Tagged with definition, dictionary

To go against or contradict the ruling or teaching of the Catholic Church is to commit heresy. For much of the Common Era, those who committed or were accused of heresy were persecuted or killed.


History: Constantine the Great

Posted on Sun 08 January 2023 in history • Tagged with history, person

306- 337 CE - Constantine was the first Roman Emperor to adopt Christianity and to tolerate it. His famous Edict of Milan officially recognized the religion. Constantine believed that the power of the cross had brought him victory in battle against the Maxentius at the Milvian Bridge. Constantine paved the way …


Continue reading

History: Edict of Milan

Posted on Sun 01 January 2023 in history • Tagged with definition, dictionary

In 313 CE Roman Emperor Constantine, Constantine the Great , issued the Edict of Milan. The Edict of Milan caused the Roman government to formally recognize and tolerate the Christian religion.