<rss version="2.0">
  <channel>
    <title>Tomas Petricek - Languages and tools, open-source, philosophy of science and F# coding</title>
    <link>http://tomasp.net</link>
    <description>Tomas is a computer scientist, open-source developer and an occasional philosopher of science. I'm working on tools for data-driven storytelling, contribute to a number of F# projects and I run trainings and offer consulting via fsharpWorks.</description>
    <item>
      <title>The road to opaque software is paved with good (engineering) intentions</title>
      <guid>http://tomasp.net/longreads/closing/</guid>
      <link>http://tomasp.net/longreads/closing/</link>
      <pubDate>Thu, 29 Oct 2026 21:48:05 GMT</pubDate>
      <description> Most software we use today is black-box and cannot be easily modified by its
users. This article follows the history of information hiding from OS/360 to Free Software
and the history of the Web and documents how software becomes opaque through well-intended
engineering decisions.</description>
    </item>
    <item>
      <title>Completing Programming Adventures with Jev</title>
      <guid>http://tomasp.net/blog/2026/completions-with-jev/</guid>
      <link>http://tomasp.net/blog/2026/completions-with-jev/</link>
      <pubDate>Sun, 20 Sep 2026 23:33:53 GMT</pubDate>
      <description>&lt;p&gt;This blog has not exactly been chasing the latest trends, but I'm going to make an exception,
