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

World: r4wp

[#Red] Red language group

Kaj
16-Jan-2013
[5368x2]
Arnold, Red/System has been ready for writing code for at least a 
year. Red is only getting to that stage now, so that's why I have 
been working in Red/System. My 6502 emulator is a major self-contained 
work in Red/System, but there's also the issue of communicating with 
the outside world. Unless you write your own operating system, the 
way to do that is by binding to the existing operating system
#252 is finally fixed
Gregg
16-Jan-2013
[5370]
More great progress Doc. Thanks for the update.
Kaj
16-Jan-2013
[5371]
I've tested a number of complex scenarios, including one I hadn't 
reported yet, and they work now
DocKimbel
16-Jan-2013
[5372]
We are still struggling to make #366 pass in all use-cases (Windows/Linux/OSX, 
run from console vs from shell,...): https://github.com/dockimbel/Red/issues/366
Kaj
16-Jan-2013
[5373]
Fortunately, I can skip the Windows discussion :-)
DocKimbel
16-Jan-2013
[5374]
Actually, my last issue in on non-Windows systems, with the run from 
"console vs shell". Hard to fix one without breaking the other...
DocKimbel
17-Jan-2013
[5375]
With the help of Andreas and Peter, we've fixed the last remaining 
non-passing cases. I will merge the fixes in the master branch tonight, 
in the meantime, if you notice any regression or issue with paths 
handling, please report them here before the merge.
NickA
17-Jan-2013
[5376]
It's great to hear you're making continuted progress!
DocKimbel
17-Jan-2013
[5377]
Thanks Nick.
Pekr
17-Jan-2013
[5378]
Just donated 50 EUR so that Red project does not feel bad by my move 
to donate also to R3/Android/GUI :-)
DocKimbel
17-Jan-2013
[5379]
Thanks Petr! :-)
Kaj
17-Jan-2013
[5380]
I've done a full build run with the path fixes, without regressions
DocKimbel
17-Jan-2013
[5381]
Merged branch `fix-issue-277`. Thanks to all contributors and testers 
for helping clean up those issues.
DocKimbel
23-Jan-2013
[5382]
http://www.rebol.com/cgi-bin/blog.r?view=0527#comments


Fork: "I am porting Red to R3--and while I won't claim I'm "almost 
done", I will say I've made significant progress. Red/System now 
builds a working hello.reds under both R3 and R2."


Great! Like Nick says, hard to keep track of everything happening 
these days. :-)
Pekr
23-Jan-2013
[5383x2]
surprised by Fork even looking into Red, he seemed to be interested 
mainly in R3 itself ...
Well, in fact I don't understand, what he actually did. What I would 
expect is someone writing R3 in R/S, so that it would got all backends 
R/S supports?
Henrik
23-Jan-2013
[5385]
It sounds like he ported the Red compiler, which currently runs on 
R2, AFAIK?
DocKimbel
23-Jan-2013
[5386]
He ported the Red/System compiler from R2 to R3 and he seems to be 
working to port Red compiler from R2 to R3 too.
PeterWood
23-Jan-2013
[5387]
Kaj should be pleased :-)
Pekr
23-Jan-2013
[5388]
pity he did not start porting Red/System into Red, that would speed-up 
removal of dependency on Rebol :-)
BrianH
23-Jan-2013
[5389]
Why don't we wait until more of Red exists? Or is Red feature-complete 
for core language features that would be used to write a compiler? 
If not, and you ported the Red compiler to the Red subset you have 
now, it would be a lot of work to do. And you'd want to rewrite it 
when you actually implemented the Red features you would want to 
eventually use in the compiler. Removing the dependency on Rebol 
should be done eventually, but it isn't as high a priority as implementing 
Red, right?
Andreas
23-Jan-2013
[5390x2]
Doc's plan is to implement the whole stack using Red rather sonner 
than later.
AFAIU, the priority has always been to implement as much of Red as 
is needed for bootstrapping.
BrianH
23-Jan-2013
[5392]
Cool. We can wait to do the bootstrapping until that is done.
Kaj
23-Jan-2013
[5393]
Does #192 apply to SWITCH and CASE, too?
DocKimbel
24-Jan-2013
[5394]
Very possible, it should affect every Red/System statement used in 
expressions. I don't think this is fixable before Red/System v2.
Ladislav
25-Jan-2013
[5395]
I haven't been of much help to you yet. I even may have been "too 
loud" sometimes polluting this discussion with my preferences. What 
I want to say now, though, is that I consider it good to have more 
dialects of Rebol instead of having just a totally compatible copy, 
so, please, take that as an encouragement and appraisal of your work.
DocKimbel
28-Jan-2013
[5396]
Thank you for your kind words Ladislav.
GrahamC
28-Jan-2013
[5397]
Doc, would you update this page of yours http://www.red-lang.org/p/documentation.html


