Saagar Jha
19 replies
SnoopJ (is on a train 🚂)
(replying to Saagar Jha)
@saagar having a "they hated him because he told the truth" moment about Python being categorized as C, here
2 replies
Saagar Jha
(replying to SnoopJ (is on a train 🚂))
Daphne Preston-Kendal
(replying to Daphne Preston-Kendal)
@saagar @fogti Also, Python and Java have automatic memory management and bounds checking; you can’t call them C
mike bayer :python_logo:
(replying to Saagar Jha)
@saagar calvin can't sleep because he is thinking "well then what is PERL ?"
gok
(replying to Saagar Jha)
@saagar the real mindfuck is when you learn C++ and Rust and Swift are C, but C is Lisp
aoeuidhtns
(replying to Rue Mohr)
@saagar@federated.saagarjha.com @RueNahcMohr@infosec.exchange
`(mismatched bracket two characters after the s
hold on, you've nerd sniped me, i need to make a "mocking lisp for all its parentheses generator", in lisp
it'll be so easy :)
; yes, this is valid scheme code, if you define "in"
aoeuidhtns
(replying to aoeuidhtns)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
done?:
(use-modules (srfi srfi-1) (srfi srfi-27))
(define (add-parens lst)
(if (eq? (length lst) 1)
lst
(let ((rand (+ 1 (random-integer (- (length lst) 1)))))
(list (add-parens (take lst rand)) (add-parens (drop lst rand))))))
(add-parens '(l i s p)) ; => ((l) ((i) ((s) (p))))
aoeuidhtns
(replying to aoeuidhtns)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
i guess it only works in guile
1 replies
aoeuidhtns
(replying to Rue Mohr)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
first you mock lisp, next you post an image without alt text?!
Rue Mohr
(replying to aoeuidhtns)
I just thought the offer to translate the post stood on its own. sometimes it provides the most hilarious out-of-context salt. :]
aoeuidhtns
(replying to Rue Mohr)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
i mean, alt text, as in the text that describes the image, so blind people know what the image is
it's also very good for people who have slow internet, looking using a text-based browser, or just have bad eyes
Rue Mohr
(replying to aoeuidhtns)
yes, I'm sorry I dont alt-text more, but its like writing internet articles that you put 10 hours into and then find out later nobody read it. I'v lost my hope, and I'm sorry.
aoeuidhtns
(replying to aoeuidhtns)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
i was trying to make it portable by using srfis instead of guile functions but i then used the guile module syntax foolishly thinking that it was standard
aoeuidhtns
(replying to aoeuidhtns)
@RueNahcMohr@infosec.exchange @saagar@federated.saagarjha.com
i guess importing srfis just isn't a thing you do (outside of guile and chicken scheme, as far as i am aware)
i think in chicken scheme or wherever srfi importing is practiced, you could replace the first line with "(import (srfi 1) (srfi 27))"
Wes Hardaker
(replying to Saagar Jha)
@saagar I recently wrote the first true artificial general intelligence implementation in lisp. To prove it, I'll reveal my last 100 characters of the source code:
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
nLupo :anarchist_flag: :antrans_flag:
(replying to Saagar Jha)
@saagar Unfortunately Javascript is a terrible Lisp.