because of two events that have aligned just in the right way. I will be &lt;a href="https://2026.splashcon.org/track/splash-2026-onward--papers?#program"&gt;going to
SPLASH&lt;/a&gt; to present a paper
&lt;a href="https://tomasp.net/academic/papers/adventure-calculus/"&gt;The Choose-Your-Own-Adventure Calculus&lt;/a&gt;
based on an earlier &lt;a href="https://tomasp.net/blog/2025/adventure-calculus/"&gt;blog post&lt;/a&gt;
(and also an &lt;a href="https://tomasp.net/academic/papers/timeline/"&gt;OOPSLA paper about Timeline, our spreadsheet with time&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The calculus formalizes a mode of interaction between a user and a programming system where
the programming system repeatedly offers a range of choices to the user and the user constructs
a program by choosing one. The model is inspired by &lt;a href="https://fsprojects.github.io/FSharp.Data/"&gt;F# type providers&lt;/a&gt;,
but it works for many other use cases, such as interactive theorem proving, structure editing or
data wrangling.&lt;/p&gt;
&lt;p&gt;One experiment we did in the paper was to see if an LLM can make the choices for you.
You write what you want to do and the LLM then recommends options for you to pick, so you
can review what code you get and learn what the system offers. Although we do this only
for small code snippets, I think this is potentially an interesting mode of interacting
with an AI. To do the experiment, we prompt an LLM along the lines of "The user wants to do this.
They selected these options before. Now they have these options. Which one should they pick?"&lt;/p&gt;
&lt;p&gt;Now the reason for this blog post is that &lt;a href="https://typesafe.ai"&gt;TypeSafe AI&lt;/a&gt; just introduced
their &lt;a href="https://typesafe.ai/blog/introducing-system-one-models-and-jev"&gt;"System One Model" called Jev&lt;/a&gt;,
which is an AI to do &lt;em&gt;exactly the kind of work that our choose-your-own-adventure calculus models&lt;/em&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Denicek computational substrate</title>
      <guid>http://tomasp.net/denicek</guid>
      <link>http://tomasp.net/denicek</link>
      <pubDate>Fri, 11 Sep 2026 22:00:00 GMT</pubDate>
      <description>&lt;p&gt;Document-oriented substrate presented at &lt;a href="https://tomasp.net/academic/papers/denicek/"&gt;UIST 2025&lt;/a&gt; that supports programming by demonstration,
collaborative editing, schema change control, managed copy &amp;amp; paste, and more!&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Cultures of programming</title>
      <guid>http://tomasp.net/cultures</guid>
      <link>http://tomasp.net/cultures</link>
      <pubDate>Sun, 01 Feb 2026 23:00:00 GMT</pubDate>
      <description>&lt;p&gt;The book tells the history of programming from the 1940s to the present and interprets
key historical moments as interactions between five different cultures of programming.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Critical Architecture/Software Theory</title>
      <guid>http://tomasp.net/longreads/architecture/</guid>
      <link>http://tomasp.net/longreads/architecture/</link>
      <pubDate>Mon, 28 Apr 2025 10:00:00 GMT</pubDate>
      <description> Post-modern architects use architecture to make critical, ironic and revealing comments on architectural history, practice and its social context. Is it possible to embed similar criticism into the language of software and make the software practice more self-aware and critical?</description>
    </item>
    <item>
      <title>Choose Your Own Adventure Calculus</title>
      <guid>http://tomasp.net/blog/2025/adventure-calculus/</guid>
      <link>http://tomasp.net/blog/2025/adventure-calculus/</link>
      <pubDate>Sun, 02 Feb 2025 13:52:03 GMT</pubDate>
      <description>&lt;p&gt;The rule of three suggests that if you encounter the same pattern for the third time in your
code, you should refactor it into a reusable abstraction. The same thing applies in programming
language theory. When you find that you are doing the same thing for the third time, it is
probably a good idea to stop and think - is there a general pattern?&lt;/p&gt;
&lt;div class="rdecor" style="max-width:400px;text-align:center"&gt;
&lt;img src="https://tomasp.net/blog/2025/adventure-calculus/olympics.png" style="width:100%" /&gt;
&lt;p&gt;&lt;strong&gt;Figure 1.&lt;/strong&gt; Auto-completion list showing possible operations in The Gamma&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;In my &lt;a href="https://tomasp.net/academic/theses/coeffects/" title="Tomas Petricek (2017). Context-aware programming languages"&gt;PhD thesis on context-aware computations&lt;/a&gt;, I did exactly this. When we realised
that liveness analysis, resource tracking and checking of data-flow computations all require
type system with similar structure, we came up with the idea of &lt;em&gt;coeffects&lt;/em&gt;, which is an
abstraction that can capture all three (and so, you only need to add one mechanism for
tracking context into your language).&lt;/p&gt;
&lt;p&gt;Recently, the same thing happened to me again. A lot of my work has been around interaction
with &lt;a href="https://tomasp.net/techdims/" title="Joel Jakubovic, Jonathan Edwards, Tomas Petricek (2023). Technical dimensions of programming systems"&gt;programming systems&lt;/a&gt;. I am interested in looking not just at the programming
languages, but also the stateful, interactive systems they are part of - and how programs are
created through interactive editor tools, gradually revised in notebook systems or how proofs
are created in interactive proof assistants. And interestingly, in three recent collaborations
around those ideas, we ended up finding a very similar pattern.&lt;/p&gt;
&lt;p&gt;In multiple different systems, we encountered a pattern where the programming system
iteratively offers the user (programmer, data scientist, proof theoretician) a choice of
options that the user can choose from to construct or refine their program (see Figure 1).
In all systems, the user can also edit the code in other ways, but a lot (sometimes
everything!) can be done just by choosing options.&lt;/p&gt;
&lt;p&gt;I now have three examples, so it is time to describe the general pattern. Earlier,
we called this (jokingly) dot-driven development, (seriously) AI assistants and (foolishly)
iterative prompting. For the lack of a better name, I will refer to the abstraction
as the &lt;em&gt;choose-your-own-adventure calculus&lt;/em&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What can routers at Centre Pompidou teach us about software evolution?</title>
      <guid>http://tomasp.net/blog/2023/pompidou/</guid>
      <link>http://tomasp.net/blog/2023/pompidou/</link>
      <pubDate>Thu, 07 Dec 2023 17:30:00 GMT</pubDate>
      <description>&lt;p&gt;Back in June, I was in Paris for the &lt;a href="https://ncrafts.io/"&gt;NewCrafts conference&lt;/a&gt; to talk about
&lt;a href="https://vimeopro.com/newcrafts/newcrafts/video/842234359"&gt;the growing opacity of software systems&lt;/a&gt;.
This was fun, partly because NewCrafts is a fantastic conference (you can already &lt;a href="https://ncrafts.io/"&gt;get your
tickets&lt;/a&gt; for 2024!) and also partly because my talk (arguing against many
established "good engineering" practices) was in many ways arguing for the exact opposite than
one of the keynotes, leading to many interesting conversations.&lt;/p&gt;
&lt;p&gt;While in Paris, I also visited the &lt;a href="https://www.centrepompidou.fr/en/"&gt;famous Centre Pompidou&lt;/a&gt;.
Perhaps to the dismay of many modern art lovers, I spent a lot of time staring at the ceiling
looking for routers.&lt;/p&gt;
&lt;div class="wdecor" style="text-align:center;margin-bottom:50px"&gt;
&lt;img src="https://tomasp.net/blog/2023/pompidou/router1.jpg" style="margin:10px; max-width:30%;border:solid 4px black" /&gt;&lt;/a&gt;
&lt;img src="https://tomasp.net/blog/2023/pompidou/router2.jpg" style="margin:10px; max-width:30%;border:solid 4px black" /&gt;&lt;/a&gt;
&lt;img src="https://tomasp.net/blog/2023/pompidou/router3.jpg" style="margin:10px; max-width:30%;border:solid 4px black" /&gt;&lt;/a&gt;
&lt;p&gt;Spot the routers at Centre Pompidou!&lt;/p&gt;
&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Technical dimensions</title>
      <guid>http://tomasp.net/techdims</guid>
      <link>http://tomasp.net/techdims</link>
      <pubDate>Tue, 14 Feb 2023 23:00:00 GMT</pubDate>
      <description>&lt;p&gt;We know how to study programming languages, but how to study stateful, interactive and
graphical programming systems? We developed a quantitative framework for doing this.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Where programs live? Vague spaces and software systems</title>
      <guid>http://tomasp.net/blog/2023/vague-spaces/</guid>
      <link>http://tomasp.net/blog/2023/vague-spaces/</link>
      <pubDate>Fri, 10 Feb 2023 22:44:19 GMT</pubDate>
      <description>&lt;p&gt;Architecture and urban planning have been a useful source of ideas for thinking about programming.
I have written &lt;a href="https://tomasp.net/blog/tag/design/"&gt;various blog posts&lt;/a&gt; and a paper
&lt;a href="https://tomasp.net/academic/papers/metaphors/"&gt;Programming as Architecture, Design, and Urban Planning&lt;/a&gt;
that argue why and explore some of those ideas. Like urban planning and architecture, the design of
any interesting software system deals with complex problems that can rarely be analysed in full and
with structures that will continue to evolve in unexpected ways after they are created.&lt;/p&gt;
&lt;p&gt;My most recent reading on cities was a book &lt;a href="https://www.academia.cz/mesto-naruby-2-dotisk--haluzik-radan--academia--2021"&gt;The City Inside Out&lt;/a&gt;
(Czech only, unfortunately) that explore places referred to as &lt;a href="https://www.atributosurbanos.es/en/terms/terrain-vague/"&gt;terrain vague&lt;/a&gt;.
This term refers to unused and abandoned spaces that have lost their purpose or
do not have a clear use, but are used in various ways nevertheless. For various historical
reasons, there seem to be quite a few of such places in Prague (Figure 1) and, more generally,
Central European cities, which is the focus of the book.&lt;/p&gt;
&lt;p&gt;The book is an interesting inspiration for thinking about programming in many ways.
It uses an inter-disciplinary approach ranging from history and philosophy to
&lt;a href="https://en.wikipedia.org/wiki/Paleoethnobotany"&gt;archaeobotany&lt;/a&gt;, which is much needed for thinking
about programming too. (Not archeobotany, but inter-disciplinary thinking certainly!)
More specifically, it makes you think about the concept of a &lt;em&gt;space&lt;/em&gt; in
which cities and programs exist, how the spaces inhabited by the two differ, what would it look
like if they were different and what structures get created in those spaces as a result of
social and technical forces.&lt;/p&gt;
&lt;div class="wdecor" style="text-align:center"&gt;
&lt;a href="https://iprpraha.cz/projekt/120/nakladove-nadrazi-zizkov"&gt;&lt;img src="http://tomasp.net/blog/2023/vague-spaces/zizkov.jpg" style="max-width:100%;border:solid 4px black" /&gt;&lt;/a&gt;
&lt;p&gt;&lt;strong&gt;Figure 1.&lt;/strong&gt; Nákladové nádraží (freight railway station) Žižkov - an example of a large&lt;br /&gt;
space in Prague that no longer serves its original purpose (&lt;a href="https://hotelove.cz/nakladove-nadrazi-zizkov/"&gt;photo source&lt;/a&gt;)&lt;/p&gt;
&lt;/div&gt;

</description>
    </item>
    <item>
      <title>The Timeless Way of Programming</title>
      <guid>http://tomasp.net/blog/2022/timeless-way/</guid>
      <link>http://tomasp.net/blog/2022/timeless-way/</link>
      <pubDate>Thu, 01 Sep 2022 00:03:53 GMT</pubDate>
      <description>&lt;div class="rdecor" style="text-align:center"&gt;
&lt;img src="http://tomasp.net/blog/2022/timeless-way/timeless.jpg" style="max-width:260px" /&gt;
&lt;p style="max-width:260px"&gt;&lt;b&gt;Figure 1.&lt;/b&gt; The Timeless Way of Building - Christopher Alexander&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Many programmers know the name of the architect Christopher Alexander for his work on
&lt;em&gt;design patterns&lt;/em&gt; that has been adapted into the world of programming. A lot of people
know of the, sometimes ridiculed, patterns like strategy (functions!) or visitor (pattern
matching!) and some have read the &lt;a href="https://amzn.to/3Cd7sBv" title="Design Patterns: Elements of Reusable Object-Oriented Software - Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides"&gt;Gang of Four design patterns book&lt;/a&gt; that introduced them.
A few people know of the &lt;a href="https://dreamsongs.com/Files/PatternsOfSoftware.pdf" title="Patterns of Software: Tales from the Software Community - Richard P. Gabriel"&gt;Patterns of Software&lt;/a&gt; book by Richard P. Gabriel, which is a much more
profound reflection on software inspired by the work of Christopher Alexander. And almost
nobody has actually read Christopher Alexander's books. (Thanks in advance for reminding me
on &lt;a href="http://twitter.com/tomaspetricek"&gt;Twitter&lt;/a&gt; that I am mistaken...)&lt;/p&gt;
&lt;p&gt;I read Alexander's &lt;a href="https://amzn.to/3bZw1Y2" title="Notes on the Synthesis of Form - Christopher Alexander"&gt;Notes on the Synthesis of Form&lt;/a&gt; a couple of years ago, and used
it as one of the sources for ideas in my recent Onward! essay on &lt;a href="http://tomasp.net/academic/papers/metaphors/" title="Programming as Architecture, Design, and Urban Planning - Tomas Petricek"&gt;architecture, design and urban
planning&lt;/a&gt;, but I did not know his other work. Only recently, after &lt;a href="https://www.theguardian.com/artanddesign/2022/mar/29/christopher-alexander-obituary"&gt;Christopher Alexander
died&lt;/a&gt;,
I finally ordered two books that are most directly about design patterns,
&lt;a href="https://amzn.to/3CeIrGe" title="The Timeless Way of Building - Christopher Alexander"&gt;The Timeless Way of Building&lt;/a&gt; and &lt;a href="https://amzn.to/3wecpGG" title="A Pattern Language: Towns, Buildings, Construction - Christopher Alexander"&gt;A Pattern Language&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This post is a somewhat unorganized collection of thoughts triggered by reading of The Timeless
Way of Building, including my understanding of Alexander's work, some critical thoughts
and on the applications of his ideas to software.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>No-code, no thought? Substrates for simple programming for all</title>
      <guid>http://tomasp.net/blog/2022/no-code-substrates/</guid>
      <link>http://tomasp.net/blog/2022/no-code-substrates/</link>
      <pubDate>Thu, 28 Apr 2022 09:37:00 GMT</pubDate>
      <description>&lt;div class="rdecor" style="text-align:center"&gt;
