News for hackers. Stuff that matters.
Re:Programming with Categories by yearoflinux on Wednesday September 02, 2020 @12:03PM (#24354533)
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...?

Re:Programming with Categories by mindcrime on Wednesday September 02, 2020 @03:01PM (#24356588)
> 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?

Re:Programming with Categories by Tainnor on Wednesday September 02, 2020 @03:24PM (#24356918)
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.

Re:Programming with Categories by abrookewood on Wednesday September 02, 2020 @08:12PM (#24359631)
Just seconding that Downfall is brilliant. Totally off-topic now, but also extremely good is Das Boot.
Re:Programming with Categories by mindcrime on Wednesday September 02, 2020 @03:59PM (#24357348)
Thanks. I will check that out.
Re:Programming with Categories by nextos on Wednesday September 02, 2020 @09:32PM (#24360062)
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/

Re:Programming with Categories by cgh on Wednesday September 02, 2020 @02:39PM (#24356336)
> 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!"

Re:Programming with Categories by mcguire on Wednesday September 02, 2020 @02:56PM (#24356517)
"Don't worry, Haskell transpiles to Java now."

And the last line....

Re:Programming with Categories by smarx007 on Thursday September 03, 2020 @01:54AM (#24361119)
Re:Programming with Categories by CobrastanJorji on Wednesday September 02, 2020 @02:40PM (#24356357)
> 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.

Re:Programming with Categories by enriquto on Wednesday September 02, 2020 @12:33PM (#24354885)
> What is the beautiful monospace font in the pdf

t1xtt, from the txfonts package, freely available

Re:Programming with Categories by yearoflinux on Wednesday September 02, 2020 @12:49PM (#24355086)
Thank you! No ttf/otf though :)
Re:Programming with Categories by vertebrate on Thursday September 03, 2020 @05:30PM (#24369104)
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.
Re:Programming with Categories by madhadron on Wednesday September 02, 2020 @03:10PM (#24356706)
The last line. Oh god, the last line. I haven't cackled that loudly in months.
Re:Programming with Categories by infogulch on Wednesday September 02, 2020 @02:48PM (#24356421)

    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.
Re:Programming with Categories by Koshkin on Wednesday September 02, 2020 @07:28PM (#24359386)
> 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.

Re:Programming with Categories by infogulch on Wednesday September 02, 2020 @09:39PM (#24360089)
And thus, another cycle is completed.
Re:Programming with Categories by sloucher on Wednesday September 02, 2020 @03:59PM (#24357339)
You just made those words up right now!
Re:Programming with Categories by marcosdumay on Wednesday September 02, 2020 @01:02PM (#24355226)
Oh, another Haskell can't do IO joke.
Re:Programming with Categories by mumblemumble on Wednesday September 02, 2020 @01:43PM (#24355720)
Yes, but this time it was a funny one. I laughed, and not just at AbstractSingletonProxyFactoryBean.

Gotta be able to laugh at yourself sometimes.

Re:Programming with Categories by dllthomas on Wednesday September 02, 2020 @03:37PM (#24357087)
But the important takeaway is that if you don't like Haskell, you might as well be Hitler.
Re:Programming with Categories by marcosdumay on Wednesday September 02, 2020 @01:58PM (#24355870)
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.)

Re:Programming with Categories by tsimionescu on Wednesday September 02, 2020 @04:47PM (#24357961)
"Thank god you haven't found Prolog..."
Re:Programming with Categories by mumblemumble on Wednesday September 02, 2020 @02:30PM (#24356220)
It's true, and it starts off with the very worst one. I almost closed the tab like 30 seconds into the video.
Re:Programming with Categories by Ma8ee on Thursday September 03, 2020 @03:44AM (#24361698)
The beginning wasn't great, but it had some really hilarious lines later.
Re:Programming with Categories by roflc0ptic on Wednesday September 02, 2020 @05:21PM (#24358292)
I think the joke was that Haskell can do IO but haskellers can’t
Re:Programming with Categories by mortdeus on Wednesday September 02, 2020 @06:37PM (#24359013)
you are my hero for this comment.