## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Jul 01 2018 17:34
• Dec 03 2017 05:53
@PeterWAWood banned @matrixbot
• Sep 28 2016 12:20
@PeterWAWood banned @TimeSeriesLord
luvattula
@luvattula
Any Docs about paraller computation or threads ? One can read in many sources 'Provides a strong support for Concurrency and Parallelism (actors, parallel collections etc.)' .
Semseddin Moldibi
@endo64
@luvattula It is on the roadmap. Not completed yet.
Dave Andersen
@dander
Svyatoslav
@ushakovs_gitlab
Dave Andersen
@dander
It could be a little bit. It seems to get tidied up from time to time
luvattula
@luvattula

Thnaks, well, may take som etime still... I had in my my mind multi-core software 3d-engine. Is there a way to integrate opengl ?

@theSherwood
Someone's got a repo with Red bindings to opengl or vulkan. But I can't remember where it is.
@theSherwood
@luvattula Also this: https://github.com/ldci/glfw-red
Vasilij Schneidermann
@wasamasa
Hello, I remember seeing a community project providing a serialization/configuration dialect kind of like JSON/YAML
It wasn't REDbin, that's for sure
@9214
@wasamasa that kinda describes Red itself, as a serializable data format.
Vasilij Schneidermann
@wasamasa
Sure, but I remember it as community project, with a light green background on its web page
It struggled describing itself as that, too
So maybe it was for something entirely different after all
@9214
@wasamasa perhaps it was Ren which IIRC @greggirwin authored? It was conceived as an umbrella term and specification for data format of Rebol-like languages.
Vasilij Schneidermann
@wasamasa
Yes indeed, thanks
So what is it, textual serialization format?
@9214

Yes.

Ren is a lightweight data-exchange text format.

Vasilij Schneidermann
@wasamasa
Doesn't look finished
@9214
Well, it has at least 4 known implementations (Rebol2, Rebol3, Red and Red/System), and so looks quite finished to me :wink: maybe not in body but in spirit.
Vasilij Schneidermann
@wasamasa
I mean things like the implementations list pointing to languages without an implementation and the blank links to other tooling at the bottom
It gives it a feeling of hot air
@9214
I suppose these are meant to be placeholders. @greggirwin can elaborate if needed.
Gregg Irwin
@greggirwin
The current, very old, Ren pages are incomplete. I didn't push forward with it due to the various Rebol forks and not knowing what direction Red would go with some forms. Then I just didn't have time to spend on it. Maybe next year. :^)
There is always a risk of putting things out for discussion purposes.
Johannes Lipp
@jflipp
Hi!
I discovered Red a few days ago.
I find all this ... interesting. :-)
I have a question.
I use Red on Windows.
When I run red-064.exe for the first time, I get some output
Compiling <this> ...
Compiling <that> ...
And it takes a few moments before the GUI console appears.
But on subsequent runs of red-064.exe, the GUI console appears (almost) immediately, without the "Compiling ..." output.
Now I wonder what's exactly happening on the first run of red-064.exe?
I have a basic idea about what is being compiled (some GUI code, and more).
But where is the compilation result stored?
Why is compilation no more necessary on subsequent runs of red-064.exe?
What does the compilation change?
I couldn't find any hidden folders created by this compilation process.
Also, the binary red-064.exe is not altered by the compilation process, as far as I can tell.
Thanks!
Gregg Irwin
@greggirwin

Welcome @jflipp ! When you first run Red, without command line args, it builds the console (REPL) locally and stores it in %programdata%\Red (e.g. C:\ProgramData\Red). On future runs, if the Red binary hasn't changed, it uses the existing console. If you get a new version, it builds a new console.

We plan to change the download in the future, so you'll get the REPL, and can then get the compiler. That will help new people get started, and not suffer the initial delay when they are anxious to try Red. :^)

