Hi, everyone!
I've been working on storing Rebol objects to a file and retrieving them
again, which I'm calling a "Object Sea" for want of a better phrase or word.
An object sea looks like:
[
make object! [
M: 123
Name: "Sea #1"
O:
make object! [
M:
My sympathies! :-/
[EMAIL PROTECTED] wrote:
>
> I'm being punished for it now by having to reinstall everything
> on the machine from the opsys upwards. I guess it got jealous
> too and trashed itself.
>
Been there. Done that. Don't want to go there again.
>
> There's some oddity going on
>"Use the SOURCE, Luke!" ;-)
>
> Try copying the following into your interpreter window:
>
> help context
> source context
> help does
> source does
> help has
> source has
>
> Too much thinking in c? ;-)
Heh. Actually, it's things like. okay, um... the langua
numerical recipies online
http://www.ma.utexas.edu/documentation/nr/bookfpdf/f6-4.pdf
more general discussion
http://mathworld.wolfram.com/Studentst-Distribution.html
matlab versions
http://www.maths.lth.se/matstat/stixbox/stixbox/pt.m
hope these help
On Wed, 20 Feb 2002, Joel Neely wrote:
I'm sure someone else has gotten to this already (I only get to my email
about once every 24hrs), but in case someone else hasn't mentioned this,
there's always the good old method of (I know this isn't all totally proper
REBOL, or good code):
test: x
list: [a b c d ...]
idxs: []
i: 0
foreach v
Cool. Thanks, everyone, for the info! I've stuck the emails in my
'Snippets' folder for future reference.
--Charles
- Original Message -
From: "Andrew Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 1:46 AM
Subject: [REBOL] Re: ROUND function (
Alan wrote:
> out: copy/deep reduce [val []]
The above line is better as:
out: reduce [val make block! 2]
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-
- Original Message -
From: "alan parman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 20
Philippe wrote:
> Could you explain me this line :
> while [all [not tail? series found? series: find/only series value]][
Sometimes it helps to see it like:
while [
all [
not tail? series
found? series: find/only series value
]
Hi, Jason,
Jason Cunliffe wrote:
>
> That's interesting. Could you expand a little please..
> What do you mean by "non-fall-through exit" ?
>
A "fall-through" exit is one that "falls" out of the end of the
function. A non-fall-through exit terminates the function
evaluation prior to reaching
Hi Philippe,
> Is the number of variables in memory a big factor for a slow of the
> processes.
I don't think.
> Is there a way to count them ?
if memory is not a problem (32 byte at least for every var), the max number of
global word is +- 4096
>> length? first system/words
---
Ciao
Romano
Ooops!
I meant
multi-find: func [
"Find multiple instances of a value in a series and output their index
position"
ser [series!] "series to search"
val "value to find"
/local found out
][
out: copy/deep reduce [val []]
parse ser [any [thru val found: (append out/
[length? first system/words] should do it. It starts off around 2191, and you
run out at 4096. According to my tests, size or context of a word does not
effect performance. I am pretty sure the number of words has no effect also.
--Ryan
Philippe Oehler wrote:
> Hi all,
>
> I got a big appli
Is the output of the following what you wanted?
Anybody have improvements?
To search blocks try multi-find to-string yourblock value.
multi-find: func [
"Find multiple instances of a value in a series and output their index
position"
ser [series!] "series to search"
val
From: "G. Scott Jones"
...
> system/schemes/smtp/user: "username"
> system/schemes/smtp/pass: "password"
Whoops, typo. Put wrong scheme name. Should be:
system/schemes/esmtp/user: "username"
system/schemes/esmtp/pass: "password"
--Scott Jones
--
To unsubscribe from this list, please send a
"Joel Neely" <[EMAIL PROTECTED]> wrote:
> The only reason for using RETURN is to force non-fall-through
> exit from a function. Putting it at the end of a function is
> just a wasted extra word evaluation (and typing) AFAIK.
Joel
That's interesting. Could you expand a little please..
What do
I would recommend accessing an atomic clock instead, probably more
accurate.. Many are available, just do a search.
TB
- Original Message -
From: "Marc L" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 9:16 AM
Subject: [REBOL] Re: read daytime://
The dayt
Hi all,
I got a big application did with rebol, 131 ko without core
and i want to count the variables (words) used by my program.
I have a 1.3 ghz pentium so i dont have problem to use the program.
It's very fast, but i want to know if having a lots of
variables (often not declared as /local to
Hi Brett,
Could you explain me this line :
while [all [not tail? series found? series: find/only series value]][
I use ALL like that "all [(first test)(second test)] [consequence]" but here
? and what does the rest of the line ?
Philippe
- Original Message -
From: "Brett Handley" <[EMA
Hi all,
Is it possible to make a return of line in a alert window ?
Philippe
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Joel:
> > ... I've been offline for most of a week up in the hills ...
> Welcome back! I'm jealous! ;-)
I'm being punished for it now by having to reinstall everything on the
machine from the opsys upwards. I guess it got jealous too and trashed itself.
> > ... If you take this object...
Brett Handley wrote:
>
> >
> > The problem I had with the name is that the concept of "a context"
> > is very specific in REBOL, and that concept shows up in multiple
> > places. A function has a context, an object has a context, there
> > is a global context, and every application of USE crea
The book's at my house. I'll try to check on that this evening.
-jn-
Ladislav Mecir wrote:
>
> Thanks, how about the Cumulative Student Distribution function,
> do I have to use numerical integration?
>
> - Original Message -
> From: "Joel Neely" <[EMAIL PROTECTED]>
> To: <[EMAIL PROT
Hi, Ladislav
Ladislav Mecir wrote:
>
> <>
> ...an object has a context, ...
> <>
>
> I think, that we can safely say: an object *is* a context.
> (which is the POV presented by RT too)
>
Functions have context. Does that mean that functions have objects?
I wouldn't even have a problem with th
Or try this:
view layout [f: field "a" button [f/feel: none ][f/feel: ctx-text/edit]]
I do not like how the 'info style works (swipe object).
---
Ciao
Romano
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Hi, Philippe,
Philippe Oehler wrote:
>
> Can you explain me something ? Why (result) is a local variable
> and then without the RETURN word, you typed (result) at the end
> of the function ?
>
The value returned from a function is the value of the last
expression evaluated within the function.
Maarten Koopmans wrote:
>Did two minor bugfixes on rebxr and rugby in hipe.
>
>I realized that you can do this already:
>
>do %rugby.r
>do %xml-rpc.r
>
>recho: func [s [string!]][ chain/deliver http:/localhost:8002 reduce ['echo
>s] :print]
>
>which assumes that there is an echo Rugby on 8002 on
Great post Mark! I've got two new titles I need to add to my shelf now. :)
--Gregg
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Hi Philippe,
<< Can you explain me something ? Why (result) is a local variable and then
without the RETURN word, you typed (result) at the end of the function ?
What is the advantage of this ? >>
REBOL functions automatically return the last thing they evaluate. It's kind
of a REBOL idiom *not*
The daytime protocol is different from NTP. You need to find a server
offering the daytime service common on UNIX boxes. If you want to set up a
Windows machine as a time server, I would recommend About Time. It is
freeware and very simple to set up, just leave it running with the time
serv
Hi Brett,
good night to you.
My POV is as follows:
<>
...an object has a context, ...
<>
I think, that we can safely say: an object *is* a context. (which is the POV
presented by RT too)
<>
...IIRC Rebol tech. has not used
the word "context" in any official way except for this shortcut
funct
Hi, Robert,
From: "Robert M. Muench"
...
> Can the username/password be provided
> by the script itself? I need to call it
> from a CGI script and can't provide this
> information via the command line ;-))
When I hacked these two scripts last year, the person I did it for (Nick)
gave me a tempor
Thanks, how about the Cumulative Student Distribution function, do I have to
use numerical integration?
- Original Message -
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 2:22 PM
Subject: [REBOL] Re: Student Distribution
Hi, Ladislav,
Hi!
Some of you will know my REB*L for Java Implementation called Freebell.
If not, you can find it's website at
http://proton.cl-ki.uni-osnabrueck.de/Freebell/
Unfortunatly I don't have enough time to finish development by myself.
But maybe some of you would like to help making a free java-
Hi Joel,
Yes Joel something like that. Thanks a lot !
I tried with the FIND word but you just did with a IF test. Sometimes the
things are more, more simple as you expected 8-)
Can you explain me something ? Why (result) is a local variable and then
without the RETURN word, you typed (result) at
Ladislav Mecir wrote:
> I would like to define a Rebol function, that can compute values of the
> Student Distribution. Any pointers?
That's probably not to difficult:
print "In the pub"
would be a good enough approximation of student distribution ;)
Chris
--
.--{ http://www.starforge
Hi Brett,
What you are reporting is (IMO) that clients seem to be the limiting factor
here (as is also the case when you go though a proxy).
Thanks,
Maarten
On Wednesday 20 February 2002 13:32, you wrote:
> Hi Petr, Maarten and other ladies and gentlemen,
>
> > as there is some problem with t
Further guidelines?
Demos must be written in REBOL. Graphical or ASCII demos - it's on you.
1st category - 1kB. Limited in size to 1024 bytes.
2nd category - 16kB. Limited in size to 16384 bytes (most REBOL demos
will fit here)
3rd category - wild compo. If you've got 5Meg animation running u
Hi Joel,
> Not that I would ever dissent, but... ;-)
Hah! :)
> > Also, CONTEXT has an educational quality about it - it reminds
> > me to think about where/when objects can be used. On this
> > basis I was glad for its introduction.
> >
>
> The problem I had with the name is that the concept
Hi Philippe,
You can use find in a loop. Save the result of the previous find so that you
do another find after the last one:
find-multiple: function [
"Searches the series and returns the positions where the value occurs."
series [series!]
value [any-type!]
][result][
result: co
> > What about not reinventing the wheel and implementing my own listening
> > loop, and run Rugby server in main-server? What would be needed? Simply to
> > teach external environments Rugby protocol. So now few questions -
> >
>
> You are right. But RUgby was Inter-REBOL to now.
>
Of course, I
Thanks Brett, appreciated! One small observation btw:
W9x to W9x machine - 40 sec
W9x to W2K machine - 20 sec
There is really something wrong with W9x, that's my conclusion ...
-pekr-
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subje
Hi, Sunanda,
[EMAIL PROTECTED] wrote:
>
> ... I've been offline for most of a week up in the hills ...
>
Welcome back! I'm jealous! ;-)
>
> > Just out of curiousity, why? I saw that, but didn't
> > understand it.
>
> Simply because the interface spec says it returns False if you
> call it
Hi, Ladislav,
Ladislav Mecir wrote:
>
> I would like to define a Rebol function, that can compute
> values of the Student Distribution. Any pointers?
>
_Numerical_Recipes__The_Art_of_Scientific_Computation_
by Press, Flannery, Teukolsky, and Vetterling
(c) Cambridge University Press, 1986
ISB
Hi, Philippe,
Philippe Oehler wrote:
>
> I want to make multi-researches on a block of strings.
>
> The result I want is an array of index of all appereances of a name,
> but the 'find word find only the first appereance
>
Do you mean something like this?
>> blort: [1 2 0 3 0 4 5 6 0 7]
Hi, Brett,
Not that I would ever dissent, but... ;-)
Brett Handley wrote:
>
> Hi,
>
> > Well, okay, but for consistancy's sake, why wasn't 'to-object
> > chosen as its name?
>
> Hopefully the language designer will answer definitively, in
> between times my purely subjective thoughts..
>
>
I have run into a Java based webcam viewing solution that really stinks. I
thought I would implement one in REBOL since the .JPEG files used for the
video are stored on a HTTP server. Unfortunately, the .JPEG files on this
server apparently use some feature of JAVA to compress the files since
Did two minor bugfixes on rebxr and rugby in hipe.
I realized that you can do this already:
do %rugby.r
do %xml-rpc.r
recho: func [s [string!]][ chain/deliver http:/localhost:8002 reduce ['echo
s] :print]
which assumes that there is an echo Rugby on 8002 on localhost.
Now do:
xmlrpc-serve [
Hello REBOL/DEMOn,
> If there won't be enough demos to open at least one category than I'm
afraid
> that REBOL's future is not very bright.
Please introduce yourself. I'd like to have some idea of who it is that I am
considering committing my time to before I commit.
Cheers,
Brett.
--
To uns
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Gregg Irwin
> Sent: Wednesday, February 20, 2002 12:38 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: Sending mails...
> The only problems I had was when a provider required SMTP authentication.
We
Actually the equivalent can be accomplished in REBOL as well,
but you have to implement the conventions yourself (at least
until somebody has the time...)
"[EMAIL PROTECTED]" wrote:
>
> Since Rebol is internet-oriented library should be created to
> let me insert in my code only the needed funct
Hi Petr, Maarten and other ladies and gentlemen,
> as there is some problem with tcp performance on W9x machines (tests for
> 100x call to echo function is some 44 sec regardless of machine being
> P300 or P650), I gave Rugby a test on W2K, 1.4 Athlon XP machine
>
> Could some of you, help h
Hello folks,
Further to Joe Marshalls comments about
REBOL & tail-call optimisation and continuations
here's some more general info, this time
>From the PYTHON Mailing List Archive
-- SNIP -
Thread: Scheme's Infinite Zen Was Python's G
Hi, Charles,
Charles wrote:
>
>I do not believe I've come across these three in my (highly
> limited) studies. Is there a decent reference to them in
> "REBOL For Dummies"
>
RfD and RtOG both describe /Core 2.3, and at least two of these
were added later.
>
> , or one of the online guides
I would like to define a Rebol function, that can compute values of the
Student Distribution. Any pointers?
TIA
Ladislav
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
On Wednesday 20 February 2002 09:56, you wrote:
> > > Now the question/brainstorming:
> > >
> > > - Main-server uses chaining to call to one of three (or more) child
> > > servers, so it acts as proxy. Each of child servers is allowed to
> > > maintain e.g. 20 simultaneous connections to database,
Hi, Charles,
Charles wrote:
>
> Joel's solution is the one which came to me first, too. But,
> I was thinking in C.
>
I wasn't, I can assure you.
>
> Basically, an array which contains .. well, it's not the
> same as pointers in C, but basically close.
>
Not from my perspective. A REBOL blo
Hi Joel,
Thanks for your long and thoughtful reply, I've been offline for most of a
week up in the hills, so I haven't had a chance to comment. Just a few minor
addendums:
> > I say _almost_ no difference for two reasons:
> >
> > 01 -- In the original code, an invocation without a refineme
Hello REBOL/DEMOn,
What about tell us more detailed info regarding competition rules, prices
(if there will be any ;-) ) etc. Who will be in jury? Who is arranging the
competition?
Regards,
Cyphre
- Original Message -
From: "Rebol Demo Group" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
I totally agree with you.
To start learning rebol, specially VID dialect, you has to ask to other
rebollers a lots of
questions. Those information that couldnt be found somewhere else.
I think that without this elist you couldnt advance the way
you should.
That's shoudn't happen. WE (this elist)
On 20-Feb-02, [EMAIL PROTECTED] wrote:
> Hi all, I'm deeply studying rebol, since I'm trying to persuade my
> company to adopt Rebol to create some client applications
> (internet/intranet based). The biggest problem I found is
> documentation. Yes, Rebol has much documentation, but if I wish som
Hi Robert,
I also have such a script, mine is a functional replacement for
the old standard 'cgiemail
I also have the same problem with funky relative to the cgi-bin
urls.
I tried a few things mainly to get the clients browser to see a 307
redirect code, but that angle does not pan out since
Hi all,
I want to make multi-researches on a block of strings.
The result I want is an array of index of all appereances of a name, but the
'find
word find only the first appereance and to find the second appereance I have
to find the index, then 'skip the
list to index + 1 and so on..
Is there
Chaz,
What point are you making in relation to REBOL?
Icon's Goal Directed Evaluation is based on backtracking
which requires every part of the expression to have a success or failure continuation,
so the continuation model *IS* there in ICON. ICON also has generators &
co-expressions which ar
Hallo Olivier,
> Someone knows a TCP protocol for Rebol to print a document
> on a server NT/2000 ?
Start from this:
http://www.google.com/search?hl=en&q=lpd+windows+printer+daemon
Mario
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in
> > Now the question/brainstorming:
> >
> > - Main-server uses chaining to call to one of three (or more) child
> > servers, so it acts as proxy. Each of child servers is allowed to
> > maintain e.g. 20 simultaneous connections to database, or just accept 20
> > request from main-server. Each data
Hi,
> Well, okay, but for consistancy's sake, why wasn't 'to-object chosen
> as its name?
Hopefully the language designer will answer definitively, in between times
my purely subjective thoughts..
I'd sort of assumed that it was a forward looking change.
Also, CONTEXT has an educational qualit
Hi,
I think I now what is going on. The proxy (stub) code uses the external IP
address in the current version. Ideally you want to be able to specify the IP
address in the tcp://: part.
I'll look into it, but it maytake some time to get it right.
Thanks,
Maarten
On Wednesday 20 February 20
On 20-Feb-02, Gregg Irwin wrote:
> Hi Charles,
> CONTEXT is a shortcut for MAKE OBJECT!
>>> o: context [a: 1 b: 2]
>>> o/a
> == 1
>>> type? o
> == object!
Well, okay, but for consistancy's sake, why wasn't 'to-object chosen
as its name?
--
Carl Read
--
To unsubscribe from this list, please
Hallo Robert,
> cgi-bin/ directory the web pages are located in a html/ directory.
If you mean:
websitepath/
websitepath/cgi-bin/
websitepath/html/
> The problem is that the references inside the confirmation
> page a now all
> relative to the cgi-bin/ directory and not to the html/
> dir
Hi,
Try this:
view layout [
across
label "enabled: "
check true [
either value [
fld/feel: ctx-text/edit
fld/color: svvc/field
] [
fld/feel: ctx-text/swipe
fld/color: 180.180.180
]
show fld/parent-face
Robert wrote:
> Hi,
Hi, Robert!
> I use a Rebol script that takes the input from a form and sends an email
and returns a confirmation page to the client. The rebol script is located
in cgi-bin/ directory the web pages are located in a html/ directory.
>
> The problem is that the references insid
Good! You wish some suggestions? I say my suggestion...
Since Rebol is internet-oriented library should be created to let me
insert in my code only the needed functions, not the whole library. If
you create a rebol script, I can import it with "do ..." but I import
all the libraries... not only t
Hi all, I'm deeply studying rebol, since I'm trying to persuade my
company to adopt Rebol to create some client applications
(internet/intranet based). The biggest problem I found is
documentation. Yes, Rebol has much documentation, but if I wish some
explanations about a particular argument the s
On 17-Jun-2000 Brian Hawley had this to say about Continuations
http://www.rebol.org/userlist/archive/205/393.html
"Continuations: Scheme has them (base of its execution model);
REBOL dropped these too when it switched to a stack engine.
Continuations don't make much sense with a stack engine -
Hi,
All is in the title, I would like to make a field
no-editable and after switch it editable, how can I do
this in Rebol in a simple way ?
Thanks in advance
Stephane
___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Y
Dixit Robert M. Muench (20.58 19.02.2002):
>Hi, I use a Rebol script that takes the input from a form and sends an email and
>returns a confirmation page to the client. The rebol script is located in
>cgi-bin/ directory the web pages are located in a html/ directory.
>
>The problem is that the ref
Charles wrote:
> I do not believe I've come across these three in my (highly
limited)studies. Is there a decent reference to them in "REBOL For
Dummies", or one of the online guides? (Preferrably a non-PDF guide.)
Thanks.
>> source context
context: func [
"Defines a unique (underived) objec
Certainly, you just needed to mention the word "cursor" ;-)
view layout [
a: area "place your cursor then click button" button "insert" [
insert system/view/caret "" show a]
]
A few other insights are available if you are "game enough" to sift through
the ctx-text object.
Regards,
Brett
On 20-Feb-02, Charles wrote:
> I do not believe I've come across these three in my (highly
> limited) studies. Is there a decent reference to them in "REBOL For
> Dummies", or one of the online guides? (Preferrably a non-PDF
> guide.) Thanks.
> --Charles
Others can have a go at 'context, but
79 matches
Mail list logo