p. languages: REBOL the internet console
Thursday, September 13th, 2007REBOL is basically one of the first languages I have meet like 6 years ago. It is very unique and very different from your usual imperative language. It was called the “messaging language”. It’s long since I made a concrete application with Rebol but I still use it whenever I have to do testing or prototyping the network stuff. It’s like a internet console for me. Some simplest snippets…
REBOL has protocols, lets use a dns protocol
>> ;I sometimes need a IP of some domain
>> read dns://www.otroski.net
== 208.97.129.202
>> ;and sometimes and domain of an IP
>> read dns://209.85.129.104
== "fk-in-f104.google.com"
Read a web page over http
>> read http://www.bravekidgames.com
== {>html<
<head>
<title>BRAVE KID GAMES - Games, Printables and Online activities for kids.</title>
<script src="bin_v3/pulp/js_mo...
>> ;Save from web-server to a local file
>> write %index.html read http://www.bravekidgames.com
>> read %index.html
== {<html>
<head>
<title>BRAVE KID GAMES - Games, Printables and Online activities for kids.</title>
<script src="bin_v3/pulp/js_mo...
Open two rebol consoles.. one will listen on the UDP port, the other will send the UDP packet to it:
>> ;in one console make a listening connection
>> read udp://:8001
>> ;in the other console send the data to that port
>> write udp://localhost:8001 "hello"
>> ;in the first console you will get
== "hello"
This is a small small part of what REBOL is about. The REBOLER’s are right now all waiting for rebol 3.0 which should be really Rebolutionary. I hope it comes out soon, because I am very interested too.

