5 ms·
Can someone explain to me why there are so many category theory posts in HN? To me it's just a pretty obscure branch of mathematics and there are almost no post
by vjk800 3y ago
Can someone explain to me why there are so many category theory posts in HN? To me it's just a pretty obscure branch of mathematics and there are almost no posts about any of the more popular branches of mathematics.
- whatshisface 3y agoBecause it's perhaps the only intersection of: - Large research area - Definitions you can comprehend without a math background - Extremely vague applications so that there's no area in which it definitely doesn't apply. I think the hype, which has lasted for a decade now, is a result of there being a lot of smart people in different fields who are interested in math research, but not so interested they're going to catch up to whatever the Langlands program is about.
- hkopp 3y agoI think it is due to the homotopy type theory book. There is an elegant connection between category theory and type theory. I guess most of the people submitting category theory to hacker news (or any graduate math) just do it to flex and seem clever.
- lo_zamoyski 3y agoActually, category theory, type theory, and proof theory.
- staunton 3y agoHN is dominated by computer science people. Category theory is related to functional programming (e.g. Lisp), which academic computer scientists tend to like. Proof assistants are related to verifying correctness of software, which many computer scientists (especially the nerds, counting myself) like because it lets you dreem of a world that's not so messy (or at least of conquering the mess that it is in a small closed domain).
- mathisfun123 3y ago> which academic computer scientists tend to like citation please? there's one guy in my department (one of the best theory departments in the US) that contributes to sml and that's about it as far functional goes. a less charitable/more accurate response to gop's question is: HN has a fetish for both functional programming and cat theory. there's even another response here that captures the sentiment beautifully: > I have studied math and was in some lectures about category theory. I still don't get what the project is about and that fact intrigues me.
- jlokier 3y ago> HN has a fetish for both functional programming and cat theory Cat theory is something else: https://news.ycombinator.com/item?id=37685885 https://news.ycombinator.com/item?id=37685885
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- downvotetruth 3y agoThe Cartesian closed category's internal language is simply typed lambda calculus that has equivalent expressive power to combinatory logic where the y combinator was originally defined.
- btilly 3y agoNote that the name "Y Combinator" was intended to appeal to a specific kind of hacker. A kind that was likely interested in functional programming, Lisp, and Paul Graham. Which was to say the kind of person that Paul Graham wished to convince to start startups with Y Combinator. And Hacker News was started as a discussion site to attract that kind of person here to where they would all become aware of each other, aware of Y Combinator, and aware of the opportunities to have from starting startups. The community of people here expanded out from that core. But category theory is pretty close to that original core, and so it isn't a surprise that it gets more attention here than elsewhere.
- uxp8u61q 3y agoA pretty obscure branch of mathematics? You've got to be kidding me. I don't understand HN's fetish for category theory either, and I find it rather weird - I'll refrain from even less charitable words. But as an actual professional mathematician... no, it's not an obscure branch of mathematics. You don't believe me? Read the ICM proceedings https://www.mathunion.org/icm/proceedings https://www.mathunion.org/icm/proceedings and count how many times the words "category" or "functor" appears. And notice something very special, too: you'll find articles that are not about category theory per se, and that will still mention categories. And you know what? They don't even explain what they are. You know how that can be? Categories are so pervasive in mathematics. You wouldn't write an article for the proceedings and explain what a group or a vector space is, would you? Well, same for categories. It's a basic (in the original sense of the word) part of mathematics.
- Loq 3y agoCategory theory has been extremely influential in computer science, primarily because a (maybe the) prototypical idealised programming language (the simply typed lambda-calculus) is at the same time, a logic and a convenient syntax for cartesian closed categories (= basically the nicest, most well-behaved kind of category (which is, in turn, a foundation of topoi, a generalisation of the essence of all logics)). The trias gives extreme scope for technology transfer between mathematics, logic and programming.
- bmacho 3y agoAny source for that? I don't think that category theory has even a minuscule influence on computer science. Type theory? Sure. Logic and model theory as well. Set theory? Number theory? Heck, even geometry is used for dozens of algorithms, not related to geometry (convex optimizing in an n dimensional space, Hamming distance, abstract convex geometry etc). But category theory? Do you have any influential papers or books in mind?
- wk_end 3y agoThe Haskell community was, quite clearly, heavily influenced by category theory. Monads (as a programming tool) fell out of that, and I suspect this directly influenced the treatment of async in Javascript (and elsewhere). I do think "extremely influential" is overstating it. Outside of that, plus some niches of niches of academic CS, I can't really think of any other places where category theory is particularly important.
- bmacho 3y agoI am not sure that it influenced async in javascript. But the earliest monad paper I found in ~2 minutes of googling [0] even uses natural transformations which in my opinion counts as using CT. [0] Eugenio Moggi Computational lambda-calculus and monads (1989) https://www.cs.cmu.edu/~crary/819-f09/Moggi89.pdf https://www.cs.cmu.edu/~crary/819-f09/Moggi89.pdf
- 3y ago
- empath-nirvana 3y agoI genuinely think it's because of people trying to understand WTF a monad is.
- ftxbro 3y agoMy theory is that it's a kind of math that LLMs can do. Not that LLMs are necessarily doing it, but the same thing that makes it easy for LLMs also makes it easy for certain people. They can repeat words and phrases that they hear, and sometimes even rearrange them into new forms! One time some category theory guys were struggling with something and it was equivalent to topological sort in computer science. But the way they were failing at solving it sounded much more impressive!
- carapace 3y ago> It is well-known that the simply typed lambda-calculus is modeled by any cartesian closed category (CCC). This correspondence suggests giving typed functional programs a variety of interpretations, each corresponding to a different category. http://conal.net/papers/compiling-to-categories/ http://conal.net/papers/compiling-to-categories/