&lt;img src="http://tomasp.net/blog/2022/no-code-substrates/flow-matic.png" style="max-width:350px" /&gt;
&lt;p style="max-width:350px"&gt;&lt;strong&gt;Figure 1.&lt;/strong&gt; Virtually eliminates your coding load. FLOW-MATIC promotional
brochure (1957)&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;No-code is a hot new topic for programming startups. The idea is to develop a system
that allows end-users to do the programming they need without the difficult task of writing
code. There are no-code systems for building mobile apps, analysing data and many more.&lt;/p&gt;
&lt;p&gt;It is perhaps not a surprise that "eliminating programming load" is not as new idea as some
people may think and there is an excellent blog series on &lt;a href="https://instadeq.com/blog/categories/history/" title="No-code history - Instadeq Blog - No-code Data Analysis &amp;amp; Interactive Visualizations"&gt;no-code history by Instadeq&lt;/a&gt;,
going back to 1959.&lt;/p&gt;
&lt;p&gt;Funnily enough, the 1957 &lt;a href="https://www.computerhistory.org/collections/catalog/102646140" title="Introducing a New Language for Automatic Programming Univac Flow-Matic"&gt;promotional brochure about FLOW-MATIC&lt;/a&gt;,
a predecessor to COBOL created by Grace Hopper, uses almost the same language that you will
find in startup pitch decks today (Figure 1). Of course, in 1957, coding referred to the
tedious process of transcribing the desired program to low-level assembler or (more often)
directly to machine code and "virtually eliminating your coding load" meant having a symbolic
high-level programming language so easy that a reasonably skilled mathematician would be able
to use it.&lt;/p&gt;
&lt;p&gt;So, is there really anything new about no-code systems? Is it really possible to "eliminate
your programming load"? And what would it really take to make some real progress in that direction?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Pop-up from Hell: On the growing opacity of web programs</title>
      <guid>http://tomasp.net/blog/2021/popup-from-hell/</guid>
      <link>http://tomasp.net/blog/2021/popup-from-hell/</link>
      <pubDate>Fri, 08 Oct 2021 11:14:47 GMT</pubDate>
      <description>&lt;p&gt;I started to learn how to program in high school at the end of the 1990s using a mix of BASIC, Turbo
Pascal and HTML with JavaScript. The seed for this blog post comes from my experience with learning
how to program in JavaScript, without having much guidance or organized resources. This article continues
a theme that I started in my &lt;a href="http://tomasp.net/commodore64"&gt;interactive Commodore 64 article&lt;/a&gt;,
which is to look at past programming systems and see what interesting past ideas have been lost
in contemporary systems. Unlike with Commodore 64, which I first used in 2018 in the
Seattle Living Computers museum, my perspective on the Early Web may be biased by personal
experience. I will do my best to not make this post sound like a grumbling of an old nerd!
(I thought this only comes later, but I may have been wrong...)&lt;/p&gt;
&lt;div class="rdecor"&gt;&lt;img src="http://tomasp.net/blog/2021/popup-from-hell/close-me.gif" style="max-width:400px" /&gt;&lt;/div&gt;
&lt;p&gt;The 1990s, the web had a fair amount of quirky web pages, often created just for fun. The GeoCities
hosting service, which has &lt;a href="http://www.oocities.org"&gt;partly been archived&lt;/a&gt; is a witness of this
and there are even academic books, such as &lt;a href="https://amzn.to/2YiEUVe"&gt;Dot-Com Design&lt;/a&gt; documenting
this history.&lt;/p&gt;
&lt;p&gt;Some of the quirky things that you could do with JavaScript included creating roll-over effects
(making an image change when mouse pointer is over it), creating an animation that follows the
cursor as it moves and, of course, annoying the users with all sorts of pop-up windows for both
entertaining and advertising purposes. Annoying pop-ups will be the starting point for my blog
post, but I'll be using those to make a more general and interesting point about how programs
evolve to become more opaque.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This blog post is based on a talk &lt;a href="http://tpetricek.github.io/Talks/2021/popup-from-hell/"&gt;Popup from hell: Reflections on the most annoying 1990s
program&lt;/a&gt; that I did recently at an
(in person!) meeting of the &lt;a href="https://programme.hypotheses.org/"&gt;PROGRAMme project&lt;/a&gt;. Thanks to
everyone who attended for lively discussion and useful feedback!&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Software designers, not engineers: An interview from alternative universe</title>
      <guid>http://tomasp.net/blog/2021/software-designers/</guid>
      <link>http://tomasp.net/blog/2021/software-designers/</link>
      <pubDate>Mon, 19 Apr 2021 12:30:57 GMT</pubDate>
      <description>&lt;p&gt;While the physicists investigate the nature of the mysterious portal that has recently appeared in
North London, several human beings recently came through the portal, which appears to be a
gate into an alternative universe. As we understood from the last two people coming through the
portal, it seems to be a linked with a universe that is in many ways like ours, reached about the
same level of social and technological development, but differs in numerous curious details.
The paths through which people in this alternative universe reached similar results as our world
are often subtly different.&lt;/p&gt;
&lt;div class="rdecor"&gt;&lt;a href="https://amzn.to/3x0Ww5a"&gt;&lt;img src="http://tomasp.net/blog/2021/software-designers/ways.png" style="max-width:260px" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;The most recent visitor from the alternative universe is Ms Zaha Atkinson, who would most likely
be titled &lt;em&gt;software engineer&lt;/em&gt; in our world, although the title she uses in her home world is
&lt;em&gt;software designer&lt;/em&gt;. She is a well-known software designer and has been also titled using the
strange-sounding title &lt;em&gt;softwarenova&lt;/em&gt;, a label that we will soon say more about. As with other
technological and societal developments, the alternative universe seems to have arrived at very
similar results as our worlds. Software is eating the (alternative) world, but it is built in very
different ways. The interview with Ms Zaha Atkinson, presented below, reveals how very different
the world of software is when we think of programmers as software &lt;em&gt;designers&lt;/em&gt; rather than as
software &lt;em&gt;engineers&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This article is a work of fiction. Any resemblance to actual events or persons, living or dead,
may or may not be entirely coincidental. It has been largely inspired by the book
&lt;a href="https://amzn.to/3x0Ww5a"&gt;Designerly Ways of Knowing&lt;/a&gt; by Nigel Cross. Ms &lt;a href="https://en.wikipedia.org/wiki/Zaha%5FHadid"&gt;Zaha&lt;/a&gt;
&lt;a href="https://en.wikipedia.org/wiki/Bill%5FAtkinson"&gt;Atkinson&lt;/a&gt; also may or may not be entirely fictional.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Reconstructing Commodore 64 BASIC</title>
      <guid>http://tomasp.net/commodore64</guid>
      <link>http://tomasp.net/commodore64</link>
      <pubDate>Wed, 04 Nov 2020 23:00:00 GMT</pubDate>
      <description>&lt;p&gt;I reconstruct the programming experience of a past system to learn what we've lost in modern
