[REBOL] Re: even further ... Re: Introducing REBOL/Base - FAQ
From: gscottjones:mchsi at: 30-Sep-2002 11:12
From: "Graham Chiu"
> << I wonder if it will get small enough to allow a Palm port. >>
From: "Gregg Irwin"
> Probably not unless Palm OS allows more memory for applications. I think
> they said once that it only gives them something like 96K to work in.
>
> Does anyone know of other interpreters that run on Palm for comparison?
An older version of Tcl (7.6) has apparently been ported to Palm.
http://palm-tcl.sourceforge.net/
which is curious, given that base Tcl is larger than REBOL. My guess is
that REBOL "expands" into the memory space far more than this older Tcl
version, but I do not know the actual facts. Apparently, it avoids Tk, and
uses the Palm OS "forms" for its gui stuff.
Since I had the documentation open, I copied the following for the curious
about what this looks like. Of, Course, I am wondering if a stripped REBOL,
only essentials added back, could do a similar thing.
Here is a prototype resource file for a form.
FORM ID 500 AT (0 0 160 160)
MENUID 550
NOFRAME
BEGIN
TITLE "Palm TCL Demonstration"
FIELD ID 501 AT (10 20 140 80) FONT 0 NONEDITABLE MULTIPLELINES
SCROLLBAR ID 502 AT (150 20 7 80) VALUE 0 MIN 0 MAX 0 PAGESIZE 0
BUTTON "User Interface Demo" ID 503 AT (40 120 AUTO AUTO) FONT 0
BUTTON "Address Book Demo" ID 504 AT (40 140 AUTO AUTO) FONT 0
END
And here is the Tcl script that loads, unloads, and displays the form:
set form [form load 500 -menucmd {menuproc %W %S}]
$form set 501 {This is a simple demo}
$form itemconfig 503 -command {%W unload; loadnextform}
$form display
Interesting!
REBOL/Base/Palm
or
REBOL/Palm
--Scott Jones