Skip to main content

How and why multiple dispatch is good (Julia vs Python)

I'm really interested in the programming language, Julia, for several reasons, multiple dispatch being prominent among them. (I have some painful contortions in the Python implementation of my speculative programming project, Spherical. The contortions would not be necessary if Python was implemented with efficient multiple dispatch.) I think this video gets at the essence of multiple dispatch's virtue.

Unfortunately it's a video, who has time for that? The distilled message is that the multiple dispatch (multimethods) solves The Expression Problem, and that's not a small thing. It's an oblique way of saying that it's a more comprehensive way to do procedural composition than other approaches, and so fundamentally has greater potential for comprehensibility. Composition is the essence of building stuff, and comprehensibility is the factor that governs collaboration between people - including, for that matter, of a person with themself over time.

I love Python, but Julia looks better.

Here's the video, from juliacon 2019:


Comments

Popular posts from this blog

Finger Lakes 2019-06 Biking: Overview and preliminary travel, Sunday, Monday June 2, 3

A few weeks ago I went with friends to the Finger Lakes area in upstate New York to camp and bike. It was an important opportunity and exploration for me, and wanting to write about the experience tipped me into starting a blog for these posts and others.

I'm including a table of contents of the trip postings towards the top of each one:
Finger Lakes 2019-06 Biking: Overview + preliminary travel, June 2, 3  ⇐ You are hereFinger Lakes 2019-06 Biking: Tuesday, June 4Finger Lakes 2019-06 Biking: Wednesday, June 5 - small incident, no bikingFinger Lakes 2019-06 Biking: Thursday, June 6Finger Lakes 2019-06 Biking: Friday, June 7 - campsite transition, no bikingFinger Lakes 2019-06 Biking: Saturday, June 8Finger Lakes 2019-06 Biking: Sunday, June 9Finger Lakes 2019-06 Biking: Trip Wrap-Up I love to travel by bike and to camp, and did some substantial outings summers during high school and college. During and after college I also redeveloped digestive problems that I had as an infant, an…

Finger Lakes 2019-06 Biking: Thursday, June 6

This is posting #4 of a camping and bicycling trip I took with some friends through the Finger Lakes region of upper-state New York. Here's the complete set of postings: Finger Lakes 2019-06 Biking: Overview and preliminary travel, Sunday, Monday June 2, 3Finger Lakes 2019-06 Biking: Tuesday, June 4Finger Lakes 2019-06 Biking: Wednesday, June 5 - small incident, no bikingFinger Lakes 2019-06 Biking: Thursday, June 6    <- are="" here="" i="" you="">⇐ You are hereFinger Lakes 2019-06 Biking: Friday, June 7 - campsite transition, no bikingFinger Lakes 2019-06 Biking: Saturday, June 8Finger Lakes 2019-06 Biking: Sunday, June 9Finger Lakes 2019-06 Biking: Trip Wrap-Up This was my favorite biking day.
Again around 50 miles total: Shared Thursday biking map. Again, you can see the map inline at the bottom of this post. The night before was Ash, Ingrid, and my first night actually camping at Watkins Glen. The campsites are nice! Even the secti…

Finger Lakes 2019-06 Biking: Tuesday, June 4

This is posting #2 of a camping and bicycling trip I took with some friends through the Finger Lakes region of upper-state New York. Here's the complete set of postings: Finger Lakes 2019-06 Biking: Overview and preliminary travel, Sunday, Monday June 2, 3Finger Lakes 2019-06 Biking: Tuesday, June 4   ⇐ You are hereFinger Lakes 2019-06 Biking: Wednesday, June 5 - small incident, no bikingFinger Lakes 2019-06 Biking: Thursday, June 6Finger Lakes 2019-06 Biking: Friday, June 7 - campsite transition, no bikingFinger Lakes 2019-06 Biking: Saturday, June 8Finger Lakes 2019-06 Biking: Sunday, June 9Finger Lakes 2019-06 Biking: Trip Wrap-Up This was my first day of substantial bike riding. It also turned out to be a significant test of my endurance.
Around 50 miles total: Shared Tuesday biking map. The map is embedded at the bottom of the page. The destination was Clark Gully, "Birthplace to the World". Steve informed us that the Seneca know it as the place where the The People …