Episode 147: Gabriella Gonzalez discusses the intersection of algebra and programming
Elucidations15 Jul 2023

Episode 147: Gabriella Gonzalez discusses the intersection of algebra and programming

In this episode, Matt talks to Gabriella Gonzalez about how basic concepts from the branch of math known as abstract algebra can help us simplify our

computer programs and organize our thoughts.


Algebra. That thing they make us do in school. What was that again? Oh yeah, that’s right; it’s where you get to manipulate equations containing variables. Like, if I have an equation that looks like this:


2⋅x = 16


Then I can divide both sides by two and get a new version where x stands alone, i.e. solve for x:


(2⋅x) / 2 = 16 / 2

x = 8


If you took algebra in school, you might remember learning a bunch of tricks for pushing parts of equations around to get one of the variables to appear only on one side and thus solve for it. Being able to solve for variables in equations proves useful for lots of things: like, if you can translate a word problem into one of those equations, finding the answer is often as simple as tinkering with the equation in some obvious way.


Abstract algebra is somewhat similar in that it also involves manipulating equations containing variables, except the twist is that now you aren’t necessarily manipulating numbers anymore. The variables can stand for something else, and there are more general versions of plus-like, times-like, etc. operations that you can do on these other things. You might be wondering: what on earth could a variable in an equation stand for other than a number? Well, in this episode, Gabriella Gonzalez gives a bunch of examples. You can have equations for cooking recipes, for computer programs, for transactions performed on databases, and for regular expressions. (A regular expression is a special type of computer program for identifying strings that fit a particular pattern and pulling information out of them.)


Gonzalez then goes on to argue that the point of all this is to avoid re-inventing the wheel. Often, when you write a computer program to add some numbers, though this isn’t necessariy obvious at the time of writing, you aren’t actually drawing meaningfully on the fact that they’re numbers. If that’s the case, then what you can often do is make your code that adds things abstract so you only have to write your program once, but then you can re-use it on all these different other kinds of entities other than numbers.


The overall payoff of all that, according to this month’s distinguished guest, is that by following algebra-driven design, you can keep your code simple and easy to understand, while still having it do fancy things. This is particularly important today, when our software just seems to keep getting fancier and fancier, but the usual ways of accomplishing that goal make it unreliable and well nigh impossible to keep up to date.


Join us as Gabriella Gonzalez gives us the tour through various algebraic systems that occur all over the place in computer science, philosophy, and linguistics!


Matt Teichman



Hosted on Acast. See acast.com/privacy for more information.

Episoder(153)

Episode 145: Andrew Sepielli discusses quietism and metaethics

Episode 145: Andrew Sepielli discusses quietism and metaethics

This episode, Matt and Joseph sit down with Andrew Sepielli (University of Toronto) to talk about metaethical quietism. His new book on the topic, Pragmatist Quietism, is out now from Oxford Universit...

21 Jan 202339min

Episode 144: Christopher Beem discusses democratic virtues

Episode 144: Christopher Beem discusses democratic virtues

This episode, Matt talks to Christopher Beem (Penn State University) about how we can cultivate those skills that conduce to having a functioning democracy. His book on the topic, The Seven Democratic...

20 Nov 202237min

Episode 143: Mark Linsenmayer discusses alternative models of education

Episode 143: Mark Linsenmayer discusses alternative models of education

This episode, Matt Teichman talks to Mark Linsenmayer about alternative models of education. Mark is creator and host of the Partially Examined Life, Nakedly Examined Music, Pretty Much Pop, and Philo...

5 Okt 202244min

Episode 142: Emily Dupree discusses the rationality of revenge

Episode 142: Emily Dupree discusses the rationality of revenge

In this episode of Elucidations, Matt sits down with Emily Dupree to learn about whether it’s rational or irrational to try to seek revenge.As a culture, we kind can’t decide what we think about reven...

2 Aug 202236min

Episode 141: Rob Goodman discusses eloquence

Episode 141: Rob Goodman discusses eloquence

This time around, Matt sits down with Rob Goodman to talk about political eloquence. Goodman is the author of a new book on this topic called Words on Fire, which you can pick up a copy of wherever yo...

13 Jun 202235min

Episode 140: Meghan Sullivan and Paul Blaschko discuss the good life

Episode 140: Meghan Sullivan and Paul Blaschko discuss the good life

Intro philosophy classes often get stuck in a rut. Some philosophy classes go through a list of old dead people and try to understand excerpts from some of their most influential writings, over the co...

10 Apr 202243min

Episode 139: Jessica Tizzard discusses the philosophy of pregnancy

Episode 139: Jessica Tizzard discusses the philosophy of pregnancy

This month, Jessica Tizzard (University of Tuebingen) makes her second appearance on Elucidations to talk to Matt about pregnancy.Human pregnancy is weird. Try talking to a reproductive endochrinologi...

13 Feb 202231min

Episode 138: Toby Buckle discusses Mill's liberty principle

Episode 138: Toby Buckle discusses Mill's liberty principle

This month, Toby Buckle, host of the Political Philosophy Podcast, returns to talk about John Stuart Mill’s liberty principle! (Also sometimes called the ‘harm principle’.) The occasion for the episo...

23 Jan 202243min

Populært innen Samfunn

rss-spartsklubben
giver-og-gjengen-vg
aftenpodden
konspirasjonspodden
aftenpodden-usa
popradet
rss-nesten-hele-uka-med-lepperod
rss-henlagt-andy-larsgaard
lydartikler-fra-aftenposten
alt-fortalt
grenselos
wolfgang-wee-uncut
synnve-og-vanessa
rss-dette-ma-aldri-skje-igjen
fladseth
frokostshowet-pa-p5
min-barneoppdragelse
rss-dannet-uten-piano
relasjonspodden-med-dora-thorhallsdottir-kjersti-idem
rss-herrepanelet