13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
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 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
comment 4y ago · link · parent
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
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 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
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
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
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
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
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.