News for hackers. Stuff that matters.

dfeltey

Re:Ask HN: Do you use easter eggs in your websites/software/etc? on Saturday November 23, 2013 @01:50AM (#6785506)
Not really my project, but racket, specifically DrRacket has a handful of easter eggs for various holidays and the birthdays of core developers.
Re:Wendy's Pretzel Pub Chicken Love Stories Episode 1 on Saturday October 19, 2013 @11:06PM (#6578809)
What the hell did I just watch?
Re:Why functional programming? Why Haskell? on Saturday August 10, 2013 @02:44AM (#6190278)
I do understand your point, but purity is one of the defining characteristics of Haskell, and one of the features that differentiates it from most other languages, so I think it should be mentioned up front when introducing Haskell.
Re:Conrad Barski's Haskell Tutorial on Sunday July 14, 2013 @07:59PM (#6042828)
I don't know why anyone would use the Integral typeclass over just Int or Integer in a simple program like this, but you wouldn't need Num in addition to Integral, every instance of Integral must also be an instance of Real, and instances of Real must be instances of Num.
I'm not sure whether you would consider this paper systems-oriented, but it's fun and sort of practical. "A Play on Regular Expressions" is literally a 3 act play about efficiently implementing regular expressions with code in Haskell. I've been working through it and trying to adapt some of the code for a workshop I'm giving this summer, and it's been very readable and interesting.

http://sebfisch.github.io/haskell-regexp/regexp-play.pdf

Re:Ask HN: Why don't more people use GrubHub, Foodler, etc? on Saturday March 23, 2013 @02:53AM (#5427512)
I used to use GrubHub all the time when I lived in Chicago and always had a good experience with them. Since I've moved there aren't very many restaurants using these types of services where I live now, but I would definitely use a similar service if it had decent adoption locally.
Re:Higher-order list operations on Sunday March 03, 2013 @08:29PM (#5315990)
I graduated from the University of Chicago, and they have a handful of undergrad classes using functional languages. The intro comp sci courses were using Haskell for the honors class, and Racket for the non-honors version when I took it. The compilers course there is taught using ML, though the fact that UChicago has several faculty who work on the development and maintenance of Standard ML may have something to do with this.
Re:Yale Computer Science Dept overworked, understaffed on Wednesday January 30, 2013 @12:59AM (#5138322)
This is sort of interesting because the Math department at UChicago has had undergraduate TAs for a long time for at least the first year courses, and I believe a couple of the second year courses, but it seems only recently has the CS department done the same for its first year courses.
Re:Lego's Mindstorms EV3 robots are here on Monday January 07, 2013 @12:12PM (#5021960)
I teach RobotC to a FIRST robotics team, I really dislike it sometimes. The IDE is pretty bad, and only runs on Windows, and up until recently all variables in a RobotC program would implicitly be global. They fixed that with 3.5, and are aiming towards a more ANSI-C compliant implementation, but I still find it a pretty frustrating platform sometimes.

http://www.robotc.net/blog/2012/10/24/robotc-3-5-global-vs-l...

Re:Understanding map, filter, and fold on Monday December 24, 2012 @06:24AM (#4962543)
This was my one complaint as well, and it happens with the example given of any'

Defining any' as

any' f xs = foldl (\acc x -> f x || acc) False xs

Then trying to evaluate any' even [1..] runs forever, but if we modify it slightly to use foldr instead as

any' f xs = foldr (\x acc -> f x || acc) False xs

Then evaluating any' even [1..] terminates basically immediately with True.