Login
You're viewing the ruby.social public feed.
  • Nov 27, 2026, 9:29 AM

    Well, that feels a little different in the chapter of history where vendors were "going off the rails" left, right and center. But there's another aspect too.

    It's useful and good, actually, to solve a problem multiple different ways. They might make different choices for technical or social tradeoffs. Most importantly, you have more people who are personally familiar with the same problem domain, but without encoding all the same implementation assumptions. We learn more by covering more space, and the knowledge is transferrable. And vulnerabilities do not affect the entire internet at once, which is really nice.

    So while it would be unfair to ask every operator to reinvent the world, we do need multiple takes on every problem, and I think we demonstrably have the humans to do that.

    💬 1🔄 3⭐ 8

Replies

  • Nov 27, 2026, 9:34 AM

    And while you shouldn't have to reinvent everything, there is value to reinventing specific things you use, depending on your ability to do to.

    Code that would be complicated by supporting everybody's use cases, can be simplified by only supporting yours. The understanding you get from working on the lower levels ends up being very useful to "know how to hold" components at the higher levels of work, because you're literate in the problem domain and the implementation you use. You control your own update schedule. You control the update contents. You cannot be negatively surprised by your upstreams.

    It's also work, which is why there's nuance to when to reinvent, and this nuance is what gets ablated when you point to something and say "NIH" like a toddler who's just learned her shapes and colors.

    💬 4🔄 0⭐ 5
  • Nov 27, 2026, 9:41 AM

    This is why my advice does not include some clean-cut line to tell you when to reinvent. It's too contextual on too many things. I am not an angel showing up with my hundreds of eyes to tell you "be not afraid" - but I *am* a girl showing up for trick-or-treat in a homemade angel costume to tell you "be less afraid."

    Don't just assume rolling your own would be a mistake, not even for cryptography, but figure out what you need to make an educated and contextual decision, seek out that knowledge, and then make an educated and contextual decision. Often that will involve a prototype. Be less afraid. Often the worst case is that you learn things, which isn't time waste.

    💬 2🔄 1⭐ 2
  • Nov 27, 2026, 9:40 AM

    @MaddieM4 A side track from your point, but a pet peeve with NIH is that we have a tendency to layer complex systems, and this layering ossifies design choices that may not be up to current problems.

    A lot of what I do is look at where that doesn't fit, and try to find better layer boundaries with the ability to address old and current problems. Bonus points if it looks flexible enough that it *may* help with future problems (but that is unlikely).

    So I NIH a bunch of stuff for that reason,...

    💬 1🔄 1⭐ 3
  • Nov 27, 2026, 9:42 AM

    @MaddieM4 ... and the predictable response is always "but if you bend the existing layers out of shape and kludge more fragile hackarounds on it and accept performance penalties that exist by design, you don't have to do it"

    That's fine, it's true. People can go and make that choice. Just please don't try to tell me it's one I should be comfortable with.

    💬 0🔄 3⭐ 6
  • Nov 27, 2026, 1:46 PM

    @MaddieM4 I think the fear of creating stuff has created far more work, complexity and problems for me than the other way around.

    People insist on implementing some usually way too complex for our needs system, often multiple systems that need to be awkwardly integrated, instead of just writing that thing for our own use instead.

    We make a lot of fun of "click ops", but in my field I want "integration ops" to be equally ridiculed. Spending all your life integrating other people's systems.

    💬 0🔄 1⭐ 0
  • Nov 27, 2026, 6:31 PM

    @MaddieM4 “Be less afraid.” — this is a great thread, thanks.

    I’m always amused that the canonical rhetorical example is “don’t reinvent the wheel.”

    The first wheel was likely for *pottery*. Using it for transportation involved reinventing it. Then rubber tires, pneumatic tires, metal inserts, all the iterations that got us to what people expect today. And of course things like race cars and heavy lift machinery use heavily reinvented wheels.

    Reinventing the wheel is often good and important.

    💬 1🔄 2⭐ 6
  • 💬 1🔄 0⭐ 0
  • Nov 27, 2026, 8:04 PM

    @hyc @MaddieM4 I guess let Pirelli, Michelin, Goodyear, Bridgestone, and all the smaller ones know; they continue working on it regularly.

    And even if that “once in a generation” bit holds true on the output, you rarely know when it’s that time unless you’re trying as you go.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 27, 2026, 9:45 AM

    @MaddieM4
    Very good point on shared libraries having to support broader use cases than you need. This also makes them expose more attack surfaces so your custom subset can be more secure.

    Of course, work is not the only downside. Before the general availability of good container libraries (I'm old) I implemented a few and small bugs were common - but fairly easily found and fixed due to the small and well understood codebase.

    Obviously, never try to roll your own crypto library.

    💬 1🔄 0⭐ 1
  • Nov 27, 2026, 9:53 AM

    @imcdowall I think even the embargo against writing your own crypto is unhealthy, but I do think people should have a higher bar for attempting it. You need to make peace with a lot of studying and a lot of asking dumb questions in IRC channels. And of course, some languages are more suitable than others.

    💬 1🔄 0⭐ 1
  • Nov 27, 2026, 11:15 AM

    @MaddieM4 @imcdowall I once read a cryptographer's blog saying that the reason they say this is because many people used to do that, implement crypto algorithms, then push them to production that way when they think they fixed the bugs, but in crypto, you only know something's wrong when someone exfiltrates the plaintext. So like sure, making your own crypto can be fun and entertaining, as long as you don't put it in front of your website and expect it to accept tls connections from the open internet or something :p. About NIH in general, the times I've seen it used, it wasn't because someone invented something which already exists, but because they made a change to an established process just because they felt like it, see the weird password rules on gnome gitlab for example. Why can't I put spaces in there? why isn't an automatically generated password working there most of the time? no idea, nobody tells us exactly what the rules are, just that it's different from default gitlab because that's gnome, and it has to be different.

    💬 1🔄 0⭐ 0
  • Nov 27, 2026, 11:47 AM

    @esoteric_programmer @imcdowall Oh, GNOME. It feels unproductive to use the phrase "contrarians without a clue," but not entirely unearned.

    As for the reasoning mentioned in that blog, if you squint, you can see the real constraints: that crypto needs review, which not only necessitates *not* doing it behind closed doors, but also, that review is the bottleneck - reviewers are a scarce and expert resource who can't be splitting their time between many projects.

    Which... yeah. If you explicitly foster an insular priesthood that upholds values hostile to new blood, you sure can guarantee the job security that cryptographic review labor is a perpetually scarce resource. Good job, you did it.

    Something you rarely see, except in conversations in the wake of Heartbleed-like incidents, is people saying "if there were a lot of options in this space, projects could compete on reviewer-friendliness, and it would weed out the projects that are technical tire fires." But no. The chosen ones must be bolstered eternal.

    💬 1🔄 0⭐ 2
  • Nov 27, 2026, 11:54 AM

    @MaddieM4 @imcdowall yeah, that stuff isn't good either, which is why it's good that more people get into crypto. However, we have an issue where there are too many gotchas to implementing crypto correctly, for example avoiding compiler optimizations which often means inline empty assembly blocks, not reusing nonces even by accident, using hardware crypto when possible and doing things in constant time to avoid side channel attacks, wiping memory securely and so on, that it's hard to even approach the subject. And at some point, one wonders is this actually necessary, do we really need constant time and hardware backed crypto? the history of attacks and data exfiltration suggests yes, but at the same time, this would be way more approachable if the answer was no.

    💬 0🔄 0⭐ 0
  • Nov 27, 2026, 12:06 PM

    @esoteric_programmer @imcdowall There's a reason I was telling my wife yesterday that people still write in assembly. Compilers are evil when it comes to crypto! Notoriously so.

    As for how to get people into crypto without harmful gatekeeping sensationalism, I don't think it's an unsolved problem. Relativistic physics is hard to teach, but that's why you don't start with Einstein. You start with Newton, and you say up front "this isn't the whole picture and becomes inaccurate in important ways at big and small scales, but it'll get you started and make the real stuff easier when you get to it." And then the students get to relativism later, and are able to leverage their Newtonian physics education as the familiar thing that guides you through unfamiliar territory.

    There's no reason you can't teach the algorithms and their motivations in a naive way, then stack the other complications on one at a time.

    💬 0🔄 0⭐ 0
  • Nov 27, 2026, 1:34 PM

    @MaddieM4 This is it. Do you resist writing your own helpers and utilities because, “If they were useful they would be in the framework”? The reason they’re not in the framework is because they would have to cover the general case. You can’t write a general purpose EqualsIgnoreCase that’s less verbose than the framework method.

    But your code that is 50% string.Equals(a, b, StringComparison.OrdinalIgnoreCase) by volume?

    Write that a.EqualsIgnoreCase(b) extension already.

    💬 0🔄 0⭐ 0