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

You need to stop assuming everyone is commenting out of ignorance and read up on how perceptual hashing works. It’s about as far as you can get from zero false positives, if configured otherwise it becomes just a poor version of SHA or whatever and can only detect exact matches.

comment 5y ago · link · parent

Thanks for clarifying - perhaps another reader will find that link for in-db conversion useful. And thanks for the interesting information and link to the Apollo Computer; I have some fodder for bedtime reading now!

comment 5y ago · link · parent

Most ulid criticism surrounds the ill-advised (and optional!) part of the spec that tries to achieve sub-ms ordering at the cost of requiring a singleton or cross-thread atomics to try and generate random values for the random portion of the blob from a range that would end up providing additional sort order bits. The reference implementation in JS doesn’t even offer this (although that’s likely because JS doesn’t even support multiple execution threads within the same context).

Apart from that little misadventure (last I checked, there was a request for comments on a proposal to drop that from the Ulid spec altogether) there’s really nothing else that’s not same and straightforward in the spec, and little else to complain about.

comment 5y ago · link · parent

It’s not just a question of whether you want to cluster by MAC address, it’s more of a fundamental disagreement as to the endianness of the UUID groups themselves, which is probably the biggest difference between a GUID and a UUID in the wild. Microsoft has used GUIDs to brand OS intervals for a long, long time - long enough that there’s a chance they came before UUID was a thing, but I haven’t dug into the history of it.

Unfortunately converting between them without any db extensions is a PITA in the absence of native support. I’ve written about it at length here (SQLite in the example, but the fundamentals apply regardless): https://neosmart.net/blog/2018/converting-a-binary-blob-guid...

comment 5y ago · link · parent

Ah, so they do. Thanks.

comment 5y ago · link · parent

See ulid for similar prior art. We generate Ulids in code and then store them in uuid columns in Postgres to realize the compact (binary) size benefits.

https://github.com/ulid/spec

comment 5y ago · link · parent

But surely that’s a reason for the larger bottle to cost more, not less?

comment 5y ago · link · parent

.NET recently landed (storage-only) support for f16 as well. Their article is nowhere near as interesting as TFA, but for reference: https://devblogs.microsoft.com/dotnet/introducing-the-half-t...

comment 5y ago · link · parent

It has been wiped off the face of social media in China.

comment 5y ago · link · parent

Pro tip for other readers: often enough, the smaller box that usually has a higher cost/oz will be on sale making it a better deal than a larger/bulk size which isn’t. Reasons for not making both on sale unclear, but I see it all the time.

What I hate is when I'm shopping on Amazon and it's one for $5, or get a pack of fifty for $7. There's no way I'm ever going to buy the one at such a price disparity, so I end up with a house full of 48 unused items.

comment 5y ago · link · parent

The additional information is good reason for this post to also be on the front page. It is not a reason to flag the original and bury that discussion.

comment 5y ago · link · parent

No, Apple's announcement talks about machine learning to power the iMessage nudity detection algorithm. Machine learning in the context of ruining someone's life (and/or landing them on a government watchlist forever) is a huge no in my book.

comment 5y ago · link · parent

Remember, Apple doesn't actually control the CSAM database (NCMEC). They almost certainly don't (and wouldn't want to) even have access to a reverse mapping between hashes and original images. A/The government(s) could (yes, theoretically - this is cryptography we are purportedly talking about, the onus is on them to prove they can't) easily slip in pictures/screenshots of political materials to have your account flagged. Even if it requires manual human review on Apple's end, the government could still (and has in the past) serve them with a warrant + gag order for "false" matches in the past.

Yes, it's all "they could" but with current technical solutions already providing some measure of protection against a corrupt or malicious government from cracking down on its citizens, anything that erodes from that freedom deserves to be held to such a high standard.

comment 5y ago · link · parent

> The device creates a cryptographic safety voucher that encodes the match result along with additional encrypted data about the image.

"additional encrypted data" makes it sound like it's encrypted to keep your information safe, when it actually means "encrypted so you can't see what's being sent" and that "only Apple (and people/governments Apple shares decryption keys with) can decrypt it." And what does "additional encrypted data" even mean? I'm guessing it includes a thumbnail. It could include a list of people you shared the image with and their home addresses. The point is, you don't (and can't) know.

comment 5y ago · link · parent

Which would still be on the front page given how many upvotes it had if people hadn’t, for some reason, flagged it.

comment 5y ago · link · parent

It’s their own.

comment 5y ago · link · parent

And I’ve seen employees that would stun you with how productive they seem based on how much they post in the corporate chat and email, but on actual review did absolutely nothing besides add to the noise?

comment 5y ago · link · parent

I mean, that’s better than no second, human round, no?

comment 5y ago · link · parent

> The downside is that it makes it slightly harder to read code outside of an IDE.

