777 karma · joined September 23, 2014
Multiple languages: https://github.com/gunnarmorling/1brc/discussions My repo: https://github.com/buybackoff/1brc
BTW asking ChatGPT to utilize all cores did not yield anything working in reasonable time.
.NET is probably lacking good content. Yet many things from Java are directly applicable.
E.g. on benchmarking & performance, there are true gems on InfoQ by Gil Tene, Martin Thompson, et al. I would pay for that content after watching it. A problem with paid courses is that payment goes first before evaluation. Maybe both sides do not care in cases such as corporate spend on continuous education...
Benchmarking is hard. If not an art then at least a distinct skill. It goes beyond just using Bnechmark.Net. It's a good first step but far from enough. Oftentimes one need to make sure a compiler does not optimize away some benchmark paths, e.g. by using volatile field accesses. Especially if you want to avoid overheads and measure only certain things. But here it was so obvious it could be meme-tagged #YouHadOneJob.
But the thing I wanted to highlight is that the blog author is a real authority on structs vs classes at a very very low level. His series on structs performance are must read for any .NET dev who cares about performance at low level. E.g. when to use readonly structs or when to use a mutable one to avoid excessive copying. That kind of things. https://devblogs.microsoft.com/premier-developer/author/sete...
He has published two analyzers on NuGet and both are must have. One is focused on the struct usage ErrorProne.NET.Structs and, for example, highlights cases of defensive copies and could suggest when to make a struct readonly.
https://devblogs.microsoft.com/premier-developer/avoiding-st...
Good lenses are not a piece of glass (very dangerous for eyes) or just a piece of plastic, they have multiple anti-reflection and protection layers and must be very precisely done. High refractive index is also very important for a reasonable thickness at edges. So I would not go for some no-name cheap lenses. Given the math, the price of a frame becomes less important.
But even if they had, the RAM snapshot needs to be written, but without freezing the container. I would appreciate an option when I could ignore everything that was not fsyned, e.g. Postgres use case. In that case the normal ZFS snapshot should be enough.
Nothing stops one from running Docker inside LXC. For development I usually just make a dedicated priviledged LXC container with nesting enabled to avoid some known issues and painful config. LXC containers could be on a private network and a reverse proxy on the host could map to the only required ports, without thinking what ports Docker or oneself could have accidentally made public.
I imagine a situation: EN copywriter asks a RU colleague how to say "Goodbye", gets "Do svidaniya" as a transliteration without a context, and just puts it there. Which sounds like farewell.
I've just counted: only on the 13th paragraph I could get the answer.
Most problems are during some, even light such as walking, physical activity when more air is needed. Inhaling is limited by the mask, but it cannot hold a strong exhale. I imagine sitting in a subway or a train should be fine. Hope to get on a train trip in 2 weeks so I would rather postpone my second covid, that's why I'm going for those inconveniences.
The story goes that it came from chemistry, where a litmus paper is purple in a neutral liquid, so a person does not react in any way.