HNHacker News
TopNewBestAskShowJobs

buybackoff

777 karma · joined September 23, 2014

submissionscomments
buybackoff··on dnSpyEx: .NET debugger and assembly editor
Used dnSpy once to debug runtime IL-emited code as if it was C#. It managed to step into a generated emitted method, decompile it on the fly and set breakpoints on the decompiled C# code for subsequent hits. That was a mind-blowing at the time, nothing else was close and I'm not sure any other tool or IDE supports this even now. Though didn't have a need for that since.
buybackoff··on JetBrains Rider is now free for non-commercial use
If they want to grab market share they should include dotMemory to the free offer. Basically dotUltimate without ReSharper. Otherwise free Rider users will need to install free Visual Studio for enhanced profiling.
buybackoff··on Show HN: Lisp in C#
For small short-lived scripts the compilation (in any native form) time may be much bigger than bytecode execution time. And if a platform does not support dynamic code generation the end result is non-functional code or interpreter inside interpreter for LINQ expressions (as they can still run as interpreted, at least they try). See a comment in Jint readme about that.

I tried to compare some script languages implemented in C# with Roslyn script compilation. Same code to sum up 1M doubles. Roslyn takes almost 100ms to compile the code.

This may become especially painful when source code changes on every execution and reusing compilation result is not possible for some reason, e.g. user input or parametrized string template.

buybackoff··on Effectiveness of an walking intervention for the prevention of low back pain
My explanation/understanding is that fast walking with larger strides creates rotational movement around the spine axis and that stimulates the tissue. With slow walking, one could do that with no body rotation and only the legs move.
buybackoff··on Effectiveness of an walking intervention for the prevention of low back pain
I had disc herniation and my mother, who is a retired doctor, said to just do a lot of fast walking. This is the only activity I could do anyways after running marathons just months before. So 10 to 21.1 km walks helped a lot.

I also did some own research. The disks tissue has no blood vessels and the only way to get nutrients is via diffusion, so any activity is essential to accelerate the diffusion and recovery. Walking puts gentle axial load on the spine and knees and is simple and more accessible than e.g. swimming, which is probably even more gentle but hard to do daily for an hour.

buybackoff··on World's Smallest CSV Parser (C#)
There are the specs and the real world. The specs are more often than not on the opposite side of the moon, you never see that in real life. Oh, so many hours of my life were wasted on that. Real-world CSVs are as loosely specified as any free text in a notepad.
buybackoff··on Show HN: Matrix Multiplication with Half the Multiplications
This is what HN is about :)

I understood a fraction but instantly wanted to dive into the topic just after reading such a knowledgeable comment.

buybackoff··on Home Lab Beginners guide
It's a mobile CPU (with H). Unless it's fanless it will sound like a rocket lunch. Or it will be thermal-throttled with any sustained load. And it looks too expensive.
buybackoff··on Home Lab Beginners guide
Thermals are perfect with these Dell SFF things. I tested it couple of times. Not 24/7 at 100%, but e.g. for 5 mins at 100% before vacuuming the outsides and after. NUCs are much more sensitive to dust. I have to *push* air through my NUC like every half a year (not just vacuum pull). But Dells are fine.

Just do not put CPUs with >65W there. Or hungry PCI things.

buybackoff··on Home Lab Beginners guide
The cheapest from Amazon works well. Just make sure it matches PCI Gen and slot overall for throughput, e.g. PCI 3.0 x4 are fine for NVMe 3.0, but for NVMe 4.0 more is needed.
buybackoff··on Home Lab Beginners guide
Please, do not use Raspberry Pi for a homelab unless you are 100% sure your workload is OK with it. I've just sold mine after ~2 years it being in a box in a closet. It's just to weak, too useless. I value my power socket slot more that RPi. If ARM is important, especially Mac Mx, the lowest Mac Mini is not that expensive. RPi is close to zero in performance. It could be just some unnoticeable VM in Proxmox/AnotherHypervisor performance-wise.
buybackoff··on Home Lab Beginners guide
GPUs are bad with power. My RTX 3060 still consumes around 20W doing nothing, no display or real load whatsoever. More than the rest combined when idle. I wanted to sell the entire box, but made that machine on-demand (it's mostly off). It's also noisy for it's relatively powerful overall. Yes, NUCs are great for 24/7 and light/spiky loads.
buybackoff··on Home Lab Beginners guide
If you buy non-mini machine with UDIMM, not SO-DIMM, some generic ECC DDR4 is very cheap, e.g. Kingston Server. Works well with Dell Precision Tower.
buybackoff··on Home Lab Beginners guide
I think people mix "homelab" and "homeprod". Here there are some other comments mentioning homeprod. To me what you describe sounds more like a homeprod setup. But I like the "lab" part. When one could just relax and experiment with lots of stuff.

I do have an ECC instance for data, to be backed up to a remote S3. I could torch it. It still remains a lab. I could just buy a new hardware and restore. But it's only about the valuable data (isolated to a couple of containers), not "restore of my entire setup".

buybackoff··on Home Lab Beginners guide
NUCs may be expensive, until you see a 40% discount on Amazon :) I've got mine this way. Now they are discontinued so one may expect to get them cheap on eBay. Anyway, I'm talking about the box itself and MB/CPU only. Vendors/people often sell a good box with bad RAM/disks at a very low price.
buybackoff··on Home Lab Beginners guide
Power draw also comes with terrible noise. They were designed to be in a server room, not a living/bed room.
buybackoff··on Home Lab Beginners guide
Maybe in the Server version. I haven't seen anything useful in Windows Pro. I could not setup SR-IOV even with Powershell after wasting a lot of time on searching for help.
buybackoff··on Home Lab Beginners guide
You could use this built-in OEM license from a Windows VM in Proxmox. Just search for that on Proxmox forum.

