3 ms·
Could be that they relied on AI to generate the gnarly regex ¯\_(ツ)_/¯
by cosmie 2y ago
Could be that they relied on AI to generate the gnarly regex ¯\_(ツ)_/¯
- ddalex 2y agoAny sufficiently advanced regex is indistinguishable from AI.
- wslh 2y agoEven simple regex ones, since we don't know if they were created by a human or an AI.
- readthenotes1 2y agoI'm trying to think of a funny way to cite Clark's Law, but failing...
- Izkata 2y agoRegexes occasionally get called "black magic", and there is is an inverse of Clarke's Third Law: Any sufficiently advanced magic is indistinguishable from technology.
- xeonmc 2y agoI think you meant “any sufficiently commoditized magic is indistinguishable from technology”, or “any sufficiently analyzed magic is indistinguishable from science.”
- J_Shelby_J 2y agoWith enough if statements, you could create a LLM.
- jajko 2y agoI am still waiting for an LLM trained to focus on effin' regexes and their variants like sed, somebody please do a page with ads for this and you will have a nice little side income and warm fuzzy feeling on top of it. Natural language -> fully working one, I don't mean some email validators but way more complex stuff. Although, I've recently had a case which was too much even for regexes in any form or spec, then sort of grammar-based parser needed to be done from scratch.
- vlovich123 2y agoI haven’t had the need for super complicated regexes, but ChatGPT and Claude both worked fine to generate a regex to extract markdown code blocks.