It's time to end the c.l.l welfare state! Too long have the fruitful
labors of our most prolific posters been misdirected in a grand
conspiracy to serve the so-called "needy". This grand plot to make our
newsgroup mediocre and destroy our ability to compete against other
newsgroups and languages was invented by no less than five former
c.l.c++ officials at a recent meeting in Romania! It is doubtful that
the lowly posters who implement this sinister agenda even know of the
true nature of their operation. Nonetheless it's time to face the
facts. The c.l.l welfare system is unjust and oppressive! Its sprawling
tentacles reach even the most distant outposts of the lisp community,
and bind our best and brightest to chains of economic injustice. There
are those who would argue that this welfare state brings justice to the
lower class and feeds the hungry. But how can they deny the simple
conclusion of a recent independent study of c.l.l and c.l.scheme? Yes,
this simple fact will change the issue of public newsgroup policy
forever, as the headlines proclaimed:
TODAY'S TROLLS BETTER FED THAN EVER! - Planet Lisp
EXPERTS: OBESITY GROWING PROBLEM AMONG TROLLS - ALU
TROLLS "NOT HUNGRY" ANYMORE - CLiki.net
Rise up, my fellow posters, and realize that the virtuous cause you
believe you have been contributing to has been a false one, designed to
sap the talents and efforts of an entire community! You have nothing to
lose but your own bonds of oppression and indignity!
*Ahem*. Now that that's all taken care of, I'd like to announce sexpc,
a translator for a S-Expression representation of a subset of C. The
translator when run on valid code produces ANSI C, and already includes
a large number of language features.
I created the translator as I was thinking about writing a compiler,
and realized I'd like to go to at least some intermediate
representation of C before outputting raw C code. sexpc is my answer to
that problem. I would hope it would be useful on its own too, for
people who need to write C but can't stand the thought of giving up
macros.
You can find its web page at http://www.common-lisp.net/project/sexpc/
. There is a public darcs repository, example code, and documentation
as well.
Taylor Campbell has expressed interest in a Scheme port, which I'm
certainly interested in as well. Right now it uses some reader hacks so
that case is preserved (not an issue in R5RS scheme I think), and so
that backslashes in strings are preserved (this is an issue).
Suggestions are welcome, as are patches. Join the mailing list if you'd
like to comment!
--
Brian Mastenbrook
http://www.cs.indiana.edu/~bmastenb/
Wouldn't it be better if there was different character macros for
switching the C-ish syntax on and off? That way it might be more
apparent to the reader which is which.
--
Frode Vatvedt Fjeld
> I would hope it would be useful on its own too, for
> people who need to write C but can't stand the thought of giving up
> macros.
>
Might actually be useful for opengl shading language, come to think of it,
they've standardised on annoying C syntax. Might be fun to use CL or
Scheme as a high-level shading language "compiling" via macros to opengl
shading language.
That's just a throwaway thought - I'm not saying _I'm_ going to do it or
anything...
David Golden wrote:
>>I would hope it would be useful on its own too, for
>>people who need to write C but can't stand the thought of giving up
>>macros.
>>
>
>
> Might actually be useful for opengl shading language, come to think of it,
> they've standardised on annoying C syntax. Might be fun to use CL or
> Scheme as a high-level shading language "compiling" via macros to opengl
> shading language.
>
> That's just a throwaway thought - I'm not saying _I'm_ going to do it or
> anything...
Ah, an OpenGL whiz. Cello could use one. Looks like you won't be tied up
with this chore, so...
:)
kenny
--
http://tilton-technology.com
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
Your Project Here! http://alu.cliki.net/Industry%20Application
Kenny Tilton wrote:
>
> Ah, an OpenGL whiz. Cello could use one. Looks like you won't be tied up
> with this chore, so...
>
Sorry, I've got my own crazy mutant lisp stuff to work on. :-)
And my non-lispy day job, or "job" as I should probably start calling it,
takes up most of my time.
David Golden wrote:
> Kenny Tilton wrote:
>
>
>>Ah, an OpenGL whiz. Cello could use one. Looks like you won't be tied up
>>with this chore, so...
>>
>
>
> Sorry, ...
That's OK, one of the more unpredictable monkeys happened to think to
rebind the texture I had in mind to gl_texture_2d (no idea how/when
those bindings get dropped) and viola, there was John McCarthy's
handsome mug wrapped onto the glut teapot. I was just getting ready to
sell that monkey to pharma for drug research, too. Hadn't done any
useful work in years.
Did I mention that John used my laptop at ILC 2003 to surf the web?
Recently?
kenneth
--
http://tilton-technology.com
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
Your Project Here! http://alu.cliki.net/Industry%20Application
From: Joe Marshall
Subject: Re: [ANN] S-Expression Syntax Trees for C!
Date:
Message-ID: <eks8nl05.fsf@comcast.net>
Kenny Tilton <·······@nyc.rr.com> writes:
> Did I mention that John used my laptop at ILC 2003 to surf the web?
Tell us more!
--
~jrm
Kenny Tilton <·······@nyc.rr.com> writes:
> Did I mention that John used my laptop at ILC 2003 to surf the web?
> Recently?
>
> kenneth
You should keep it in your signature! We need this reference: one
participant of one of the newsgroups I read had John Mccarty use his
laptop to surf the web!
--
__Pascal_Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/