to indicate that Red chat is occuring at http://chat.stackoverflow.com/rooms/291/rebol-and-red
Arnold
29-Jan-2013
[5398x2]
The Rde presentation shows the use of the binary Red. In it shows 
how to compile to get a cgi and a dynamic library. Are these also 
implemented in the current compile scripts? In that case that holds 
a good argument to update the Redcompiler.r script. It needs some 
work anyhow I noticed, it is rather location dependent atm.
Rde=Red
DocKimbel
29-Jan-2013
[5400x2]
Arnold: no, it's not implemented yet, it's a target.
GrahamC: I will add to the Red web site only links to strictly Red-related 
communication channels. OTOH, I can tweet this link.
Bo
30-Jan-2013
[5402]
I'd like to know if it would be possible to use Red/System to implement 
a program to capture frames from a web cam on a Raspberry Pi?  Or 
would this be better performed in another language?
DocKimbel
30-Jan-2013
[5403]
I know that François Jouen is already using Red/System to make image 
capturing from multiple cameras on OS X. Also as a rule of thumb, 
everything that is doable in C can be also achieved in Red/System.
Arnold
30-Jan-2013
[5404]
That it is a target I can see now I have viewed the presentation 
a second time. Do you have a faint idea of a timeline when various 
stages of Red could become part of the real world? So version 4 in 
april and the first binary Red in 2015?
DocKimbel
30-Jan-2013
[5405x3]
Binary Red could be added in a few weeks (except for the interpreter 
with console which would need an additiion binary), we just need 
to encap all Red codebase files in one executable.
For a complete single binary, we need Red to be self-hosted, so probably 
not before end of 2013.
additiion
 = additional
Kaj
30-Jan-2013
[5408]
The interpreter console is already a binary
Bo
30-Jan-2013
[5409]
Thanks for the info.  I have a 512MB RasPi and a 16GB SD card on 
my desk right now.  I'm going to give it a shot soon.
Rebolek
31-Jan-2013
[5410]
Can I pass function pointer as an argument to another function in 
Red/System?
Kaj
31-Jan-2013
[5411x3]
Yes
However, it's not yet supported for functions defined by #import, 
so if you need that, you have to write a wrapper function
Also, in some places you have to cast the function pointer to an 
integer to pass it
Rebolek
31-Jan-2013
[5414]
Ok, thanks. I unfortunatelly hadn't chance to check Red/System in 
last few months. I'm very glad it can be done, I have to find some 
time for Red/System again.
Kaj
31-Jan-2013
[5415]
Since Red needed jump tables, you can also go the other way around, 
and cast an integer/pointer to a function, then call it
Kaj
1-Feb-2013
[5416x2]
Here's the code for the Red GUI IDE:
Red []

#include %GTK/GTK.red

view/title [
	text: area
	button "Do" [
		unless any [
			none? script: get-area-text text
			empty? script
			empty? code: load script
			unset? result: do code
		][
			prin "== "
			probe result
		]
	]
	button "View" [
		all [
			script: get-area-text text
			not empty? script
			not empty? code: load script
			view code
		]
	]
	button "Quit" close
] "Red GTK+ IDE"