Live data from Hacker News

Retina: A regex-based recreational programming language

github.com

11–20 of 21 posts

Re: Retina: A regex-based recreational programming language

#14

somewhat reminds me of 'sed', but with less history and less power.

It looks to me like it's very similar to a subset of sed, but with a more powerful regex library. But many programs in this language probably have near line-for-line translations into sed if they don't use newer regex features.

A lot of people (including me) have basically only learned the s command in sed and don't usually think about all of the more sophisticated sed features.

Re: Retina: A regex-based recreational programming language

#16
post #13

I’m enamored with the term ‘recreational programming language’. Not sure I’d ever use one, but it’s a useful categorization nonetheless!

FWIW, they're usually called esoteric programming languages/esolangs, but I'm not a fan of that term. That's why I've been using "recretional" instead. :)

Re: Retina: A regex-based recreational programming language

#17

so this is a programming language for when we aren't working? please elaborate

Exactly. The author is active on the Code Golf Stack Exchange and wrote this programming language with code golding in mind, which is viewed as relaxing by some.

Re: Retina: A regex-based recreational programming language

#18

somewhat reminds me of 'sed', but with less history and less power.

Yeah, it really is surprisingly similar to sed. "Surprisingly", because when I first designed the language I knew nothing about sed, and I still know very little (but I've seen people convert programs between both languages in a fairly straightforward manner).

Re: Retina: A regex-based recreational programming language

#19

so this is a programming language for when we aren't working? please elaborate

Yeah, that was the idea. Just a language for fun and specifically for code golf (solving programming problems in as small a program as possible). In the case of Retina, it turned out the language is actually pretty useful for throwaway scripts for string manipulation, so I actually am using the language while working occasionally, but that was definitely not a design goal. :D
Post reply on HN