• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

DocKimbel
9-Jan-2013
[5247x3]
This will result in 'foo function been created at runtime (then JIT-compiled 
or interpreted on each call).
Kaj: you should add your syntax proposition for keyword! + issue! 
to github tracker as a wish, so we don't forget about it.
If we don't find any big drawback, I think I will implement it.
Kaj
9-Jan-2013
[5250]
OK, thanks
DocKimbel
11-Jan-2013
[5251]
Added routines invocation support to interpreter.
Pierre
11-Jan-2013
[5252]
Congratulations: the rhythm of changes in Red is just fast!

I scripted a little command that I run from time to time, just to 
see how both Rebol3 and Red are going:
cd ~/dev/Red/ && git pull && cd && cd dev/r3/ && git pull

And I can see through gitk that the rythm of Red's work is just amazing. 
Courage!
DocKimbel
11-Jan-2013
[5253]
Merci Pierre ! :-)
Pierre
11-Jan-2013
[5254]
De rien, merci à toi!

I cannot really find a startup guide for Red: so, if no one shouts, 
I'll try to write one, during my long hours of flight next week.
Kaj
11-Jan-2013
[5255]
That would be good
Pierre
11-Jan-2013
[5256]
ok, then!
DocKimbel
11-Jan-2013
[5257x3]
Pierre, have you scrolled down throw this page: https://github.com/dockimbel/Red
?
through
Let me know if there are missing information there.
Pierre
11-Jan-2013
[5260]
I had read another version of these instructions; it looks like it 
was reworked a bit.
DocKimbel
11-Jan-2013
[5261]
Yes it was, the Red/System README was merged in Red's one.
Pierre
11-Jan-2013
[5262x3]
I looked into the docs subdirectory, ran
rebol makedoc2.r 

It made red-system-quick-test.html, but then I got my eyes sore with 
the black background, so I wanted the light version, clicked and 
... oops:

Firefox ne peut trouver le fichier à l'adresse /home/pierre/heaume_pierre/developpt/Red/docs/$LIGHT$.
I found a reference to $LIGHT$ at the bottom of red-system-quick-test.txt 
, in what looks like a rebol script below a make-doc document.
REBOL []

do/args %makedoc2.r 'load-only
doc: scan-doc read file: system/options/script
set [title out] gen-html/options doc [(options)]

file: last split-path file
replace file ".txt" ".html"
file2: copy file
insert find file2 "." "-light"
replace out "$DARK$"  file
replace out "$LIGHT$" file2

write file out
replace out "dark.css" "light.css"
write file2 out
DocKimbel
11-Jan-2013
[5265]
Makedoc format allows the addition of REBOL code at the end. The 
proper way to generate the doc files is to CD to the folder, then 
run REBOL on %red-system-quick-test.txt
Pierre
11-Jan-2013
[5266]
ok
DocKimbel
11-Jan-2013
[5267]
BTW, you can find these documentations already generated online here: 
http://www.red-lang.org/p/documentation.html
Pierre
11-Jan-2013
[5268]
Isn't it a bit dark?...
GrahamC
11-Jan-2013
[5269]
It's to save power ... fewer photons emitted
DocKimbel
11-Jan-2013
[5270]
What? The site or the docs?
Pierre
11-Jan-2013
[5271x3]
;-) the site emits too few photons
to my taste...
Something that I miss, from this doc page, would be a "getting started" 
with a step-by-step guide to start coding in Red
GrahamC
11-Jan-2013
[5274]
Red on black is just nearly invisible.
DocKimbel
11-Jan-2013
[5275]
Well, I try to switch to dark themes to both save powers and my eyes. 
;-) 


I've provided a switching option to more classical "light" theme 
for the docs, but doing the same for the web site was too much work 
for me, so I've left it with the dark theme only. I will fix that 
once we get a new web site for Red (or if someone skilled enough 
can make the changes, I'll be glad to push them online).
Pierre
11-Jan-2013
[5276x2]
yes; and white on black with my firefox fonts is quite painful. I 
have a nuclear power plant nearby, providing enough electrons moving, 
so that I can afford to waste a few photons...
don't worry about this... just a detail
DocKimbel
11-Jan-2013
[5278]
Graham: it renders well here, but I don't use Clear Type. I plan 
to make some typographic changes to the blog anyway to make it more 
easily readable, I'll see if I can improve the rendering of red text 
parts.
Pierre
11-Jan-2013
[5279]
Actually, it is better on an LCD display, than on my old CRT.
DocKimbel
11-Jan-2013
[5280x2]
I've trashed my last CRT in 1997. ;-)
Actually, if some people want to tweak the CSS for the Red blog to 
make it more readable, I'll be glad to review and push the changes 
if I'm fine with them.
GrahamC
11-Jan-2013
[5282]
Can you add a link to the makedoc files on each html page?
DocKimbel
11-Jan-2013
[5283x2]
There is no makedoc files, I'm using the Blogger platform (Google). 
Unfortunately, a bad choice, it is an awful blogging platform, the 
only part that doesn't suck is the Google Analytics integration.
You can just use Firebug or the developer mode from your browser 
to retrieve the CSS files.
GrahamC
11-Jan-2013
[5285]
Oh ...
Pierre
11-Jan-2013
[5286]
I've tried playing with the background in the CSS, but it is not 
really convincing... I got a dark red, which looks more like vomi 
d'ivrogne...
Bo
11-Jan-2013
[5287]
Off-topic warning: I know most of you know this, but for any noobs 
that come along:  With LCDs and LEDs, the number of photons remains 
constant no matter the color scheme as the LCD/LED layers just filter 
out the light that is already generated by the backlight.  Some advanced 
screens will dim the backlight to the intensity of the brightest 
pixel, but these screens aren't as common.
DocKimbel
11-Jan-2013
[5288]
vomi d'ivrogne
 Isn't that shade of red color better known as "Bordeau". ;-)
Pierre
11-Jan-2013
[5289x2]
yes, sort of...
you are more poetic than I am...
GrahamC
11-Jan-2013
[5291]
Regarding docs, the issue for me, and perhaps others, is that reading 
html on your portable device requires an internet connection. So, 
an offline version such as epub or pdf is an advantage
DocKimbel
11-Jan-2013
[5292]
Bo: ah thanks...then it is just for the eyes. ;-)
GrahamC
11-Jan-2013
[5293]
I do a lot of reading on an itouch ( should upgrade to something 
bigger )
Pierre
11-Jan-2013
[5294]
GrahamC: yes, I totally agree. I am quite often out of Internet connexion 
for long periods, so I do appreciate long html pages that I can save, 
rather than bunches of small html pages. A large pdf is even better. 
Or a large .txt file, actually.
DocKimbel
11-Jan-2013
[5295x2]
Well, all the existing Red docs are on github, so feel free to add 
PDF generation, I will gladly add them to the web site.
I'm not sure the Makedoc version I'm using supports PDF export though...it 
might need an upgrade to MD3.