Good videos, with context.
Edwin Brady - Idris 2: Type-driven development of Idris | Code Mesh LDN 18

Edwin Brady - Idris 2: Type-driven development of Idris | Code Mesh LDN 18

Code Sync
5 HN recommenders · discussed 2018–2024
Open YouTube ↗

About this video

Edwin Brady presents Idris 2, a rewrite of the Idris dependently typed language, and shows type-driven development in practice. The demos show the compiler filling in whole functions from their types.

Why it appears in the archive

HN points to it as a good introduction to Idris 2 and a striking demonstration of what dependent types enable.

AI-generated summary and labels from the source dataset; verify important details against the video. Source & credits.

From the Hacker News discussion

huntie · 2018-12 · rec

Dependent types are types which depend on values. As an example, think of the cons procedure: (List A, A) -> List A. It takes a List of A's and an A and returns a List of A's. With dependent types you can write this as (List n A, A) -> List n+1 A. This tells us that cons takes a List of A's with length n and an A returns a List of A's with length n+1. Edwin Brady shows off some examples in Idris here[1]. I thought the matrix example was really impressive. [1] [VIDEO]

Read original comment ↗
pezo1919 · 2019-07 · rec

Idris lang seems awesome with the atom plugin. :) Did not use it yet but I hope it will get more attention. [VIDEO]

Read original comment ↗
resoluteteeth · 2019-07 · rec

Until yesterday it was officially called "Blodwen" a "prototype successor to Idris", so I assume the fact that it's now officially being called a "pre-alpha implementation of Idris 2" means it's somewhat closer to being ready, but is there some specific announcement about the exact significance of it being officially called Idris 2 now? Edit: Never mind, I found the official announcement on the Idris mailing list: [LINK] He says "No doubt I'll say more about this over the next few weeks," so it sounds like he's planning on making a more detailed announcement later. Edit 2: Also, as someone who hasn't been following Blodwen or how it's different from Idris 1, this looks like a good introduction: [VIDEO]

Read original comment ↗
still_grokking · 2021-06 · rec

You don't need the tests. You need only the types. And especially you don't need "artificial dumbness", which does not understand code, and therefore won't produce correct results, but just an advanced programming language. Say hello to Idris! :-) [VIDEO]

Read original comment ↗
sourceless · 2021-09 · rec

I don't know, some of that is at least starting to happen with Idris 2, though not in the exact way predicted: [VIDEO] (Type Driven Development with Idris 2) Short summary of linked video: when your type system is powerful enough you can restrict the set of possible implementations to the point that the compiler can make a decent guess as to what the program should be to satisfy the type signature.

Read original comment ↗
Jeff_Brown · 2019-02 · reference

I agree about its availability. I think it's far more useful than you seem to, though. Reducing the problem space is huge. It's why macro programming (ala Lisp) is so dangerous. It's why I left Haskell for Python, and why I often wish I was using Idris[1], which pretty much reads your mind and writes what you meant. It's true of coding generally, but SQL programming especially, that there's a conceptually obvious, small space of reasonable programs, but because we're writing in text, we're free to roam over an enormous superspace of (occasionally) wrong or (usually) meaningless programs. [1] [VIDEO]

Read original comment ↗
nathcd · 2019-03 · reference

> In the general-purpose programming context, imagine if you could give examples of a program output (domain data) along with a skeleton of a program (source file with incomplete parts) and ask a system to fill in the holes. This part reminds me of some of capabilities of the Idris compiler [1]. In an Idris program you can leave "holes" to stand in for incomplete parts of a program [2], and the compiler can infer various bits of code from types and holes. In a demo of the in-progress Idris 2 compiler [3], Edwin Brady refers to it as a "lab assistant" and shows it writing a whole function when given a function type. [1] [LINK] [2] [LINK] [3] [VIDEO]

Read original comment ↗
rossng · 2019-07 · reference

Hoogle is pretty nice, and few other languages had an equivalent until quite recently. I'm hopeful that cool type-powered IDE features will start to arrive once haskell-ide-engine is a bit more stable. It's getting there! There are some pretty awesome IDE ideas in Haskell-ish languages like Idris [1], too. There is some movement towards dependent types in Haskell, so it might get similar features one day. [1] [VIDEO]

Read original comment ↗