Red and Rebol

Discuss other programming languages besides AutoHotkey
burque505
Posts: 926
Joined: 22 Jan 2017, 19:37

Red and Rebol

10 Feb 2019, 15:30

Red is quite interesting. It produces minuscule binaries. The attached random image viewer, cloned from code by Wesley Hill with a little tweak to add a different random image site, is only 69kb expanded (18kb in the zip). The little spreadsheet is about 75kb. However, both need the LibRedRT.dll runtime library also in the folder, so compared with AHK there's maybe not any real size benefit. Interesting nonetheless. Very compact code also, some is in the archive. Active development community, nightly builds. Based on Rebol (pronounced like rebel), which is more mature but (apparently) isn't seeing the same development effort as Red at the moment.

EDIT: Red can in fact compile to programs without dependencies. The code in the program "viewer2.exe" in the zip file was compiled like this:

Code: Select all

red -r -t Windows viewer2.red
"viewer.exe" was compiled like this:

Code: Select all

red -c -t Windows viewer.red
Despite the "-c" flag, that means development mode + include the runtime library.

So, perhaps, if you wanted to distribute lots of red apps in one folder, presumably you could compile them all with the "-c" flag, and include the runtime, saving lots of space.
pico.gif
pico.gif (120.3 KiB) Viewed 586 times
viewer.gif
viewer.gif (242.52 KiB) Viewed 586 times
EDIT: Forgot the zip archive, sorry.
Attachments
viewer.zip
(890.19 KiB) Downloaded 17 times
astral8wiz
Posts: 4
Joined: 10 Mar 2019, 01:22

Re: Red and Rebol

10 Mar 2019, 02:39

Very interesting indeed.
burque505
Posts: 926
Joined: 22 Jan 2017, 19:37

Re: Red and Rebol

11 Mar 2019, 16:22

@astral8wiz, today I managed to get AHK to run from red, via AutoHotkey.dll. I you (or anyone else, of course) is interested, I could post the red-lang code I used. I didn't need a separate AHK script, although that can be done - I just put code inside the red-lang script and passed it to AutoHotkey.dll.
astral8wiz
Posts: 4
Joined: 10 Mar 2019, 01:22

Re: Red and Rebol

14 Mar 2019, 03:35

I know some basic AutoHotkey but I have only worked with scripts that can be run with just the single 64-bit executable version; never with Autohotkey.dll.

I went through some sample codes of Red and liked its compactness. I will definitely find time to learn to write some code in Red language. Any suggestions for systematic learning besides "Getting Started" and "Short Red Code Examples" pages?
SOTE
Posts: 546
Joined: 15 Jun 2015, 06:21

Re: Red and Rebol

14 Mar 2019, 04:25

Red does look promising, but I think they still have a long way to go. Possibly another 2 years or so. That's still some time out, that who knows what might be out there at that time. And I would have to say that Object Pascal (and the Free Pascal Compiler) is ahead of them in terms of cross-platform development and cross-compiling, despite them posting an inaccurate comparison chart.

I'm also a bit worried about where Red/Pro will go. I hope they don't go full Embarcadero Delphi, with something lose your mind ridiculously expensive or they neuter the freeware version (not the language, but the IDE) into something useless. This also can leave it vulnerable to or comparatively less appealing versus existing open-source freeware projects.
burque505
Posts: 926
Joined: 22 Jan 2017, 19:37

Re: Red and Rebol

14 Mar 2019, 10:23

SOTE, I share your concern about Red/Pro's direction. Red does appear to be maturing rapidly, though. @astral8wiz, you might try Ungaretti's tutorials here also, I'm going through them now myself. I've noticed that a lot of example code that's available is a couple of years old, and lots of it needs tweaking to run. There is a github repo (that you've probably already found), but it is not intuitive to search. https://github.com/red/red/wiki/[LINKS]-Projects-showcase-%28links-to-remember%29 is one link that's hard to discover with search engines, but worth a look. (Sorry about not wrapping that in URL code, because of the brackets in [LINKS] it doesn't work.)
User avatar
Arkan
Posts: 22
Joined: 27 Nov 2018, 03:12

Re: Red and Rebol

18 Mar 2019, 01:29

I am now trying to learn how to write in red, I really liked the programs that are written on it.
burque505
Posts: 926
Joined: 22 Jan 2017, 19:37

Re: Red and Rebol

19 Mar 2019, 17:42

@Arkan: :+1:

Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 3 guests