Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 4y ago · link · parent

Unqualified "fast enough" is pretty much exactly the problem being pointed out. Most developers have no idea what "fast" is let alone "fast enough". If they were taught to benchmark at with a lower level language, see what adding different abstractions causes, that would help a ton.

I would personally suggest C++ though because there is such a huge amount of knowledge around performance and abstraction in that community - wonderful conference talks and blog posts to learn from.

comment 4y ago · link · parent

I didn't think it was widely used, I'm sure it's very very rarely used. I was saying it was relevant because it represents the "future" of cryptography.

I would think that any kind of key exchange algorithm that relies on a constant time algorithm is vulnerable to this. I could be wrong.

comment 4y ago · link · parent

An additional millisecond to your public key exchange is probably not going to matter - key exchange is pretty infrequent anyway.

comment 4y ago · link · parent

I think SIKE was just chosen because of its relevance, not because it has any particular issues that make it more susceptible. I'd be curious to hear from an expert on this.

comment 4y ago · link · parent

Discovering and reporting these flaws is proactive defense.

comment 4y ago · link · parent

Sounds like a really unique, fingerprintable way to browse.

comment 4y ago · link · parent

Much appreciated

comment 4y ago · link · parent

Of course. It's also better than solving problems with pen and paper.

comment 4y ago · link · parent

I'm sure that the techniques used in Whonix can reduce the number of valuable features used in fingerprinting but you can't "solve" fingerprinting without every single user switching over to something like this.

comment 4y ago · link · parent

It's not possible to block browser fingerprinting since it's a range of techniques and heuristics based on numerous features. There's no "turn off fingerprinting" button you can just press.

comment 4y ago · link · parent

Only one person at the company had previous professional experience with Rust. The majority had 0 experience with it at all. We've had no trouble and it's actually been our most productive language - we're moving away from Python and Typescript where possible.

comment 4y ago · link · parent

Yeah fair, in my mind I was just responding to the bit about node, but whatever.

> I'd argue that choosing Rust for most startups is outright irresponsible.

I feel the opposite and I run a startup using Rust. If I could go back I'd use Rust in more places, not fewer.

comment 4y ago · link · parent

Yes, that's why I quoted one specific part and responded to that specific part.

comment 4y ago · link · parent

This is probably more of a concern for people who aren't writing services/ professional devs. Otherwise, who cares, you pick a runtime (tokio) and you use it - runtime agnosticism isn't a real goal for any company.

comment 4y ago · link · parent

We've had 0 issues hiring for Rust, despite the vast majority of the company having no prior experience with it (or some experience on the side). The learning curve isn't that bad, maybe you just haven't dedicated the right time or you've had trouble learning it in isolation.

comment 4y ago · link · parent

> FYI: If you're primarily IO-heavy, the GC pauses aren't going to be a big deal. Something like NodeJS (or Async .Net) will have great performance; even with garbage collection. (IO-heavy is the specific use case that NodeJS was designed to handle.)

This just isn't true. Node is pretty terrible even at IO heavy workloads, especially if you have servers with many cores. Any benchmark will confirm this.

comment 4y ago · link · parent

I don't really need to find those examples, I've written most of my company's product in Rust using async, for years, and it's never once been an issue. That's 100s of thousands of lines of rust written and 0 async issues.

comment 4y ago · link · parent

It definitely works just fine

comment 4y ago · link · parent

> Extremely large systems do not run into the limitations of bigint because at that scale the identifiers are naturally segmented, often implicitly.

Agreed. That's the real key imo. You could have a 2^64 random number as a primary key if that key is also namespaced per customer - maybe in aggregate your customers generate > 2^32 events but a given customer may not. And there's other ways to limit it further.

This is the approach we take, basically, although we use a counter and not a random number.

comment 4y ago · link · parent

I'm wondering what that performance actually looks like though. The closest benchmark I have is a single postgres instance with a uuid pkey and a bigint column, transactionally incrementing the integer in the column.

