News for hackers. Stuff that matters.
Re:Programming in the Point-Free Style by scandox on Wednesday April 12, 2017 @01:53PM (#14100012)
> A category consists of abstract functions (or morphisms, or “arrows”) that have an origin and destination (or domain and codomain, or “argument type” and “return type”).

I think perhaps Maths people need to seek more consensus on terminology.

Re:Programming in the Point-Free Style by mikebenfield on Wednesday April 12, 2017 @02:23PM (#14100346)
I've only seen mathematicians use the terms morphisms, arrows, and domain/codomain. It is true that morphisms and arrows mean the same thing, but I think that's because the term morphism is specific to category theory and the term arrow is from graph theory.

All the other terms here (abstract functions, origin, destination, argument type, return type) appear to be the author's attempt to make the subject understandable to programmers.

Re:Programming in the Point-Free Style by fabianhjr on Wednesday April 12, 2017 @02:45PM (#14100579)
Morphism is from Algebra/General Mathematics and it is a function that preserves a "structure". (Group Morphism, Isomorphism between sets, etc)

In Graph Theory the terminology is Node and Vertex.

Arrow, Source and Target are from Category Theory.

Re:Programming in the Point-Free Style by tel on Wednesday April 12, 2017 @04:26PM (#14101402)
Morphism is the standard general term. If you have a collection of objects with the some sort of structure then a morphism maps one of those to another preserving that structure.

In CT you usually are dealing with morphisms, but not always and that intuition can get in your way. For this reason, arrow is sometimes used instead to indicate something a little more abstract than morhism.

Re:Programming in the Point-Free Style by johnloeber on Wednesday April 12, 2017 @02:32PM (#14100451)
The term "arrow" is from category theory, not graph theory.
Re:Programming in the Point-Free Style by JadeNB on Wednesday April 12, 2017 @02:40PM (#14100524)
> I think perhaps Maths people need to seek more consensus on terminology.

If only they could follow the example of programmers, who never have two different words for identical (or, worse, near-identical) concepts!

Re:Programming in the Point-Free Style by eru on Wednesday April 12, 2017 @04:16PM (#14101333)
I find the opposite worse: using the same term for different concepts. (I am looking at you, C++ people, and your so called "Functors"!)
Re:Programming in the Point-Free Style by shmageggy on Wednesday April 12, 2017 @02:16PM (#14100275)
Seriously. I've tried to read on category theory before and never really grokked what it was all about. The sentence you quoted was literally the first one I've ever read that actually made me say, "oh, that's what this is".
Re:Programming in the Point-Free Style by fabianhjr on Wednesday April 12, 2017 @02:41PM (#14100535)
Well you will normally see two terminologies:

- Morphism (Domain, Codomain)

- Arrow (Source, Target)

The reason for the last one is that you may find "Arrows" that aren't functions. (Such as an order relationship in the Poset category)

Re:Programming in the Point-Free Style by wetmore on Wednesday April 12, 2017 @03:32PM (#14100975)
Morphisms are not necessarily functions either.
Re:Programming in the Point-Free Style by houli on Wednesday April 12, 2017 @02:19PM (#14100303)
The category theory idea of a morphism is more abstract than a function. If functions deal with domains and codomains then certainly morphisms need new words to deal with the abstractions of those ideas that are specific to functions.