One million lambda expressions

Started by Kazimir Majorinc, January 12, 2011, 10:04:31 PM

Previous topic - Next topic

Kazimir Majorinc

http://www.instprog.com//blogposts/enumeration-of-lambda-expressions/million-lambda-expressions.txt">http://www.instprog.com//blogposts/enum ... ssions.txt">http://www.instprog.com//blogposts/enumeration-of-lambda-expressions/million-lambda-expressions.txt
http://kazimirmajorinc.com/\">WWW site; http://kazimirmajorinc.blogspot.com\">blog.

ale870

#1
OMG!!!!!!!!!



Are they dynamically created?! Automatically generated?!

Simply amazing and crazy!
--

Kazimir Majorinc

#2
Thanx, yes, these are generated. I have lot of functions needed for generation and reduction of lambda-expressions in my library. Here is the simple program for demonstration.


(setf [print.supressed] true [println.supressed] true)
(load "http://instprog.com/Instprog.default-library.lsp")
(setf [print.supressed] nil [println.supressed] nil)

(for(i 1 1000000000 12345679)
  (setf lexpr (lam i "xyz"))
  (println "n" i ". " lexpr "n")
  (reduce^ lexpr 33 true)
  (println)
  (---))
 
(exit)
http://kazimirmajorinc.com/\">WWW site; http://kazimirmajorinc.blogspot.com\">blog.

newdep

#3
Fantastic!!! .. So Simply and so effective...



Love your Blog btw..great readings..!
-- (define? (Cornflakes))