News for hackers. Stuff that matters.
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by gexla on Wednesday February 26, 2014 @10:08PM (#7310098)
Is Racket good for learning Lisp/Scheme or is it better to start with something else?
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by groovy2shoes on Wednesday February 26, 2014 @10:13PM (#7310122)
I learned with Racket, and I found it to be a great experience. It comes with an IDE, DrRacket, that makes it very comfortable to start experimenting. It's also "batteries-included", with libraries for GUI, graphics, networking, etc. It also comes with really good documentation (at least as good as Python's, I'd say, and better than either Perl's or Ruby's).

Racket has a good foothold in educational environments, so it's no coincidence that it's conducive to learning. However, Racket also sees a lot of usage in the PL research space, so it's also conducive to just experimenting. Those two combined can make it a very fun environment.

There's also #racket on freenode, which I've found rather welcoming.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by brudgers on Thursday February 27, 2014 @12:49AM (#7310604)
If you are interested in learning a LISP, then Racket makes a lot of sense. It is actively being developed and extended and because of its roots in academia extensions tend to be address interesting problems- many arise out of computer science research by professors and grad students.

On the other hand, if you want to learn Scheme by working through SICP, then I would recommend MIT Scheme to avoid impedance. There's not much benefit from using the Racket ecosystem for that. Likewise, if the goal is to work through On LISP then a common Lisp implementation makes sense.

Of course there's no reason not to have all those languages installed..or at least that's what I tell myself.

My last advice is that Racket is an ecosystem. It provides many languages including Algol and Datalog and Scribble and Typed Racket. This makes for a lot of documentation and it is uneven. The guide will be too shallow and the reference will be more boilerplate rather than providing deeper explanation and further examples.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by kenferry on Thursday February 27, 2014 @01:02AM (#7310644)
I've been working through SICP, and as far as I can tell Dr. Racket is actually the best way to do that. You just need to use Neil Van Dyke's SICP package for Racket. http://www.neilvandyke.org/racket-sicp/
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by 616c on Thursday February 27, 2014 @01:06AM (#7310651)
Hats off to you, sir, you beat me to it.
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by 616c on Thursday February 27, 2014 @01:05AM (#7310650)
FYI, brudgers makes good points, but the beauty of Racket is they have subsets and supersets of languages, from an Algol implementation to a specialized language built for studying SICP. Neil van Dyke and some other Racketeers built it. I think it might be in need of a maintainer, but here it is nonetheless.

http://www.neilvandyke.org/racket-sicp/

Also keep in mind there is a different subset language designed by one of the developer/professors for his own book based upon his improvements to the SICP methodology, entitled How to Design Programs, as explained in his paper.

http://www.ccs.neu.edu/racket/pubs/fdpe2002-fffk.pdf

The second edition is available as HTML pages amongst the URLS below.

http://docs.racket-lang.org/teachpack/2htdpuniverse.html

http://www.ccs.neu.edu/home/matthias/HtDP2e/

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by brudgers on Thursday February 27, 2014 @08:10AM (#7311889)
Felleisen's How to Design Programs has an entirety different set of goals than SICP. HtDP teaches programming practices. SICP teaches 'computer science.'

HtDP is a great book, but no substitute for SICP in terms of content.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by douglasisshiny on Thursday February 27, 2014 @09:41AM (#7312397)
While I haven't read HtDP, I've read similar things.

I'm in my late 20s going for a second BS (this time in comp sci), and wanted to go through SICP on my own (plus the online lectures). I felt that I needed a bit of a warmup, though, and chose 'Concrete Abstractions' instead of HtDP. I'm satisfied with it so far.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by brudgers on Thursday February 27, 2014 @10:53AM (#7312805)
It may seem obvious but HtDP emphasizes designing programs. It's not really trying to teach theories of computer science or abstractions. It's about developing coding habits - in terms of SICP it's all about good wishful thinking.

SICP, and this is not a criticism, is more like a stamp collection of computer science topics. It provides a point of reference when I've read about operating systems, state machines, compilers, data structures, etc. etc.

Between the two, SICP is flat out a better book qua book. On the other hand, working through just a little of HtDP will probably have more impact on the way you write software than working through a little of SICP.

Lastly, while there may be some similarities to other introductory texts, I doubt that there is any computing pedagogy backed by as much research as Felleisen and the PLT group. While SICP and Scheme were intended to facilitate teaching, the Racket ecosystem [and PLT Scheme before it] are continuously developed with pedagogy as a primary driver.

Most pedagogy is driven by "I think this would be a better way to teach programming." The PLT group checks their theories statistically and their theories are tied to educational theories in general. And they've been going down that road for several decades.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by douglasisshiny on Friday February 28, 2014 @01:21PM (#7320484)
Thank you for the thorough reply.

I do own another Felleisen text (Realm of Racket) that I do intend on reading. And I'm sure, since it's free, I will at least look through HtDP.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by Crito on Thursday February 27, 2014 @04:10AM (#7311182)
It has admittedly been several years, but I distinctly remember MIT Scheme being an utter pain in the ass to get built. I'd recommend Racket for people just getting off the ground for that reason alone.
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by _delirium on Thursday February 27, 2014 @06:05AM (#7311524)
GNU does provide binaries for some systems: http://www.gnu.org/software/mit-scheme/

However, there hasn't been a release since 2011. The primary maintainer (Chris Hanson) is now at Google, and seems to be busy with other things. Previously, he was at MIT and used to write most of his own research projects in Scheme, so it got a lot more maintenance attention.

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by brudgers on Thursday February 27, 2014 @08:04AM (#7311872)
Last month I built MIT Scheme on my 13 year old Toshiba Satellite (and it was the cheap one in 2001) under Wary Puppy 5.5. No problems. Because of its richer feature set, Guile was another matter and I gave up.
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by pavelludiq on Thursday February 27, 2014 @04:53AM (#7311299)
All the major lisp dialects are rather different and encourage different styles. My own opinion is that no one is a better first lisp, as long as you check out the others eventually. Racket is an excellent start. I always advise people interested in lisp to check out racket, clojure and Common Lisp in whatever order they wish. I started with scheme in 2008, moved to clojure in 2009 and I've been a happy Common lisper since 2010/11. Depending on your own style as a programmer you might choose a different main dialect you like best, but only after you try them all :)

Happy Lisping!

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by jonnybgood on Thursday February 27, 2014 @12:01AM (#7310484)
Absolutely. However, if you want to learn modern concepts and/or their implementation in a lisp, I would say Clojure is a better bet.
Re:Racket 6.0: New package system, new doc CSS, JIT support ... by 6cxs2hd6 on Thursday February 27, 2014 @11:04AM (#7312877)
I don't really agree with that. Although Clojure has many great things, for example its out-of-box immutable data structures, I wouldn't say that it's "more modern" than Racket.

If anything, lately Clojure has been drawing on Racket for inspiration in many areas (for example Typed Racket).

In fact, if you wanted to find a criticism of Racket, it might be that occasionally it is "too" modern -- in the sense that some parts are implementations of research papers. You might encounter the occasional module whose documentation isn't much more than "Implements foobars in the sense of Researcher [Year] <link to paywall paper>". To be clear, that is not 98% of Racket. I mention it just to counter the idea that Racket is "less modern". It's constantly evolving with new things.

Finally, for someone getting started with a lisp, Racket is (a) download, (b) install, (c) start coding and running -- within literally 5 minutes. (Of course experienced people aren't limited to DrRacket if they prefer Emacs or Vim or whatever.)

Re:Racket 6.0: New package system, new doc CSS, JIT support ... by wes-exp on Thursday February 27, 2014 @11:35AM (#7313101)
The whole notion of a "modern" programming language is a big joke considering that mainstream languages have been playing catch-up to Lisp for decades.