Login
You're viewing the functional.cafe public feed.
  • Nov 21, 2026, 8:08 PM

    “Your server knows who’s logged in. It’s sitting next to the database. It has a fast CPU, a warm cache, and is plugged into the wall. Your user’s phone has none of that. When you ship a client‐side app, you’re telling every single visitor to rebuild the same page from scratch on the worst hardware in the whole chain, and paying for it with their battery, their data plan, and their patience. You are being an asshole.”
    modernmotherfuckingwebsite.dre

    💬 5🔄 45⭐ 5

Replies

  • 💬 1🔄 0⭐ 0
  • Nov 22, 2026, 8:38 AM

    @wolf480pl @andrewg What was up with HTTP2's design people didn't like anyway?

    I haven't really kept track. And on a similar kind of questioning, why not HTTP3?

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 12:03 PM

    @lispi314
    I personally like H2. H3 seems too complex to be good but haven't really looked into it.

    In any case, there's a lot of new code written to add support for them - new complexity - so a lot of room for new bugs
    @andrewg

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • Nov 22, 2026, 12:15 PM

    @lispi314
    also who needs concurrency when you can have parser bugs

    EDIT: nvm those were both concurrecy bugs weren't they
    @andrewg

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 7:18 PM

    @wolf480pl @andrewg Surely one would use a well-tested parser generator and exhaustively test its output anyway, right?

    Other formal verification may also be useful.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 22, 2026, 7:41 PM

    @wolf480pl @andrewg Yeah, in various languages.

    They won't necessarily be optimized in whatever silly intrinsic-using ways doing it manually might, but they will be correct when provided with a correct grammar.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • Nov 22, 2026, 7:55 PM

    @wolf480pl @andrewg Erlang also has its bitstring syntax, but that has limited support for context-sensitive decoding, so one would have to parse up to a branching point the syntax can't address directly, then match on that accordingly with more bitstrings.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 22, 2026, 8:01 PM

    @wolf480pl Lengths are the kind of things that can be directly addressed by referring to previously-matched areas.

    I was thinking more of complex formats where the value might determine whether a number of other fields are present at all.

    The kind of thing that protobuf was made for, in other words.

    TLV requires too much trust in arbitrary external inputs to use it directly for bitstring syntax (one can definitely match on it though).

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 22, 2026, 7:13 PM

    @wolf480pl @andrewg I suspect that they claim they did but that it only covered a small part of the implementation. That's usually how it turns out.

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 7:33 PM

    @lispi314 @andrewg
    AFAIK it covers the protocol spec, not the implementation.

    Still, multiple implementations following that spec independently made the same bug.

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 7:38 PM

    @wolf480pl @andrewg ...Well then they all implemented it wrong.

    The specification not being horribly broken is a good start, but the implementations themselves must model themselves.

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 7:42 PM

    @lispi314 @andrewg
    The specification may've been not wrong, but it was at least misleading.

    Also, how about deductive verification instead? Model checking anything non-trivial is dead slow and uses all the RAM...
    Although I guess if we could use 10% of the compute that's being used for LLMs, model checking would be quite fast.

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 8:26 PM

    @wolf480pl @andrewg

    The specification may've been not wrong, but it was at least misleading.

    That is a bad thing to have in a specification indeed.

    Also, how about deductive verification instead?

    That is also adequate.

    Model checking anything non-trivial is dead slow and uses all the RAM...

    Unfortunate that.

    Although I guess if we could use 10% of the compute that's being used for LLMs, model checking would be quite fast.

    And after all that resource expense, the output would actually be reliable. Though the efficiency concern vs other verification methods is a good argument against all the same.

    💬 0🔄 0⭐ 0
  • Nov 22, 2026, 8:11 AM

    @andrewg@mastodon.ie the best approach I've seen actually renders html at build (less work for the server, so more users can be served properly), and the client only rebuilds dynamic/interactive sections, so it can apply as little changes as possible during active use. has been a solved issue for years now, so I'm really surprised we're still yelling about this here.

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 22, 2026, 6:07 PM

    @mb21@hachyderm.io @andrewg@mastodon.ie I know... I used to be a frontend developer until AI caused all the job offers to disappear. What I'm saying is that we have the solutions to do as little work as possible on either end and have had those solutions for many years. Before modern web apps we had stuff like jQuery, which couldn't easily be "prerendered" and nobody complained then. Nobody complains about how PHP can easily get quite a bit slower than JS on a lowend device if there's too many other users. This specifically Anti-JS yelling has been a petpeeve of mine for a decade now.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 22, 2026, 8:43 AM

    @andrewg I would have some qualified agreement.

    For the web yes, to an extent (but various things I see as undesirable in the linked article).

    But the web is server-centric and legitimately delay-tolerant user-agents that do not expect continuous or even frequent network availability would be preferable.

    (NNTP & Syndie > PHPBB)

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