If that’s how you feel about auto, wait until you see something like rust’s post-facto type inference.

comment 5y ago · link · parent

Dynamic didn’t really go anywhere, but more appropriate examples that have now pervaded the language are await in general and IDisposable for ref struct. If it has a GetAwaiter it can be awaited, with no interface. If it has a Dispose() it can be disposed with no interface.

comment 5y ago · link · parent

I’m not going to get into barriers for entry and what kind of developer chooses which language, but C/C++ has always eschewed having unnecessary dependencies (originally because dependency management is hard, but that’s no longer the real reason - it’s just become baked into the culture). Even if you copy and paste hundreds of lines of code (or individual source files) the way you think about and treat them is very different from when they are external to your code base. You own (your copy of) them now, and at the very least, you familiarize yourself with their internals (and you wouldn’t copy and paste something that had its own dependencies). Actual (dynamically linked) dependencies don’t export objects with super brittle interfaces so much as they do expose very stable, carefully designed, and as minimal as possible boundaries for interfacing with their internals. Anything crossing API boundaries is considered leaving/entering the trusted domain, and lifespans of pointers and references in a non-garbage collected language guide/force you to eschew incorporating external libraries into your code globally and isolate the interaction (and therefore, the attack surface area) between your code and external code.

Then there’s the type system. Despite having some of the weakest type systems of strongly types languages, C (to some extent) and C++ (especially modern C++) are still light years ahead of what even Typescript buys you because they don’t offer the same escape hatches or “fingers crossed this TS interface matches the JS object that we are binding it to, but two lines from here, no one will remember that this isn’t actually a native TS class and that this non-nullable field might actually be null because the compile-time type checking system can’t verify this even at runtime without manual user validation because the MS TS team refuses to transpile type validation because they insist on zero overhead even though JS is not a low level or systems language.”

More than anything else however, developers of statically typed languages tend to fundamentally disagree with the idea of “move fast and break often” and will put off changes for years if they’re not at least 90% sure it’s the correct solution (and even when they end up wrong, it’s still far better than someone that says “who cares if it’s the or even just an actually correct solution, it’s still a solution and we can always revisit this later”).

comment 5y ago · link · parent

I upvoted you for adding context, but I have a question: minus mortgage payments or minus the interest on mortgage payments? There’s a huge difference.

comment 5y ago · link · parent

I think if “anyone” actually cared for it, they’d have offered it. I don’t see them introducing a pro-pro-keyboard with Touch ID plus Touch Bar in addition to one with just Touch ID, but I can imagine a world where only an upgrade with both existed.

comment 5y ago · link · parent

It’s fake money in the sense that, assuming people aren’t in over their heads with loans they shouldn’t have been approved for, everyone is fully leveraged at some multiple of their monthly salary. In that regard, the present is fully leveraged taking a debt that the future will have to pay back, and it can only be pushed out indefinitely so long as the economy continues to grow. That’s regardless of GDP: it can be - and this is what people futilely speculate when it’ll hit - because the economy took a turn south (GDP looking only at the working-aged population drops) or, as mentioned above, even if the economy is doing spectacular on a micro level and GDP (again calculated only against working-age population) is up, but there simply aren’t enough cogs in the machine to keep it spinning at the same rate it was before.

comment 5y ago · link · parent

15-20 to start feeling it in the most developed nations, end of the century worldwide. Immigration can stall the former but current policies are not promising. Germany will sing songs of praise in Merkel’s name.

comment 5y ago · link · parent

That type of economy (powered by extreme consumerism beyond the customers’ means) isn’t unique to Australia. It’s only sustainable so long as the target population continues to increase (kind of like social security). The forecasted global population drop that will hit home in the next 15-20 years is going to completely destroy economies propped-up by fake money.

comment 5y ago · link · parent

Yup. Apple fonts look good because they make them all nice and chonky which avoids all the technically correct hinting that preserves actual font shape but doesn’t look as nice in the end that Windows does.

I have a metric compatible clone of the SF Mono font installed on Windows. To get it to look the same as it does on macOS, I have to use the Medium weight to account for this.

comment 5y ago · link · parent

I mean, they’re all bots one way or the other. The only exception would be a personal VPN running off of AWS, but that’s a bad idea given how many sites block that range.

comment 5y ago · link · parent

I was actually saying the same thing. I too read that study and was not trying to knock it. My point though was that if we study any of the other conditions this closely, we might see the same things - so it doesn’t make me believe that we’ll see too much novelty in the fallout from COVID because people succumb to then recover from the cold and flu all the time, they’re just not as heavily scrutinized.

comment 5y ago · link · parent

For something that’s a little more to look at than a two-leafed plant and less cheating the system than a clonal grove, there are multiple individual specimens of olive trees that are still (very slowly) growing and doing quite well for themselves in and around the Old City in Jerusalem that locals say are known to be well over two thousand years old.
1
979899
277