6,699 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions
Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.
Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view
comment 3y ago · link · parent
There are certainly scenarios where "all crypto becomes invalid" or "ECC becomes invalid" or "curves similar to Ed25519 become invalid", but with Defense In Depth... if all other things are equal, a stronger curve is better, and that is effectively the case here. The only downside of Ed448 that I'm aware of is a slight performance penalty, which is irrelevant in most applications, so there's no reason to actively choose a weaker curve. The "overkill" option is the sensible option in most cases.
AFAIK, no one is actually encrypting large sums of data using an asymmetric algorithm like we're discussing. It's typically just used to encrypt a symmetric key, which is then lightning fast to use on the bulk of the data. The performance of the asymmetric algorithm is only important in very specific scenarios.
I also believe that "no one" uses Ed448 in much the same way that "no one" uses JPEG XL; a lack of ecosystem support drastically hinders adoption, and it has nothing to do with people believing that Ed448 has no advantage over Ed25519. But, that's just like, my opinion. JPEG XL would be drastically better than the other image format options, but ecosystem support is a chicken and egg problem. Measuring the existing adoption of a poorly supported option doesn't give much insight. If people appreciate Ed25519 (and they really seem to), then offering the stronger version of Ed25519 seems like an obvious next step, even though it is a lot of work (which is why my original comment mentioned future proofing the API, but you seem to indicate that it is, so that's good). If the option existed and were exactly as easy to use, then why wouldn't people pick it for projects where the curve is open for selection?
comment 3y ago · link · parent
Ed25519 is relatively nice, but I do wish it also supported Ed448, or at least future-proofed the API so that Ed448 support would be possible as a drop-in replacement. Ed25519 is "128-bit" security, while Ed448 is "224-bit" security. Both are ECDH.
128-bit "ought to be enough for anybody", but for the many applications that asymmetric crypto isn't the bottleneck, it's nice to have the option to pick a stronger curve. Why place this arbitrary limit on the standard library API for the (probably) next decade? It feels counterproductive.
comment 3y ago · link · parent
If you built a completely custom trash can with the wheels in the center and a very small amount of ground clearance when balanced, you could drastically reduce the initial torque required, but at that point, concerns about needing to move slowly would probably be a lot less anyways since this is being fully engineered at that point, not just an attempt at a quick hack.
comment 3y ago · link · parent
Location: Denver, CO
Remote: Yes
Willing to relocate: Yes
Technologies: Go, Rust, TypeScript, Postgres, Redis, S3, SQS, Kafka, Terraform, and more.
Résumé/CV: https://docs.google.com/document/d/e/2PACX-1vQOonCmb7cFgYLCzsKi_YJNJYtZEzQidlalV4SgJIDtXWVE2nu0SvnX7m5auj9pojNAWA-0nVTOUScZ/pub
Email: see google doc
I have a broad range of experience across the stack, with a lot of my experience focused on designing and building scalable, robust, and maintainable backend systems that deal with a very high volume of data. I also place a lot of emphasis on building automated CI/CD processes that minimize human error in the development process, and allow developers to focus their attention on the task at hand.At this point in my career, I'm really only looking for Staff level jobs (or equivalent, titles vary across companies), but I'm open to discussing the options if there's a really interesting opportunity.
I'm not currently interested in working on anything involving cryptocurrency or blockchain, and marketing/advertising focused companies would need to be clearly beneficial to every day people, instead of misusing personal data (which I would be uncomfortable with).
comment 3y ago · link · parent
Modern pipeline lengths aren't documented publicly as often as they could be, but Zen 1 was a 19 stage pipeline, and it performed great for the time. But, I think Pentium 4's full pipeline was 31 stages. Regardless, I think CPU designers these days have better tools and techniques for dealing with long pipelines.
comment 3y ago · link · parent
So, there's no work required to "undo" those mistakes, but starting from an empty pipeline still means you're a dozen (or two) clock cycles from getting back to where you would have been with a successful branch prediction, which is why it is important for the CPU to predict correctly as often as it can.
comment 3y ago · link · parent
I wish they had included the geometric mean of their benchmarks, but I didn't see it anywhere, and I'm not going to run the numbers right now. Even if the speedup CFS offered on a 5-stage pipeline is "only" 25%, that is still huge... and on a larger pipeline, that delta would grow. "Not much" is drastically different from my interpretation of those results.
I do think security is extremely important, but I'm not convinced that things are currently so terrible that this is the only way forward, as the authors seemed to imply.
OTOH, I would enjoy seeing a return of an Itanium-style ISA that moves a lot of speculation from the hardware to the compiler. I think compilers are in a much better place now than they were when Itanium hit the scene, which did not help Itanium's problems.
comment 3y ago · link · parent
If you designed a CPU to lack a branch predictor, you would certainly make different choices that would reduce the penalty of that, but there would still be a significant penalty.
Modern CPUs are all pipelined[2] because it allows a sequence of instructions to be executed (to some degree) in parallel. With out-of-order CPUs, the amount of parallelism that is possible for a sequence of instructions increases even more.
Without a branch predictor, you would have to stall the entire pipeline as soon as you see a branch instruction, until that instruction is finished. Obviously if you don't have a branch predictor, you're going to choose to have a shorter pipeline, but the penalty of each branch instruction will still be significant.
There's a lot of nuance to any proper answer to this question, and it's been years since I learned about this or thought deeply about this, so I'm probably not the right person to provide a deeper answer at this point. The performance impact would be significant.
[0]: https://news.ycombinator.com/item?id=34202230
[1]: https://stackoverflow.com/questions/11227809/why-is-processi...
comment 3y ago · link · parent
Even if they were 100x the size of the next competitor, they would not get a free pass for the obvious technical failures of their implementation, which have nothing to do with the number of users. The entire vault should be encrypted, end to end. The number of PBKDF2 "rounds" should automatically have increased, even for old users. These are huge oversights that fundamentally undermine their credibility.
As far as coverups at other companies go, that would be some coverup to avoid any whistleblowers leaking things. Unless it was very recent, this is very unlikely. People take cybersecurity seriously, and counting on every employee to participate in a coverup of a serious breach is unlikely to go well.
comment 3y ago · link · parent
The entire vault should not be encrypted directly with the user's password. That would go against standard best practices.
See this comment written hours before yours, right under the comment you replied to: https://news.ycombinator.com/item?id=34127993
There is no "big difference" here, and it could be done trivially during login. The fact that it would be done client side instead of server side is a very minor implementation detail.
comment 3y ago · link · parent
> I believe there are alternatives that are more secure such as using a mental algorithm that generates a unique password per site.
Being completely honest, I consider this a terrible strategy. I seriously doubt your "algorithm" is anywhere close to as secure as you think it is. Humans suck at coming up with passwords, period, no matter how clever they think they are, and then memorizing those passwords is at least as difficult. Any algorithm that would actually be secure would take far too long to mentally apply to each website each time you visit it.
Fully featured password managers like 1Password can include much more than just usernames and passwords, which increases their value significantly. Otherwise, users absolutely store that incredibly important information in completely unencrypted places, often synced with the cloud, because it is important information that they need access to, and they want to make sure it doesn't get lost. There is tremendous value in having a user-friendly encrypted vault.
Since the entire vault is fully end to end encrypted with any decent password manager (like 1Password), the weaknesses that repeatedly affect LastPass do not ever apply here. The only thing that matters is having a strong password on your vault, and keeping that password secure. It doesn't matter if 1Password gets hacked, no one will even know what websites you have accounts on. Coincidentally, 1Password also doesn't have the same history of breaches that LastPass does.
The only other security risk beyond a weak password is a supply chain attack, where 1Password ships a compromised version of the 1Password client that steals your vault password, but this is significantly harder for a malicious actor to pull off than the breaches LastPass has dealt with, and any software vendor that you trust could be compromised and install a keylogger on your device, which would achieve the same outcome, so this is not specific to 1Password, and therefore I don't consider it very relevant to the discussion beyond mentioning that other people might bring it up.
> That's my personal approach and I think it's a better way to go.
It's really not, but someone who comes to the internet to rant about this stuff is so strongly convicted of their belief that I don't think I'm going to be able to change it, so I'll just leave it at that. I have cared a lot about cybersecurity for a long time, even before I worked in the cybersecurity industry for a few years, which gave me lots of additional exposure to experienced people and current events.
I have never recommended LastPass to anyone, and I would never recommend it to anyone. 1Password is a completely different story. There are valid open source alternatives, which you can self host, but most people (outside of this forum) are not going to succeed at hosting their own password manager, so it's important to find a trustworthy hosted option.
[0]: https://en.wikipedia.org/wiki/Master_Password_(algorithm)
comment 3y ago · link · parent
Regardless, the RAW files have plenty of range that I would expect modern RAW processing software to be able to emit HDR photos from them.
My use of the word “even” was really meant to be a reprimand of the camera industry. If even an iPhone can do this, a “proper” camera should be able to do it even better. Extended dynamic range is incredibly important to make images photorealistic. Being limited to SDR should be pretty embarrassing for any photo-related company in 2022. But, that’s just like my opinion.
comment 3y ago · link · parent
Maybe this works for RAW photos too, but I don't know how/if Apple Photos handles RAW files in this scenario. It definitely works for non-RAW photos.
comment 3y ago · link · parent
Something like Capture One is much better suited as a replacement for Lightroom. I wish that Apple had a Lightroom alternative, but they got rid of Aperture, so... they're probably not interested in competing in this space again any time soon.
comment 3y ago · link · parent
Regardless, I tried Capture One and Lightroom Classic side by side, and I liked Capture One a lot better. Even though it is more expensive for people who intend to upgrade regularly, it is worth every penny in my opinion, but I also think a lot of people will be able to get along fine on the freeware license. Capture One handled importing new batches of photos surprisingly better than Lightroom Classic, which actually locked up for long periods of time, and all sorts of other operations seemed faster, as if the underlying engine was not ancient. I don't remember all the details as I did this comparison about a year ago. I did not consider Lightroom CC to be a valid option for various reasons.
I also strongly appreciate being able to have a perpetual license, instead of being forced to subscribe for the rest of my life if I want to be able to continue accessing all of my RAWs with the adjustments I make, and not just the exported photos.
The one thing I disliked about both Capture One and Lightroom at the time is that neither supported proper, end-to-end HDR workflows. I have HDR displays. The RAW files contain a stunning amount of dynamic range. Even the common iPhone captures HDR photos (and I don't just mean HDR processing that gets stuffed into an 8-bit JPEG, I mean an actual HDR photo in 10-bit HEIF with an HDR curve). I want to be able to edit and view my RAW photos with extended dynamic range, not be limited to viewing an 8-bit SDR image while editing, and not be limited to exporting crappy 8-bit JPEGs that are missing so much dynamic range (or gargantuan TIFF files that have limited use cases). Adobe has started adding some HDR stuff this year, and that's the only thing Adobe offers that Capture One lacks that I'm even remotely interested in.
Incidentally, I'm also upset that Chrome removed JPEG XL, which promises to be a common format with proper HDR support.
comment 3y ago · link · parent
It may not offer the same API 1:1, but it has no interoperability issues that I've encountered. I think no one has bothered to implement it in Rust because most use cases don't mind the added bloat you're talking about, not because implementing it in Rust would be insurmountable. Plus, other comments I've seen suggest that you can actually tune the size of the C zstd library, although I'm not sure if the Rust bindings expose that.
comment 3y ago · link · parent
I can't remember encountering anything that compresses better with gzip than with brotli, so brotli is usually a better choice than gzip to reduce bandwidth, and brotli has been better than zstd on more than a few occasions for me as noted previously. Brotli is very worthwhile, at least for static assets, and choosing to offer only gzip compressed assets to browsers is almost always a waste of bandwidth.
If faster to compress is all you care about, then sure, brotli might not be the best choice.
1011.
2 points · by coder543 · 3y ago · 1 comment
comment 3y ago · link · parent
I'm confused about the Security Key for 2FA situation, since I can't find that anywhere on iOS. On the AppleID website, it mentions it, but the "learn more" link 404s[0], and the "continue on device" button errors out.
I guess they're working on rolling this feature out on the backend still.
comment 3y ago · link · parent
If you want to link to some useful examples of dimensionally reduced person detection models that exhibit this behavior, then by all means, but none of this is how any current models I've seen work. It also wouldn't make sense to deploy such a model if it were so easily confused by shirts lying around. That model would be pretty terrible by any standard. If they're using terrible technology, you probably don't need a special shirt anyways.
Teaching a model to notice people walking through the frame regardless of what shirt they're wearing is simply not "a cat and mouse game", assuming they're not intentionally using a terrible model or a terrible dataset.
comment 3y ago · link · parent
The model would not be trained against "just shirt" == "human". It would just be more samples from the surveillance cameras of actual humans walking around being labeled properly. (The huge assumption here is that the shirt actually worked in the first place, which would only happen against a specific model, and the article doesn't provide any useful insights into anything.)
comment 3y ago · link · parent
A choice quote from your cvdazzle link:
> This face is unrecognizable to the Viola-Jones Haar Cascade face detection algorithm. (It does not apply to DCNN face detectors)
So... modern face detectors don't even have trouble with cvdazzle. All four of the detectors in this sample correctly identify the cvdazzled subject from the cvdazzle link: https://huggingface.co/spaces/celebrate-ai/face-detection-cn...
I'll also add a few choice quotes from Wikipedia:
> Unlike other forms of camouflage, the intention of dazzle is not to conceal but to make it difficult to estimate a target's range, speed, and heading.
> The result was that a profusion of dazzle schemes was tried, and the evidence for their success was, at best, mixed.
So, no, dazzle camo does not seem to have a record of being effective against either humans or cameras, so the bar is low to start with, not "pretty high" at all. But, the goal here is also concealment, not obscuring range, speed, or heading, which dazzle camo only had "mixed success" for, and dazzle camo was never designed for concealment at all.
In either case, I'm not talking about hiding a ship on the horizon. I'm talking about the effectiveness of this for hiding a human walking in front of a camera.
What was the goal here? Dazzle camo seems like it was never proven to be that useful, according to wikipedia, and cvdazzle is obsolete according to its own website and a quick test that anyone can perform. As I said from the beginning, the article OP linked appears to be nothing more than clickbait. That $71 coat is not a general solution to AI surveillance, and training a machine learning model to detect it would not make that model suddenly overwhelmed with false positives.
comment 3y ago · link · parent
> I'm referring more to the jackets with the dark IR spots.
Can your cite your source? Googling for "cvdazzle jacket" turns up nothing. "Dazzle jacket" just turns up a bunch of fashion stuff.
Plus, nothing I've seen from the article -- including the dark IR spots jacket -- is that difficult to identify as a human, so the bar doesn't seem that high.
comment 3y ago · link · parent
Additionally, most "cvdazzle" results on Google images are trying to obscure the face, not the existence of a person. This research is apparently focused on preventing a person from being detected, not obscuring their face with weird patterns. Even then, the "cvdazzle" stuff that I'm seeing does not make it harder for me to tell there's a person there. It has the same effect of obscuring identity as a ski mask.
comment 3y ago · link · parent
"Perhaps" is a doing a lot of heavy lifting in your comment, and I find the possible outcome you describe to be very unlikely after looking at the pictures in the article.
Personally, I'm confident that these anti-AI patterns don't work consistently across different person detection models, even though the article doesn't even ask the question, let alone dig into the answer.
The article doesn't present independent evidence that these work at all, let alone against more than just a single toy model built for PoC purposes.
It's an idea that gets clicks, and the oddly-specific "$71" (just an unnecessarily specific conversion from 500 yuan) also helps with attracting clicks. This article is basically just clickbait, in my opinion, not anything substantial.