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

World: r4wp

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

Kaj
17-Jan-2013
[308x6]
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
[343x8]
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:
view/title ["Hello, Red GTK+ world!"] "Title"
More or less like in R2, the default window title is the program 
name
NickA
22-Jan-2013
[351]
There are so many things to get excited about all the time these 
days!
Florin
23-Jan-2013
[352]
Once rebol went open source and decided it's time to return to rebol, 
it was rather frustrating for me to find resources about rebol. I'd 
like to create such a page for other people's convenience. Should 
it be reboler.com or rebolista.com or anything else? The page will 
be a compilation of resources that will help newcomers get an idea 
of what rebol is all about and how to get started, such as: where 
to get the latest news, relevant contributors, blogs, important libraries, 
etc. I'd like to register the domain tonight and have the page ready 
in a couple of weeks. Not a big deal - just a quick reference at 
least for myself. Please suggest name and stuff to put on the page. 
Congrats to the community for sticking to rebol thru the quiet times 
- I did not.
GiuseppeC
24-Jan-2013
[353]
Floring, we are already full of this kind of pages: 
http://www.rebol.net/wiki/Main_Page
http://www.rebol.com/docs.html
I suggest you to contribute to the REBOL Wiki.

However, if you prefer doing something else you are always welcome.
Florin
24-Jan-2013
[354]
GiuseppeC: Thanks. I will consider all the available resources. I 
have little time available. Most rebol related resources seem dated 
though.
Kaj
24-Jan-2013
[355]
Please chat in the Ann-Reply channel
MaxV
25-Jan-2013
[356]
Hello, now http://rebol.informe.com/portal.htmlworks weel, I''m 
including all Rebol wiki around the web in it. So with just one account, 
you can:
- improve wiki
-discuss of rebol on forum
- upload images on Gallery
-... and much more
Take a look and try...
GiuseppeC
25-Jan-2013
[357]
Kaj :-) My mistake