Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Porting Swindle

2 views
Skip to first unread message

Max

unread,
Dec 27, 2004, 2:07:11 PM12/27/04
to
I would like to use Swindle not only under PLT Scheme.
In particular I'm using SISC, that seems a fully compliant R5RS scheme
interpreter, embedded in Java.
I understand that Swindle syntax extensions are not trivial and perhaps
rely on some PLT features. I really don't know if Swindle could be
ported in another interpreter using only R5RS syntax but I would like
to know.

Eli Barzilay

unread,
Dec 27, 2004, 3:12:29 PM12/27/04
to
"Max" <m...@lastedge.net> writes:

The syntactic issues are indeed significant, and could probably be
re-implemented only on a system that has a powerful enough module
system.

But if you're after the object system only, then it should be easier
to port that part -- you only care about the tiny-clos.ss, which
doesn't have any syntactic stuff. The only two substantial extensions
that are used there are common in other implementations: a weak hash
table, and applicable structs. Weak hash tables are essential if you
want a practical result. Applicable structs make the implementation
easier, but it could be imitated using hash tables -- old versions of
Swindle used that approach, so you can grab that code (it's the
instance allocation business at the top of the file).

Mail me directly if you need more details.

--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!

0 new messages