Thread View: comp.lang.scheme.c
3 messages
3 total messages
Started by David Yost
Tue, 14 Apr 1992 18:16
C, but with lisp syntax
Author: David Yost
Date: Tue, 14 Apr 1992 18:16
Date: Tue, 14 Apr 1992 18:16
14 lines
914 bytes
914 bytes
Imagine ANSI C, but with lisp syntax and lisp macros. I.e. a lisp dialect that translates directly to C and needs no implicit runtime library. Sort of like the ratfor idea, but lisp->c instead of c->fortran. If I have to program in C because my program has to run on several architectures and it has to be really small and fast, at least I could have decent syntax and macros. Now add some sugar to this, like cond which returns a value instead of switch which doesn't, etc. ... Anyone have such a thing? --dave yost
Re: C, but with lisp syntax
Author: Bernd Meyer
Date: Wed, 15 Apr 1992 09:27
Date: Wed, 15 Apr 1992 09:27
52 lines
2134 bytes
2134 bytes
In article <1992Apr14.181631.180@adobe.com>, yost@adobe.COM (David Yost) writes: > Imagine ANSI C, but with lisp syntax and lisp macros. > I.e. a lisp dialect that translates directly to C and > needs no implicit runtime library. Sort of like the > ratfor idea, but lisp->c instead of c->fortran. > Anyone have such a thing? dave, there is a scheme-to-c compiler available via anon ftp. i enclose a posting about it but it might be out of date. bernd ------------> cut here <----------- Scheme-to-C ----------- This is a fairly unusual version, in that it takes Scheme code, and compiles it into C code which can then be compiled by your normal C compiler. Obviously, this means that it is as good as your C compiler, in some senses (and also that it produces stand-alone executables, rather than needing a seperate run-time system. If I ever want to develop applications using Scheme, this could be a real plus). The implementation supports a number of extensions, including macros (I get the impression that macros are available in some form in most implementations...) and facilities for calling external (ie, C) routines. Porting requires a small amount of assembler, for call/cc, but the rest is fairly portable C. Availability: gatekeeper.dec.com directory /pub/DEC/Scheme-to-C files README 23feb90.tar.Z (older version) 28sep90.tar.Z (later version) ------------> cut here <----------- -- Bernd Meyer, LG Praktische Informatik IV, FernUniversitaet Hagen, D-5800 Hagen Bahnhofstrasse 46/48, FRG, Phone: +49 2331 181677, ** db6ag@db0hag ** meyer@fernuni-hagen.de or meyer@dhafeu61.bitnet s=meyer; ou=vax1; ou=informatik; p=fernuni-hagen; a=dbp; c=de
Re: C, but with lisp syntax
Author: Dave Saunders
Date: Wed, 15 Apr 1992 20:48
Date: Wed, 15 Apr 1992 20:48
27 lines
1407 bytes
1407 bytes
>Imagine ANSI C, but with lisp syntax and lisp macros.
>I.e. a lisp dialect that translates directly to C and
>needs no implicit runtime library. Sort of like the
>ratfor idea, but lisp->c instead of c->fortran.
>
>If I have to program in C because my program has to run
>on several architectures and it has to be really small
>and fast, at least I could have decent syntax and macros.
>Now add some sugar to this, like cond which returns a
>value instead of switch which doesn't, etc. ...
>
>Anyone have such a thing?
>
> --dave yost
Sounds like you want lisp syntax
- it doesn't have any (that's the beauty of it) -
and C data structures and memory management
- it doesn't have any (thats why you can get small and fast) -
so to have both is easy. In lisp syntax, it's
()
My appologies in advance for this flip remark, please minimize the return
flames.
-dave saunders
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads