hn.today

Regex visualized as 3D marble run

regexmarblerun.com67 points26 comments
Screenshot of Regex visualized as 3D marble run

Commenters treated the 3D regex marble-run as a pedagogical toy: seizethecheese said it was built to help non‑technical people and noted it was created with Agent Duel, monster_truck and others found the visualization satisfying and suggested features like sound or a follow cam, while fwlr pointed out a 301‑character input limit. Several people framed it as a practical teaching aid: atoav and ogogmad argued beginners benefit from starting with simple text‑matching and a small core of operators, wongarsu, bazoom42 and sgarland reminded readers that most engines support verbose mode or named groups for readability, and dylan604 and mejutoco suggested adding comments or using higher‑level DSLs like Pomsky (dmd) rather than an XML‑style wrapper.

Opinion split sharply on how deep to teach and what to accept as “regex.” crazygringo and others called regex syntax needlessly punitive and would prefer readable alternatives; ogogmad and atoav said teaching a constrained subset is sufficient. StilesCrisis, teiferer and ogogmad raised substantive limits: backreferences and dialect differences make regexes more powerful and more dangerous, with ogogmad warning about worst‑case exponential matching and implementation tradeoffs between NFAs, DFAs and practical engines. Views diverged between treating regex as a simple, teachable toolkit and treating extended features as complex, performance‑sensitive traps.

Read on regexmarblerun.com26 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.