programming environments. And write a simple Breakout game you can play!&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Is deep learning a new kind of programming? Operationalistic look at programming</title>
      <guid>http://tomasp.net/blog/2020/learning-and-programming/</guid>
      <link>http://tomasp.net/blog/2020/learning-and-programming/</link>
      <pubDate>Wed, 07 Oct 2020 00:43:16 GMT</pubDate>
      <description>&lt;p&gt;In most discussions about how to make programming better, someone eventually says
something along the lines of &lt;em&gt;"we'll just have to wait until deep learning solves
the problem!"&lt;/em&gt; I think this is a &lt;a href="https://en.wikipedia.org/wiki/AI_winter"&gt;naively optimistic idea&lt;/a&gt;,
but it raises one interesting question: In what sense are programs created using deep
learning a &lt;em&gt;different kind&lt;/em&gt; of programs than those written by hand?&lt;/p&gt;
&lt;div class="rdecor"&gt;
&lt;img src="http://tomasp.net/blog/2020/learning-and-programming/bridgman.jpg" style="max-width:350px"/&gt;
&lt;/div&gt;
&lt;p&gt;This question recently arose in discussions that we have been having as part of the
&lt;a href="https://programme.hypotheses.org/"&gt;PROGRAMme project&lt;/a&gt;, which explores historical and
philosophical perspectives on the question "What is a (computer) program?" and so this
article owes much debt to &lt;a href="https://programme.hypotheses.org/members"&gt;others involved in the project&lt;/a&gt;,
especially Maël Pégny, Liesbeth De Mol and Nick Wiggershaus.&lt;/p&gt;
&lt;p&gt;Many people will intuitively think that, if you train a deep neural network to solve some
a problem, you get a different kind of program than if you manually write some logic to solve
the problem. But what exactly is the difference? In both cases, the program is a sequence of
instructions that are deterministically executed by a machine, one after another, to produce
the result.&lt;/p&gt;
&lt;p&gt;When reading the excellent book &lt;a href="https://amzn.to/2SvTwKT" title="Hasok Chang (2004). Inventing Temperature: Measurement and Scientific Progress"&gt;Inventing Temperature&lt;/a&gt; by Hasok
Chang recently, I came across the idea of &lt;a href="https://plato.stanford.edu/entries/operationalism/" title="Hasok Chang (2019). Operationalism, The Stanford Encyclopedia of Philosophy"&gt;operationalism&lt;/a&gt;,
which I believe provides a useful perspective for thinking about the issue of deep learning and
programming. The operationalist point of view was introduced by a physicist Percy Williams Bridgman. To
quote: &lt;em&gt;we mean by any concept nothing more than a set of operations; the concept is synonymous
with the corresponding set of operations&lt;/em&gt;. What does this tell us about deep learning and programming?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Creating interactive You Draw bar chart with Compost</title>
      <guid>http://tomasp.net/blog/2020/youdraw-compost-visualization/</guid>
      <link>http://tomasp.net/blog/2020/youdraw-compost-visualization/</link>
      <pubDate>Thu, 16 Jul 2020 21:20:16 GMT</pubDate>
      <description>&lt;p&gt;For a long time, I've been thinking about how to design a data visualization library that would
