from Hacker News

Lisp implementation in sed

by inglesp on 6/27/14, 8:52 PM with 60 comments

  • by mseri on 6/27/14, 10:12 PM

    Ahahah. Awesome. There is even an 'awk' version: https://github.com/darius/awklisp
  • by nate_martin on 6/27/14, 11:13 PM

    Would someone mind giving a quick explanation of how this works? I have only used sed to replace text in files and directories. How do people write interpreters and game loops with this unix utility?
  • by asgard1024 on 6/28/14, 9:32 AM

    Wouldn't the opposite - stream editor (programmable) in Lisp - be more useful?
  • by justinator on 6/28/14, 5:04 AM

    Well, OK: I'm curious, can I use the sed to Perl utility, to then make a Lisp implementation in Perl?
  • by bndr on 6/27/14, 10:12 PM

    This is amazing. Just reading the code makes my head hurt, but you implemented a language with it.
  • by bane on 6/29/14, 2:57 AM

    So I guess if all languages are eventually converging on Lisp, are all Lisps eventually converging on sed? Is sed the bottom turtle or are there more?
  • by IvyMike on 6/27/14, 11:43 PM

    Now you have three problems.