David Christiansen - Coding for Types: The Universe Patern in Idris - Curry On

  Рет қаралды 13,286

Curry On!

Curry On!

Күн бұрын

Пікірлер: 10
@FreeScience
@FreeScience 9 жыл бұрын
One of the most interesting languages at the moment.
@cynocephalusw
@cynocephalusw 3 жыл бұрын
I think it is still today. It allows even more concise code than most other languages.
@preveenpadmanabhan7994
@preveenpadmanabhan7994 5 жыл бұрын
Great audio. Thanks
@mortenbrodersen8664
@mortenbrodersen8664 7 жыл бұрын
Brilliant talk. Thanks!
@timh.6872
@timh.6872 5 жыл бұрын
I'm probably being a pedant and/or asking for trouble, but couldn't you theoretically make a code type for the Idris Universe(s) and then use that to pattern match on Idris types? Sure, it breaks theorems for free (which is just the fact that parametric polymorphism must be natural), but you need something like that for a self-hosting compiler. If HoTT got folded in, then you could even attempt naturality proofs for non-parametric polymorphic functions in the places where it needs to be ensured.
@joomyk
@joomyk 5 жыл бұрын
btw Idris 2 has type-case, in case you want to give it a try: gist.github.com/edwinb/25cd0449aab932bdf49456d426960fed github.com/edwinb/Idris2
@digama0
@digama0 3 ай бұрын
This basically hits up against Goedel's incompleteness theorem. You will necessarily need a more powerful induction principle than whatever the language provides to express everything the language provides. Idris has induction-recursion, so you would need induction-induction-recursion to express the induction-recursion scheme itself. If you added IIR you would need IIIR, etc. If you added III..R you would need some omega-inductive-recursive scheme, I'm not sure anyone has ever worked out what that is. You can still represent the full type system in the style of a compiler, but you won't be able to go full dependent types here, there will be expressions that you can't observe are well typed within the language itself. Most compilers for dependent type theories are written in simpler type theories, so they just have to play fast and loose with assert and unreachable stuff for places where the type system is insufficiently smart to argue that those things are actually unreachable.
Edwin Brady - Idris 2 - Type-driven Development of Idris
40:39
"A Little Taste of Dependent Types" by David Christiansen
38:36
Strange Loop Conference
Рет қаралды 39 М.
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 6 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 64 МЛН
Type-Driven Development in Idris - Edwin Brady
46:36
Scala World
Рет қаралды 25 М.
Idris 2: Quantitative Types in Action - Edwin Brady
58:15
Fission
Рет қаралды 4 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
"Idris: Practical Dependent Types with Practical Examples" by Brian McKenna
40:56
Strange Loop Conference
Рет қаралды 28 М.