lainchan / λ

(untitled)

Dozer · 2022-02-08 14:26
unbelievably cursed sicp edition
Koichiro · 2022-02-08 14:56
>>30011 But this is the future. thb the cover does unironically look good.
cond · 2022-02-08 17:25
>>30012 both look terrible and convoluted
Rick Deckard · 2022-02-08 18:01
Javascript started as a Scheme dialect before adopting Java-ish syntaxes, so I guess it kind of makes sense.
over · 2022-02-08 19:31
Cure formula: * Install GNU/Linux * Install Guile or some other Scheme implementation. * Install GNU Emacs + Geiser + Rainbow Delimiters * Work through https://people.eecs.berkeley.edu/~bh/ss-toc2.html + https://mitpress.mit.edu/sites/default/files/sicp/index.html + https://www.youtube.com/watch?v=-J_xL4IGhJA&list=PLE18841CABEA24090&index=1
Unsigned · 2022-02-08 21:14
>>30014 that's not quite true. Brendan Eich had the idea initially to make the scripting language for the web be a scheme, but the higher ups at Netscape basically forced him into making Javascript because they wanted something that looked more familiar and that cashed in on the hype Java was experiencing at the time >>30018 spotted the refu/g/ee
Iverson · 2022-02-08 21:25
>>30012 If they're going to chain up ternary operator like that, why not indent it in test-and-result format like in cond? function deriv(exp, variable) { return is_number(exp) ? 0 : is_variable(exp) ? (same_variable(exp, variable) ? 1 : 0) : is_sum(exp) ? make_sum(deriv(addend(exp), variable), deriv(augend(exp), variable)) : is_product(exp) ? make_sum(make_product(multiplier(exp), deriv(multiplicand(exp), variable)), make_product(deriv(multiplier(exp), variable))) : error(exp, "unknown expression type -- deriv"); }
Unnamed · 2022-02-09 00:49
>>30018 sometimes I wonder if people come to this website just to engage in bizarre albeit imaginative roleplay
Boris Grishenko · 2022-02-09 05:53
>>30011 Can't seem to find any "cursed" SICP images but I did find a site with a bunch of anime girls holding this book (not specifically the JavaScript version) and a whole bunch of other programming books. >>30018 People like you is what gives us Node.js devs a bad look. Stop.
Switch · 2022-02-09 12:31
>>30011 Will this book finally cure js devs of brain damage or is it just a piss-on-your-grave kind of move?
Fred Nurk · 2022-02-10 15:09
>>30017 I find the homework assignments from http://people.eecs.berkeley.edu/~bh/61a-pages/Volume1/CS%2061A%20Course%20Reader,%20Volume%201.html useful if you're struggling through the "mathy" exercises.
William Holtzer · 2022-02-10 18:58
>>30028 Node.js is what gives Node.js devs a bad look
Turing · 2022-02-11 07:02
>>30061 I can't argue with that logic. But you can say that with any language lol.
x<->y · 2022-02-11 07:08
>>30080 Unless if you're a C programmer, of course.
Tyrell Wellick · 2022-02-18 07:00
>>30020 I think Douglas Crockford also said something about Netscape and Suns Microsystems forming some sort of alliance against Microsoft, which they both competed against.
Davis · 2022-02-19 12:21
>>30021 I don't even understand why they don't write it like this const deriv = (exp, variable) => expr;
swap · 2022-02-20 14:30
>>30011 They skipped the whole parsing topic. kek
roll · 2022-02-20 17:32
>>30018 this must be a copypasta. if it isn't, it should become one immediately.
par22 · 2022-08-17 21:32
>>30011 This book represents the hope for a bright future that unshackles programmers from the unproductive narcissistic admiration of the Scheme programming language. Ask yourself: how many regularly used software are written in Scheme over the 5 decades of its existence? If the methods used in the past did not work out, it is time to try new methods. Elitism does not help in spreading ideas widely. This JavaScript edition could be a step in the right direction. It may even be a gateway drug to Scheme.
Dujour · 2022-08-18 11:33
>>32434 I appreciate that you're bringing one of our decent threads to the frontpage and trying to spark some discussion, but ironically reproducing the clichés of foreign lands might confuse some of our more confusable new friends. You raise a well-trod argument. Will bringing x closer to people make it reach more people? Surely, but the question is whether any of the people who weren't willing to come close to x on their own will be able to benefit from it. Two guys reckoned they would, and spent their time writing this book; more power to them.
Ein · 2022-08-18 20:53
>>32436 That I still haven’t read this fills me with shame. If Racket is so great, though, why doesn’t Google hire flacks to proselytize its virtues, huh?
Zuse · 2022-08-19 03:16
>>30034 Most likely the former. SICP is about computation, not scheme; assuming this is even remotely a good adaptation, none of the core ideas will be lost.
Splicer · 2022-08-19 04:55
There's also this: https://composingprograms.com/
Spike Spiegel · 2022-08-19 07:04
MIT deleted the SICP page. But you can still read your SICP at: >https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/6515/sicp.zip/full-text/book/book.html
par22 · 2022-08-19 07:20
On the cover, there is a large purple lambda, and a red character. What is the red character? Is it an uppercase sigma?
The Fin · 2022-08-19 07:50
>>32443 It's another lambda. I assume the larger red character is also a lambda.
Otto Normalverbraucher · 2022-08-20 21:30
>>32443 Fren you might want to get checked for dyslexia.
Koos van der Merwe · 2022-08-21 00:28
>>30011 I don't see the point of this. The style of the code shown here has next to zero to do with the JS you can find on the wild anyways . Is hamfisting a solution where it does little to solve the problem. If using a modern Scheme implementation was out of question, at least could've chosen Clojure or link related if they wanted a corporate poster child that somewhat looked like a Scheme http://docs.hylang.org/ Hell, even Racket.
par22 · 2022-08-21 05:05
>>32458 >Fren you might want to get checked for dyslexia. How do I get checked?
nibble · 2022-08-21 07:07
>>32460 The Python and JS version of SICP were only made because lisp is "unfashionable" these days. These versions are harmful and the original SICP is still the best.
Undisclosed · 2022-08-21 07:36
>>32462 >because lisp is "unfashionable" these days Was it ever, outside of the academia? The amount of notable software written in a (non-Clojure) Lisp used by people can be counted with 1 tentacle; 0 tentacles if counting software made in the last 1-2-3-4 decades. Hell, the majority of good useful CL packages are wrappers for libraries written in other languages. For how nice Lisp is, its huge problem is that it somehow makes Lispers completely lose themselves in mental masturbation.
nil · 2022-08-21 08:01
>>32463 I don't think there's anything wrong with a language being academic. Lisp's openness makes it a bad choice for large-scale "real world" projects, since things can get out of hand very quickly, but that's also what makes it a perfect teaching language, since you have so much freedom to experiment. I know personally that I learned more from Lisp in a month than I did three years with Python.
push · 2022-08-23 04:53
Does any kind of in depth review exist of the javascript edition? Preferably comparing it to the original but I will settle for anything of substance. Is there any proof that someone has even read this fuarrrking thing?
Meddler · 2022-08-24 07:00
>>32490 It's almost exactly the same as the original but with the Scheme very literally translated to JavaScript. There's not much to say. If it gets more people to read Sicp that's great but the Scheme version is clearer.
par22 · 2022-08-24 19:42
>>32517 >If it gets more people to read Sicp that's great but the Scheme version is clearer. I came to Scheme from JavaScript after struggling to understand higher-order functions in JavaScript. I think there is merit in the idea that SICP-JS-Edition could be a gateway to SICP-Scheme-Edition and Scheme.
aliased · 2022-09-05 09:53
>>30012 Oh my god, is that 5 nested ternary operators in javascript? I'd say scheme version is superior simply because it doesn't teach you to code in a way that isn't natural for the language.
Liet Kynes · 2022-09-06 01:09
>>32671 There's no difference between nested ternary operators and conses my dude. Now if you'll excuse me I have to huff this can of spray paint.
Frog Poster · 2022-09-10 21:24
I have heard about this book? Is it good?
Kay · 2022-09-14 16:57
>>32706 Run, child. This is an accursed book. There was once here a book of purity and light, and it has been replaced with a book of foul portents, a yellow cover, and javascript.
par22 · 2022-09-14 19:20
>>32753 Dear Scheme reactionary, Enjoy this comic strip: https://www.smbc-comics.com/comic/how-math-works The world is soon going to finish step 4 and begin step 5, which is the changing of the old guard.
Crash Override · 2022-10-03 23:10
>>30012 If your point is that JavaScript is more concise maybe make the font size the same, you fraudulent buffoon.