Whatever happened to the SHERMAN compiler, that I see, but cannot get, when I do a search of the web for REBOL?

  [EMAIL PROTECTED] wrote:

So, why don't you guys just use the 'compile function?

fast-sort: compile function [data [block!] return: [block!]] [a [integer!]] [...]
print type? :fast-sort
native!



Turns out, you *can* write a compiler for REBOL. However, to do so you need to make "promises" about a function. You, the programmer, certify that the contents of the function is indeed compilable (by not using very late bound tricks).

The benefit of the above is that you can use the rest of the REBOL environment for meta stuff... like preprocessing what you will compile.

-Carl


At 9/10/00 05:57 PM -0700, you wrote:
>Hi Chris
>
>I agree. I don't see where Andrew's question presents any real problem. I
>suspect the primary problems with developing a compiler for REBOL are 1) The
>language design (or at least implementation) are not yet co! mp! lete and 2) The
>semantics are somewhat irregular, so that there would be an awful lot of
>special cases to deal with. Scheme is another language which, in fact, is
>rather similar to REBOL in many ways (in REBOL 1.x, it was very similar,
>including continuations) and Scheme comes with a compiler as well as an
>interpreter (see the DrScheme package from Rice University
>http://www.cs.rice.edu/CS/PLT/packages/drscheme/. It is free and rather
>small (just a few MB) and supports threads, GUI programming, and tcp.
>
>-Larry
>
>----- Original Message -----
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, September 10, 2000 4:20 PM
>Subject: [REBOL] rebol weak points (i think) Re:(4)
>
>
>>
>> >Try compiling this:
>> >
>> > do ask "Please enter some Rebol code: "
>>
>> FORTH and Lisp systems don't s! ee! m to have a problem with this. Most Common
>Lisp
>> systems I know are compiled and have interactive input. See Corman Lisp
>for an
>> example (http://www.corman.net). Generally the compiler is part of the run
>time
>> and compiles the entered code on the fly.
>>
>> Chris.
>> --
>> http://www.double.co.nz/cl
>> http://www.double.co.nz/dylan
>>
>>

Reply via email to