Re:SICP: The only computer science book worth reading twice?...
by dokyun on Saturday November 16, 2024 @06:51PM
(#42160635)
SICP isn't a book about Lisp, however it uses some of Lisp's unique properties to demonstrate important concepts that other languages can't easily replicate. A book that's meant to be similar to SICP that doesn't use Scheme or Lisp would not be anything like SICP, or at least not teach the same things. Haskell and ML are in my experience much harder to understand than Scheme, so I'm wondering what your difficulty is?
[ Parent
| on HN ]
Re:SICP: The only computer science book worth reading twice?...
by ok123456 on Saturday November 16, 2024 @06:56PM
(#42160673)
There's a SICP edition done in Javascript.
Re:SICP: The only computer science book worth reading twice?...
by dokyun on Saturday November 16, 2024 @07:26PM
(#42160850)
Have you looked at it? It's an abomination. The point of SICP isn't Scheme or the syntax of Scheme, but what it represents. Whoever made the Javascript rewrite didn't understand that. You can't write a metacircular interpreter in Javascript, because Javascript is not homoiconic.
Re:SICP: The only computer science book worth reading twice?...
by shawn_w on Saturday November 16, 2024 @09:14PM
(#42161431)
I'm pretty sure someone wrote a very basic, very literal scheme to JavaScript transpiler and just ran the book's code through it. The results look nothing like what any normal person would write.
Re:SICP: The only computer science book worth reading twice?...
by wruza on Sunday November 17, 2024 @12:06AM
(#42162117)
You can't write a metacircular interpreter in Javascript, because Javascript is not homoiconic.
Is that a downside? I never wrote or used metacurcular interpreter in my life and still don’t know why I had to read about it. Is it an interesting implementation technique of lisp? Yes. Does anyone really need that?
You can rip off that part and everything that follows and that will be enough for a regular programmer. No one itt needs to know how to design metacircular interpreter on register machines.
Re:SICP: The only computer science book worth reading twice?...
by shawn_w on Sunday November 17, 2024 @03:19PM
(#42166842)
It allows the book to skip things like lexing and parsing and instead go straight to its main course: transforming, executing and compiling syntax trees.
Re:SICP: The only computer science book worth reading twice?...
by alabhyajindal on Sunday November 17, 2024 @09:22AM
(#42164320)
I don't have a difficulty writing Lisp. It's just not my style. I don't like S-expressions. I understand this is not too big an issue and it's very likely I'll get more comfortable with it given enough time. It hasn't happened yet.