Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 5y ago · link · parent

The usual C# reflection APIs that devs turn to allocate a lot, but there are ways to make them almost performant by (re)using delegates and expressions. There are a number of good libraries to use reflection faster, as well.

comment 5y ago · link · parent

It’s a static, non-interactive web page. Give it a rest.

comment 5y ago · link · parent

In the USA, Starlink requires registration against a particular set of satellites visible to a fixed/bounded area - you can’t just take the modem and satellite with you and move to another location (and especially not use them while moving continuously). Is that not the case in Australia?

comment 5y ago · link · parent

Kind of off-topic, but I really don’t like the use of “handwritten” fonts (as popularized by XKCD where it does work) for technical drawings. It’s hard to read without zooming in (especially on mobile) and it takes longer to grok for things that your brain can’t just deduce (eg technical terms, model numbers, random devices, etc) the way it can with natural text.

2795.

Locality Sensitive Hashing Explained(randorithms.com ↗)

3 points · by ComputerGuru · 5y ago · discuss

comment 5y ago · link · parent

“Concatenate the key with each server” -> use (key + unique id) as the key, giving a deterministically unique result.

“Use the server id as the hash seed” -> apart from the encryption, seed the result by first hashing the unique id then updating with the actual content before finalizing the hash, depending on the hash algorithm in question akin to keyed_hash(unique_id, actual_payload)

comment 5y ago · link · parent

This post was really hard to understand. Also, why wasn’t his dns resolving the default test domain ok? Wouldn’t an easier (and more correct) fix have been to address that? That way any other people on his network wouldn’t have a problem, either.

comment 5y ago · link · parent

I think you’d have to strip the binaries to account for debug symbol differences.

comment 5y ago · link · parent

The reason to use uuid column types in a database is so you can skip locking dB sequences or using synchronization strategies like HiLo and just generate collision-free identifiers client-side. Additionally, some databases will use the randomness to give you free uniformly distributed sharding.

But those random identifiers have no intrinsic value. So long as your database is a complete view of the data you wish to compress (i.e. a closed graph with nothing from the outside world pointing in) then one distinct identifier is as good as another. You can consider a compression strategy that replaces uuid x with an (irreversible) one-to-one mapping value y as a form of lossy compression that gives you an equivalent but not identical dataset upon decompression.

Depending on where, how, and why the compression is taking place, that could be good enough. If there is an additional non-constrained channel available for the non-hot path, the mapping could also be exported separately to allow for reversing the mappings out-of-band.

comment 5y ago · link · parent

Thanks for providing your info. I stopped using CF for resolution because of this almost two years ago; I don’t have a reason to think the situation changed but if I get a chance I can try to reproduce it and get back to you.

comment 5y ago · link · parent

Cloudflare DNS does not route efficiently with AWS CloudFront anycast DNS. I tracked down insanely slow `rustup update` downloads to incorrect selection of ideal routes to the AWS resources caused by using CF to resolve the DNS. Switching to a different resolver that works with anycast and EDNS fixed it.

CF saying “we break standard DNS geo routing but work with providers to route things right” isn’t very inspiring.

comment 5y ago · link · parent

Yea, but WSL1 has basically seen no new features or meaningful fixes since WSL2 was introduced.

comment 5y ago · link · parent

Neither the Windows IO API or even the low-level NTFS APIs map cleanly to POSIX semantics. It means you can’t just forward calls from the subsystem to the IO stack, you need to actively marshal them to and fro. This, in addition to certain operations just being plain more expensive on Windows/NTFS (opening files, creating processes) due to different programming paradigms/approaches just give a very high impedance mismatch that makes performant IO highly unlikely by nature for anything trying to run on top the existing system rather than virtualized.

comment 5y ago · link · parent

I don’t know if it’s what the GP was referring to but partition requirements pertaining to MBR vs GPT and specific requirements for alignment, MSR properties, and order of partitions has been locked down considerably. Annoyingly they all manifest as an opaque “this PC isn’t compatible” or similar message.

comment 5y ago · link · parent

The amount of effort that went into WSL1 including the number of bug-for-bug changes involved was tremendous. It blew my mind when WSL2 was announced because the hyper visor approach was already possible (and in use) before WSL1 was announced but MS made an explicit decision to do the extra work to make their own Linux subsystem for Windows the harder/better way… then gave up.

comment 5y ago · link · parent

I have a solution for the disk/partition type/layout incompatible with upgrading to newer Windows 11 builds (but not the TPM workaround) but I haven’t gotten around to packaging it and publishing it for download on our site.

comment 5y ago · link · parent

As the author of EasyBCD, I can tell you that interest in dual-booting has collapsed to near zero over the past decade.

comment 5y ago · link · parent

Isn’t the iPhone warranty just one year in the USA?

comment 5y ago · link · parent

If we keep publishing studies about it, we can tell the next generation (and ourselves) “we weren’t sitting idly by, we were researching the situation to make sure we understood it.”

comment 5y ago · link · parent

Just to add: if anyone is interested in learning more about the sudden appearance of extremely varied life, this event is called the “Cambrian explosion” and makes for some very interesting reading.

comment 5y ago · link · parent

McDonald’s in the Levant and Middle East is similarly of much higher quality than many other locales around the world.

comment 5y ago · link · parent

You do realize that this isn’t about this one ad bringing down Windows 11 but rather the very architecture that allowed for an ad to integrate itself into the system to such an extent? That is not something you can fix before RTM release, only patch around.

comment 5y ago · link · parent

I posted the obligatory archive.is link as a sibling comment.

comment 5y ago · link · parent

Non-paywall: https://archive.is/2Jyu2

comment 5y ago · link · parent

Audio is easier to stretch but audio should also never be stretched because we are extremely perceptive to it in a way that we aren’t with our visual processing abilities.

Video should always be kept in sync with audio and not the other way around. You can freely drop or repeat video frames (within the boundaries of reason) without anyone being able to detect it in a blind test, but audio should not be messed with. This is why when syncing audio and video from different sources during production, the master clock is always the audio.

comment 5y ago · link · parent

Absolutely. Even a terrible Wordpress instance can be beautifully (and transparently!) cached behind either nginx or varnish with ease, in which case you’re just serving static html pages and can probably handle any traffic you are likely to ever get.

comment 5y ago · link · parent

This was the first comment I favorited on HN, many years ago.

comment 5y ago · link · parent

You misread. GP specially says they think the law makes sense because currently an iPhone 6 isn’t supported but they feel it should be.

comment 5y ago · link · parent

You’re right, the hack/workaround to not reclaim ARC if it’s below a size was written but not merged [0]. But the PRNG thing (actual CPU usage bug) is real and in 0.7+ so far as I can tell. Ideally both would have been committed.

[0]: https://github.com/openzfs/zfs/pull/6544

comment 5y ago · link · parent

Actual issue here: https://github.com/openzfs/zfs/issues/6531

It seems the whole thing took place in 2017 and was fixed then (first by not calling the reclaim if used ARC memory was zero, then the root cause also fixed by using a PRNG instead of the default CSPRNG in 0.7).

1
939495
277