Live data from Hacker News

The Red Programming Language

red-lang.org

1–10 of 135 posts

Re: The Red Programming Language

#4
post #3

I figured they were cooked when they started doing weird cryptocurrency-related stuff. I really hope they get to their 1.0 release someday.

Same. I was regularly following it until they started talking about an ICO and began focusing too much on making a dialect for block chain stuff.

The idea between having the red system language, regular scripting language, cross platform gui, and native executables was really cool though. I remember being interested back in ~2015, so my question is...what's going on as it's been a decade. I know the project is crazy ambitious of course, but how close are we to where this is at a stage where most would consider it production worthy.

Re: The Red Programming Language

#6

This is a successor to REBOL[0], designed by Carl Sassenrath[1] who designed the Amiga kernel. I've looked it a few times over the years. It's neat. I've never written a single line of it, though. [0] https://en.wikipedia.org/wiki/Rebol [1] https://en.wikipedia.org/wiki/Carl_Sassenrath

"In 1988, Sassenrath left Silicon Valley for the mountains of Ukiah valley, 2 hours north of San Francisco. From there he founded multimedia technology companies such as Pantaray, American Multimedia, and VideoStream. He also implemented the Logo programming language for the Amiga, managed the software OS development for CDTV, one of the first CD-ROM TV set-top boxes, and wrote the OS for Viscorp Ed, one of the first Internet TV set-top boxes."

What a legend!

Re: The Red Programming Language

#8
post #7

This is like the only programming language I could never learn. I just don't understand anything and I can't build any mental model of what's going on behind the hood

it's lisp with square braces instead of parens (and then a whole bunch of other random things like a gui library in the standard library?)

Re: The Red Programming Language

#9
post #7

This is like the only programming language I could never learn. I just don't understand anything and I can't build any mental model of what's going on behind the hood

I wrote a paper on REBOL back in college. It is very interesting, but the syntax is definitely weird. You might think of the function call syntax as being sort of Forth-like, but with the tokens in reverse order. So like a Lisp, but without required parentheses. e.g. in the example

  send friend@rebol.com read http://www.cnn.com
`read` knows that it takes one argument, and `send` knows that it takes two, so this ends up being grouped like

  (send friend@rebol.com (read http://www.cnn.com))
(which I think is valid syntax; that AST node is called a 'paren').

Weirdly, the language also has some infix operators, which seem a bit out-of-place to me. I have no idea how the 'parser'[1] works.

[1] 'parsing' happens so late that it feels funny to call it that. The thing that knows how to treat an array as a representation of an evaluatable expression and evaluate it.

Re: The Red Programming Language

#10
post #7

This is like the only programming language I could never learn. I just don't understand anything and I can't build any mental model of what's going on behind the hood

it's lisp with square braces instead of parens (and then a whole bunch of other random things like a gui library in the standard library?)

The square brackets aren't really analogous to Lisp's parentheses; REBOL / RED use parentheses for the same purpose, if you need them. The square brackets are more like square brackets in Factor or Joy; they are 'quotations' around a list of words (or other syntactic structures; basically they make a list that is not evaluated immediately).
Post reply on HN