Skip to content
0:00 / 0:00

#elixir#tempo#timealgebra

ElixirConf 2022 - Kip Cole - Time algebra: a new way to think about and work with time

ElixirConf

13K subscribers • 18 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Kip Cole

Intermediate. Assumes working knowledge.

5K views3 years ago1 recommendation

Programming languagesComputer scienceElixir and ErlangDesign patterns

Kip Cole presents a new way to model time as intervals rather than moments, introducing the Tempo library for Elixir.

Time is hard. Made harder by the traditional representation of time in computer languages. Why do we have separate types for dates, times, and date time? Why can we express "11am", which can be on any day, but we can't say "November" without specifying the year and day? Why is it challenging to answer the question "A month after February 28th"? This talk presents a new way to think about time: time as an interval rather than a moment. This opens up new opportunities to express dates, times, and date times in a unified manner. It allows enumeration of all time types, repeating patterns, and time algebra that is both more expressive and less error-prone than current language constructs. Lastly, a new Elixir library, "Tempo" is introduced that implements these concepts with a demonstration Livebook.

Why it's here

1 person recommends this

What people say. Recommended as a highly praised ElixirConf 2022 talk on a new way to model time.

u/pferdefleischin r/elixir • Recommends

Even More ElixirConf 2022 Talks Released There are now more on-site talks. Chris Keele's was one of my favorites of the conference: [video And Kip's was the favorite of many people I spoke with at the conf. He's great. [video Here the rest are here Edit Nov 14: **It looks like the rest of the videos were released yesterday.**