Essarr LoreBook

Trying to go against the current

User Tools

Site Tools


lb:red

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lb:red [2025-07-28 12:38:53] – [Red] ninjasrlb:red [2025-08-05 14:30:22] (current) – [Parse & Code] ninjasr
Line 8: Line 8:
  
 Red is based on the REBOL language which, in my experience, doesn't actually explain much to most people. Though that also means that tutorials/guides/information relevant to REBOL is //usually// applicable for Red. Red is based on the REBOL language which, in my experience, doesn't actually explain much to most people. Though that also means that tutorials/guides/information relevant to REBOL is //usually// applicable for Red.
 +===== Learning Red =====
 If you're vaguely interested in the language, just know that a lot of the learning material you'll find online is //usually accurate// but that it's quite out of date at this point. In some cases, the latest material is from 2018, while Red has already gone thru...//quite a few updates//. Though the language is easy enough to learn that this shouldn't be too big of an issue.\\ If you're vaguely interested in the language, just know that a lot of the learning material you'll find online is //usually accurate// but that it's quite out of date at this point. In some cases, the latest material is from 2018, while Red has already gone thru...//quite a few updates//. Though the language is easy enough to learn that this shouldn't be too big of an issue.\\
 This is particularly true of material for REBOL which, well, isn't 100% compatible with Red, so some changes are needed. Though you can still get a good picture of how it may/will work in Red. This is particularly true of material for REBOL which, well, isn't 100% compatible with Red, so some changes are needed. Though you can still get a good picture of how it may/will work in Red.
 +==== Advice ====
 +=== Help & DSLs ===
 +Something you'll quickly learn is that DSLs like view or rich text is that you can’t use the built-in help tool to figure out what the individual commands do. This means you'll have to rely on documentation.\\
 +This did end up tripping me up, so it's best that you keep it in mind.
 +=== Parse & Code ===
 +You'll eventually reach a point where you want to put code inside of parse rules. This can be done by placing regular Red code inside of round brackets (parentheses). But what isn't explained anywhere, though is obvious once you realized it (like me) is that you can place these anywhere in the parse rules.\\
 +Originally, I assumed that you could only place these at the end of the rules, but realized that that wasn't the case.
 +==== Complaints ====
 +Here I'm gathering a few minor issues I have with the Red language which you may or may not find useful.\\
 +I'll note that these aren't (so far) related to things like the slow development pace or lack of features available in REBOL (for example).
 +=== View's lack of Granularity ===
 +Having read [[https://caseymuratori.com/blog_0016|this]] article, which isn't related to Red directly, I came to a bit of a realization.\\
 +Basically, in view, if something isn't explicitly available thru the dialect...you're kinda screwed. You can’t just go down a level to add a split-button – which is something I wanted to do – because that lower level isn't accessible to the average person.\\
 +Granted, at some point you're going to hit Red/System, but that still isn't really part of the point. As far as I know, it isn't possible to draw a GUI in Red without using view or going down to Red/System.
 +
 +This does require some more investigation by me – however! I've already looked thru a lot of the available documentation and even glanced at the source code and, so far, I haven't found anything.
 ===== Trivilinks ===== ===== Trivilinks =====
   * [[http://www.red-lang.org/|Main Site]]   * [[http://www.red-lang.org/|Main Site]]
lb/red.1753706333.txt.gz · Last modified: 2025-07-28 12:38:53 by ninjasr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki