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:


Popular posts from this blog

A Contemplative Movement Online Score

Barbara Dilley developed a shared dance/meditation practice called Contemplative Dance Practice – CDP, a "dancer's meditation hall". I've been exploring adaptation of this score for online sharing. The aim is to share meditation and movement across the gap of social distancing. (See below the score description for online meeting logistics and further info about the practices.) (The framing of this score is a work in progress, continuing to change. Revision information is at the bottom.) Score Description The score is divided into sections. At the beginning of each timed section the facilitator says which section it is and arranges for a bell to sound at the beginning and the end of that section. Opening Circle : Time for brief introductions / check-ins and to review the outline of the score (essentially, the bold headers below). Meditation: 15 minutes for stillness . In the original score the participants share sitting meditation. We invite whatever meditat

Finding inspiration in solo movement in small changes

Contact Improvisation offers extraordinary opportunities to explore movement cooperation with others and with oneself. I've been curious a question about how to find in solo moving the kind of inspiration that can come from dancing with others. I had been exploring a practice for a long time before the COVID pandemic. Having to concentrate on solo moving during the pandemic has given me the opportunity to resolve some questions about how to describe the practice and its purpose, enough so that I feel ready to describe it. One of the things I love about doing Contact Improv is a sense of attunement that happens, with others and myself, through just mutually following the points of contact. For many years I've been curious about what helps to cultivate this, and have experimented with ways to do so in solo moving – in my warmups and general solo dancing. During the COVID-19 quarantine I have had more opportunity and heightened focus on this exploration of solo movement (in-person

Collaborative Movement Improv: Online Accumulation Score

This score is designed to foster paying attention to both one's own moving and to that of others. Paying attention to others through a screen adds another level of challenge to an already challenging proposition, inherent in any collaborative improvisation, of paying attention to yourself and to others at the same time. This combination of inwards and outwards attention can be key to collaborative improvisation, and especially useful in the context where online collaboration presents this additional challenge. To prime for that, the score starts with a kind of specific challenge: participants taking turns doing brief solos. It's important to emphasize that there's nothing particular that one needs to accomplish in doing these solos besides "showing up", being willing to be seen and pay attention to how it feels (and also being brief). Conversely, those watching the solos have the opportunity to experience paying attention to someone else, while still noticing thei