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

World: r4wp

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

Kaj
19-Jan-2013
[324x2]
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
[357x2]
Kaj :-) My mistake
Kaj :-) My mistake
Robert
27-Jan-2013
[359]
New Android release:

URL		: http://development.saphirion.com/experimental/

Direct URL	: http://development.saphirion.com/experimental/r3-droid.apk

Changes:
-added DH and AES 128/256 encryption
-rewritten console syncing code
-TLS scheme improvements
-fixed runtime stack size issue
-fixed FP math using dtoa()  (thanks to Ladislav!)
-fixed shared lib unloading issue
-fixed "exit on script error" bug
-minor app handling tweaks

Please give it a try and have fun.
NickA
27-Jan-2013
[360]
Thank you Robert!
Kaj
27-Jan-2013
[361x3]
I made simple implementations of REDUCE and COMPOSE for Red, as announced 
at the DevCon:
http://red.esperconsultancy.nl/Red-common/dir?ci=tip
There's no do/next yet, so REDUCE reduces single values instead of 
complete expressions
MaxV
30-Jan-2013
[364]
Hello, now on http://rebol.informe.comthere is a wiki containing 
Rebol 2 and Rebol 3 (GitHub) wikis. You are welcome to contribute! 
If you are curious on  in the forum you'll find the scripts to upload 
automatically all words descriptions in a wiki.
Kaj
30-Jan-2013
[365x3]
I wrote a simple text editor in the Red GUI dialect:

http://red.esperconsultancy.nl/Red-GTK/dir?ci=tip&name=examples
Red []

#include %common/input-output.red
#include %GTK/GTK.red

load-file: function [
	field		[integer!]  ; "widget!"
	area		[integer!]  ; "widget!"
	return:		[logic!]
][
	all [
		link: get-field-text field
		not empty? link
		data: read link
		set-area-text area data
	]
]
view/title [
	"File/URL:" line: field "" [load-file face text]
	button "Load" [load-file line text]
	button "Save" [
		all [
			link: get-field-text line
			not empty? link
			data: get-area-text text
			write link data
		]
	]
	text: area
	button "Quit" close
] "Red GTK+ Text Editor"
In the line field, you can enter either a local file name or a URL, 
so the editor can be used both on local files and files on remote 
servers
NickA
30-Jan-2013
[368]
This is really cool.  I wanna play!
Kaj
31-Jan-2013
[369x2]
I extended the Red text editor to support a program argument, for 
loading a text source from the command line:
Red []

#include %common/input-output.red
#include %GTK/GTK.red

link: argument 1

load-file: function [
	field		[integer!]  ; "widget!"
	area		[integer!]  ; "widget!"
	return:		[logic!]
][
	all [
		link: get-field-text field
		not empty? link
		data: read link
		set-area-text area data
	]
]
view/title compose [
	"File/URL:" line: field (any [link ""]) [load-file face text]
	button "Load" [load-file line text]
	button "Save" [
		all [
			link: get-field-text line
			not empty? link
			data: get-area-text text
			write link data
		]
	]
	text: area (any [
		all [
			link
			not empty? link
			read link
		]
		""
	])
	button "Quit" close
] "Red GTK+ Text Editor"
Kaj
1-Feb-2013
[371x2]
With Doc's latest Red fixes, I was able to write a very simple IDE 
in the GUI dialect:

http://red.esperconsultancy.nl/Red-GTK/dir?ci=tip&name=examples


You can write either regular Red code or GUI dialect code, and execute 
it with respectively the Do or View button. Do executes the code 
in the interpreter, so no compilation is needed, but the current 
limitations of the interpreter apply.


The code is only 25 lines, but at Brian's request, I'll post that 
in the #Red channel.
It's best to start it from a command line to get any diagnostic output
Kaj
3-Feb-2013
[373]
I added seven Red GTK+ examples to the test builds, including the 
new text editor and simple IDE, so you can try them out right away.

The sources are here:
http://red.esperconsultancy.nl/Red-GTK/dir?ci=tip&name=examples

The binary programs are here:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip


*/Red/console-pro now includes the GTK binding, so you can make GUIs 
interactively right from the Red interpreter console.

Further, HBOX and VBOX styles are now available for layouting.