• she/her

Principal engineer at Mercury. I've authored the Dhall configuration language, the Haskell for all blog, and countless packages and keynote presentations.

I'm a midwife to the hidden beauty in everything.

💖 @wiredaemon


discord
Gabriella439
discord server
discord.gg/XS5ZDZ8nnp
location
bay area
private page
cohost.org/newmoon

posts from @fullmoon tagged #abstract algebra

also:

One of my very small and pedantic pet peeves with regular expressions is that there is no standard way to match nothing.

Like, if you think about regular expressions in terms of abstract algebra you have:

  • the empty regex (i.e. "") is equivalent to 1
  • concatenating two regular expressions is equivalent to multiplication (×)
  • alternation (i.e. |) is equivalent to addition (+)

… but there is no standard regex analog of 0 (a regular expression that matches nothing).

Like, you can hack something like this with a regular expression like .^ but it would be nice if there were a standard symbol that represented 0 like, i dunno, #.