Hacker News new | ask | show | jobs
by jeremyw 1066 days ago
Since examples were hard to find:

https://learnxinyminutes.com/docs/red/

https://www.red-by-example.org/

2 comments

Thank you so much for finding those!

Despite the promising description, the language design looks pretty... quirky.

I don't know about quirky, back when I first found out about it, it was surprising that I could read it without having written a single line of code on it. That's damn impressive.

To me, its type system and parsing nature are one of a kind, to be able to label everything as what it is

  [money!] is $12.53
  [tuple!] is 5.5.5.5
  [date!] is 16-Jul-2023/21:00:17
means the parser immediately parses and type checks everything, all while looking as human readable as possible.
You can still type check those, and have a fast compiler, and not rely on a restricted set of hardcoded non-extendable types.
Do tell, I'm sure you're right, AFAIK, only forth seems to embed a parser in its compiler.
It’s homoiconic, so the quirkiness serves very similar goals to, say, Lisp.
I am not a fan of the syntax. I'll just leave that here.