On 11 May, 09:17, "FSX" <··········@webuse.net> wrote:
> Hello everyone,
>
> I would like to convert some Common LISP into C language. Is there a
> consolidated way to do that?
> I am not an experienced programmer in both languages, but I know more C
> than LISP.
> Thanks in advance
You'll have more luck asking this on comp.lang.lisp
rather than comp.lang.c Therefore crossposting
and setting follow-ups for the former.
--
Alalalala char alalalala char
alalalala char char cha char chi char
From: John Thingstad
Subject: Re: is it possible to convert LISP to C?
Date:
Message-ID: <op.utrs8kr3ut4oq5@pandora>
På Mon, 11 May 2009 10:30:21 +0200, skrev Spiros Bousbouras
<······@gmail.com>:
> On 11 May, 09:17, "FSX" <··········@webuse.net> wrote:
>> Hello everyone,
>>
>> I would like to convert some Common LISP into C language. Is there a
>> consolidated way to do that?
>> I am not an experienced programmer in both languages, but I know more C
>> than LISP.
>> Thanks in advance
ECL and GCL compile via C. Not sure you can actually generate C code, but
that's were I would look first.
---------------------
John Thingstad
From: Pascal J. Bourguignon
Subject: Re: is it possible to convert LISP to C?
Date:
Message-ID: <87my9jy8ln.fsf@galatea.local>
"John Thingstad" <·······@online.no> writes:
> P� Mon, 11 May 2009 10:30:21 +0200, skrev Spiros Bousbouras
> <······@gmail.com>:
>
>> On 11 May, 09:17, "FSX" <··········@webuse.net> wrote:
>>> Hello everyone,
>>>
>>> I would like to convert some Common LISP into C language. Is there a
>>> consolidated way to do that?
>>> I am not an experienced programmer in both languages, but I know more C
>>> than LISP.
>>> Thanks in advance
>
> ECL and GCL compile via C. Not sure you can actually generate C code,
> but that's were I would look first.
http://www.cliki.net/CLiCC
http://www.cliki.net/ThinLisp
--
__Pascal Bourguignon__
On May 11, 5:15 pm, ····@informatimago.com (Pascal J. Bourguignon)
wrote:
> http://www.cliki.net/CLiCChttp://www.cliki.net/ThinLisp
Both systems above are buggy and disfunctional/outdated.
From: Pascal J. Bourguignon
Subject: Re: is it possible to convert LISP to C?
Date:
Message-ID: <87eiuvxmz8.fsf@galatea.local>
Francogrex <······@grex.org> writes:
> On May 11, 5:15�pm, ····@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> http://www.cliki.net/CLiCChttp://www.cliki.net/ThinLisp
>
> Both systems above are buggy and disfunctional/outdated.
Most probably, yes.
But they're also open source, so you could debug and update them.
--
__Pascal Bourguignon__
From: John Thingstad
Subject: Re: is it possible to convert LISP to C?
Date:
Message-ID: <op.utsuapb6ut4oq5@pandora>
På Mon, 11 May 2009 17:15:00 +0200, skrev Pascal J. Bourguignon
<···@informatimago.com>:
> "John Thingstad" <·······@online.no> writes:
>
>> På Mon, 11 May 2009 10:30:21 +0200, skrev Spiros Bousbouras
>> <······@gmail.com>:
>>
>>> On 11 May, 09:17, "FSX" <··········@webuse.net> wrote:
>>>> Hello everyone,
>>>>
>>>> I would like to convert some Common LISP into C language. Is there a
>>>> consolidated way to do that?
>>>> I am not an experienced programmer in both languages, but I know more
>>>> C
>>>> than LISP.
>>>> Thanks in advance
>>
>> ECL and GCL compile via C. Not sure you can actually generate C code,
>> but that's were I would look first.
>
> http://www.cliki.net/CLiCC
> http://www.cliki.net/ThinLisp
>
Indeed on paper they seem to do what he 'says' he wants. However I have I
feeling what he 'needs' is ECL..
If his opinion is I don't understand Lisp so I'll just have it translated
to C and work with that all bets are off.
The only way to make the Lisp code into readable C is to do it by hand.
But then he would have to understand Lisp..
Embeddable Common Lisp (ECL) is made to run in a C environment so it
easily embedded in a existing C program.
If C programmers ever tire of having to use slow interpreted customisation
language's like LUA they can try a compiled language like Common Lisp
which should give much better (400% faster is not unrealistic)
performance. (Perhaps I could mention Gnu's GUILE as well.) In Lisp with
the cl-ppcre library compiled regexp's are on average about twice as fast
as Perl's because regexp's get compiled not interpreted, for example.
(I write this primarily for the comp.lang.c readers as most comp.lang.lisp
readers are already aware of this.)
---------------------
John Thingstad
John Thingstad escreveu:
> If C programmers ever tire of having to use slow interpreted
> customisation language's like LUA they can try a compiled language like
> Common Lisp which should give much better (400% faster is not
Lua's JIT implementation is pretty good, on par or even faster than
similar JIT Scheme implementations at least as far as the benchmarks in
the language shootout game go. The language was designed by a
University professor who used to teach Scheme BTW.
--
a game sig: http://tinyurl.com/d3rxz9