News for hackers. Stuff that matters.
Re:Racket v6.8 by throwaway7645 on Wednesday January 25, 2017 @07:01AM (#13480693)
Is there any chance for another Racket book besides Realm of Racket and How to Design Programs? I like the concept of RoR, but I'm not super interested in web programming and it seems to have a lot of that. HtDP is supposed to be like SICP, which is great, but doesn't help me a lot with learning the language (at least not as much).
Re:Racket v6.8 by rkallos on Wednesday January 25, 2017 @10:43AM (#13482269)
You might enjoy http://beautifulracket.com/

In addition to going over how to write various DSLs in Racket, there are 'explainers' for a lot of Racket concepts.

Re:Racket v6.8 by throwaway7645 on Wednesday January 25, 2017 @05:57PM (#13487076)
Thanks...been looking at it.
Re:Racket v6.8 by kd0amg on Wednesday January 25, 2017 @08:19AM (#13481152)
RoR doesn't look particularly web-focused to me (the end of it mentions the web server as something worth reading about). That said, it leaves a lot of Racket's features untouched. HtDP doesn't really aim for SICP's niche -- it is meant to be an introduction to programming and the mode of thought involved, rather than trying to cover the structure and implementation of languages.
Re:Racket v6.8 by baldfat on Wednesday January 25, 2017 @02:18PM (#13484917)
I really liked RoR for how it presented items and just walked through items. I am self taught and know a dozen languages well enough to write a lightweight program, but RoR made me understand all of them better. I use R weekly and learning a scheme language like Racket opened up a whole part of R I missed. R is actually based off of S as well as Scheme. So I now program totally differently because of RoR.
Re:Racket v6.8 by peatmoss on Wednesday January 25, 2017 @08:46PM (#13488047)
High-five for learning R better via exposure to Racket. People ask me how to level up their R programming, and I tell them, "Read HtDP."

I haven't read RoR--placing an order now.

Re:Racket v6.8 by throwaway7645 on Wednesday January 25, 2017 @10:30PM (#13488473)
How is Racket anything like R?
Re:Racket v6.8 by baldfat on Thursday January 26, 2017 @07:53AM (#13490900)
"R is based on S and Scheme"

From 2009 mail list of R on the similarities and differences between R and Lisp

https://stat.ethz.ch/pipermail/r-help/2008-December/181982.h...

R is much more functional then most people give it credit.

From Saint Hadley

> R, at its heart, is a functional programming (FP) language. This means that it provides many tools for the creation and manipulation of functions. In particular, R has what’s known as first class functions. You can do anything with functions that you can do with vectors: you can assign them to variables, store them in lists, pass them as arguments to other functions, create them inside functions, and even return them as the result of a function. http://adv-r.had.co.nz/Functional-programming.html

It isn't a pure functional language which is really only available in Academics and Haskell has nomads to get things out which is arguably not pure.

Learning Racket helped me to use the Scheme parts found in R. It really is a little mind blowing. R was mostly used by people with little computer skills and was used with a imperative mindset but when you use it more functional R really shines.