Better HN
topnewbestaskshowjobs
Log inSign up

dfeltey

10 karma · joined Dec 24, 2012 (13y ago) · 10 submissions

Submissions

comment 13y ago · link · parent

Not really my project, but racket, specifically DrRacket has a handful of easter eggs for various holidays and the birthdays of core developers.

comment 13y ago · link · parent

What the hell did I just watch?

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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...

comment 13y ago · link · parent

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.