76 karma · joined May 20, 2020 (6y ago) · 19 submissions
comment 1y ago · link · parent
I have open sourced it and shared it on a few places and got zero traction. Ok, I thought, I can talk about it here and there, so it would get more visibility. People don't like it much since I'm promoting my own tool. I posted a blog post about some technique on tool's website and people seemed to like it on Reddit. A few people wrote comments like "interesting" or "amazing" and I was happy for the first time. Then someone wrote that you should not make your friends/alt-accounts comment on your posts, it's cringe and that happiness went away.
I've been a lurker on social media nearly whole my life. Putting myself out there feels like an unpleasant experience. I'm still deciding whether to continue or just go back to lurking and keep my tool to myself.
2.
Mounting Large Files to Containers Efficiently(anemos.sh ↗)
3 points · by notanaverageman · 1y ago · discuss
comment 1y ago · link · parent
The tool is written in Go and exposes a JavaScript interface (like k6) to generate manifests using both template-based and object oriented approaches. It is similar to cdk8s, but is more flexible, doesn't require a dev environment, and allows sharing packages. The apply mechanism will be like kapp, but using kubectl's apply sets.
It already has the features to generate manifests to be used in GitOps. With this addition and the next one, which will be waiting for generated resources, it will become a fully featured package manager.
comment 1y ago · link · parent
You can read a comparison with Helm here: https://www.ohayocorp.com/anemos/docs/comparison/helm
P.S. I am the author of the tool.
5.
Show HN: Anemos – Open source Kubernetes manifest manager, alternative to Helm(github.com ↗)
1 points · by notanaverageman · 1y ago · 2 comments
comment 1y ago · link · parent
And yes I know that Grafana has a fork called Sobek that has ESM support, but it is tailored for k6 and they don't have plans for making it easier to use. [2]
comment 2y ago · link · parent
For a time I tried to write Go like it is C# and got frustrated a lot. After accepting that they are fundamentally different languages it became much easier.
comment 3y ago · link · parent
Showing a persistent notification that “the battery has degraded and should be replaced” can increase the average lifespan of a smart phone significantly. These people don’t really care about shiny new apps or security patches. They just call people and send messages on WhatsApp. And maybe do some browsing on Facebook.
On iPhones, if the battery is degraded at least it drains up quickly and this hints that there is a problem with the battery. However, on most Android phones even 4-5 years old batteries last at least a day and they do so by reducing the CPU clock speed significantly. I know that Apple got fined for doing this in the past, but I haven’t heard any Android brand got fined for the same thing.
As anecdata, I have replaced the battery of my iPhone 6S at least three times and I will probably replace it again in a few months. And the phone is still very much usable.
comment 3y ago · link · parent
10.
Your Idea Is Brilliant, Your Idea Is Worthless(stonemaiergames.com ↗)
2 points · by notanaverageman · 3y ago · discuss
11.
Continuous cuffless blood pressure monitoring via graphene bioimpedance tattoos(nature.com ↗)
2 points · by notanaverageman · 4y ago · discuss
comment 4y ago · link · parent
Turkish people would not accept building the bridge and the roads there even if it was cheaper.
comment 5y ago · link · parent
comment 5y ago · link · parent
set DOTNET_ReadyToRun=0
set DOTNET_TieredPGO=1
set DOTNET_TC_QuickJitForLoops=1
Here are my own benchmarks from a CPU intensive application without any IO and already optimized for allocations. Application runs a task graph either serially or in parallel. .NET 5
--------------------------
| Method | Mean |
|------------ |---------:|
| RunParallel | 473.4 us |
| Run | 513.5 us |
.NET 6
--------------------------
| Method | Mean |
|------------ |---------:|
| RunParallel | 452.5 us |
| Run | 499.8 us |
.NET 6 PGO
--------------------------
| Method | Mean |
|------------ |---------:|
| RunParallel | 381.8 us |
| Run | 412.2 us |
.NET 5 - .NET 6 -> ~5%
.NET 5 - .NET 6 PGO -> ~20%
Here is what I learned from micro-optimizing a .NET application:- Use BenchmarkDotNet[0] for general measurements and Visual Studio profiler tools for detailed inspection. They help a lot.
- Memory allocations matter. Using capturing lambdas, LINQ, even foreach on interfaces introduce allocations and slows down the application. You can use ClrHeapAllocationAnalyzer[1] to find these hidden allocations.
- Using abstractions with interfaces and casting back to concrete types cause some overhead, though PGO will probably eliminate most of these.
- Use LINQ cautiously as its variants are mostly slower than explicit coding. E.g. .Any() vs .Count == 0
- Checking Logger.IsEnabled() before calling Logger.Debug() etc. helps a lot. You can even automate this with Fody [2], but it breaks Edit&Continue and possibly .NET Hot Reload too, so it may hinder your productivity.
[0] https://github.com/dotnet/BenchmarkDotNet
[1] https://github.com/microsoft/RoslynClrHeapAllocationAnalyzer
comment 6y ago · link · parent
From Billy Joel:
We didn't start the fire
It was always burning
Since the world's been turning
We didn't start the fire
But when we are gone
It will still burn on and on and on and on