Login
You're viewing the functional.cafe public feed.
  • Jul 5, 2026, 7:40 AM

    computer code is a language of communication. you are communicating to the computer, to future developers, and to yourself. source code encodes what the programmer believed mattered. if you ignore all that and trudge blindly forward without a care to the intent and domain knowledge hidden between the lines, that's incurious laziness.

    💬 7🔄 16⭐ 2

Replies

  • Jul 5, 2026, 7:54 AM

    this is the attitude that causes people to rely so much on LLMs, but it is also the attitude that causes people to decide that a codebase needs a complete re-write from scratch. it's sometimes hubris, but most of the time it's fear. if you can't cope with the scary thing by understanding it, the next best thing is to kill it

    💬 2🔄 1⭐ 0
  • Jul 5, 2026, 7:58 AM

    I get that sometimes old code is crufty and has a bad design. but really, is the edit-distance between a good design and a bad design so large that it necessitates deleting the whole thing and starting again? what makes you think you'll remember all the lessons that the original code had to learn the hard way?

    💬 3🔄 4⭐ 1
  • Jul 5, 2026, 8:00 AM

    nearly every single c++ build system has had a bug where, if a UTF-encoded file has a byte-order-mark, then any #include on the first line is ignored and so the generated dependency graph is incorrect. this is a lesson that is only ever learned the hard way.

    💬 2🔄 3⭐ 0
  • Jul 5, 2026, 8:02 AM

    though to be fair, this happens when your line reader doesn't strip the BOM from a file. but it's a useful example. it seems like it'd be fine to just load a file into memory and split it on newlines, but the world has always been more complicated than that.

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 8:35 AM

    @suricrasia this is very striking, i'm definitely very scared of code that isn't my own but i had never thought of it that way. i'll try to give it a chance next time

    💬 0🔄 0⭐ 2
  • Jul 5, 2026, 5:05 PM

    @suricrasia @rrika I wonder how many projects have been saved by a rote, possibly out-of-date copyright notice mandatorily included at the top of each file.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • Jul 5, 2026, 1:57 PM

    @suricrasia usually my motivation for this is not the edit distance. it is that incrementally going from A to B would take several more times the effort of going from 0 to B. which is only possible after extensive study of A

    sometimes it works out, sometimes not. i'm not usually afraid of my own code and i rewrite that a lot too

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 2:03 PM

    @suricrasia a big part of what could make the effort so immense is that it's not just the old system having issues, it's the entire implicit chain of dependents having similar issues by virtue of being designed against that system. if you try to maintain full compatibility you're doomed to not make any real progress because people rarely want to put in any long term work besides complaining when something broke their use case personally. better not to try if the alternative is burnout

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:04 AM

    @suricrasia It's Chesterton's fence, right? Got to understand the intent and thinking that went into the old system before you've got the intellectual authority to radically alter it or build something better, or you'll just make the old mistakes again.

    💬 0🔄 0⭐ 0
  • 💬 3🔄 2⭐ 9
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Jul 5, 2026, 9:41 PM
    @astrid @suricrasia Portland, mid-summer. End of July this year (I'm giving my Wireshark talk there this time!). One of my favorite conferences because it feels extremely egalitarian -- it feels like anyone you run into could be a speaker, and really avoids the big 'hero worship' problem that you get at Other Big Events. (Much more fun than Supercon, for instance.)
    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 2
  • 💬 1🔄 0⭐ 0
  • Jul 5, 2026, 8:56 AM

    @suricrasia it sure is, but calling it a language, to me, seems to imply that it's within reach of LLMs. Code sure is a language, but any programming language can describe the same algorithms (roughly) so what really matters for me is code organization in the mind of the developer, the scaffolding, it's the elaboration of a crafted structure implemented as code. The same idea can be realized in different ways, so an exact code organization is a piece of art for me. Sorry for the bad explanation.

    💬 2🔄 0⭐ 1
  • 💬 2🔄 0⭐ 1
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 9:21 AM

    @f4grx no worries. I'd actually argue that, despite the name, LLMs aren't actually good at language, and the name is ultimately a misnomer. language is a means of communicating things to each other. you can communicate all sorts of things: the state of the world, mathematical facts, desires and moral imperatives, the list goes on.

    the current state-of-the-art in language model architecture (everything since GPT, basically) are optimized to reduce entropy. their objective function is not to say what is true, or what matters, but to say what is likely. lots of work has been done to try to make LLMs more "correct" by making "correctness" more likely—usually done by hitting the poor thing with hammers until the outputs follow some other desired distribution. but we shouldn't lose sight of the fact that nothing it says matters. it can only repeat what some human said some time ago, which got scraped and put in the training data set.

    when an LLM speaks, it is only saying likely things. there is an information-theoretical link between likeliness and information content. the most likely thing to say contains no information.

    I think this is very different from how a person uses language. when we say things, we're *trying* to communicate information. we have thoughts, ideas, observations, desires, needs, etc, all orbiting around our precious little lives. we *need* to communicate these things to survive and to thrive. what we speak reveals information. what LLMs speak repeats information.

    I'm not going to wade into the argument about whether or not a computer can have ideas and desires and needs—all I'll say is that it's probably not cost effective, so we're unlikely to see any such thing come out of a modern AI lab.

    💬 0🔄 1⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:13 AM

    @suricrasia Sometimes incurious laziness is all that people have the time and energy for. Particularly if they're in a work environment that's pressuring them to ship, ship, ship.

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 11:14 AM

    @matt I wish we had worker solidarity. I try my best where I work to help my coworkers with their issues to help take the pressure off them.

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:34 AM
    @suricrasia my experience is that some codebases are too convoluted and overwhelming to understand
    and overwhelm is increased by a larger number of moving parts, dynamic dispatch, memory and thread safety bugs, archaic libraries like MFC, and reduced by call tree tracers and runtime observability tooling like Tracy
    and some projects (pipewire before i knew to try tracy, the qt quick runtime, the interaction between Dolphin and Vulkan drivers, famitracker is borderline) were simply beyond my ability to trace, and i don't know if i've improved
    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:39 AM

    @nyanpasu64 I think recognizing that it's an emotional situation is a good way to look at it. these things *are* overwhelming! I can't deny that complicated and confusing code is scary. it's a bit like spelunking in a dungeon and getting beat up by monsters way above-level. what matters is the trying-and-failing-and-trying-again. allow yourself to stay curious even if it's scary. what I see a lot with other devs is an unwillingness to try at-all. sometimes it helps to do the spelunking as a team, so it is less scary because you've got other people along-side you.

    💬 2🔄 0⭐ 0
  • Jul 5, 2026, 11:41 AM

    @nyanpasu64 this makes me think: maybe following the git commit history of a specific contributor could be a strategy for understanding large codebases. you get to follow a real person's understanding of the codebase through their interactions with it. I've not tried this before, but it could work 🤔

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:50 AM
    @suricrasia and i didn't specifically mean overwhelm as an emotional reaction, but more of a cognitive stack overflow/core dump failure where i don't know what's what and what's happening
    it might be influenced by emotional state and trigger negative emotions?
    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:51 AM

    @nyanpasu64 in my own experience, the overwhelm is tied pretty intimately with my emotional state, possibly because the overwhelm is extremely uncomfortable or the other way around. it's hard to tell

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 6:37 PM

    @suricrasia This this this. I keep telling people "code is for humans". As a side effect, it can also tell a computer what to do, but that's not why we write code in the way we do. We write it so other humans (or our future selves) can read it.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0