Login
You're viewing the mastodon.coffee public feed.

Replies

  • Mar 31, 2026, 3:25 PM

    (I had to remove the "❤️" emoji because konsole can't handle it.

    also tbh I'm not a fan of every single message ending in ~❤️.

    but maybe I'm actually a bad little boy, who knows?)

    💬 2🔄 0⭐ 0
  • Mar 31, 2026, 3:29 PM

    random choice makes a lot of this very easy.

    the one thing really missing is proper format strings - currently if you do MOMMYS_ROLE believes in you, and you replace "MOMMYS_ROLE" and then send it off to printf... well, what if MOMMYS_ROLE contains a format character?

    Or what if "MOMMYS_ROLE" contains the string "AFFECTIONATE_TERM" and then we insert the AFFECTIONATE_TERM after?

    At one point I considered writing a string format subcommand to avoid all that, but tbh I've decided that mommy-based format string injection isn't a huge vulnerability at this time.

    💬 1🔄 0⭐ 0
  • Mar 31, 2026, 3:37 PM

    Okay first thing I'm doing here after using this in practice is to only fire it randomly.

    It's really pretty annoying after every command (but then I'm currently executing "true" and "false" a lot just to test it).

    So let's try only showing it 10% of the time or so?

    💬 1🔄 0⭐ 0
  • Mar 31, 2026, 3:46 PM

    Another fish feature I keep thinking about which would be useful for this: set --default.

    Basically instead of introducing that weird ${foo:-bar} syntax that the posix heads have, set a variable and use a value only if it hasn't been set yet:

    set --default --local MOMMYS_PRONOUNS her their

    which sets $MOMMYS_PRONOUNS as a local variable (in any case), and uses the values "her" and "their" if it didn't exist yet. So you guarantee a local variable, but keep the values you want.

    That's useful for customization, otherwise you end up doing set -l pronouns her; if set -q MOMMYS_PRONOUNS; set pronouns $MOMMYS_PRONOUNS; end which gets old fast if you have 5 config variables to set.

    Or maybe I'm just too fish-brained?

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Mar 31, 2026, 5:53 PM

    Features I'm experimenting with:

    • Randomized adjectives
    • Logarithmic mommy backoff - the longer a command takes, the more likely it is that mommy reacts

    For that latter one I need to find a satisfying curve, but my math brain isn't engaging right now.

    And yes I have implemented set --default for this.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Mar 31, 2026, 3:31 PM

    @hazelnot I mean it goes all fucky-wucky.

    Konsole thinks "❤️" is one cell wide, but every sensible program thinks it's two - including vim, emacs and fish. Sensible because that's what unicode thinks it is (konsole renders it in the "text" presentation, as if it had variation selector 15).

    That makes the cursor go OOB, which means lines get mashed up, which makes it really fucking hard to edit the script.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • kaekae_bytheocean@slime.global
    Mar 31, 2026, 3:48 PM

    @bean IIUC, it seems like --default is kinda more --if-unset, no?

    💬 0🔄 0⭐ 0