The Unreasonable Effectiveness of Multiple Dispatch | Stefan Karpinski | JuliaCon 2019

Channel:The Julia Programming Language · Length:35:24 · Published:2019-07-25 · Views:79200

Watch on YouTube

Summary

Julia co-creator Stefan Karpinski explains why multiple dispatch makes Julia code and types reusable across packages with so little friction. He covers sharing basic types and sharing generic algorithms.

Why HN recommends it

HN commenters recommend it as the definitive explanation, from a language designer, of why multiple dispatch makes Julia's composability work.

a talk by a core developer at JuliaCon 2019 titled 'The unreasonable effectiveness of multiple dispatch' — HN, 2020

Programming language design · Software architecture & design

Subtitles (excerpt)

right hello everyone thanks for coming here in this session so I'm the one for it absolute professor department of computer science and engineering United Nations which the Bangladesh so I'm the session chair so we are very privileged that we have our fastest speaker with us is Stefan so he's gonna talk about the unreasonable effectiveness of multiple dispatch dispatch I said okay so welcome is defend please okay this one yeah this is much better thank you okay I'll talk into the mic like an auctioneer or like a deejay or something so you know everyone here is used gulia quite a bit presumably if not welcome but you know multiple dispatch is the key paradigm of the language and you know we've we've noticed something over the years which is a little bit you know partly expected and partly perplexing I certainly don't think we expected it as much as we've seen it and that is that you know Julia's ecosystem more than any other language I've ever seen has a really really large amount of code reuse and so we see we see you know people writing generic code and then someone else defines a type and they've never talked to each other they don't even know about each other and then someone sticks this weird type through the generic code and just works like

On Hacker News

Did you mean "unreasonable effectiveness"? :P I just watched that talk the other day, and boy is it insightful. Julia has cracked a fairly magical combination of features. I fully expect it to replace Python over the next 10 years. Direct link to "Unreasonable Effectiveness": [VIDEO] — dTal, 2020-06
Julia's model is based around multimethods, which enables pretty crazy levels of interoperability (imagine being able to use scipy and tensorflow together, with tensorflow's autograd just magically working on most of scipy's functions). More about it here [VIDEO] — krastanov, 2021-02
Indeed, Julia's abstract type system with multiple dispatch is its killer feature. It enables generic programming in a beautiful and concise fashion. Here [1] Stefan Karpinski gives some explanations of why multiple dispatch is so effective. [1] [VIDEO] — dandanua, 2021-01
I like to watch talks by programming language designers. Some that readily come to mind are Rich Hickey, Joe Armstrong (RIP), and Stefan Karpinski. Some of my favorites are: - Simple Made Easy (Hickey): [LINK] - The Mess We're In (Armstrong): [LINK] - The Unreasonable Effectiveness of Multiple Dispatch (Karpinski): [VIDEO] — nur0n, 2020-10
The core problem with class-based object orientation is that methods go inside of the type instead of being added externally. That means everyone has to agree on what methods can be called on a class or they have to subtype it, which sounds harmless, but is actually a big problem when what you really wanted to do was just define a new method for an existing type. My best attempt at explaining: [V… — StefanKarpinski, 2020-10

Related videos