theangryepicbanana
@ALANVF
@greggirwin / @wasamasa re: Ren, I have a (fairly) similar project on my GH if you're interested (yes, it does work): https://github.com/ALANVF/reon
I've personally been using it for writing vscode grammars, but it can really be used for anything
Gregg Irwin
@greggirwin
Thanks @ALANVF. :+1:
ams02468
@ams02468
How can I run the files (txt , exe, and etc) in red?
Semseddin Moldibi
@endo64
@ams02468 You can use call for executables and batch scripts. it would open txt files with associated application. if your txt file is a Red script then you can do it.
ams02468
@ams02468
thx @endo64
ams02468
@ams02468
hi guys i need help to convert this to red
echo off
set a="%~0"
call %a%
exit
Gregg Irwin
@greggirwin
@ams02468 what have you tried so far? Using the console is best, so you can play and explore. See what system/script/args returns, if you need to use command line parameters. Use help call to see what that function takes. And learn how to set words to refer to values. e.g. a: "Hello!" Also be sure to look at the file! datatype.
ams02468
@ams02468

i try this options
1.

a: system/script/boot
call a
exit

2

a: system/script/boot
call/console rejoin [{call } to-local-file a]
exit

3

a: system/script/boot
call/console rejoin [{start} to-local-file a]
exit

but none work for me

Semseddin Moldibi
@endo64
exit should not be there, it can be used in a function body for early exit. You can put quit or nothing instead.
There is no boot in system/script, it is in system/options.
SYSTEM/SCRIPT is an object! with the following words and values:
title   none!         none
parent  none!         none
path    none!         none
args    string!       ""

>> ? system/options
SYSTEM/OPTIONS is an object! with the following words and values:
boot             string!       {C:\Users\endo\Projects\Red\red\console.exe}
home             none!         none
path             file!         %/C/Users/endo/Projects/Red/red/
script           none!         none
Gregg Irwin
@greggirwin

@ams02468 this is me poking around in the console... (with comments added)

>> system/script/boot
*** Script Error: cannot access boot in path system/script/boot
*** Where: catch
*** Stack:
(There's no system/script/boot, so I need to use something else.)

>> system/options/boot
== {C:\ProgramData\Red\gui-console-2020-10-18-62609.exe}
(I'm in the console, so this makes sense. Can I CALL it?)

>> call system/options/boot
== 33516
(Yes, but nothing happens. Hmmm.)

>> ? call
USAGE:
... /show ...
(Ah, there's a /show refinement, maybe I need that.)

>> call/show system/options/boot
== 36784
(Yes, there it is.)

>> exe: system/options/boot
== {C:\ProgramData\Red\gui-console-2020-10-18-62609.exe}
>> call/show exe
== 3228
(Still works, using a word to refer to the boot exe)

>> call/show rejoin ["start " exe]
== 40948
(Still seems to work)

Just going step by step, confirming that I know what each one is doing interactively. Now that I can see help for call, I can try the various refinements to see how they interact with the system, give me info back, etc.

Another approach is to say what it is you're trying to accomplish, as you may get different approaches and suggestions.

ams02468
@ams02468
I want my file to be able to find and execute its own name even if its name is changed
Gregg Irwin
@greggirwin
Does call system/options/boot work for you? With /console if you need redirection.
Oldes Huhuman
@Oldes
@greggirwin @ams02468 don't you mean call/shell system/options/boot instead? Simple call opens Red as a background process.
ams02468
@ams02468
after compile doesn't work
ams02468
@ams02468
I used do in my script to run my file and reset the program. I know I have to use call after compiling, but I need to run it to find my file, like a variable. I'm looking for an example inside a bat script to use this variable "% ~ f0" I'm been looking for 1 month now
Gregg Irwin
@greggirwin

@rebolek maybe. We could use more examples here, but I think it still holds for OS differences. I just did this, compiled, and ran from a DOS console:

Red []

print [now system/options/boot]
wait 1
call/console system/options/boot

Correctly (repeatedly) called itself and printed until I stopped it.

Gregg Irwin
@greggirwin
View version:
Red [needs: View]

view compose [
below
text (form now)
text 300 (form system/options/boot)
button "Run me" [call/show system/options/boot]
]
Tinulac