The Unreasonable Effectiveness of Multiple Dispatch | Stefan Karpinski | JuliaCon 2019
The Julia Programming LanguageYouTube ↗
Further reading 1
Caption notes
At JuliaCon 2019, Stefan Karpinski distinguishes two kinds of reuse. The first lets existing generic algorithms work with types defined later. His one-hot vector example shows how the overall algorithm can stay generic while a method handles a particular combination of argument types. The second lets separate packages add operations to the same existing type. He uses RGB to explain how a new operation can live in its own package. In the Q&A, he also discusses how tools can help developers trace which method a call actually selects.
Archived captions (transcription method unspecified) ↗Original passages · 2
the actual type of a and the actual type of Bcan define methods outside of the type later on