World: r4wp
[#Red] Red language group
older newer | first last |
Pekr 8-May-2013 [7571] | According to Git it seems that global variables and on-load/on-unload are not yet supported. How limiting is that? |
Kaj 8-May-2013 [7572] | Not very, at the moment |
DocKimbel 8-May-2013 [7573] | The main effect is that Red/System init code is not run when the shared lib is loaded, this affects floating point exceptions flags and runtime error catching routines. Not a problem for now. |
Arnold 8-May-2013 [7574] | @Peter I took the liberty of commenting the document here https://github.com/dockimbel/Red/wiki/Ideal-array-capabilities We could add Nenad's comment on it too. It is a giant wishlist indeed :) @Nenad, "Being able to do whatever C does without its outdated syntax and bloated toolchains is a dream coming true. ;-)" it is :) |
DocKimbel 8-May-2013 [7575x2] | Peter, you should add an "Author:" field in the wiki page header, so that it's not being misinterpreted as being a Red official page. |
Oh forgot it, I can edit it directly. | |
Arnold 8-May-2013 [7577x2] | DId you by accident wipe the page Nenad? |
(No history of the document available, strange) | |
DocKimbel 8-May-2013 [7579x2] | I changed the title, so the URL changed too, sorry. https://github.com/dockimbel/Red/wiki/Proposition-for-ideal-array-capabilities |
Just click on [Pages] menu to list all pages from the wiki. | |
Arnold 8-May-2013 [7581] | I was afraid I caused this.. thx! |
GrahamC 8-May-2013 [7582] | @Kaj do you have a url that takes me directly to these files? |
Kaj 8-May-2013 [7583] | http://red.esperconsultancy.nl/Red-test/dir?ci=tip |
GrahamC 8-May-2013 [7584x2] | Looking for examples of I/O in Red as mentioned above |
Your fossil repo is very hard to follow | |
Kaj 8-May-2013 [7586x4] | You wanted a direct file link |
You can also download as one package: | |
http://web.syllable.org/news/2012-11-18-20-47-Red-high-level-programming-language-first-alpha.html | |
It's a binary repository. The examples are in the source repositories | |
GrahamC 8-May-2013 [7590] | ah.. linux only |
Kaj 8-May-2013 [7591] | No, why do you think so? The first link shows folders for all platforms |
GrahamC 8-May-2013 [7592x2] | I was looking for hello and increment in the windows folder |
http://red.esperconsultancy.nl/Red-test/dir?ci=c2427e44ef51f731&name=Windows/Red | |
Kaj 8-May-2013 [7594] | Those are not separate programs, they're COMMANDs in the R3 bridge example. And there's no binary for that |
GrahamC 8-May-2013 [7595x2] | Ok you lost me again |
I'm not seeing anything named r3 bridge | |
Kaj 8-May-2013 [7597x6] | See above: |
http://red.esperconsultancy.nl/Red-REBOL-3/dir?ci=tip&name=examples | |
Most of the I/O examples are in GTK programs: | |
http://red.esperconsultancy.nl/Red-GTK/dir?ci=tip&name=examples | |
GTK-text-editor has reading and writing to files and URLs | |
What I meant when you asked for I/O are the red, red-core and red-base interpreter binaries. They're in the Red-test repository, the first I gave you | |
GrahamC 8-May-2013 [7603] | If you have time, a blog/tutorial on how this works would be great |
Kaj 8-May-2013 [7604x4] | I'll be setting up a website for them later |
Doc is keeping me occupied with coding :-) | |
Until then, the basic documentation is here in Announce | |
If you start one of those interpreters, the I/O is very simple: READ and WRITE like in R2 | |
GrahamC 8-May-2013 [7608] | so you can do cgi? |
Kaj 8-May-2013 [7609x2] | Yep, has been possible for some time |
Both interpreted and compiled | |
GrahamC 8-May-2013 [7611] | got a red example? |
Kaj 8-May-2013 [7612x3] | I/O is currently text only, UTF-8. There are %file literals, but url! needs to be written as string! for now |
For CGI? No, but it's quite standard. Just PRINT the output. There's also GET-ENV to get the request environment variables, and you can probably get POST input with INPUT | |
You can test Red I/O on Try REBOL. It runs the red-core interpreter | |
GrahamC 8-May-2013 [7615] | I'm running your GTK+ Browser and print buttons do nothing? |
Kaj 8-May-2013 [7616] | Did you run it from a terminal? |
GrahamC 8-May-2013 [7617] | Nope |
Kaj 8-May-2013 [7618] | Then where did you expect to see the output? :-) |
GrahamC 8-May-2013 [7619] | on my printer :) |
Kaj 8-May-2013 [7620] | I thought you would say that, but nothing is what it seems in computers ;-) |
older newer | first last |