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

World: r4wp

[Announce] Announcements only - use Ann-reply to chat

Kaj
13-Jan-2013
[299x2]
I've extended the Red interpreter console with the ability to load 
and run a script file, given as an optional program argument. It 
also has CALL now, so you can run simple programs with the intepreter 
and script the operating system.


As before, ready built binaries are available in the test repository, 
in */Red/console-pro:
http://archives.esperconsultancy.nl/Red-test/dir?ci=tip
After executing a script, you still end up in the console, to help 
with debugging. To prevent this, end the script with QUIT
Andreas
13-Jan-2013
[301x3]
The OSX x86 binary on rebolsource.net has been updated and should 
now work on OSX 10.4+.
Direct link:
http://www.rebolsource.net/downloads/osx-x86/r3-ga6077e8
Thanks to Chris Ross-Gill, HostileFork and Peter Wood for reporting 
this issue.
Kaj
14-Jan-2013
[304x3]
I've implemented INPUT and GET-ENV in the C library binding for Red:
http://red.esperconsultancy.nl/Red-C-library/dir?ci=tip

It should now be possible to do CGI programming with Red.

I've updated the console-pro interpreter:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip
The source for the extended console is here:
http://red.esperconsultancy.nl/Red-common/dir?ci=tip&name=examples
Kaj
17-Jan-2013
[307x7]
Specially for Arnold, I've implemented NOW and RANDOM for Red:
http://red.esperconsultancy.nl/Red-C-library/dir?ci=tip

I've updated the console-pro interpreter in */Red/:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip
The latest interpreter fixes from Doc are also in there
I've implemented all refinements for NOW here, except /precise:
http://www.rebol.com/r3/docs/functions/now.html
In addition, I've added /hour /minute and /second. Red has no date! 
and time! types yet, so they're returned as strings
It's pretty horrible what one has to do to hammer the chaotic C library 
API into a neat REBOL model
RANDOM has /seed. It only works on integers so far. As a bonus, random/seed/secure 
seeds the pseudo-random number generator with a clock value, so the 
start of the sequence is really random
sqlab
18-Jan-2013
[314]
now gives a string with date and time, but using  the refinements 
dont't give back a result.
This is on Windows XP
Kaj
18-Jan-2013
[315x7]
I'll answer in Ann-Reply
I've added a download/update script for the source code of the Red 
bindings to the test repository:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip
Run download.r and it will clone the repositories of currently 13 
bindings and other extensions, create subdirectories for them, and 
check out the files
Run it again and it will update all extensions to the latest versions
You will be all set for compiling the examples yourself, and using 
the bindings in your own programs
You need to have Fossil installed:
http://rebol.esperconsultancy.nl/documentation/how-to-use-Fossil.html
Kaj
19-Jan-2013
[322x4]
I made simple implementations of READ and WRITE for Red. They need 
to be included from a new file input-output.red:
http://red.esperconsultancy.nl/Red-common/dir?ci=tip

It's now possible to read and write text files with Red.

I've updated the console-pro interpreter in */Red/:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip
Similar functions are available for Red/System in input-output.reds 
but they're called READ and WRITE-STRING because WRITE conflicts 
with an internal definition in the Red/System runtime
Red doesn't have a file! type yet, so the file names need to be passed 
as strings for now
There's no error! yet, either, so READ returns NONE on error. WRITE 
returns a true/false value indicating success
Kaj
20-Jan-2013
[326x6]
I moved the GTK+ and GLib bindings for Red/System into CONTEXTs. 
If you have written code on top of it, you need to adapt the interface.


The GUI dialect is now basically independent from GTK; that is, it 
could be implemented unchanged for other GUI toolkits.
For example the WebKit web browser is now:
#include %GTK-WebKit.reds

home: "http://www.red-lang.org/"

with gtk [
	address: function [
		[cdecl]
		field		[entry!]
		browser		[scrolled-window!]
	][
		web-browse  web-get-view browser  get-entry-text field
	]

	browser: browse home

	view [
		maximize
		"Lazy Sunday Afternoon Browser"
		vbox [0
			field [home  :address browser] 0
			browser full 0
		]
	]
]
Apart from the context in which the dialect is executed (WITH GTK), 
the dialect itself and even the helper function contain no GTK specific 
words anymore
I've updated the GTK-WebKit, GTK-Champlain and OSM-GPS-Map bindings 
for the new interface
I moved the cURL and 0MQ bindings for Red/System into CONTEXTs. If 
you have written code on top of it, you need to adapt the interface.
MaxV
21-Jan-2013
[332]
Nick Antonaccio made a beautiful advanced guide: http://re-bol.com/business_programming.html
go to see it.
Andreas
21-Jan-2013
[333x3]
http://rebolsource.net/now has an "experimental" console-mode build 
for Win32 x86, which should properly re-use the parent console, if 
present.
This should generally improve the current behaviour and also make 
it possible to use alternative console frontends such as Console2.
(Please discuss in Ann-Reply.)
Kaj
21-Jan-2013
[336x3]
I added support for URLs to READ and WRITE for Red, using the cURL 
library:
http://red.esperconsultancy.nl/Red-common/dir?ci=tip


Red can now read and write text files over the network. The same 
functionality is available for Red/System as READ and WRITE-STRING.


I've updated the console-pro interpreter in */Red/ with the new functionality:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip

You need to have the cURL library available.
Even though file names and URLs are passed as strings, READ and WRITE 
detect which they are:

read "file.txt"
read "file:///file.txt"
read "http://devcon.esperconsultancy.nl"
This is not really a Red binding for the cURL library yet. I didn't 
have to add any Red code, because the extra functionality is handled 
in the corresponding Red/System functions, so it's supported at both 
levels
NickA
21-Jan-2013
[339]
Awesome Kaj!
Kaj
21-Jan-2013
[340]
All network protocols are available that cURL on your system supports:
http://curl.haxx.se/libcurl/
MaxV
22-Jan-2013
[341]
I have just created http://rebol.informe.com/portal.html, there 
is a forum, a wiki, a blog and a gallery. Do you think it can be 
the rebol community portal?
Bo
22-Jan-2013
[342]
Carl just posted a new blog entry at http://www.rebol.com/article/0527.html
Kaj
22-Jan-2013
[343x6]
I've got a preliminary Red binding and dialect working for GTK+:
http://red.esperconsultancy.nl/Red-GTK/dir?ci=tip
Hello World is:
#include %GTK.red

view ["Hello, Red GTK+ world!"]
As comparison, for Red/System it's:
#include %GTK.reds

with gtk [view label "Hello, Red/System GTK+ world!"]
You can also give a window title like in R2: