λ: lisp thread

Time 12:45

Welcome Operator.

Main

POw92100

<- Back to forums

λ: lisp thread

Posted by faux Offline in SCRIPTING/CODE




faux's avatar
faux Offline (OP)
Dataluxer

Joined at 2020/12/10, 21:52:18

“https://driftt.neocities.org/”

faux's avatar
currently learning scheme-lisp using the wizard book. real tough shit, but mind expanding. highly recommended, not for practicality, but for better understanding computational processess. as an example of using lisp for numerical functions, i will describe a process using newtons method for square roots: ;;;; main function, checks if the guess is good enough, otherwise improves it (define (sqrt-iter guess x) (if (good-enough? guess x) guess (sqrt-iter? (improve guess x) x))) ;;;; averages to improve the guess (define (improve guess x) (average guess (/ x guess))) ;;;; defines the average function (define (average x y) (/ (+ x y) 2)) ;;;; sees if a number is "good-enough," meaning within 0.001 (define (good-enough? guess x) (< (abs (- (square guess) x)) 0.001)) ;;;; starts the process (define (sqrt x) (sqrt-iter 1.0 x) this is a very basic process, but it may give you some idea of how lisp operates at a surface level. highly recommended to check out the wizard book aka "Structure and Interpretation of Computer Programs"
/\ /vvvvvvvvvvvv \--------------------------------------, `^^^^^^^^^^^^ /=====================================" \/ keep a shitty sord handy at all times



fod's avatar
fod Offline
Operator

Joined at 2020/05/20, 03:01:22

“See you online ///”

fod's avatar
Post 5624 When did LISP enter your reality?
I was born 4 burning. I was born 4rm the galvanized dome. // 3DT FOREVER ... Try the new 3DT Mobile system



termer's avatar
termer Offline
Operator

Joined at 2020/05/20, 01:07:11

“He's passed on to a better, more euphemistic place.”

termer's avatar
isn't lisp the retarded family of languages where you pass functions into everything and it looks like you're writing bizarre markdown

VISIT My Webm Site NOW ||| 歡迎來到三維睾酮

=== My Pastebin clone === === Zone Xtract (Group with 500+ people) === Smile, you're on camera!



faux's avatar
faux Offline (OP)
Dataluxer

Joined at 2020/12/10, 21:52:18

“https://driftt.neocities.org/”

faux's avatar
Post 5624:5633 fairly recently. i am not expert by any means. i started learning it when i heard that it could widen your understanding of programming in ways other languages often would not Post 5624:5636 yeah pretty much |φ_φ|
/\ /vvvvvvvvvvvv \--------------------------------------, `^^^^^^^^^^^^ /=====================================" \/ keep a shitty sord handy at all times



portals's avatar
portals Offline
Dataluxer

Joined at 2020/09/19, 15:57:11

“paint a picture”

portals's avatar
Post 5624:5642 ive heard before that learning it helps understanding computational logic on a deeper level but i still dont get how it does that. give me the lisp-pill



faux's avatar
faux Offline (OP)
Dataluxer

Joined at 2020/12/10, 21:52:18

“https://driftt.neocities.org/”

faux's avatar
Post 5624:5645 as far as i know, using lisp, you write your own functions. no "import math" for example. you have to actually define even some very basic things like squares and square roots etc.. beyond that, things like recursion (when a function calls itself) can be pretty mind bending. you can craft the language around the process/program you are making rather than the vice versa. again, i am no expert, am still working through the book and have little understanding of programming outside of lisp itself.
/\ /vvvvvvvvvvvv \--------------------------------------, `^^^^^^^^^^^^ /=====================================" \/ keep a shitty sord handy at all times



portals's avatar
portals Offline
Dataluxer

Joined at 2020/09/19, 15:57:11

“paint a picture”

portals's avatar
Post 5624:5647 I've taken a class on scheme and can kinda see how it helps since it's purely functional logic, but I think I'd have to dive deeper to really get it. tbh at the end of the class I was still very rusty and didn't understand how to really actually use it



portals's avatar
portals Offline
Dataluxer

Joined at 2020/09/19, 15:57:11

“paint a picture”

portals's avatar
the one thing that has helped me understand the underpinnings of software the most is assembly



termer's avatar
termer Offline
Operator

Joined at 2020/05/20, 01:07:11

“He's passed on to a better, more euphemistic place.”

termer's avatar
You guys should give Nim a go. https://nim-lang.org/

VISIT My Webm Site NOW ||| 歡迎來到三維睾酮

=== My Pastebin clone === === Zone Xtract (Group with 500+ people) === Smile, you're on camera!



!
portals's avatar
portals Offline
Dataluxer

Joined at 2020/09/19, 15:57:11

“paint a picture”

portals's avatar
Post 5624:5654 looks cool





To post a reply, log in




X

<< INCOMING TRANSMISSION! >>

poster avatar termer2



==> Go to post