@ Pohon BBS
SICP : Let's Read! (18 replies)

■ 🕑 3.
│  Random Scheme / Lisp / programming discussion that doesn't fit into
│  chapter discussion goes here....
│   
├─■ 🕑 5. phatcat power level formula (first scheme test)
│   (define phatcat_powerlevel 1200)
│   (define unlocked_potential 500)
│   (define (phatcat_bulky_transformation x y) (* 1.2 (+ x y)))
│   (phatcat_bulky_transformation phatcat_powerlevel unlocked_potential)
│   
│    
├─■ 🕑 10. outputs color based on stats (hopefully)
│   (define (clouds_color strength intelligence Defense)
│   (define red strength)
│   (define blue intelligence)
│   (define green defence)
│   (list red green blue))) % gives RGB color (idk how to/
│    if its even possible for lisp to output a color)
│    
├─■ 🕑 11. some sample lisp code
│   (define pi 3.14159265)
│   (define (square x) (* x x))
│   
│   (define (volume-of-cone radius height)
│    (* pi (square radius) (/ height 3)))
│   
│   (define my-cone-volume (volume-of-cone 1 2))
│   
│   my-cone-volume
│   => 2.09
│    
└─■ 🕑 12.
    Famous article by a guy who used Lisp to become a billionaire :
    
    > Graham, Paul. "The Roots of Lisp." (2001) 15pp
    https://wiki.eecs.yorku.ca/course_archive/2014-15/W/6339/_media/jmc.pdf
    
    discusses how 7 primitives became the meta language
     

Pohon BBS