[ale] LISP to C
Scott Castaline
skotchman at gmail.com
Tue Feb 14 15:58:32 EST 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/14/2012 12:15 PM, Jim Kinney wrote:
> Howth your immunity to iocaine powder...
>
> On Tue, Feb 14, 2012 at 11:53 AM, Calvin Harrigan
> <charriglists at bellsouth.net <mailto:charriglists at bellsouth.net>>
> wrote:
>
> As a person with a lisp, I find these comments to be
> inconthevable!
>
Oh thop it thop it thop it!! Thith ith getting indithpicable
> On 2/14/2012 11:37 AM, Pete Hardie wrote:
>> Yeth!
>>
>> On Tue, Feb 14, 2012 at 11:20, Lightner,
>> Jeff<JLightner at water.com
> <mailto:JLightner at water.com>> wrote:
>>> Shouldn't that be Lithp to Thee?
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message----- From: ale-bounces at ale.org
>>> <mailto:ale-bounces at ale.org>
> [mailto:ale-bounces at ale.org <mailto:ale-bounces at ale.org>] On Behalf
> Of mike at trausch.us <mailto:mike at trausch.us>
>>> Sent: Tuesday, February 14, 2012 11:12 AM To: ale at ale.org
>>> <mailto:ale at ale.org> Subject: Re: [ale] LISP to C
>>>
>>> On 02/14/2012 11:05 AM, Terry Bailey wrote:
>>>> Is there a way to convert LISP source code into readable C
> source code?
>>>
>>> No.
>>>
>>> Well, probably not.
>>>
>>> You're talking about compilation, the only difference being
>>> that
> instead
>>> of compiling straight to assembly language or an AST, you're
> generating C.
>>>
>>> For example (using Vala because I don't have a LISP-to-C
>>> compiler): mbt at aloe /tmp/d $ ls -l total 8 -rw-r--r-- 1 mbt
>>> mbt 520 Feb 14 11:10 hello.c -rw-r--r-- 1 mbt mbt 94 Feb 14
>>> 11:09 hello.vala
>>>
>>>
>>> Vala input:
>>>
> =========================================================================
>
>
>
>> using GLib;
>>>
>>> public static int main(string[] args) {
>>> stdout.printf("Hello!\n"); return(0); }
>>>
> =========================================================================
>
>
>
>>
>>> C output:
>>>
> =========================================================================
>
>
>
>> /* hello.c generated by valac 0.14.2, the Vala compiler
>>> * generated from hello.vala, do not modify */
>>>
>>> #include<glib.h> #include<glib-object.h> #include<stdlib.h>
>>> #include<string.h> #include<stdio.h>
>>>
>>> gint _vala_main (gchar** args, int args_length1);
>>>
>>>
>>> gint _vala_main (gchar** args, int args_length1) { gint result
>>> = 0; FILE* _tmp0_; _tmp0_ = stdout; fprintf (_tmp0_,
>>> "Hello!\n"); result = 0; return result; }
>>>
>>>
>>> int main (int argc, char ** argv) { g_type_init (); return
>>> _vala_main (argv, argc); }
>>>
> =========================================================================
>
>
>
>>
>>> Trust me, it gets a *lot* worse from there. Non-trivial
>>> programs
> become
>>> *extremely* difficult to read.
>>>
>>> What are you trying to accomplish? Could you follow the same
> model as
>>> Vala, where you precompile the specialty language and only
>>> distribute the pre-generated C?
>>>
>>> --- Mike
>>>
>>> -- A man who reasons deliberately, manages it better after
>>> studying
> Logic
>>> than he could before, if he is sincere about it and has common
>>> sense. --- Carveth Read, "Logic"
>>>
>>>
>>>
>>>
>>>
>>> Athena(r), Created for the Cause(tm) Making a Difference in
>>> the Fight Against Breast Cancer
>>>
>>> --------------------------------- CONFIDENTIALITY NOTICE: This
>>> e-mail may contain privileged or
> confidential information and is for the sole use of the intended
> recipient(s). If you are not the intended recipient, any
> disclosure, copying, distribution, or use of the contents of this
> information is prohibited and may be unlawful. If you have
> received this electronic transmission in error, please reply
> immediately to the sender that you have received the message in
> error, and delete it. Thank you.
>>> ----------------------------------
>>>
>>>
>>> _______________________________________________ Ale mailing
>>> list Ale at ale.org <mailto:Ale at ale.org>
>>> http://mail.ale.org/mailman/listinfo/ale See JOBS, ANNOUNCE
>>> and SCHOOLS lists at http://mail.ale.org/mailman/listinfo
>>
>>
>>
>
> _______________________________________________ Ale mailing list
> Ale at ale.org <mailto:Ale at ale.org>
> http://mail.ale.org/mailman/listinfo/ale See JOBS, ANNOUNCE and
> SCHOOLS lists at http://mail.ale.org/mailman/listinfo
>
>
>
>
> -- -- James P. Kinney III
>
> As long as the general population is passive, apathetic, diverted
> to consumerism or hatred of the vulnerable, then the powerful can
> do as they please, and those who survive will be left to
> contemplate the outcome. - ////2011 Noam Chomsky
>
> http://heretothereideas.blogspot.com/ ////
>
>
> _______________________________________________ Ale mailing list
> Ale at ale.org http://mail.ale.org/mailman/listinfo/ale See JOBS,
> ANNOUNCE and SCHOOLS lists at http://mail.ale.org/mailman/listinfo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJPOsr4AAoJEIefqZ0kni1d9IoP/2dJPFEA8vgPncyQf2PvdV7Q
PdeLYNaNuJktTngjvMHGStYcDX47Eei2WlwEuoq8jyU9O16wg7WHHt05nda11Dze
5mECFaAinH2cazxn/xsenPaW8h1eswuZ11mX63RCCaJ6YQgYLkxSvWTHa9yuA+OV
3rOBAxzMZyikJrMVSFN6CNZIrH5OC9pwOt+rBw+8bcv2qfmbZU54HwVMQQ1x/En6
MVl4Lid4NkrtTa4c7JsXJF/2fTVW7Ffkn3l6G3kFbD1g9UfFG+SRp8AI1sZzQfo2
8WhahBNaJ/qoGi0dUOA30cMjKyQEk62BKvDYqWDlegKSkU+c29+80Z8eI73s4nnu
tDwhiLH2UW3S5KD8E57kZFwBELkpbq6k6EOstrinTnlsq0SfRIlvbs+4SCKgqyWL
0wXlKr+Z6CZwbX0pC1Ss8YCTvUL874UWadCGW9Ll6Gh2PH8vuwmGmX622AN3O/7Y
DlIyaLblQRodvp7orEL9f8Fjnt91YU2dVwIW6vTCH/qzbqjZgJyhNVuQthh0kKln
mtBldfHCT4ZJRG1Kq9rgGmewnlHFsM4Bl7KdGcxEYY4sGm1A+pj96EtvacFzwAPV
vPtFYlh2JFNRxP1yt47dt2bB9+XSft58RtEI00a97xJtsxU1kgUSsUMy3saQ0KNL
klwQXZnGIWFXFySPUX4E
=sCQA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x249E2D5D.asc
Type: application/pgp-keys
Size: 9479 bytes
Desc: not available
Url : http://mail.ale.org/pipermail/ale/attachments/20120214/a4a56c2e/attachment.bin
More information about the Ale
mailing list