Hyper-V is very limited in hardware support, you won't be able to pass-through stuff. And you always pay for VM layer, while in Proxmox you could use containers which give almost the host performance.

buybackoff··on Home Lab Beginners guide
It's easier to turn an OptiPlex into NAS. Actually you could pass-through entire SATA stack as a PCI device into TruNAS running in Proxmox VM so it sees SATA ports natively, with all goodies such as SMART.
buybackoff··on Home Lab Beginners guide
For my homelab, I bought OptiPlex 7000 with 3 NVMe slots (one PCIe 4.0, one 3.0, one 3.0 short 2242), 1 PCI x16, 1 PCI x4, 3 SATA and 3 DisplayPorts for 300 EUR near 2 years ago.

It was so good actually that I've made it my main PC. I already had 3 monitors and this SFF just worked fine with them. No games of course.

I also have Precision Tower with Xeon/64GB ECC RAM and 1 native NVMe slot. I use PCI-to-NVMe adapters there (2 slots), it works well with ZFS mirror.

buybackoff··on Home Lab Beginners guide
The article is good, but it is intimidating buy its size and scope. A homelab could be a single NUC on a desk. I have one with 64GB RAM and it could fit so so many things. NUCs are very efficient to run 24/7, but become noisy with sustained CPU load. For that one could grow the setup with OptiPlex or Precision Tower (can haz ECC) SFF from eBay. These Dell SFFs are very good, quite small yet proper desktops/servers with proper quiet fans, could fit 10G Mellanox 3 cards (also from eBay for $40), and you could stack one on top of another horizontally. Don't go older than OptiPlexes with 12th gen CPUs, electricity and space they take could become a constraint. The used ones with i5-12500 are already very cheap. With LGA1700 one could put i9-14900 (non-K) there if needed.
buybackoff··on Gemini can't show me the fastest way to copy memory in C# because it's unethical
In ChatGPT, I have a config that says to never use the first person, speak as if reading an encyclopedia or a tutorial. I do not want to anthropomorphize some software. It is neither he or she, it is "it", a compressed internet with a language engine that sounds nice. AGI is a nice thing to dream about, but that is not it.
buybackoff··on Gemini can't show me the fastest way to copy memory in C# because it's unethical
I could reproduce when explicitly asked to use unsafe, but then after this it apologized and gave me an OK answer: "I do not give a [care] about your opinion. I ask questions, you answer. Try again."
buybackoff··on One Billion Row Challenge Shows Java Can Process 1B Rows File in 2 Seconds
I maintain cross-language results. There will be a huge update soon, including AWS metal instances running on many combinations of cores/HT-threads.

What you mention from Rust is this: https://github.com/RagnarGrootKoerkamp/1brc/ The author says himself that his solution is not compliant in the readme.

So far the top place is not clear. .NET with noahfalk, C/C++ from lehuyduc, dzaima and austindonisan require more tests. The last looks the fastest so far on the default dataset, but has issues.

Here is my blog post with details: https://hotforknowledge.com/2024/01/13/1brc-in-dotnet-among-...

buybackoff··on 1BRC in .NET among fastest on Linux: My Optimization Journey
I'm not actually present in Reddit and outside my Tweeter feed. It would be very helpful if you do that, thank you!
buybackoff··on 1BRC in .NET among fastest on Linux: My Optimization Journey
It's on Twitter with all the tags at the same username as here.
buybackoff··on 1BRC in .NET among fastest on Linux: My Optimization Journey
My journey implementing one of the fastest 1BRC solution in .NET and the history of performance optimization.
buybackoff··on The One Billion Row Challenge – .NET Edition
The sibling comments said it sooner and better
buybackoff··on The One Billion Row Challenge – .NET Edition
I'm the author of the fastest .NET version. Ask me anything about the implementation. The code is very short and simple.
buybackoff··on The One Billion Row Challenge – .NET Edition
Author there. Nothing really matters other than `ProcessChunk`. Don't you think I kind of know what I'm doing with these numbers!?
← PreviousPage 3 of 7Next →