you are viewing a single comment's thread
view the rest of the comments
[–] 23 points 3 weeks ago (12 children)
  • [–] 51 points 3 weeks ago (2 children)

    It's kinda like set or category theory. The kind of math that hardly resembles anything at all yet somehow applies everywhere, to infinity and beyond

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 weeks ago* (1 child)

    Indeed. [And caveat this whole comment with "as far as I understand" because this is maths and you can't be too careful…] The difference being that set theory is way more fundamental and abstract than most mathematicians ever need, so on the one hand it can be completely stated with only 8 or 9 axioms (and a system of first-order logic) but on the other hand it can take some ingenuity to encode a mathematical object as a set in a way that makes it easy to do stuff correctly and hard to mess up.

    Most type theories take a more intuitive approach, so they do resemble something, namely, functional programming. Just a very rigorous approach to it. If you manage to construct a term of the correct type, you can be sure that it's what you think it is, whereas with set theory you have to constantly check yourself (if you require the rigor). The trade-off being that type theory requires you to work with complete rigor and reasoning at a low level can be more difficult than set-theoretic reasoning at a low level.

    The TL;DR is that in type theory your constructions often look like what you actually want to do (and as a consequence you sometimes have to work directly with the underlying system, like a programming language), but in set theory there's a disconnect between the conceptual level and the underlying nitty-gritty logic.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 17 points 3 weeks ago* (last edited 3 weeks ago) (8 children)

    People who use templates and types to achieve absurd outcomes that just work, maybe?

    I have seen a few haskell magic.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 15 points 3 weeks ago (7 children)

    Dunno about type theory per se but I visited a Haskell-based company a while back, and they said 50% of the women they interviewed were trans. Not sure of the cause and effect relationship. I know of several male-at-the-time programmers who got interested in Haskell and then transitioned later.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 18 points 3 weeks ago (6 children)

    They're putting something in the Haskell that's turning the coders trans! (jk)

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 3 weeks ago (3 children)

    You should see what Visual Basic used to do to people.

  • source
  • parent
  • hideshow 3 child comments