6 ms·
Isn't Racket the 'default' Scheme? (Even though it's no longer called Scheme.)
by eru 2y ago
Isn't Racket the 'default' Scheme? (Even though it's no longer called Scheme.)
- medo-bear 2y agoNo
- School-Cotton 2y agoExtremely easy interop with native code is the main selling point of guile IMO. You just link in guile as a library and can have C code call scheme code and vice versa. Makes it great for any native program that needs an embedded scripting language (much like Lua). Does Racket support that use-case?
- eru 2y agoI haven't done FFI with Racket, but https://docs.racket-lang.org/foreign/index.html https://docs.racket-lang.org/foreign/index.html looks reasonably approachable?
- School-Cotton 2y agoThat seems to let you call C functions from Racket, but I don't see how it lets you embed Racket in a C program and call Racket functions from C. So it's at best half a solution, unless I'm missing something.
- eru 2y agoSee https://docs.racket-lang.org/inside/cs-procs.html https://docs.racket-lang.org/inside/cs-procs.html
- mepian 2y agoAt this point it's a separate language from Scheme. I think Chez Scheme tends to be the "default" recommendation.
- tmtvl 2y agoI don't think there's a real 'default' Scheme, like Chez is probably the implementation which generates the fastest code, but if I'm not mistaken it only implements the R6RS spec, Guile is quite performant and supports both R6RS and R7RS Small, Chicken has a bunch of libraries (the 'eggs'), but I think it's R5RS (I may be wrong), and of course GNU/MIT Scheme is what you want to follow along with MIT publications working in Scheme (like Structure and Interpretation of Computer Programs, Structure and Interpretation of Classical Mechanics, and The Art of the Propagator). There's also Gauche, which I believe is the most conformant implementation to the various Colour Dockets for R7RS Large (Gerbil may also be fully conformant).
- wbl 2y agoRacket is now built around Chez.
- pjmlp 2y agoWhich was a great idea, bootstraped languages always takes the usual "but you depend on XYZ" that haters always bring into the discussion. Additionally they allow to prove a point. For example, is writing compilers systems programming or not?
- gus_massa 2y agoYou can download a package to use R7RS Small in Racket. https://github.com/lexi-lambda/racket-r7rs https://github.com/lexi-lambda/racket-r7rs
- eru 2y agoThanks for the context! It's been a while since I did serious work in the Lisps. (I've moved on to the ML family.) > [...] GNU/MIT Scheme is what you want to follow along with MIT publications working in Scheme (like Structure and Interpretation of Computer Programs, Structure and Interpretation of Classical Mechanics, and The Art of the Propagator). Definitely, though I suspect if you need a language that's exactly what's written in the text, you are probably missing the point? At least for SICP, I haven't looked into the others as closely. (Part of) the point being learning wider concepts. I almost feel like you get more out of the book, if you do the exercises in a mix of JavaScript and Python. Not because those are better languages, just the opposite: because it forces you to understand the concepts well enough to translate them.