Oddbean new post about | logout

Notes by Julia Evans | export

 nostr:npub1upkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xss4tcwy Oh hey, I have a storygraph... 
 @c3580d6f thank you!! 
 been trying to get some more reviews of Wizard Zines, but still trying to work out the best system. So far I've set up

 - goodreads/storygraph pages (like https://www.goodreads.com/book/show/75355942-the-pocket-guide-to-debugging & https://app.thestorygraph.com/books/bb487c59-afd8-4db2-a7d4-9a38b00656bc)
- a plugin on my site (https://store.wizardzines.com/products/the-pocket-guide-to-debugging)

still trying to figure out which one works best -- goodreads is tricky because not everyone has an account and asking someone to make an account to leave a review is a lot 
 nostr:npub1ym9ddu2qh7rda8pxklq4gxw2kxhtm4cgvdvdy64z6agwy88nhuhqcnlm9y I definitely do not think o... 
 @novalis that makes sense thanks -- thinking about it in terms of backtracking seems much more realistic 
 @novalis 

also I have a pretty clear model of how to "be the computer" for a python program, but for a regex it's harder because actually to match an NFA you have to maintain multiple possibilities in your head at the same time or something? Maintaining 3 parallel possibilities for where in the state machine we could be actually doesn't feel that easy. 

running a DFA computer in your head is pretty easy but I don't think anyone is really converting a regex to a DFA in their head 
 @novalis (when I say "maintaining many parallel possibilites at a time", I'm thinking of this "Implementation: Simulating the NFA" section from https://swtch.com/~rsc/regexp/regexp1.html where he simulates an NFA using an array of states) 
 @novalis yeah I have some of the same thoughts since my thoughts about regexes were also formed in theory of computation class

some things I find weird:

- "a regex defines a regular language" doesn't exactly map to regexes in practice (the '?' feels a little slippery to me, and in fact I get a little confused about ?s in my regexes)
- the thing where matching regexes with backreferences is NP-hard (I never use backreferences because they confuse me, but is it bad to use backreferences?) 
 @novalis 

also I have a pretty clear model of how to "be the computer" for a python program, but for a regex it's harder because actually to match an NFA you have to maintain multiple possibilities in your head at the same time or something? Maintaining 3 parallel possibilities for where in the state machine we could be actually doesn't feel that easy. 

running a DFA computer in your head is pretty easy but I don't think anyone is really converting a regex to a DFA in their head 
 nostr:npub1ym9ddu2qh7rda8pxklq4gxw2kxhtm4cgvdvdy64z6agwy88nhuhqcnlm9y I have a suspicion: people ... 
 @novalis yeah I have some of the same thoughts since my thoughts about regexes were also formed in theory of computation class

some things I find weird:

- "a regex defines a regular language" doesn't exactly map to regexes in practice (the '?' feels a little slippery to me, and in fact I get a little confused about ?s in my regexes)
- the thing where matching regexes with backreferences is NP-hard (I never use backreferences because they confuse me, but is it bad to use backreferences?) 
 nostr:npub1upkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xss4tcwy do you have any material on... 
 @aa211d11 not yet! i haven't really figured out the right approach to regular expressions, I'm not sure what the hard part is about it yet! 
 nostr:npub1upkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xss4tcwy From what I remember, we mo... 
 @b2f27659 i was surprised by all the replies about firewalls because somehow I forgot that people use iptables to configure firewalls :) (I've mostly used it for NAT and weird container stuff) 
Event not found
 @04ddd5c0 interesting thanks! do you have any idea what makes vim hard to get into? (ok if not) 
Event not found
 @72f1dbb9 godspeed