Algebraic data types for fun and profit by Clément Delafargue

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 7

  • @boa6400
    @boa6400 7 місяців тому

    Thank you so much for your video 😭😭😭😭😭😭😭🙏🙏🙏🙏🙏🙏🙏🙏 love you so much

  • @hansschenker
    @hansschenker 4 роки тому

    Very practical and good explanation!

  • @trampflips101
    @trampflips101 Рік тому +1

    Not a good idea to use blue letters on a blue background

  • @azhar.difa_
    @azhar.difa_ 4 роки тому

    This is gold, thanks!

  • @AndrewBrownK
    @AndrewBrownK 6 років тому

    awww don't be so ashamed of the pony gif
    any idea how to do division with ADTs? or ^-1? Maybe that bit about functions he mentioned...
    I want to make typed physics (meters, seconds, meters/second, etc) but I'm not quite "there yet" for figuring out how to do that

    • @clementdelafargue228
      @clementdelafargue228 6 років тому +1

      Hi! This paper explores the idea of fractional types. I read it a long time ago, so I don't really remember what's in it.
      wrt typed physics, the first building block would be phantom types, to capture units. I'm not aware of an open mechanism for computing / simplifying compound units at the type level though. OTOH, there is squants, a scala library to do this kind of things (I've not used it, I don't know how it works, but it does handle units in a practical way)

    • @FastFSharp
      @FastFSharp 4 роки тому

      You should check out F#. It has Units of Measure built in.