Saagar Jha

I will not be taking questions at this time.
Playing X? I'll Show You Something Interesting meme template. In the first panel CEichn’s dad asks “Playing with types? I’ll show you something interesting”. In the second panel he says “The two types of programming languages are Lisp and C. All languages fall into these to categories. Haskell [logo]? Lisp. Java [logo]? C.” Calvin replies “Yeah…”. In the third panel Calvin’s dad continues: “Ruby [logo]? Lisp. Python [logo]? C. Despite having C-like syntax, JavaScript [unofficial logo, annoyingly there is no real logo for this??] is a Lisp.” In the last panel Calvin is kept up by the horrors of what Brendan Eich has wrought.
19 replies →
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 →
2 replies

Saagar Jha

(replying to SnoopJ (is on a train 🚂))
@SnoopJ If you really want to start an argument ask what category OCaml is in

F4GRX Sébastien

(replying to Saagar Jha)

@saagar @SnoopJ brainfucks.


fraggle

(replying to SnoopJ (is on a train 🚂))

@SnoopJ @saagar Python / Ruby horseshoe theory


Daphne Preston-Kendal

(replying to Saagar Jha)

@saagar @fogti I am slightly more cruel and say the two types are Lisp and assembly, but yeah

1 replies →
1 replies

Fritz Adalis

(replying to Daphne Preston-Kendal)

@dpk @saagar @fogti
Assembly is a C.

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


Dan Piponi

(replying to Saagar Jha)

@saagar But you can write Fortran in all of them


Æ.

(replying to Saagar Jha)

@saagar lukewarm take: Rust is a Lisp


mike bayer :python_logo:

(replying to Saagar Jha)

@saagar calvin can't sleep because he is thinking "well then what is PERL ?"


StarkRG@myside-yourside.net

(replying to Saagar Jha)

@saagar Objective C manages to be both.


traecer

(replying to Saagar Jha)

@saagar Despite having C-ish syntax, Perl is also a Lisp.


gok

(replying to Saagar Jha)

@saagar the real mindfuck is when you learn C++ and Rust and Swift are C, but C is Lisp

lizard appreciator

(replying to gok)

@doctorgoktor @saagar c++ is c but c++ templates are lisp


EndlessMason

(replying to Saagar Jha)

@saagar
Perl is the most upsetting lisp

Mx. Eddie R

(replying to EndlessMason)

@EndlessMason @saagar
Perl is the most upsetting

Arch 💕

(replying to Mx. Eddie R)

m'ughes

(replying to Saagar Jha)

@saagar

Thanks be to Douglas Crockford


Rue Mohr

(replying to Saagar Jha)

@saagar ((((L))(I)))(S))(P)))))))

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)
1 replies →
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)

@aoeuidhtns @saagar

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)

@aoeuidhtns @saagar

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))"


Katerina Marchán

(replying to Saagar Jha)

@saagar no lies detected


Handler Skyler

(replying to Saagar Jha)

@saagar Rust


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:

))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))


HoldMyType

(replying to Saagar Jha)

@saagar no! you gotta explain this
what about ocaml? c or lisp ?


Marty Fouts

(replying to Saagar Jha)

@saagar Prolog has entered the chat.


nLupo :anarchist_flag: :antrans_flag:

(replying to Saagar Jha)

@saagar Unfortunately Javascript is a terrible Lisp.


ShutterBugged

(replying to Saagar Jha)

@saagar Despite having a C-like syntax, TCL is a lisp.

wiki.tcl-lang.org/page/Lisp


tippfehlr

(replying to Saagar Jha)

@saagar TIL that the JavaScript logo is unofficial