Skip Navigation

Posts
57
Comments
958
Joined
2 yr. ago

  • DFRA

    That doesn't work, though.

    For a recursive acronym, you want something like ADFRA Didn't Forget Recursive Acronyms.

  • Is this a joke? This is surely worse than using semvar.

  • It's a blue screen that's shown because something has died, I think it's a perfect fit.

  • I was going to post this myself, but you beat me to it. Great video.

  • date-fns? It's third in my search results but doesn't ring any bells to me.

  • I'll be very happy to not have to use Date any more. Pop quiz, what's in whatnum?

     js
        
    const vday = new Date('14 February 2025');
    const whatnum = vday.getDay() - vday.getMonth();
    
      

    Err, it's 5... Ha, amazing; that's not even the gotcha I meant to demonstrate. getDay returns the day of the week, the day of the month is returned from getDate.

    Take two:

     js
        
    const vday = new Date('14 February 2025');
    const whatnum = vday.getDate() - vday.getMonth();
    
      

    So this is 14 - 2 = 12, right? Nope! The day (from getDate) is 1-based whereas month is 0-based, so 14 - 1 = 13.

  • Yeah, worth a read; itโ€™s fun.

    Rating: 1.5/5

    That rating doesn't seem to match the rest of the review.

  • TypeScript's readonly is compile-time only and has zero runtime cost

    This point means that I'll probably never use the good ideas in this post: if I'm doing JS complicated enough to need Object.freeze(), I'll be doing it in Typescript.

  • the neater and more consistent your handwriting, the easier time the Nuwa pen will have captur[ing] it

    That's me out then

  • This might even be an appropriate use for AI (maybe even running in-browser for privacy). I imagine something that reads your prompt and auto-populates a few rings to search. You review and edit the suggested rings, then click search.

  • I don't think that's the opposite of plot armour, though - O'Brien was too much a main character (and too popular) to be killed off, so we knew he'd survive the episode/danger/trauma.

    He definitely broke his arm more than the rest of the cast combined, but was spared any serious injury until the plot required it.

  • Minus things already mentioned (and in no particular order):

    • The Thick of It (political comedy, has some amazing swearing)
    • The Cleaner (British version of a German comedy)
    • Ghosts (not the US remake, of course)
    • 8 out of Cats Does Countdown (comedy version of the long running quiz show)
    • Alan Davis's As Yet Untitled (talk show with comedians)
    • Gone Fishing (not a comedy show per se, a gentle fishing show featuring Bob Mortimer and Paul Whitehouse)
    • Drunk History (British version of the American show/YouTube sensation from back in the day)
    • Mighty Boosh (surreal humour, still gets referenced frequently in my house)
    • Jeeves and Wooster
    • Phoenix Nights (Peter Kay show, definitely check this out)
    • Vicar of Dibley
  • It doesn't look like it, but I suppose you could write it in the config file and put the whole file in a secret (not tested, may not work)

  • I just went to look for answers this, since report-uri.com is killing its free tier, and the lowest paid is way higher than my usage justifies. What did you settle on?

  • One core was busier, but it wasn't at 100%. My Rust code yesterday was the same, perhaps it's taking too much time accessing memory.

    The time was wall time (as per Starship's output) but it was still waaay too slow to bother with again!

  • Have you tried gxhash or one of the other non-cryptographic hashers?

  • I just ran this on a laptop - it worked (part one only) but took 4h28m21s so Nushell is not a language for AoC (or I just coded it very poorly).

  • Six minutes? ๐Ÿ˜… I was feeling crappy about my 30 seconds (my naive big O cubed(?) logic means my code spends most of its time testing array equalities - 72 billion samples in the flamegraph!)

  • How have I never noticed that scan() exists? Very handy.

    I liked the zipping of the offset prices, neater than my helper method.

  • Rust

    Not too hard today, apart from yesterday's visit to a cocktail bar leaving me a little hazy in the mind.