Posts tagged haskell

Types as axioms, or: playing god with static types

haskell, programming, types

A common perspective is that types are restrictions. Static types restrict the set of values a variable may contain, capturing some subset of the space of “all possible values.” Under this worldview, a typechecker is sort of like an oracle, predicting which values will end up where when the program runs and making sure they satisfy the constraints the programmer wrote down in the type annotations. Of course, the typechecker can’t really predict the future, so when the typechecker gets it wrong—it can’t “figure out” what a value will be—static types can feel like self-inflicted shackles. But that is not the only perspective.

via https://lexi-lambda.github.io/blog/2020/08/13/types-as-axioms-or-playing-god-with-static-types/

“Texture v.2 is getting interesting now, reminds me of fabric travelling around a loom. Everything apart from the DSP is…

music, programming, VPL, visual programming, texture, tidal, haskell, 2013, yaxu

video link

Texture v.2 is getting interesting now, reminds me of fabric travelling around a loom. Everything apart from the DSP is implemented in Haskell. The functional approach has worked out particularly well for this visualisation — because musical patterns are represented as functions from time to events (using my Tidal EDSL), it’s trivial to get at future events across the graph of combinators. Still much more to do though.”

(via https://slab.org/colourful-texture/)