[Openmcl-devel] Obfuscated Lisp contest anyone? (Seriously)

phoebe Goldman phoebe at goldman-tribe.org
Sat Apr 15 09:03:46 PDT 2023


An obfuscated Lisp contest would be fun! I think a winning entry must necessarily use a custom readtable...

cheers,
phoebe

> On Apr 15, 2023, at 12:01 PM, Ron Garret <ron at flownet.com> wrote:
> 
> 
> 
>> On Apr 15, 2023, at 7:38 AM, Tim McNerney <mc at media.mit.edu <mailto:mc at media.mit.edu>> wrote:
>> 
>> Hmm… Is it crazy to contemplate launching an obfuscated Lisp contest?
> 
> Here is my entry:
> 
> ((λ f ((λ g (g g)) (λ (h x) ((f (h h)) x))))
>  (λ f
>     (λ n
>        (λ nil
>           (((λ (c _t e) (c _t e))
>             ((λ pair (pair (λ (l r) (λ (then else) else)))) n)
>             (λ dummy
>                ((λ n
>                    ((λ (l r) (λ (selector) (selector l r)))
>                     (λ selector (λ (then else) then)) n))
>                 (λ selector (λ (then else) then))))
>             (λ dummy
>                ((λ (n1 n2)
>                    (((λ f ((λ g (g g)) (λ (h x) ((f (h h)) x))))
>                      (λ f
>                         (λ (n1 n2 product)
>                            (λ nil
>                               (((λ (c _t e) (c _t e))
>                                 ((λ pair (pair (λ (l r) (λ (then else) else))))
>                                  n2)
>                                 (λ dummy product)
>                                 (λ dummy
>                                    (f n1
>                                     ((λ n ((λ pair (pair (λ (l r) r))) n)) n2)
>                                     (((λ f
>                                          ((λ g (g g)) (λ (h x) ((f (h h)) x))))
>                                       (λ f
>>                                           (n1 n2)
>>                                            nil
>                                            (((λ (c _t e) (c _t e))
>                                              ((λ
>                                                pair
>                                                (pair
>>                                                  (l r)
>                                                  (λ (then else) else))))
>                                               n2)
>                                              (λ dummy n1)
>>                                               dummy
>                                               (f
>                                                ((λ
>                                                  n
>                                                  ((λ
>                                                    (l r)
>>                                                     (selector)
>                                                     (selector l r)))
>>                                                    selector
>                                                    (λ (then else) then))
>                                                   n))
>                                                 n1)
>                                                ((λ
>                                                  n
>                                                  ((λ pair (pair (λ (l r) r)))
>                                                   n))
>                                                 n2))))
>                                             (λ x x))))))
>                                      n1 product))))
>                                (λ x x))))))
>                     n1 n2 (λ selector (λ (then else) then))))
>                 n (f ((λ n ((λ pair (pair (λ (l r) r))) n)) n)))))
>            (λ x x))))))
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20230415/30c9a255/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20230415/30c9a255/attachment.bin>


More information about the Openmcl-devel mailing list