make it easier to compose charts from simple components. On the one hand, there are charting libraries
like &lt;a href="https://developers.google.com/chart"&gt;Google Charts&lt;/a&gt;, which offer a long list of pre-defined
charts. On the other hand, there are libraries like &lt;a href="https://d3js.org/"&gt;D3.js&lt;/a&gt;, which let you
construct any data visualization, but in a very low-level way. There is also &lt;a href="https://vega.github.io/vega/"&gt;Vega&lt;/a&gt;,
based the idea of &lt;em&gt;grammar of graphics&lt;/em&gt;, which is somewhere in between, but requires you to
specify charts in a fairly complex language including &lt;a href="https://vega.github.io/vega/docs/transforms/"&gt;a huge number of transformations&lt;/a&gt;
that you need to write in JSON.&lt;/p&gt;
&lt;p&gt;In the spirit of functional domain specific languages, I wanted to have a small number of
simple but powerful primitives that can be composed by writing code in a normal programming language
like F# or JavaScript, rather than using JSON.&lt;/p&gt;
&lt;p&gt;My final motivation for working on this was the &lt;a href="https://www.nytimes.com/interactive/2017/01/15/us/politics/you-draw-obama-legacy.html"&gt;You Draw It article series&lt;/a&gt;
by New York Times, which uses interactive charts where the reader first has to make their own guess
before seeing the actual data. I wanted to recreate this, but for bar charts, when working on
&lt;a href="http://turing.thegamma.net/expenditure/"&gt;visualizing government spending using The Gamma&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The code for this was somewhat hidden inside The Gamma, but last month, I finally extracted all
the functionality into a new stand-alone library &lt;a href="https://compostjs.github.io/compost/"&gt;Compost.js&lt;/a&gt;
with simple and clean &lt;a href="https://github.com/compostjs/compost"&gt;source code on GitHub&lt;/a&gt; and
an accompanying &lt;a href="https://compostjs.github.io/compost/paper.pdf"&gt;paper draft that describes it (PDF)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In this article, I will show how to use Compost.js to implement a "You Draw" bar chart inspired
by the NYT article. When loaded, all bars show the average value. You have to drag
the bars to positions that you believe represent the actual values. Once you do this, you can
click "Show me how I did" and the chart will animate to show the actual data, revealing how good
your guess was. Before looking at the code, you can have a look at the resulting interactive chart,
showing the top 5 areas from the 2015 UK budget (in % of GDP):&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Data exploration calculus: Capturing the essence of exploratory data scripting</title>
      <guid>http://tomasp.net/blog/2020/data-exploration-calculus/</guid>
      <link>http://tomasp.net/blog/2020/data-exploration-calculus/</link>
      <pubDate>Tue, 21 Apr 2020 13:42:16 GMT</pubDate>
      <description>&lt;p&gt;Most real-world programming languages are too complex to be studied using formal methods.
For this reason, academics often work with simple theoretical languages instead. The &lt;a href="https://en.wikipedia.org/wiki/Lambda_calculus"&gt;λ-calculus&lt;/a&gt;
is a simple formal language that is often used for talking about functional languages, the &lt;a href="https://en.wikipedia.org/wiki/%CE%A0-calculus"&gt;π-calculus&lt;/a&gt;
is a model of concurrent programming and there is an entire book, &lt;a href="https://link.springer.com/book/10.1007/978-1-4419-8598-9"&gt;A Theory of Objects&lt;/a&gt;
modelling various object-oriented systems.&lt;/p&gt;
&lt;div class="rdecor"&gt;&lt;img src="http://tomasp.net/blog/2020/data-exploration-calculus/ft.gif" style="width:360px"/&gt;&lt;br/&gt;&lt;p style="width:360px;line-height:20px;margin-top:10px;text-align:center;"&gt;&lt;small&gt;Animation from Financial Times article "Why the world's recycling system stopped working".&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;Those calculi try to capture the most interesting aspect of the programming language. This is
function application in functional programming, sending of messages in concurrent programming
and object construction with inheritance in object-oriented programming.&lt;/p&gt;
&lt;p&gt;Recently, I have been working on programming tools for data exploration.
In particular, I'm interested in the kind of programming that journalists need to do when
they work with data. A good example is the coding done for the
&lt;a href="https://www.ft.com/content/360e2524-d71a-11e8-a854-33d6f82e62f8"&gt;Why the world's recycling system stopped working&lt;/a&gt;
article by Financial Times, which is &lt;a href="https://github.com/ft-interactive/recycling-is-broken-notebooks"&gt;available on GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Although data journalists and other data scientists use regular programming languages like
Python, the kind of code they write is very different from the kind of code you need to write
when building a library or a web application in Python.&lt;/p&gt;
&lt;p&gt;In a paper &lt;a href="https://programming-journal.org/2020/4/8/"&gt;Foundations of a live data exploration environment&lt;/a&gt;
that was published in February 2020 in the open access &lt;a href="https://programming-journal.org/"&gt;Programming Journal&lt;/a&gt;,
I wanted to talk about some interesting work that I've been doing on live previews in
&lt;a href="http://thegamma.net"&gt;The Gamma&lt;/a&gt;. For this, I needed a small model of my programming language.&lt;/p&gt;
&lt;p&gt;In the end the most interesting aspect of the paper is the definition of the
&lt;em&gt;data exploration calculus&lt;/em&gt;, a small programming language that captures the kind of code
that data scientists write to explore data. This looks quite different from,
say, a λ-calculus and π-calculus. It should be interesting not only if you're planning to do
theoretical programming language research about data scripting, but also because
it captures some of the atypical properties of the programs that data scientists write...&lt;/p&gt;

