Posts

The Capitalism theory

We have many anecdotal evidences that economical capitalism creates more welfare than economical communism. However, we lack a clear model to explain what is necessary for the capitalism to work and what is only contingent - not contributing or even affecting the welfare creation. Without such model, we are left debating with ideological arguments like "private property is a natural right" or the anecdotal argument that "communism never worked well enough". The opposing side would naturally reply with some other anecdotal evidence about the shortcomings of capitalism and the possibility that "communism failed because it was not correctly implemented". I will argue here that we can actually model the way private property positively impact the creation of overall welfare. On the other hand, we can also identify cases when private property can negatively impact the overall welfare. I use "common welfare" in the common, intuitive sense: th...

Evil as striving for a local maximum

Let's observe first that we tend to attribute evil when there is a sufficient capacity of understanding the consequences of one's actions. A small child that produces a tragical accident is not considered evil usually, because there was no intent in doing that harm. We then observe that we judge evil in the contrast to another, better, possible action: "he could have decided to not kill him". We don't attribute evil when someone produces harm without having the possibility of doing something better. Moral judgement on evil is therefore a judgement of one's actions and decisions, in relation to some other actions or non-actions that would have resulted in a better world. That better is a highest "local maximum" that we can envision. The misdirected action is usually dictated by another, more narrow,  goal that is aiming at a smaller local maximum. For example, one can aim his narrow, selfish, good (local maximum) at the expense of others. T...

1. Cache and Data Consistency in Distributed systems (CAP/PACELC/CRDT)

moved to:  https://software.mihvoi.ro/2026/04/1-cache-and-data-consistency-in.html Abstract There is always a tension between data  C onsistency and system  A vailability when  P artitioning a system across datacenters (think  CAP ). Especially data cache-ing poses interesting challenges. This tension becomes way more acute as soon you have 2 data centers separated by more than 10ms latency. I present below some of the problems along with possible solutions. In the end I will present an elegant solution that maximizes  A vailability while providing the needed C onsistency level for read-after-writes flows. The solution requires the client to carry a monotonic  id  along the flow. I would postulate that any solution where the client don't carry some consistency info will provide a higher latency that the presented solution (see chapter "Flow consistency" ) . The examples below are simplified to be intuitive and easy to understand, however the...

Hell

Being burned in hell for an eternity is not the worst that can happen. Even worse than this, for me, is to be entirely washed out from Existence. Burning in hell looks pretty painful indeed, but it still contains a glimpse of hope. After eons of suffering, a redemption is still possible, potentially. Suffering from burns is still a property of Life, something that suffers must exist and must somewhat live. There is still something that exists in the burning hell... Even worse than this, for me, is to disappear, gradually, then totally, from Existence. The eternal void is more frightening that any eternal pain. The eternal void does not leave any glimpse of hope for a better future. The eternal void is no future at all. * * *

On jobs and welfare

We often hear the expression "this creates jobs". But job creation cannot be good in itself. The state could create well payed jobs for everyone for doing nothing. Even with jobs, if nobody produces food, then people would starve. What is important is welfare creation - goods and services, that is often accompanied by occupied people that have jobs. Such welfare creation should equate to a better life for the ones who consume that created welfare. There are many nuances here. In these days, only a fraction of jobs is actually involved in creating goods and services that directly affect the quality of life. There is a high portion of jobs that are involved in organizing the welfare creation and redistribution. This includes management, state administration, banks, lawyers, police and more. Without a system to control the fair exchange of goods through money, people would tend to break contracts and steal from the welfare created by others. While such "administrative...

Black Friday theory

Better reads: Data Consistency in Distributed System - CAP, PACELC Morality series - a heptalogy This blog is mainly focused on my Philosophical and theoretical ideas. From time to time I have practical posts that are too few to deserve a blog by themselves. I still hope my other work (like above) is even more valuable than such practical article as below. * * * Black Friday is a selling race over the gift budgets: the budgets that have a peak around the start of December What is the lowest possible price on "Black Friday"? Sellers will try to make this unpredictable. However, there are certain price strategies that any rational seller should apply. This can give you hints about the likelihood of obtaining a lower price on Black Friday, Cyber Monday and similar. Why having price cuts at all? Normally, any producer or seller would want to have the highest gain from the products it sales, therefore a higher price is desirable. However, selling more many pieces of a pro...

The Economy theory - goods and money

Welfare Welfare = produced  goods + redistribution curve At the basic level, welfare in society is just a matter of produced good (including services) and the redistribution curve. Money is not welfare in itself, as you cannot eat money. However, money is the system that controls the production and redistribution of goods. People with more money are entitled to consume more goods in this moment. But they can also chose to delay the consumption and have no impact in their welfare for the moment, then consume goods at a later time. Or money can lose value and can be never exchanged for the expected value. Money is motivation to produce goods Money also controls the motivation in the production of goods - like in working for salary or creating a company to get rich. Money permits to save the value of the goods that you produce now and later consume goods produces later - like when you retire. Money is used to redistribute goods to people that cannot produce goods (like unem...