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

World: r4wp

[#Red] Red language group

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"
DocKimbel
1-Feb-2013
[5418]
Nice! It's amazing how fast you came up with a VID-like dialect for 
Red.
Kaj
1-Feb-2013
[5419x3]
Well, most of the work is in the Red/System layer that I did more 
than a year ago
Same for the other bindings
Plus, when putting a Red layer on top of it, you're staying within 
Red and Red/System, so you're on known terrain. Starting a new binding 
in Red/System throws you into the abyss of the external library's 
C code, headers and idiosyncracies, and documentation that may or 
may not exist or be correct
GrahamC
1-Feb-2013
[5422]
What can you do for Android where this is no gtk?
Kaj
1-Feb-2013
[5423]
It requires a completely extra set of bindings, including to the 
Java VM and the GUI. We're thinking about it
Bo
4-Feb-2013
[5424]
OK.  Say I have a fresh Windows PC and I want to start coding in 
Red/System for the target of Raspberry Pi.  Help me understand what 
I need to do.  Here is what I assume needs to be done, but I may 
be wrong.

1. Download R2, I assume.  Any particular version?
2. Download Red/System compiler.  From where?
3. Write the program on the PC.

4. Compile it with Red/System on the PC, but for the Raspberry Pi 
target.  Is that just a setting somewhere?
5. Move the compiled file to the Raspberry Pi and execute it.
Andreas
4-Feb-2013
[5425x2]
The following should have you covered:
https://github.com/dockimbel/Red#readme
Target for Raspberry Pi is "Linux-ARM".
Bo
4-Feb-2013
[5427]
That's exactly what I was looking for.  It would be great if that 
was prominently linked from red-lang.org. :-)
Kaj
4-Feb-2013
[5428]
It is
Arnold
4-Feb-2013
[5429]
View for windows, there is a helper script redcompiler.r on rebol.org 
to facilitate (cross-)compiling
DocKimbel
5-Feb-2013
[5430]
Last week Red presentation in The Netherlands, remastered by HostileFork: 
http://www.youtube.com/watch?v=JjPKj0_HBTY
Arnold
5-Feb-2013
[5431x2]
Bas is still couching the presentation together :)
coughing not couching ;)
Kaj
5-Feb-2013
[5433]
I implemented compose/deep. With the latest Red fixes, it works now
Kaj
6-Feb-2013
[5434]
Is FOREVER not implemented in Red?
Bo
6-Feb-2013
[5435x4]
If I wanted to access JPG pixel data in Red/System, is there an easy 
way to do that?
As the youngsters say, EPIC!  I just compiled and ran my first Red/System 
program on the Raspberry Pi running Arch Linux.
But I still want to figure out how to access JPG pixel data. :-)
Reading the Red/System Documentation on red-lang.org, I don't see 
any way to access files.  IIRC, someone said that wasn't implemented 
yet?