top 95 comments

sorted by: hot top controversial new old
[–] 167 points 3 months ago (8 children)
  • [+] [S] 73 points 3 months ago (7 children)
  • [–] 92 points 3 months ago (6 children)

    Written in hand-optimized assembly with individual implementation for every CPU on the planet, with integer division function in 10000 lines of code impelented with XOR and bit-shifting which is somehow 0.3% faster than CPU built-in division operation.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 58 points 3 months ago (1 child)

    He had to de-optimize the init sequence because the little trick he added that caused the init sequence to return a little power to the grid instead of taking it was causing grid stability issues because the returned power from offices starting up was a bit higher than the extra power required for factory startup weekday mornings.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 17 points 3 months ago (3 children)

    The mention of division has triggered a memory. I think I actually saw a library like that once. It was in C, not assembly, and was almost certainly for one specific architecture (probably Intel), but other than that, there was a lot of low-level stuff that claimed to make division faster for all CPU-native data types.

    It was above my skill level to just pick up and use, let alone read and understand, but I can tell you that it at least looked legit, and the author seemed earnest in their description, so something like your hypothetical is very much out there.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 16 points 3 months ago (2 children)

    There is a video where a real game dev was showing how bad a specific benchmark was. It was basically read arguments, get a random number, do a for loop 10,000 times, inside there do another for loop 10,000 times, do some equation with a modulo, put result in array, pick a number from array and print to screen.

    The biggest time cost was the modulo as that's the hot path. He basically went through and typecast all the ints to double. He got 4x the speed. It went from almost 2 seconds to less than 0.5 second just on that change. This is mostly due to cpu and compiler now using simd instructions.

    Small changes can have big impacts.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 3 months ago* (1 child)

    Yeah, I've actually written quick and dirty code that used both a division and a modulus, but then went back later to use the former to calculate the latter with a multiplication and a subtraction to get a speed improvement.

    There have been other occasions where I've been able to replace something like average = sum / count; if average > y with if sum > count * y, when it's not entirely obvious that y could be multiplied by anything and remain meaningful.

    But when a division can't be avoided, you still want that genius-written magical library to take some of the sting out of it.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 155 points 3 months ago (15 children)
  • [–] 75 points 3 months ago (5 children)
  • [–] 10 points 3 months ago (4 children)

    What do we think the blocks on the right represent? Projects like TempleOS?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 16 points 3 months ago (2 children)

    ffmpeg is a good candidate im p sure

  • source
  • parent
  • hideshow 2 child comments
  • [–] 55 points 3 months ago (6 children)

    By gods, the interactive one is great!

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 3 months ago (5 children)

    All I get is “Browser wants to open another app” which I have never allowed… D:

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 3 months ago* (3 children)

    If you have Wikipedia set to open browser links that's most likely what happened.

    That is if you have the Wikipedia app installed.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 months ago (2 children)

    Nah, I don’t have like any apps, and don’t like things trying to install them :I

  • source
  • parent
  • hideshow 2 child comments
  • [–] 134 points 3 months ago (11 children)

    They are real people

    XZ Utils (maintained single-handedly by Lasse Collin) is widely regarded as the most critical infrastructure library run by one person. Its near-catastrophic compromise in 2024 revealed how global digital security hinges on solo, thanklessly managed open-source projects. Other major examples include cURL (Daniel Stenberg) and SQLite (D. Richard Hipp)

  • source
  • hideshow 11 child comments
  • [–] 79 points 3 months ago (6 children)

    When I last talked to Richard he had company to work on SQLite. It was like four people.

    SQLite is still deployed on everything, everywhere. You browser. Your phone. Macs. Half of Linux machine. Your airplane. It's super impressive.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 14 points 3 months ago (4 children)

    It's lite architecture makes it the only valid option to not having to deploy a full on postgre

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 3 months ago (3 children)

    I mean, what's the alternative aside from spinning up a MariaDB for your small local app? I can still remember the swamp of .ini files some older programs used for this or the totally overblown Windows Registry. Not a good time.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 3 months ago

    Also interesting is that it's one of the small number of unquestionably public domain pieces of software. Not open source, but public domain. It's not entirely clear if you can technically put your own work in the public domain, or if you're just freely licensing it to anyone.

    Sqlite was initially developed for the US military though, which explicitly makes it public domain.

    It doesn't matter, but it's interesting.

  • source
  • parent
  • [–] 10 points 3 months ago

    Other major examples include cURL (Daniel Stenberg) and SQLite (D. Richard Hipp)

    While those are the main developers neither is alone in maintaining their respective software.

  • source
  • parent
  • [–] 131 points 3 months ago (8 children)

    Not sure if it's part of the joke but that word means "jerk" (as in "jerk off") in Swedish.

  • source
  • hideshow 8 child comments
  • [–] 80 points 3 months ago (4 children)
  • [–] 12 points 3 months ago

    Most likely is. Many open source projects have a joke as a name, often containing some form of innuendo or a double meaning. Helps in maintaining the free nature of the tool (corporations don't want anything to do with it) as well as lower expectations on professionalism. Plus it's funny, especially if it's an in-joke of a niche language.

    On the topic of "runk", it's also been loaned from Swedish to Finnish as runkata, or to runk = to jerk off. The actual act of it would be runkkaus or runkkaaminen. Can also be encountered in the form runkkari, aka a wanker (I'd assume Swedish had a matching equivalent). So the joke works in Finnish as well.

  • source
  • parent
  • [–] 320 points 3 months ago (5 children)

    Ronald is indescribably more important than any tech billionaire could ever hope to be. So let's raise a glass and give out a hardy thank you to all the Ronalds of the world!

  • source
  • hideshow 5 child comments
  • [–] 145 points 3 months ago (4 children)

    Too bad all the tech billionaires profit from Ronald's work while he does it for free.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 80 points 3 months ago (6 children)

    Everyone who understands Norwegian love the name Ronald chose for his invaluable tool.

  • source
  • hideshow 6 child comments
  • [–] 50 points 3 months ago (5 children)
  • [+] [S] 54 points 3 months ago (4 children)
  • [–] 49 points 3 months ago (4 children)

    My go to real example is curl

  • source
  • hideshow 4 child comments
  • [–] 30 points 3 months ago (3 children)

    Christopher's Universal Request Library

  • source
  • parent
  • hideshow 3 child comments
  • [–] 41 points 3 months ago (11 children)
  • [–] -1 points 3 months ago (10 children)

    Is this a real example? Or are we just talking about linux here

  • source
  • parent
  • hideshow 10 child comments
  • [–] 11 points 3 months ago (5 children)

    You weren't there for the Leftpad fiasco, I take it?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 6 points 3 months ago (3 children)

    https://en.wikipedia.org/wiki/Npm_left-pad_incident

    For the uninformed. It still somehow both boggles my mind and makes 100% sense that people didn't just write this function when they needed something to pad strings.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 3 months ago (2 children)

    Probably got put into a popular example and then everyone uses it because "that's how."

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 3 months ago (1 child)

    Huh... You know what that makes more sense than anything else I've come up with. I always just assumed it was lazy devs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 10 points 3 months ago (2 children)

    A huge proportion (most?) of server infrastructure runs on linux.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 40 points 3 months ago (3 children)

    For a long time all systems which deal with timezone data (like ability to convert utc to est for example) was reliant on 1 server in 1 random guy's basement which he paid for himself. I heard they were working to correct this situation but haven't been following it.

  • source
  • hideshow 3 child comments
  • [–] 40 points 3 months ago

    You sent me down the exact kind of weird rabbit hole I love. Genuinely thank you.

    It's maintained by the IANA now (the same people who basically run the modern Internet, saying what domains are allowed and such for those who don't know). Though Arthur David Olson (the man you mentioned) still contributes his expertise and data.

  • source
  • parent
  • [–] 15 points 3 months ago* (last edited 3 months ago) (1 child)

    You're probably thinking of Paul Eggert.

    Edit: I was a bit quick to post. The article I linked says Arthur David Olson (mentioned in sibling comment) started the TZ database, with Paul Eggert extending it and maintaining it later. The 2011 lawsuit is also mentioned in the Wikipedia page I just linked.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 71 points 3 months ago (9 children)

    This is why when Steve Jobs died in 2011 another far more important figure died... Dennis Ritchie. The man who made the C programming language and Unix, without which nothing Apple produced would be possible.

  • source
  • hideshow 9 child comments
  • [–] 34 points 3 months ago (8 children)

    Not to downplay dmr's importance here because he quite literally is the father of modern computing, but without him we'd just have something else and perhaps it would've been a bit later. A different systems programming language and a different operating system everything else is modeled after. High-level programming languages weren't a new concept when he wrote C. Before B they already had Fortran. Funny to call any of those High-level in 2026, but that's the whole importance of C, isn't it? It made writing complex systems easy compared to assembly languages or even fortran.

    I'm not gonna bother doing a writeup about Jobs, we all here know he made precisely Jack shit.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 7 points 3 months ago (3 children)

    Not necessarily against what you said, but I realized you can kinda say that about anything, with some abstraction. There’s always smart people (thankfully), and they’ll often arrive at the same solutions. Roll over, Gauss.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 months ago (2 children)

    Well I think it's different for scientific discoveries where something is either found or not. Software and other products... There are niche things that may never exist without the author, and there are generic things that would be created in one form or another anyway. Once programming languages were a thing, general purpose high level languages were bound to happen IMO and there are infinite possible languages.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 months ago

    Sure, but what I’m saying is that at a high level of abstraction scientific discoveries are similarly inevitable as well. I don’t think niche creations are a major difference since as you yourself stated “without him we'd just have something else and perhaps it would've been a bit later.”. The majority build on previous findings, often many scientists are working towards the same goals, and truth is truth, whether it be found through physical experimentation or fleshing out applied logic.

  • source
  • parent
  • [–] 2 points 3 months ago

    There's lots of history you can look at to see how this works. The same thing does get invented more than once, but sometimes there's different technologies that could each become dominant, and then there's a real first mover advantage.

    In Russia, they don't really have highways. Everything is built around rail lines. In the Inca empire, they had highways, but highways with stairs because there was no widespread wheel usage (which itself might be down to limited available wagon pullers and rough terrain).

  • source
  • parent
  • [–] 8 points 3 months ago (1 child)

    Apple used Pascal up until the System 7 era anyway, C was just one of many choices of the time.

    If we didn't have C, we'd probably have eliminated things like buffer overflows and out of bounds memory accesses decades ago.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 3 months ago

    Oh wow I didn't realize Pascal was even older than C, thought it showed up in like mid-70s or early 80s. To be fair I've ever only interacted with Delphi, not OG Pascal.

    While I don't necessarily like C, I am happy for C-style syntax over Pascal-style, which I've also worked with. Give me braces over begin and end any day of the week.

  • source
  • parent
  • load more comments
    view more: next ›