Prescheme - Implementation?

Programming, for all ages and all languages.
Post Reply
G_Morgan
Posts: 3
Joined: Sun Nov 25, 2007 2:09 pm

Prescheme - Implementation?

Post by G_Morgan »

I've read about Prescheme recently which is touted as a sub set of Scheme that can be efficiently compiled to native code (with the elusive 'as fast as C' property). I had intended to write a system which basically is little more than a REPL loop which exposes the hardware functionality to the interpreter so I can play with things directly. Originally the core was going to be in C.

Since I've heard about Prescheme I tempted to go for Scheme as close to the metal as I can. However I cannot find an implementation. I've found documents talking about it and documents talking about implementing it but no actual implementation.

Does anyone know of an implementation or am I going to have to write a compiler before I write my OS (which I will have to do eventually in any case). If anyone has experience with it, is it worth it? Do things like higher level functions have as much use at OS level as they do at the user level?
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

my opinion is in my signature.

Anyway, as for Pre-Scheme implementation, I am under the impression that's a part of Scheme 48, which is available.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
G_Morgan
Posts: 3
Joined: Sun Nov 25, 2007 2:09 pm

Post by G_Morgan »

Cheers for that. Will look into it.
Post Reply