upvote
And also generate a shorter version.
reply
Semantic compressor and decompressor
reply
Honestly, this just looks like one of those lingo-heavy-but-surface-level blog posts that used to make functional programming spaces so insufferable to everyone on the outside
reply
You want to avoid branches in hot paths. If you branch inside the loop, lots of branches. If you branch outside the loop (into different specialized loops), few branches. Big fucking deal.
reply
reply

    bool w;
    int x[1000];
    int y[1000];
    for(int i=0;i<1000;i++){
      x[i] += y[i];
    }
    if(w){
      for(int i=0;i<1000;i++){
        y[i] = 0;
      }
    }
Slower but prettier with the if pushed down.
reply
These things are so divorced from the reality of programming, even when they involve actual code instead of fancy lingo. Like in Scala, not a pure functional language, tutorials used to find the most convoluted higher-order functional way to do simple things.
reply
Yet another encroachment on traditionally human activity.
reply
I am the

  Option<Walrus>
reply
I know we’re not supposed to comment just for that, but this might be my single favorite joke comment I’ve ever read here. Good job.
reply
Except that TFA is a bog standard example of traditional human activity and the GP's comment is nonsensical trolling.
reply
I'm continually impressed by the ability of humans to spam low-effort whining about suspected LLM writing in almost every HN thread.
reply
It's an LLM-generated article.
reply
How do you know? Doesn't read particularly LLM written to me, and even if it is, it's quite well written.

The author has been blogging about this kind of stuff for over 20 years. I'd be surprised if they suddenly let bots autonomously spam their blog.

reply
Yeah, sounds human-written to me, too. Out of habit I checked with Pangram - which identifies some parts as AI-written. (I think that might be false positives but am not 100% sure.)
reply