Repldex Archive

Red

Red is a programming language that taeb really likes.

It's based on an older language called REBOL, which kinda failed due to half of it being proprietary and closed source (once it finally became open source, the language was already dead). Unlike REBOL, however, Red has been open source from the start, and it's main goals are to fix the issues that REBOL had as a language (such as the name being in all caps).


Syntax-wise, Red is extremely simple and allows many values to be typed as they would outside of programming such as dates/times, money (although that hasn't actually been ported from REBOL yet), percentages, URLs, HTML tags (yes really), and even hashtags! It also knows when a function call starts and when it ends without needing any sort of indication (so add negative 1 max abs -2 3 is essentially add (negative 1) (max (abs -2) 3))

(todo: add more detail here)


Red also comes with 2 really cool tools (called "dialects"): View and Parse. View is used for making GUIs and graphical games/applications (GTK backend for Linux coming soon!), and Parse is used for easily parsing data such as strings (which is quite OP imo) and regular Red values. When using Parse for strings, it's kinda like using regex except 1) it's not a bunch of gibberish, 2) it's very easy to learn, and 3) you can define rules and even nest them/make them recursive.


One last thing is that Red has a lower-level dialect called Red/System, which allows for native compilation, loading dynamic libraries, and it even comes with a custom linker.


For more info on Red, here's their website: https://www.red-lang.org/