</description>
    </item>
    <item>
      <title>On architecture, urban planning and software construction</title>
      <guid>http://tomasp.net/blog/2020/cities-and-programming/</guid>
      <link>http://tomasp.net/blog/2020/cities-and-programming/</link>
      <pubDate>Tue, 07 Apr 2020 22:13:16 GMT</pubDate>
      <description>&lt;p&gt;Despite having the term &lt;em&gt;science&lt;/em&gt; in its name, it is not always clear what kind of
discipline &lt;em&gt;computer science&lt;/em&gt; actually is. Research on programming is sometimes like
science, sometimes like mathematics, sometimes like engineering, sometimes like design
and sometimes like art. It also has a long tradition of importing ideas from a wide range
of other disciplines.&lt;/p&gt;
&lt;p&gt;In this article, I will look at ideas from architecture and urban planning. Architecture
has already been an inspiration for &lt;em&gt;design patterns&lt;/em&gt;, although some would say that we did
quite poor job and imported a trivialized (and not very useful) version of the idea. However,
there are many other interesting ideas in architecture and urban planning worth exploring.&lt;/p&gt;
&lt;div class="rdecor-sm"&gt;&lt;img src="http://tomasp.net/blog/2020/cities-and-programming/patterns.jpg" /&gt;&lt;/div&gt;
&lt;p&gt;To explain why learning from architecture and urban planning is a good idea, I will first
discuss similarities between problems solved by architects or urban planners and programmers.
I will then look at a number of concrete ideas that we can learn, mostly taking inspiration
from four books that I've read recently. There are two general areas:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
First, writing about architecture and urban planning often uses interesting methodologies
that research on programming could adopt to gain new insights into systems, programming
and its problems.
&lt;/li&gt;
&lt;li&gt;
Second, there are a number of more concrete ideas in architecture and urban planning that
might directly apply to software. For example, can programmers learn how to deal with complexity
of software by looking at how urban planners deal with the complexity of cities? Or, can we learn
about software maintenance by looking at how buildings evolve in time?
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The nature of problems that programmers face are often more similar to the problems that
architects and urban planners have to deal with than, say, the problems that scientists, engineers
or mathematicians need to solve. We might not want to go all the way and completely rebuild
how we do programming to mirror architecture and urban planning, but treating the ideas from those
disciplines as equal to those from science or engineering will make programming richer and more
productive discipline.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What to teach as the first programming language and why</title>
      <guid>http://tomasp.net/blog/2019/first-language/</guid>
      <link>http://tomasp.net/blog/2019/first-language/</link>
      <pubDate>Mon, 02 Dec 2019 16:48:25 GMT</pubDate>
      <description>&lt;p&gt;The number of Google search results for the phrase
&lt;a href="https://www.google.com/search?q=" title="choosing+the+first+programming+language"&gt;"choosing the first programming language"&lt;/a&gt;
at the time of writing is 15,800. This illustrates just how debated the issue of choosing the first
programming language is. In this blog post, I will not actually try to answer the question posed
in the title of the post. I will not discuss what language we should teach as the first one.
Instead, I will look at a more interesting question.&lt;/p&gt;
&lt;p&gt;I will investigate the arguments that are used in favour of or against particular programming
languages in computer science curriculum. I am more interested in the kind of argumentation that
is employed to support a particular choice than in the specific languages involved. This approach is
valuable for two reasons. First, by looking at the argumentation used, we can learn what educators
consider important about computer science. Second, understanding the motivations behind different
arguments allows us to make our own debates about the choice of a programming language more informed.&lt;/p&gt;
&lt;p&gt;The scope of this blog post is limited to the choice of the first programming language taught in an
undergraduate computer science programmes at universities. This means that I will not discuss other
important contexts such as choices at a primary or a secondary education level, choices for
independent learners and choices in other university degrees that might involve programming.&lt;/p&gt;
&lt;p&gt;Note that this blog post is adapted from an essay that I wrote as part of a
&lt;a href="https://www.kent.ac.uk/teaching/qualifications/pgche/"&gt;Postgrduate Certificate for Higher Education programme&lt;/a&gt;
at University of Kent, so it assumes less knowledge about programming than a typical reader of
my blog has. This makes it accessible to a broader audience thinking about education
though!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Histogram programming environment</title>
      <guid>http://tomasp.net/histogram</guid>
      <link>http://tomasp.net/histogram</link>
      <pubDate>Mon, 22 Jul 2019 22:00:00 GMT</pubDate>
      <description>&lt;p&gt;What if we represented programs as lists of interactions with programming environment, rather
than as the final source code? Find out in this experimental data exploration environment!&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>