Alexis Gallagher

Hello, friend. Here is some of my work related to software.


I am the CTO of Topology Eyewear, where we make made-to-measure eyewear, sculpted for your face alone.

You can be fitted for a pair of glasses, virtually try them on, browse different styles, and purchase them, all from your iPhone. This is thanks to a dizzying combination of technologies -- computer vision, augmented reality, automated manufacture, Cocoa Touch, the Swift programming language, and other wonders.

Previously, I operated my own consulting business, and at various points have worked in finance (Deutsche Bank), in management consulting (McKinsey & Co), in science (London Institute for Mathematical Sciences), and in theater (The Maydays, Brighton).

tech talks

Augmented Reality Beyond AR Kit (slides)
A talk at AltConf 2018 about doing ML at a startup, and how we use augmented reality, but not AR Kit, at Topology Eyewear.

Everything a Swift dev Ever Wanted to Know about Machine Learning But Was Too Afraid to Ask (slides)
Presented as the opening session at try! Swift, on March 2nd, 2017, in Tokyo, Japan.

Talking to Swift (slides)
A talk about the hype versus the reality of chatbots, about the design of conversational user interfaces, and how to use Swift to build them on iOS and on the Amazon Echo.

Value SEMANTICS (not value types!) (slides)
This is not a talk about value types in Swift! It's a talk about value semantics, how that's different, and why that's what matters. Explained via Alan Rickman, and diagrams.

Amazing Powers and Mesmerizing Secrets of 3D Touch (slides)
A somewhat mad experiment where I explore the 3D touch features of the iPhone 6s, by building a "touch pedestal."

Protocols with Associated Types and How They Got That Way (slides)
A deep dive into Swift's protocols with associated types, their roots in other languages, and why they have a surprising relationship to Objective-C protocols (namely, almost no relation at all!).

Introduction to Protocol-Oriented Programming
A tutorial-style talk systematically reviewing protocols in Swift, and how they compare with inheritance-based solutions.

Identity II
If you you're going to see only one talk that touches on Swift's value types, the philosophical transporter problem, and feelings of alienation, it will probably have to be this talk, because I don't think anyone else is nuts enough to give it.

Swift, Functional Programming, and Does It Matter? (slides, approx.)
A remote online talk considering Swift's roots in functional programming languages and implications for Objective-C.

You're probably wondering how I ended up here
Not a talk, but an interview with me on one of my favorite podcasts, SwiftCoders. Like many, I took a roundabout route into software.


Evolvability: a Formal Approach
Once upon a time, I was a scientist! My PhD thesis explored what conditions need to be in place for evolution to produce complex life, by developing a novel, formal approach to describing evolvability. (Pro tip: skip the jargony abstract and just read the preface, to get a sense of what this is about.)

Machine Learning by Tutorials, 2nd edition
I updated and rewrote the chapters on natural language processing and sequence to sequence models for this book's 2nd edition.

The Swift Apprentice, later editions
I wrote the chapters on generics and value semantics.

The Swift Apprentice, 1st
I wrote the chapters on generics and functional programming, for this earlier edition of the book.


Harvard University (BA, Physics)
Oxford University (PhD, Theoretical Biology)