Readit News logoReadit News
rag-hav commented on Who needs Graphviz when you can build it yourself?   spidermonkey.dev/blog/202... · Posted by u/pdubroy
JohnKemeny · 2 months ago
I added one statement and it only says `timed out`. I'll stick with Graphviz, which certainly doesn't time out.
rag-hav · 2 months ago
Hackernews hug of death maybe
rag-hav commented on Games Look Bad: HDR and Tone Mapping (2017)   ventspace.wordpress.com/2... · Posted by u/uncircle
craxmerax · 5 months ago
When HDR is implemented properly, and you have a proper HDR display, it's such a transformative experience! Most games, however, don't have good HDR implementations. And for whatever reason HDR on Windows is still awful in 2025.
rag-hav · 5 months ago
Any examples of good HDR in games?
rag-hav commented on Indian crypto exchange coindcx drained of $44M in security breach   coindesk.com/web3/2025/07... · Posted by u/rag-hav
paulpauper · 5 months ago
What ever happens to the coins in these thefts? Some of it goes to North Korea, but what about others?
rag-hav · 5 months ago
Maybe they are used in dark market activities?
rag-hav commented on Tracking developer build times to decide if the M3 MacBook is worth upgrading   incident.io/blog/festive-... · Posted by u/paprikati
nox101 · 2 years ago
I didn't see any analysis of network building as an alternative to M3s. For my project, ~40 million lines, past a certain minimum threshold, it doesn't matter how fast my machine is, it can't compete with the network build our infra-team makes.

So sure, an M3 might make my build 30% faster than my M1 build, but the network build is 15x faster. Is it possible instead of giving the developers M3s they should have invested in some kind of network build?

rag-hav · 2 years ago
What do you mean by network build?
rag-hav commented on Ask HN: Share your favorite software blog posts of 2023    · Posted by u/devta
HomeDeLaPot · 2 years ago
Ow. There's a paywall halfway through. Don't do what I did and get interested in the story if you aren't up to subscribing.
rag-hav · 2 years ago
Maybe the reason for CoW being triggered is reference counting. Does anyone know?
rag-hav commented on Make your database tables smaller   jezenthomas.com/make-your... · Posted by u/yakshaving_jgt
laurencerowe · 3 years ago
With the proviso that this all depends on the shape of your data, I think a single JSON document field us usually the right choice for anything that smells of content management. Relational database schemas become very complex very quickly when you strive for full normalization and that complexity is simply not worth worrying about until you have more data than RAM in a machine.
rag-hav · 3 years ago
I don't have any experience with this. But isn't content management exactly the type of use-case in which the total data will be more than the RAM.
rag-hav commented on What’s in a PR statement: LastPass breach explained   palant.info/2022/12/26/wh... · Posted by u/saikatsg
johndhi · 3 years ago
The know it all tone of this article is kind of annoying. Security professionals seem to have a common trait of thinking they know better.

Some good points in there, but limited pragmatism.

rag-hav · 3 years ago
Given author's apparent history with LastPass, the tone comes across more as "told you so" to me.
rag-hav commented on I tried starting a manufacturing unit in India (2020)   superr.in/economy/i-tried... · Posted by u/godelmachine
rohan_shah · 3 years ago
Hey! I'm the author and here's the clarification:

That was the official response I got from the district administration so had to post it. Also was being pressured by the government (indirectly) to take it down. So that was all bs. Next update I'll give is when I will have solved the problem.

rag-hav · 3 years ago
> Also was being pressured by the government (indirectly) to take it down

Why am I not surprised.

rag-hav commented on Ask HN: What are some cool but obscure data structures you know about?    · Posted by u/Uptrenda
jtolmar · 3 years ago
The union-find data structure / algorithm is useful and a lot of fun.

The goal is a data structure where you can perform operations like "a and b are in the same set", "b and c are in the same set" and then get answers to questions like "are a and c in the same set?" (yes, in this example.)

The implementation starts out pretty obvious - a tree where every element either points at itself or some thing it was merged with. To check if two elements are in the same set, check if they have the same parent. Without analyzing it, it sounds like you'll average findRoot() performance of O(log(n)), worst-case O(n).

There are a couple of simple optimizations you can do to this structure, the type of things that seem like they shouldn't end up affecting asymptotic runtime all that much. The first is that, whenever you find a root, you can re-parent all the nodes you visited on the way to that root, so they'll all be quicker to look up next time. The other is that you keep track of the size of sets, and always make the larger set be the parent of the smaller.

And neither of those actually do anything impressive alone, but if you use both, the algorithm suddenly becomes incredibly fast, with the slowest-growing (non-constant) complexity I've ever heard of: O(the inverse of the Ackermann function(n)). Or, for any reasonable N, O(4 or less).

rag-hav · 3 years ago
I wrote a beginner's guide on this topic a while ago https://medium.com/nybles/efficient-operations-on-disjoint-s...

u/rag-hav

KarmaCake day25June 18, 2022View Original