I mean I guess mathing it out, updating an atomic integer is ~2-100ns, depending on contention. If you need to coordinate the writes you have anywhere from ~250μs-10ms.

We can basically throw away the increment at that point since the network is hundreds/thousands of times slower.

So at 10ms, that's 100 op/s. At 250μs more like 40kops/s.

That ignores the fact that your db can perform those writes concurrently and then batch the writes off to the other database, so long as it doesn't pretend that they're all committed at once. psql HOT updates would presumably be a thing here idk.

If I had to guess, I'd lean towards the "40kop/s" being closer than the "100op/s" but idk! I wish we had benchmarks but I can't find anything :\

comment 4y ago · link · parent

It's not official but it's irrelevant - no one is going to take the US to court over it, which means the only thing that matters is that everyone knows who did it, and they do.

comment 4y ago · link · parent

When you're on the defense side (I am) you often read a lot of research and watch conference talks about cutting edge stuff. It makes you wonder - why don't attackers do these things?

I actually asked a criminal I was in contact with once why he didn't attempt to perform an attack a certain way that I thought would be very lucrative and significant. His answer was that there was no point, he made thousands of dollars a month with very little effort, and he was more interested in refining his existing work through improved C2 communications as opposed to what I had been suggesting (academically, I never supported that work).

The title's a bit clickbaity too of course. The end is more reasoned:

> However, I think the final explanation is most likely. Whoever developed the code was probably in a hurry and decided using more advanced hiding techniques wasn’t worth the development/testing cost.

Yes, naturally that is exactly what happened. There is no question at all that the NSA has people capable of doing more advanced work, they just really don't have to.

https://www.youtube.com/watch?v=bDJb8WOJYdA

Rob Joyce gives a great talk about his work on TAO. The short version is that TAO doesn't have to do anything crazy, they just have to know who their target is and spend the time figuring out the environment they'll be working in - then they meet the bar that's beyond what that environment is capable of handling.

Homomorphic encryption is gonna be pretty overkill. Then again, the NSA also leveraged the first publicly known attack that used an MD5 collision, which probably cost quite a bit of money, so they can flex when they decide it's worth it.

comment 4y ago · link · parent

It would be slow and doesn't really serve a purpose since you either have uuids that are totally random or uuids that need to preserve their structure.

comment 4y ago · link · parent

I feel like `serial` has got to be pretty fast for writes and gives you some nice properties like sorted ordering based on insertion time, a smaller key, and a key that can be compressed far better than a uuid.

I get the idea of a ULID/UUID7 encoding a timestamp so you get sorted order, but I wonder at what scale that beats just using serial.

comment 4y ago · link · parent

I can't tell if this is satire

comment 4y ago · link · parent

> But what you are working on is completely useless for humanity. Knowing that there is a quantum foam is knowledge that brings us nowhere. If someone could answer to this "and so what?" in a meaningful way I would be glad to change my mind. For the time being, the energy scale we are making these discoveries is not useful.

How many things were discovered by ancient Greeks that only became useful in the last 100-200 years? The Sieve of Eratosthenes comes to mind - I can't imagine that was really helping anyone out until we had modern cryptography.

comment 4y ago · link · parent

I assume security is a concern already. Privacy's just less well defined and a lot harder. Connection fingerprinting is hard and I don't really think it's worth trying to solve for HTTP because... they're not going to.

If you want anonymous browsing, use TOR. If you say "well TOR is too slow", welcome to the HTTP/3 party.

comment 4y ago · link · parent

Thanks, it looks like it.

comment 4y ago · link · parent

I wonder if anyone has tried to map scientific progress in some quantifiable way, and if so, whether or not it matches punctuated equilibrium. It does seem as if there are periods of time in which we make steady progress, and once in a while leaps and bounds improvements are made all at once.

It also reminds me of how genetic algorithms that I've written tend to work - lots of "no improvement, cull, no improvement, cull" followed by "huge improvement".

It would give the impression, during those bursts, that you're just around the corner from a wildly different world.

comment 4y ago · link · parent

Awkward is the name of the game.
1
414243
164