106 karma · joined January 23, 2009
I think it could be five years or more before anyone watches Hulu or Netflix on any of these devices.
A better comparison would be with old (early 90s) ADB models, such as the Apple Extended Keyboard II.
map :: (a -> b) -> [a] -> [b]
For the record, in Go+generics, this might look something like:
func map<A,B>(f func (A) B, xs A[]) B[] { ... }
Isn't this pretty much a reimplementation of codepad.org? So that's not entirely accurate...
Here's a tutorial that uses it to parse a simplified Scheme: http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_H...
If Rails weren't around, it would be much easier to enjoy Ruby without having to use it in isolation. Then again, a whole lot of people wouldn't have gotten into it in the first place.
Ruby lived fast and died young. If you don't want to use Python, learn Haskell.
It's very buggy, by the way. Crashes within 30 seconds every time I use it.
Fixed that for you.
(define (foldr f end xs) (if (null? xs) end (f (car xs) (foldr f end (cdr xs)))))
(define (foldl f start xs) (if (null? xs) start (foldl f (f start (car xs)) (cdr xs))))I was hacking together an Arc interpreter in Haskell the other day, and after refactoring some of the hairier monadic code, I was horrified to see that the type signature for a particular function was twice as long as the function body. And that's with the compiler figuring it out for me... I don't know what I'd have done if it was C++ instead.
Sure!
Now all we need is a lisp machine that anyone can run on modern hardware. Any ideas?
C++ is not generally a language people ought to learn unless they have to.
I advocate tracking down people from Sun and asking them in a personable, friendly tone of voice to please fix this kind of problem. On their front lawns.