Hacker News new | ask | show | jobs
by yearoflinux 2112 days ago
As someone who respects functional programming (because it removes geniuses from competing in my space) here's a nice video https://www.youtube.com/watch?v=ADqLBc1vFwI

What is the beautiful monospace font in the pdf here http://brendanfong.com/programmingcats_files/cats4progs-DRAF...?

8 comments

> here's a nice video https://www.youtube.com/watch?v=ADqLBc1vFwI

OMG. That might just be the funniest god-damned thing I've ever seen in my life. Thanks for sharing that!

On a separate note: does anyone know where this footage is originally from? Some WWII movie, I would guess?

https://en.wikipedia.org/wiki/Downfall_(2004_film)

Probably one of the best "WWII movies" (it's really only about the final days in the bunker) ever.

Just seconding that Downfall is brilliant. Totally off-topic now, but also extremely good is Das Boot.
Thanks. I will check that out.
I laughed a lot with the video too.

Jokes aside, a book like CTM shows both paradigms have their place, and can also co-exist in the same system.

Besides, this paper cleared all my doubts about high-order FP having a lot of (unexploited) potential:

http://conal.net/papers/compiling-to-categories/

> here's a nice video https://www.youtube.com/watch?v=ADqLBc1vFwI

This made me laugh way more than it should have. "Why don't you pattern match my fist all over your faces!"

"Don't worry, Haskell transpiles to Java now."

And the last line....

> The number of elements of a set X is called its cardinality because cardinals were the first birds to recognize the importance of this concept.

Alright, maybe I will keep reading this book.

> What is the beautiful monospace font in the pdf

t1xtt, from the txfonts package, freely available

Thank you! No ttf/otf though :)
It looks like a fork of Luxi Mono with slashed zero, which is available in ttf. And there is a more modern version of it with better character coverage -- Go Mono.
The last line. Oh god, the last line. I haven't cackled that loudly in months.

    Hitler: What's a monad anyway? No one who understands monads can explain what they are
    Underling (hurriedly): A monad is just a monoid in the category of endofunctors
This caused me to choke on my coffee.
> A monad is just a monoid in the category of endofunctors

A helpful analogy can be drawn by comparing two facts: a composition of something with its inverse produces the identity (a.k.a. unity, to use the Latin root), while a composition of something (e.g. a functor) with its "adjoint" (not quite the inverse) produces something similar that is better said in Greek.

And thus, another cycle is completed.
You just made those words up right now!
Oh, another Haskell can't do IO joke.
Yes, but this time it was a funny one. I laughed, and not just at AbstractSingletonProxyFactoryBean.

Gotta be able to laugh at yourself sometimes.

But the important takeaway is that if you don't like Haskell, you might as well be Hitler.
Thanks for replying. I gave up on the beginning because those jokes tend to always be the same.

(And to be fair, half of them are the same overused ones. But the others are good.)

"Thank god you haven't found Prolog..."
It's true, and it starts off with the very worst one. I almost closed the tab like 30 seconds into the video.
The beginning wasn't great, but it had some really hilarious lines later.
I think the joke was that Haskell can do IO but haskellers can’t
you are my hero for this comment.