<?xml version="1.0" encoding="utf-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
 <title type="text">William Lachance's Log: William Lachance's Log</title>
 <link rel="self" href="https://wrla.ch/feeds/all.atom.xml" />
 <link href="https://wrla.ch/index.html" />
 <id>urn:https-wrla-ch:-index-html</id>
 <updated>2026-01-11T20:02:06Z</updated>
 <entry>
  <title type="text">Rethinking Music Listening</title>
  <link rel="alternate" href="https://wrla.ch/blog/2026/01/rethinking-music-listening/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2026-01-rethinking-music-listening</id>
  <published>2026-01-11T20:02:06Z</published>
  <updated>2026-01-11T20:02:06Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;On this day in 2026, I canceled my Spotify subscription. This was a long time coming, but what finally pushed me over the edge was listening to this podcast on streaming services a couple weeks ago:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://techwontsave.us/episode/262_how_spotify_remade_the_music_industry_w_liz_pelly"&gt;How Spotify Remade the Music Industry&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I lament the loss of place that music has had in my life over the last decade. It&amp;rsquo;s probably unfair to say that streaming services were the sole cause of this: aging and changes in circumstance clearly played a role. That said, I don&amp;rsquo;t think they&amp;rsquo;ve helped, and I want to try a different approach to music listening with a bit of deliberate friction.&lt;/p&gt;

&lt;p&gt;Here&amp;rsquo;s what I&amp;rsquo;ve done:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Revived my archive of music from ~2009, just before I started streaming seriously. Was lucky enough to have an old hard drive laying around (that immediately died after the transfer).&lt;/li&gt;
 &lt;li&gt;Bought a bunch of music on &lt;a href="https://bandcamp.com/"&gt;Bandcamp&lt;/a&gt; that I&amp;rsquo;d been listening to recently direct from the artist / label, downloaded AAC versions.&lt;/li&gt;
 &lt;li&gt;Installed &lt;a href="https://syncthing.net/"&gt;Syncthing&lt;/a&gt; to share said folder between my Linux laptop, my work (Mac) laptop and my Pixel 8 phone (cool software!)&lt;/li&gt;
 &lt;li&gt;Installed &lt;a href="https://krosbits.in/musicolet/"&gt;Musicolet&lt;/a&gt; on my Pixel&lt;/li&gt;
 &lt;li&gt;Installed &lt;a href="https://brushedtype.co/doppler/"&gt;Doppler&lt;/a&gt; on my Mac (much of my legacy CD collection was transcoded to Ogg Vorbis, which iTunes doesn&amp;rsquo;t support). For Linux, I&amp;rsquo;m just going to use Rhythmbox for a while and see how it goes.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;So far, so good? I&amp;rsquo;m still listening to music at least. Various one-time expenses incurred for new software and I expect Bandcamp will be an ongoing one (which will definitely exceed what I paid for a Spotify subscription up to now), but feels worth it as long as I can afford it.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Electrification and solar</title>
  <link rel="alternate" href="https://wrla.ch/blog/2025/04/electrification-and-solar/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2025-04-electrification-and-solar</id>
  <published>2025-04-05T23:11:12Z</published>
  <updated>2025-04-05T23:11:12Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;I did up an &lt;a href="https://evidence.dev"&gt;evidence&lt;/a&gt; dashboard with some (hopefully) data-driven thoughts on the environmental and financial aspects of heat pump and solar technology in the Greater Toronto / Hamilton area:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://wlach.github.io/gtha-electrification"&gt;wlach.github.io/gtha-electrification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Evidence is pretty neat: very close to what I originally had in mind when building Irydium a few years ago at Mozilla and Recurse (see previous entries in this journal).&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Neural networks mystify me</title>
  <link rel="alternate" href="https://wrla.ch/blog/2023/04/neural-networks-mystify-me/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2023-04-neural-networks-mystify-me</id>
  <published>2023-04-15T14:33:52Z</published>
  <updated>2023-04-15T14:33:52Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Spent a good chunk of a week off (re)learning the basics of neural networks: forward propagation, gradient descent, loss functions. It&amp;rsquo;s taking some time, but gradually I feel some level of understanding is taking hold. What kind of continues to amaze me is how simple it all is: you really only need a high-school level understanding of linear algebra and calculus to understand most of what&amp;rsquo;s going on behind the scenes. Best as I can tell, the recent innovations in the last few years (in particular transformer models behind things like ChatGPT) are just refinements on top of these basic concepts.&lt;/p&gt;

&lt;p&gt;Neural networks (there really there is nothing &amp;ldquo;neural&amp;rdquo; about them) are really not new: I remember hearing about that as an undergraduate in the early 2000s (and I think they were rather old hat even then). At the time, they were pretty much dismissed as a warmed-over model of &lt;a href="https://en.wikipedia.org/wiki/Behaviorism"&gt;behaviorism&lt;/a&gt;, unlikely to be useful anywhere except perhaps in a few simplistic applications. Based on what I saw at the time, I agreed and basically bought into the idea that computers are mainly useful as an adjunct to human processes, systems and intuition.&lt;/p&gt;

&lt;p&gt;Thus, I find the fact that these systems can produce something even mildly resembling novel or creative outputs (as is the case with things like ChatGPT and Midjourney) &lt;em&gt;surprising&lt;/em&gt; - as in it wasn&amp;rsquo;t something I saw coming. Yes, much of what has been built using these technologies is overhyped and arguably dangerous. Still, I also don&amp;rsquo;t want to lose the sense of wonder that this is possible at all. If I was mistaken about this what else might I be missing?&lt;/p&gt;

&lt;p&gt;I feel like the best response at this point is to take a step back, learn as much as I can, and &lt;em&gt;then&lt;/em&gt; develop an opinion. I expect this process to take at least a year, probably longer.&lt;/p&gt;

&lt;p&gt;In case it&amp;rsquo;s helpful to others, here&amp;rsquo;s some literature I&amp;rsquo;ve been working through on these topics.&lt;/p&gt;

&lt;p&gt;Some theoretical but approachable material for understanding the basics:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="http://karpathy.github.io/neuralnets/"&gt;Hacker&amp;rsquo;s Guide to Neural Networks&lt;/a&gt;: Now dislcaimed by the author as out of date, I still found its explanation of neural networks as a circuit quite helpful for building my intuition.&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://neuralnetworksanddeeplearning.com/index.html"&gt;Neural Networks and Deep Learning&lt;/a&gt;: Another introduction to the basics, more refined and comprehensive than the above.&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://codewords.recurse.com/issues/five/why-do-neural-networks-think-a-panda-is-a-vulture"&gt;How to trick a neural network into thinking a panda is a vulture&lt;/a&gt;: Often the best way of understanding something is to break it.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;On the ethical side:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="https://dl.acm.org/doi/10.1145/3442188.3445922"&gt;On the Dangers of Stochastic Parrots&lt;/a&gt;: Good antidote to some of the hype around LLMs, incorporating an understanding of how these systems may further perpetuate social harms. Much more nuanced and interesting than most of the critiques I&amp;rsquo;ve seen fly by in the last few months.&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://zephoria.medium.com/resisting-deterministic-thinking-52ef8d78248c"&gt;Resisting Determinstic Thinking&lt;/a&gt;: How can we think critically about AI without falling into the trap of black/white thinking (&amp;ldquo;this is all good&amp;rdquo; vs. &amp;ldquo;this is all bad&amp;rdquo;)&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;And some articles on how to think about LLMs from a pragmatic perspective as a programmer:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="https://simonwillison.net/2023/Apr/2/calculator-for-words/"&gt;Think of language models like ChatGPT as a “calculator for words”&lt;/a&gt;: This feels right to me based on my usage of OpenAI as a &amp;ldquo;tool for thought so far&amp;rdquo; (though I don&amp;rsquo;t think I&amp;rsquo;ve yet been able to use ChatGPT as effectively as this person).&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://about.sourcegraph.com/blog/cheating-is-all-you-need"&gt;Cheating is all you need&lt;/a&gt;: Some speculative thinking about how this stuff might play out for those of us doing programming from the internet-famous Steve Yegge.&lt;/li&gt;&lt;/ul&gt;</content></entry>
 <entry>
  <title type="text">Working with depression</title>
  <link rel="alternate" href="https://wrla.ch/blog/2022/11/working-with-depression/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2022-11-working-with-depression</id>
  <published>2022-11-26T15:24:01Z</published>
  <updated>2022-11-26T15:24:01Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Been struggling with depression over the past couple of weeks. Some of this is seasonal (with the shortening of the days), though I wouldn&amp;rsquo;t say it &lt;em&gt;always&lt;/em&gt; happens. Last year at this time I recall feeling the &lt;em&gt;opposite&lt;/em&gt; of depressed: that probably had to do with the fact that I knew I was leaving my previous job at Mozilla and wanted to get as much done as possible. Sometimes a highly motivating life situation can keep it in abeyance. Nonetheless, it&amp;rsquo;s here now, again, and demands to be dealt with.&lt;/p&gt;

&lt;p&gt;What does depression even mean? It&amp;rsquo;s a bit of a hard thing to pin down, exactly. But from the perspective of looking after my own well being, I don&amp;rsquo;t think I really need a definition. What matters are the symptoms, which I&amp;rsquo;d roughly express as:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Knowing what I &lt;em&gt;should&lt;/em&gt; be doing but not able to do it&lt;/li&gt;
 &lt;li&gt;An increase in time spent scanning social media, news sites&lt;/li&gt;
 &lt;li&gt;Feelings of low self worth&lt;/li&gt;
 &lt;li&gt;Feelings that nothing really matters&lt;/li&gt;
 &lt;li&gt;Lack of creativity, improvisation&lt;/li&gt;
 &lt;li&gt;An increase in self-referential thinking (this post would be an example of that)&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;A few things I tend to try to diminish its effects:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Go outside, expose myself to sunlight. Explore nature.&lt;/li&gt;
 &lt;li&gt;Exercise&lt;/li&gt;
 &lt;li&gt;Meditate&lt;/li&gt;
 &lt;li&gt;Eat less carbohydrates, more vegetables and protein&lt;/li&gt;
 &lt;li&gt;Talk to friends&lt;/li&gt;
 &lt;li&gt;Do nice things for other people&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;I don&amp;rsquo;t feel like doing these things but I try with all my might, against all my will, to do them anyway. Any individual action might not do much: but the cumulative effect of doing &lt;em&gt;all&lt;/em&gt; of the above seems to have an impact &amp;mdash; or at least that&amp;rsquo;s what I tell myself.&lt;/p&gt;

&lt;p&gt;And yet despite my best efforts, it&amp;rsquo;s not always enough. I do all of the things in the second list, and yet still find myself suffering in all the ways described by the first. What do I do then?&lt;/p&gt;

&lt;p&gt;I try to understand that there really isn&amp;rsquo;t an escape from unpleasant feeling, and that it&amp;rsquo;s just part of life: glorious and beautiful in its complexity. I try to be &lt;em&gt;curious&lt;/em&gt; about what&amp;rsquo;s going on, even if I think it&amp;rsquo;s all happened before. If that&amp;rsquo;s not possible, I at least try to be present with it. That&amp;rsquo;s all I can do.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Using Sphinx in a Monorepo</title>
  <link rel="alternate" href="https://wrla.ch/blog/2022/09/using-sphinx-in-a-monorepo/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2022-09-using-sphinx-in-a-monorepo</id>
  <published>2022-09-25T19:55:40Z</published>
  <updated>2022-09-25T19:55:40Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Just wanted to type up a couple of notes about working with &lt;a href="https://www.sphinx-doc.org/en/master/"&gt;Sphinx&lt;/a&gt; (the python documentation generator) inside a monorepo, an issue I&amp;rsquo;ve been struggling with (off and on) at &lt;a href="https://voltus.co"&gt;Voltus&lt;/a&gt; since I started. I haven&amp;rsquo;t seen much written about this topic despite (I suspect) it being a reasonably frequent problem.&lt;/p&gt;

&lt;p&gt;In general, there&amp;rsquo;s a lot to like about Sphinx: it&amp;rsquo;s great at handling deeply nested trees of detailed documentation with cross-references inside a version control system. It has local search that works pretty well and some themes (like &lt;a href="https://sphinx-rtd-theme.readthedocs.io/en/stable/"&gt;readthedocs&lt;/a&gt;) scale pretty nicely to hundreds of documents. The directives and roles system is pretty flexible and covers most of the common things one might want to express in technical documentation. And if the built-in set of functionality isn&amp;rsquo;t enough, there&amp;rsquo;s a wealth of third party extension modules. My only major complaint is that it uses the somewhat obscure &lt;a href="https://docutils.sourceforge.io/rst.html"&gt;restructuredText&lt;/a&gt; file format by default, but you can get around that by using the excellent &lt;a href="https://myst-parser.readthedocs.io/en/latest/"&gt;MyST extension&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Unfortunately, it has a pretty deeply baked in assumption that all documentation for your project lives inside a &lt;em&gt;single&lt;/em&gt; subfolder. This is fine for a small repository representing a single python module, like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;root&amp;gt;
README.md
setup.cfg
pyproject.toml
mymodule/
docs/&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;However, this doesn&amp;rsquo;t work for a large monorepo, where you would typically see something like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;root&amp;gt;/module-1/submodule-a
&amp;lt;root&amp;gt;/module-1/submodule-b
&amp;lt;root&amp;gt;/module-2/submodule-c
...&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In a monorepo, you usually want to include a module&amp;rsquo;s documentation inside its own directory. This allows you to use your &lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners"&gt;code ownership constraints&lt;/a&gt; for documentation, among other things.&lt;/p&gt;

&lt;p&gt;The naive solution would be to create a sphinx site for every single one of these submodules. This is what happened at Voltus and I don&amp;rsquo;t recommend it. For a large monorepo you&amp;rsquo;ll end up with dozens, maybe hundreds of documentation &amp;ldquo;sites&amp;rdquo;. Under this scenario, discoverability becomes a huge problem: no longer can you rely on tables of contents and the built-in search to discover content: you just have to &amp;ldquo;know&amp;rdquo; where things live. I&amp;rsquo;m more than nine months in here and I&amp;rsquo;m &lt;em&gt;still&lt;/em&gt; discovering new documentation.&lt;/p&gt;

&lt;p&gt;It would be much better if we could somehow collect documentation from other parts of the repository into a single site. Is this possible? tl;dr: Yes. There&amp;rsquo;s a few solutions, each with their pros and cons.&lt;/p&gt;

&lt;h2 id="the-obvious-solution-that-doesnt-work"&gt;The obvious solution that doesn&amp;rsquo;t work&lt;/h2&gt;

&lt;p&gt;The most obvious solution here is to create a symbolic link inside your documentation directory, say the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;root&amp;gt;/docs/
&amp;lt;root&amp;gt;/docs/module-1/submodule-a -&amp;gt; &amp;lt;root&amp;gt;/module-1/submodule-a/docs&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Unfortunately, &lt;a href="https://stackoverflow.com/questions/10199233/can-sphinx-link-to-documents-that-are-not-located-in-directories-below-the-root"&gt;this doesn&amp;rsquo;t work&lt;/a&gt;. ☹️ Sphinx doesn&amp;rsquo;t follow symbolic links.&lt;/p&gt;

&lt;h2 id="solution-1-just-copy-the-files-in"&gt;Solution 1: Just copy the files in&lt;/h2&gt;

&lt;p&gt;The most obvious solution is to just copy the files from various parts of the monorepo into place, as part of the build system. Mozilla did this for Firefox, with the &lt;a href="https://searchfox.org/mozilla-central/source/tools/moztreedocs/__init__.py"&gt;moztreedocs&lt;/a&gt; system.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://firefox-source-docs.mozilla.org/"&gt;results look pretty good&lt;/a&gt;, but this is a bespoke solution. Aside from general ideas, there&amp;rsquo;s no way I&amp;rsquo;m going to be able to apply anything in moztreedocs to Voltus&amp;rsquo;s monorepo (which is based on a completely different build system). And being honest, I&amp;rsquo;m not sure if the 40+ hour (estimated) effort to reimplement it would be a good use of time compared to other things I could be doing.&lt;/p&gt;

&lt;h2 id="solution-2-use-the-include-directive-with-myst"&gt;Solution 2: Use the include directive with MyST&lt;/h2&gt;

&lt;p&gt;Later versions of MyST include support for &lt;a href="https://myst-parser.readthedocs.io/en/latest/faq/index.html#include-a-file-from-outside-the-docs-folder-like-readme-md"&gt;directly importing a markdown file from another part of the repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is a limited form of embedding: it won&amp;rsquo;t let you import an entire directory of markdown files. But if your submodules mostly just include content in the form of a &lt;code&gt;README.md&lt;/code&gt; (or similar), it might just be enough. Just create a directory for these files to live (say &lt;code&gt;services&lt;/code&gt;) and slot them in:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;root&amp;gt;/docs/services/module-1/submodule-a/index.md&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;```{include} ../../../module-1/submodule-a/README.md
```&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I&amp;rsquo;m currently in the process of implementing this solution inside Voltus. I have optimism that this will be a big (if incremental) step up over what we have right now. There are obviously limits, but you can cram a lot of useful information in a README. As a bonus, it&amp;rsquo;s a pretty nice marker for those spelunking through the source code (much more so than a forest of tiny documentation files).&lt;/p&gt;

&lt;h2 id="solution-3-sphinx-collections"&gt;Solution 3: Sphinx Collections&lt;/h2&gt;

&lt;p&gt;This one I just found about today: &lt;a href="https://sphinx-collections.readthedocs.io"&gt;Sphinx Collections&lt;/a&gt; is a small python module that lets you automatically import entire &lt;em&gt;directories&lt;/em&gt; of files into your sphinx tree, under a &lt;code&gt;_collections&lt;/code&gt; module. You configure it in your top-level &lt;code&gt;conf.py&lt;/code&gt; like this:&lt;/p&gt;

&lt;div class="brush: py"&gt;
 &lt;div class="colorful"&gt;
  &lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;extensions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="o"&gt;...&lt;/span&gt;
    &lt;span class="s2"&gt;"sphinxcontrib.collections"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"submodule-a"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"driver"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"symlink"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/monorepo/module-1/submodule-a/docs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"target"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"submodule-a"&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;

&lt;p&gt;After setting this up, &lt;code&gt;submodule-a&lt;/code&gt; is now available under &lt;code&gt;_collections&lt;/code&gt; and you can include it in your table of contents like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;...

```{toctree}
:caption: submodule-a

_collections/submodule-a/index.md
```

...&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;At this point, &lt;code&gt;submodule-a&lt;/code&gt;&amp;rsquo;s documentation should be available under &lt;code&gt;http://&amp;lt;my doc domain&amp;gt;/_collections/submodule-a/index.html&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Pretty nifty. The main downside I&amp;rsquo;ve found so far is that this doesn&amp;rsquo;t play nicely with the &lt;a href="https://docs.readthedocs.io/en/stable/guides/edit-source-links-sphinx.html"&gt;Edit on GitHub&lt;/a&gt; links that the readthedocs theme automatically inserts (it thinks the files exist under &lt;code&gt;_collections&lt;/code&gt;), but there&amp;rsquo;s probably a way to work around that.&lt;/p&gt;

&lt;p&gt;I plan on investigating this approach further in the coming months.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">90 days out and in</title>
  <link rel="alternate" href="https://wrla.ch/blog/2022/04/90-days-out-and-in/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2022-04-90-days-out-and-in</id>
  <published>2022-04-16T16:44:14Z</published>
  <updated>2022-04-16T16:44:14Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;The 90 day mark just passed at my &lt;a href="https://voltus.co"&gt;new gig at Voltus&lt;/a&gt;, feels like a good time for a bit of self-reflection.&lt;/p&gt;

&lt;p&gt;In general, I think it&amp;rsquo;s been a good change and that it was the right time to leave Mozilla. Since I left, a few people have asked me why I chose to do so: while the full answer is pretty complicated (these things are never simple!), I think it does ultimately come down to wanting to try something new after 10+ years. I&amp;rsquo;ve accumulated a fair amount of expertise in web development and data engineering and I wanted to see if I could apply them to a new area that I cared about&amp;mdash; in this case, climate change and the energy transition.&lt;/p&gt;

&lt;p&gt;Voltus is a much younger and different company than Mozilla was, and there&amp;rsquo;s no shortage of things to learn and do. Energy markets are a rather interesting technical domain to work in&amp;mdash; a big intersection between politics, technology, and business. Lots of very old and very new things all at once. As a still-relatively young company, there is definitely more of a feeling that it&amp;rsquo;s possible to shape Voltus&amp;rsquo;s culture and practices, which has been interesting. There&amp;rsquo;s a bit of a balancing act between sharing what you&amp;rsquo;ve learned in previous roles while having the humility to recognize that there&amp;rsquo;s much you still don&amp;rsquo;t understand in a new workplace.&lt;/p&gt;

&lt;p&gt;On the downside, I have to admit that I do miss being able to work in the open. &lt;a href="https://www.canarymedia.com/articles/climatetech-finance/voltus-launches-1-3b-spac-to-help-businesses-reshape-their-power-use-and-ease-grid-stress"&gt;Voltus is currently in the process of going public&lt;/a&gt;, which has made me extra shy about saying much of anything about what I&amp;rsquo;ve been working on in a public forum.&lt;/p&gt;

&lt;p&gt;To some extent I&amp;rsquo;ve been scratching this itch by continuing to work on &lt;a href="https://irydium.dev"&gt;Irydium&lt;/a&gt; when I have the chance. I&amp;rsquo;ve done up a few new releases in the last couple of months, which I think have been fairly well received inside my very small community of people doing like-minded things. I&amp;rsquo;m planning on attending (at least part of) a &lt;a href="https://github.com/pyodide/pyodide/wiki/PyCon2022-sprint"&gt;pyodide sprint&lt;/a&gt; in early May, which I think should be a lot of fun as well as an opportunity to push browser-based data science forward.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve also kept more of a connection with Mozilla than I thought I would have: some video meetings with former colleagues, answering questions on Element (&lt;a href="https://wiki.mozilla.org/Matrix"&gt;chat.mozilla.org&lt;/a&gt;), even &lt;a href="https://github.com/mozilla/glean-dictionary/pulls?q=is%3Apr+author%3Awlach+is%3Aclosed"&gt;some pull requests&lt;/a&gt; where I felt like I could make a quick contribution. I&amp;rsquo;m still using Firefox, which has actually given me more perspective on some problems that people at Mozilla might not experience (e.g. &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1536777"&gt;this screensharing bug&lt;/a&gt; which you&amp;rsquo;d only see if you&amp;rsquo;re using a WebRTC-based video conferencing solution like Google Meet).&lt;/p&gt;

&lt;p&gt;That said, I&amp;rsquo;m not sure to what extent this will continue: even if the source code to Firefox and the tooling that supports it is technically &amp;ldquo;open source&amp;rdquo;, outsiders like myself really have very limited visibility into what Mozilla is doing these days. This makes it difficult to really connect with much of what&amp;rsquo;s going on or know how I might be able to contribute. While it might be theoretically possible to join Mozilla&amp;rsquo;s Slack (at least last I checked), that feels like a rabbit hole I&amp;rsquo;d prefer not to go down. While I&amp;rsquo;m still interested in supporting Mozilla&amp;rsquo;s mission, I really don&amp;rsquo;t want more than one workplace chat tool in my life: there&amp;rsquo;s a lot of content there that is no longer relevant to me as a non-employee and (being honest) I&amp;rsquo;d rather leave behind. There&amp;rsquo;s lots more I could say about this, but probably best to leave it there: I understand that there&amp;rsquo;s reasons why things are the way they are, even if they make me a little sad.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Leaving Mozilla</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/12/leaving-mozilla/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-12-leaving-mozilla</id>
  <published>2021-12-21T18:43:09Z</published>
  <updated>2021-12-21T18:43:09Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;I&amp;rsquo;ve decided to leave Mozilla as an employee: my last day will be December 31st, 2021.&lt;/p&gt;

&lt;p&gt;It&amp;rsquo;s hard to overstate the impact Mozilla has had on my life. In particular, I&amp;rsquo;m grateful for all the interactions I&amp;rsquo;ve had with the community: the opportunity to build technology for the public good with people around the world was unique and I&amp;rsquo;m really going to miss it.&lt;/p&gt;

&lt;p&gt;Looking back over the &lt;a href="/blog/2021/07/10-years-at-mozilla/"&gt;past 10 years&lt;/a&gt;, I&amp;rsquo;m feeling pretty good about the impact I had through building better developer and data tooling: &lt;a href="https://mozilla.github.io/mozregression"&gt;mozregression&lt;/a&gt;, &lt;a href="https://wiki.mozilla.org/EngineeringProductivity/Projects/Perfherder"&gt;Perfherder&lt;/a&gt;, &lt;a href="https://github.com/iodide-project/iodide"&gt;Iodide&lt;/a&gt; and the &lt;a href="https://dictionary.telemetry.mozilla.org"&gt;Glean Dictionary&lt;/a&gt; stand out as particular highlights. Thanks to everyone who worked on those things with me! I am because we are.&lt;/p&gt;

&lt;h2 id="last-lecture"&gt;Last Lecture&lt;/h2&gt;

&lt;p&gt;It&amp;rsquo;s become traditional in &lt;a href="https://wiki.mozilla.org/Data"&gt;Data @ Mozilla&lt;/a&gt; for the person leaving to give a last lecture on their way out. I decided to give a talk on a specific area of focus for me over the last couple of years: &lt;a href="https://docs.telemetry.mozilla.org"&gt;documentation&lt;/a&gt;.&lt;/p&gt;

&lt;iframe width="600" height="400" src="https://www.youtube.com/embed/E5j6BoxZ-7w" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"&gt;&lt;/iframe&gt;

&lt;p&gt;I&amp;rsquo;m not sure how comprehensible it will be to people outside of my particular context at Mozilla, but it seemed fitting to post it publically regardless.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m more convinced than ever that documentation is one of the keys to empowering people to make better decisions with data (no matter what their job title). I hope my efforts here have been helpful.&lt;/p&gt;

&lt;h2 id="joining-the-community"&gt;Joining the Community&lt;/h2&gt;

&lt;p&gt;After having spent a good chunk of energy on making it possible for people outside the Mozilla Corporation to contribute to our projects, I&amp;rsquo;m looking forward to seeing what it&amp;rsquo;s like on the other side of the fence.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m not sure right now exactly how active I&amp;rsquo;ll be, but I plan on sticking around on Matrix and Bugzilla, at least a little bit. If there&amp;rsquo;s anything I can help you with, feel free to reach out!&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Learning about Psychological Safety at the Recurse Center</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/10/learning-about-psychological-safety-at-the-recurse-center/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-10-learning-about-psychological-safety-at-the-recurse-center</id>
  <published>2021-10-19T12:34:40Z</published>
  <updated>2021-10-19T12:34:40Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Last summer, I took a 6-week sabbatical from my job to attend a virtual “programmers retreat” at the &lt;a href="https://recurse.com"&gt;Recurse Center&lt;/a&gt;. I thought I&amp;rsquo;d write up some notes on the experience, with a particular lens towards what makes an environment suited towards learning, innovation, and personal growth.&lt;/p&gt;

&lt;p&gt;Some context: I’m currently working as a software engineer at Mozilla, building out our data pipeline and analysis tooling. I&amp;rsquo;ve been at my current position for more than 10 years (my &amp;ldquo;anniversary&amp;rdquo; actually passed while I was out). I started out as a senior engineer in 2011, and was promoted to staff engineer in 2016. In tech-land, this is a really long tenure at a company. I felt like it was time to take a break from my day-to-day, explore some new ideas and concepts, and hopefully expose myself to a broader group of people in my field.&lt;/p&gt;

&lt;p&gt;My original thinking was that I would mostly be spending this time building out an interactive computation environment I&amp;rsquo;ve been working on called &lt;a href="https://irydium.dev"&gt;Irydium&lt;/a&gt;. And I did quite a bit of that. However, I think the main thing I took away from this experience was some insight on what makes a remote environment for knowledge work really “click”. In particular, what makes somewhere feel psychologically safe, and how this feeling allows us to innovate and do our best work.&lt;/p&gt;

&lt;p&gt;While the Recurse Center obviously has different goals than an organization that builds and delivers consumer software, I do think there are some things that it does that could be applied to Mozilla (and, likely, many other tech workplaces).&lt;/p&gt;

&lt;h2 id="what-is-the-recurse-center"&gt;What is the Recurse Center?&lt;/h2&gt;

&lt;p&gt;Most succinctly, the Recurse Center is a &amp;ldquo;writer&amp;rsquo;s retreat for programmers&amp;rdquo;. It tries to provide an environment conducive to learning and creativity, an opportunity to refine your craft and learn new things, both from the act of programming itself &lt;em&gt;and&lt;/em&gt; from interactions with the other like-minded people attending. The Recurse Center admits a wide variety of people, from those who have only been through a coding bootcamp to those who have been in the industry many years, like myself. The main admission criteria, from what I gather, are curiosity and friendliness.&lt;/p&gt;

&lt;p&gt;Once admitted, you do a &amp;ldquo;batch&amp;rdquo;&amp;mdash; either a mini (1 week), half-batch (6 weeks), or a full batch (12 weeks). I did a half-batch.&lt;/p&gt;

&lt;h2 id="how-does-it-work-during-a-global-pandemic"&gt;How does it work (during a global pandemic)?&lt;/h2&gt;

&lt;p&gt;The Recurse experience used to be entirely in-person, in a space in New York City - if you wanted to go, you needed to move there at least temporarily. Obviously that&amp;rsquo;s out the window during a Global Pandemic, and all activities are currently happening online. This was actually pretty ideal for me at this point in my life, as it allowed me to participate entirely remotely from my home in Hamilton, Ontario, Canada (near Toronto).&lt;/p&gt;

&lt;p&gt;There&amp;rsquo;s a few elements that make &amp;ldquo;Virtual RC&amp;rdquo; tick:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;A virtual space (pictured below) where you can see other people in your cohort. This is particularly useful when you want to jump into a conference room.&lt;/li&gt;
 &lt;li&gt;A shared &amp;ldquo;calendar&amp;rdquo; where people can schedule events, either adhoc (e.g. a one off social event, discussing a paper) or on a regular basis (e.g. a reading group)&lt;/li&gt;
 &lt;li&gt;A zulip chat server (which is a bit like Slack) for adhoc conversation with people in your cohort and alumni. There are multiple channels, covering a broad spectrum of interests.&lt;/li&gt;&lt;/ul&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/10/virtual_RC.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;h2 id="why-does-it-work"&gt;Why does it work?&lt;/h2&gt;

&lt;p&gt;So far, what I&amp;rsquo;ve described probably sounds a lot like any remote tech workplace during the pandemic&amp;hellip; and it sort of is! In some ways, my schedule and life while at Recurse didn&amp;rsquo;t feel all that different from my normal day-to-day. Wake up in the morning, drink coffee, meditate, work for roughly 8 hours, done. Qualitatively, however, my experience at Recurse felt unusually productive, and I learned a lot more than I expected to: not just the core stuff related to Irydium, but also unexpected new concepts like CRDTs, product design, and even &lt;a href="https://github.com/microsoft/vscode-textmate/issues/152"&gt;how visual studio code syntax highlighting works&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What made the difference? Certainly, not having the normal pressures of a workplace helps - but I think there&amp;rsquo;s more to it than that. The way RC is constructed reinforces a sense of &lt;em&gt;psychological safety&lt;/em&gt; which I think is key to learning and growth.&lt;/p&gt;

&lt;h2 id="what-is-psychological-safety-and-why-should-i-care"&gt;What is psychological safety and why should I care?&lt;/h2&gt;

&lt;p&gt;Psychological safety is a bit of a hot topic these days and there&amp;rsquo;s a lot of discussion about in management circles. I think it comes down to a feeling that you can take risks and &amp;ldquo;put yourself out there&amp;rdquo; without fear that you&amp;rsquo;ll be ignored, attacked, or ridiculed.&lt;/p&gt;

&lt;p&gt;Why is this important? I would argue, because knowledge work is about building understanding &amp;mdash; going from a place of not understanding to understanding. If you’re working on anything at all innovative, there is always an element of the unknown. In my experience, there is virtually always a sense of discomfort and uncertainty that goes along with that. This goes double when you&amp;rsquo;re working around and with people that you don&amp;rsquo;t know terribly well (and who might have far more experience than you). Are they going to make fun of you for not knowing a basic concept or for expressing an idea that&amp;rsquo;s &amp;ldquo;so wrong I don’t even know where to begin&amp;rdquo;? Or, just as bad, will you not get any feedback on your work at all?&lt;/p&gt;

&lt;p&gt;In reality, except in truly toxic environments, you&amp;rsquo;ll rarely encounter outright abusive behaviour. But the isolation of remote work can breed similar feelings of disquiet and discomfort over time. My sense, after a year of working &amp;ldquo;hardcore&amp;rdquo; remote in COVID times, is that our normal workplace rituals of meetings, “stand ups”, and discussions over Slack don&amp;rsquo;t provide enough space for a meaningful sense of psychological safety to develop. They’re good enough for measuring progress towards agreed-upon goals but a true sense of belonging depends on less tightly scripted interactions among peers.&lt;/p&gt;

&lt;h2 id="how-the-recurse-environment-creates-psychological-safety"&gt;How the Recurse environment creates psychological safety&lt;/h2&gt;

&lt;p&gt;But the environment I described above isn&amp;rsquo;t &lt;em&gt;that&lt;/em&gt; different from a workplace, is it? Speaking from my own experience, my coworkers at Mozilla are all pretty nice people. There’s also many channels for informal discussion at Mozilla, and of course direct messaging is always available (via Slack or Matrix). And yet, I still feel there is a pretty large gap between the two experiences. So what makes the difference? I&amp;rsquo;d say there were three important aspects of Recurse that really helped here: social rules, gentle prompts, and a closed space.&lt;/p&gt;

&lt;h3 id="social-rules"&gt;Social rules&lt;/h3&gt;

&lt;p&gt;There&amp;rsquo;s been a lot of discussion about community participation guidelines and standards of behaviour in workplaces. In general, these types of policies target really egregious behaviour like harassment: this is a pretty low bar. They aren&amp;rsquo;t, in my experience, sufficient to actually create an environment that actually feels safe.&lt;/p&gt;

&lt;p&gt;The Recurse Center goes over and above a basic code of conduct, with four simple social rules:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;No well-actually’s: corrections that aren’t relevant to the point someone was trying to make (this is probably the rule we’re most heavily conditioned to break).&lt;/li&gt;
 &lt;li&gt;No feigned surprise: acting surprised when someone doesn’t know something.&lt;/li&gt;
 &lt;li&gt;No backseat driving: lobbing advice from across the room (or across the online chat) without really joining or engaging in a conversation.&lt;/li&gt;
 &lt;li&gt;No subtle -isms: subtle expressions of racism, sexism, ageism, homophobia, transphobia and other kinds of bias and prejudice.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;These rules aren&amp;rsquo;t &amp;ldquo;commandments&amp;rdquo; and you&amp;rsquo;re not meant to feel shame for violating them. The important thing is that by being there, the rules create an &lt;em&gt;environment conducive to learning and growth&lt;/em&gt;. You can be reasonably confident that you can bring up a question or discussion point (or respond to one) and it won&amp;rsquo;t lead to a bad outcome. For example, you can expect not to be made fun of for asking what a UNIX socket is (and if you are, you can tell the person doing so to stop). Rather than there being an unspoken rule that everyone should already know everything about what they are trying to do, there is a spoken rule that states it’s expected that they don&amp;rsquo;t.&lt;/p&gt;

&lt;p&gt;Working on Irydium, there&amp;rsquo;s an infinite number of ways I can feel incompetent: this is a requirement when engaging with concepts that I still don&amp;rsquo;t feel completely comfortable with: parsers, compilers, WebAssembly&amp;hellip; the list goes on. Knowing that I could talk about what I&amp;rsquo;m working on (or something I&amp;rsquo;m interested in) and that the responses I got would be constructive and directed to the project, not the person made all the difference.&lt;sup&gt;&lt;a href="#2021-10-19-learning-about-psychological-safety-at-the-recurse-centre-footnote-1-definition" name="2021-10-19-learning-about-psychological-safety-at-the-recurse-centre-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;h3 id="gentle-prompts"&gt;Gentle prompts&lt;/h3&gt;

&lt;p&gt;The thing I loved the most about Recurse were the gentle prompts to engage with other people, talk about your work, and get help. A few that I really enjoyed during my time there:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;The &amp;ldquo;checkins&amp;rdquo; channel. People would post what&amp;rsquo;s going on with their time at RC, their challenges, their struggles. Often there would be little snippits about people&amp;rsquo;s lives in there, which built to a feeling of community.&lt;/li&gt;
 &lt;li&gt;Hack &amp;amp; Tell: A weekly event where a group of us would get together in a Zoom room, talk about working on or building something, then rejoin the chat an hour later to show off what we accomplished.&lt;/li&gt;
 &lt;li&gt;Coffee Chats: A &amp;ldquo;coffee chat&amp;rdquo; bot at RC would pair you with other people in your batch (or alumni) on a cadence of your choosing. I met so many great people this way!&lt;/li&gt;
 &lt;li&gt;Weekly Presentations: At the end of each week, people would sign up to share something that they were working on our learned.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;… and I could go on. What&amp;rsquo;s important are not the specific activities, but their end effect of building connectedness, creating opportunities for serendipitous collaboration and interaction (more than one discussion group came out of someone&amp;rsquo;s checkin post on Zulip) and generally creating an environment well-suited to learning.&lt;/p&gt;

&lt;h3 id="a-semi-closed-space"&gt;A (semi) closed space&lt;/h3&gt;

&lt;p&gt;One of the things that makes the gentle prompts above &amp;ldquo;work&amp;rdquo; is that you have some idea of who you&amp;rsquo;re going to be interacting with. Having some predictability about who&amp;rsquo;s going to see what you post and engage with you (that they were vetted by RC&amp;rsquo;s interview process and are committed to the above-mentioned social rules) gives you some confidence to be vulnerable and share things that you might be reluctant to otherwise.&lt;/p&gt;

&lt;p&gt;Those who have known me for a while will probably see the above as being a bit of departure from what I normally preach: throughout my tenure at Mozilla, I’ve constantly pushed the people I’ve worked with to do more work in public. In the case of a product like Firefox, which touches so many people, I think open and transparent practices are absolutely essential to building trust, creating opportunity, and ensuring that our software reflects a diversity of views. I applied the same philosophy to Irydium’s development while I was at the Recurse Center: I set up a public Matrix channel to discuss the project, published all my work on GitHub, and was quite chatty about what I was working on, both in this blog and on Twitter.&lt;/p&gt;

&lt;p&gt;The key, I think, is being deliberate about what approach you take when: there is a place for both public and private conversations about what we work on. I’m strongly in favour of open design documents, community calls, public bug trackers and open source in general. But I think it’s also pretty ok to have smaller spaces for learning, personal development, and question asking. I know I strongly appreciated having a smaller group of people that I could talk to about ideas that were not yet fully formed: you can always bring them out into the open later. The psychological risk of working in public can be mitigated by the psychological safety that can be developed within an intentional community.&lt;/p&gt;

&lt;h2 id="bringing-it-back"&gt;Bringing it back&lt;/h2&gt;

&lt;p&gt;Returning to my job, I wondered if it might be possible to bring some of what I described above back to Mozilla? Obviously not everything would be directly transferable: Mozilla has its own mission and goals, and there are pressures that exist in a workplace that do not exist in an environment purely directed at learning. Still, I suspected that there was something we could do here. And that it would be worth doing, not just to improve the felt experience of the people here (though that would be reason enough) but also to get more feedback on our work and create more opportunities for collaboration and innovation.&lt;/p&gt;

&lt;p&gt;I felt like trying to do something inside our particular organization (Data Engineering and Data Science) would be the most tractable initial step. I talked a bit about my experience with &lt;a href="https://bluesock.org/~willkg/"&gt;Will Kahn-Green&lt;/a&gt; (who has been at Mozilla around the same length of time as I have) and we came up with what we called the “Data Neighbourhood” project: a set of grassroots micro-initiatives to increase our connectedness as a group. As an organization directed primarily at serving other parts of Mozilla, most of our team’s communication is directed outward. It’s often hard to know what everyone else is up to, where they’re struggling, and how we could help each other out. Attacking that problem directly seemed like the best place to start.&lt;/p&gt;

&lt;p&gt;The first experiment we tried was a “data checkins” channel on Slack, a place for people to talk informally about their work (or life!). I explicitly set it up with a similar set of social rules as outlined above and tried to emphasize that it was a place to talk about how things are going, rather than a place to report status to your manager. After a somewhat slow start (the initial posts were from Will, myself, and a few other people from Data Engineering who had been around for a long time) we’re beginning to see engagement from others, including some newer people I hadn’t interacted with much before. There’s also been a few useful threads of conversations across different sub-teams (for example, a discussion on how we identify distinct versions of Firefox for iOS) that likely would not have happened without the channel.&lt;/p&gt;

&lt;p&gt;Since then, others have tried a few other things in the same vein (an adhoc coffee chat pairing bot, a “writing help” channel) and there are some signs of success. There’s clearly an appetite for new and better ways for us to relate to each other about the work we’re doing, and I’m excited to see how these ideas evolve over time.&lt;/p&gt;

&lt;p&gt;I suspect there are limits to how psychologically safe a workplace can ever feel (and some of that is probably outside of any individual’s control). There are dynamics in a workplace which make applying some of Recurse’s practices difficult. In particular, a posture of “not knowing things is o.k.” may not apply perfectly to a workplace where people are hired (and promoted) based on perceived competence and expertise. Still, I think it’s worth investigating what might be possible within the constraints of the system we’re in. There are big potential benefits, for our creative output and our well-being.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Many thanks to Jenny Zhang, Kathleen Beckett, Joe Trellick, Taylor Phebillo and Vaibhav Sagar, and Will Kahn-Greene for reviewing earlier drafts of this post&lt;/em&gt;&lt;/p&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-10-19-learning-about-psychological-safety-at-the-recurse-centre-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;This is generally considered best practice inside workplaces as well. For example, see &lt;a href="https://google.github.io/eng-practices/review/reviewer/comments.html"&gt;Google’s guide on how to write code review comments&lt;/a&gt;.&amp;nbsp;&lt;a href="#2021-10-19-learning-about-psychological-safety-at-the-recurse-centre-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">Python dependency gotchas: always go to the source</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/08/python-dependency-gotchas-always-go-to-the-source/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-08-python-dependency-gotchas-always-go-to-the-source</id>
  <published>2021-08-16T20:06:09Z</published>
  <updated>2021-08-16T20:06:09Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Getting back into the swing of things at Mozilla after my extended break. I&amp;rsquo;m currently working on enhancing and extending &lt;a href="https://looker.com/"&gt;Looker&lt;/a&gt; support for Glean-based applications, which eventually led me back to working on &lt;a href="https://mozilla.github.io/bigquery-etl/"&gt;bigquery-etl&lt;/a&gt;, our framework for creating derived datasets in our data lake.&lt;/p&gt;

&lt;p&gt;I spent some time working on improving the initial developer experience of bigquery-etl early this year, so I figured it would be no problem to get going again despite an extended hiatus from it (I think it&amp;rsquo;s probably been ~2&amp;ndash;3 months since I last touched it). Unfortunately the first thing I got after creating a fresh virtual environment (to pick up the new dependency updates) was this exciting looking error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;wlach@antwerp bigquery-etl % ./bqetl --help
Traceback (most recent call last):
  ...
  File "/Users/wlach/src/bigquery-etl/venv/lib/python3.9/site-packages/google/cloud/bigquery_v2/types/__init__.py", line 16, in &amp;lt;module&amp;gt;
    from .encryption_config import EncryptionConfiguration
  File "/Users/wlach/src/bigquery-etl/venv/lib/python3.9/site-packages/google/cloud/bigquery_v2/types/encryption_config.py", line 26, in &amp;lt;module&amp;gt;
    class EncryptionConfiguration(proto.Message):
  File "/Users/wlach/src/bigquery-etl/venv/lib/python3.9/site-packages/proto/message.py", line 200, in __new__
    file_info = _file_info._FileInfo.maybe_add_descriptor(filename, package)
  File "/Users/wlach/src/bigquery-etl/venv/lib/python3.9/site-packages/proto/_file_info.py", line 42, in maybe_add_descriptor
    descriptor=descriptor_pb2.FileDescriptorProto(
TypeError: descriptor to field 'google.protobuf.FileDescriptorProto.name' doesn't apply to 'FileDescriptorProto' object&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id="what-i-did"&gt;What I did&lt;/h2&gt;

&lt;p&gt;Since we have pretty decent continuous integration at Mozilla, when I see an error like this I am usually pretty sure it&amp;rsquo;s some kind of strange interaction between my local development environment and whatever dependencies we&amp;rsquo;ve specified for the repository in question. Usually these problems are pretty easy to solve.&lt;/p&gt;

&lt;p&gt;First thing I tried was to type the error into Google, to see if this had come up for anyone else before. I tried several variations of &lt;code&gt;TypeError: descriptor to field&lt;/code&gt; and &lt;code&gt;FileDescriptorProto&lt;/code&gt; and nothing really turned up. This strategy almost always turns up &lt;em&gt;something&lt;/em&gt;. When it doesn&amp;rsquo;t it usually indicates that something pretty strange is happening.&lt;/p&gt;

&lt;p&gt;To see if this was a strange problem particular to &lt;em&gt;us&lt;/em&gt;, I asked on our internal channel but no one had offhand seen or heard of this error either. One of my colleagues (who had a working setup on a Mac, the same environment I was using) suggested I set up &lt;a href="https://github.com/pyenv/pyenv"&gt;pyenv&lt;/a&gt; to isolate my development environment, which was a good idea but did not seem to solve the problem: both Python 3.8 and 3.9 installed via pyenv ran into the exact same issue.&lt;/p&gt;

&lt;p&gt;After flailing around trying a number of other failed approaches (maybe I need to upgrade the version of virtualenv that we&amp;rsquo;re using?), I broke down and looked harder at the error itself. It seemed to be some kind of typing error in Google&amp;rsquo;s protobuf library, which google-cloud-bigquery is calling. If this sort of thing was happening to &lt;em&gt;everyone&lt;/em&gt;, we probably would have seen it happening more broadly. So my guess, again, was that it was happening due to an obscure interaction between some variable on my machine and this particular combination of dependencies.&lt;/p&gt;

&lt;p&gt;At this point, I systematically went through our set of python dependencies to see what might be the matter. For the most part, I found nothing surprising or suspicious. &lt;code&gt;google-api-core&lt;/code&gt; was at the latest version, as was &lt;code&gt;google-cloud-bigquery&lt;/code&gt;. However, I &lt;em&gt;did&lt;/em&gt; notice that the version of &lt;a href="https://pypi.org/project/protobuf/"&gt;protobuf&lt;/a&gt; we were using was a little older (3.15.8 when the latest &amp;ldquo;official&amp;rdquo; version on pypi was 3.17.3).&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/08/pypi-screenshot.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;It seemed like a longshot that the problem was there, but it seemed like upgrading the dependency was worth a try just in case. So I bumped the version of protobuf to the latest version in my local checkout (&lt;code&gt;pip install protobuf==3.17.3&lt;/code&gt;)&amp;hellip;&lt;/p&gt;

&lt;p&gt;&amp;hellip; and sure enough, after doing so, the problem was fixed and &lt;code&gt;./bqetl --help&lt;/code&gt; started working again:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;wlach@antwerp bigquery-etl % ./bqetl --help
Usage: bqetl [OPTIONS] COMMAND [ARGS]...

  CLI tools for working with bigquery-etl.

...&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After doing so, I did up a quick &lt;a href="https://github.com/mozilla/bigquery-etl/pull/2266"&gt;pull request&lt;/a&gt; and the problem is now fixed, at least for me.&lt;/p&gt;

&lt;p&gt;It&amp;rsquo;s a bit unfortunate that &lt;a href="https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates"&gt;dependabot&lt;/a&gt; (which we have configured for this repository) didn&amp;rsquo;t send an update for protobuf, which would have fixed this problem earlier.&lt;sup&gt;&lt;a href="#2021-08-16-python-dependency-gotchas-always-go-to-the-source-footnote-1-definition" name="2021-08-16-python-dependency-gotchas-always-go-to-the-source-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt; It seems like it&amp;rsquo;s not completely reliable for python packages, for whatever reason: I have also noticed this problem with &lt;a href="https://github.com/mozilla/mozregression"&gt;mozregression&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I &lt;em&gt;suspect&lt;/em&gt; (though can&amp;rsquo;t confirm) that the problem here is a backwards-incompatible change made to either &lt;code&gt;protobuf&lt;/code&gt; or one of the packages that uses it. However, the nature of the incompatibility seems subtle: bigquery-etl works fine with the old set of dependencies we run in continuous integration and it appears to only come up in specific circumstances (i.e. mine). Unfortunately, I need to get back to what I was &lt;em&gt;actually&lt;/em&gt; planning to work on and don&amp;rsquo;t have time to unwind the rather set of complex interactions going on here. Maybe later!&lt;/p&gt;

&lt;h2 id="what-i-would-have-done-differently"&gt;What I would have done differently&lt;/h2&gt;

&lt;p&gt;This kind of illustrates (again) to me that while some shortcuts and heuristics can save a bunch of time and mental effort (Googling things all the time is basically standard practice in the industry at this point), sometimes you really just need to start a little closer at the problem to find a solution. I was hesitant to do this in this case because I&amp;rsquo;m never sure where those kinds of rabbit holes are going to take me (e.g. I &lt;a href="https://github.com/mozilla/telemetry-airflow/issues/844"&gt;spent several days&lt;/a&gt; debugging a bad interaction between Kubernetes and our airflow cluster in late 2019 with not much to show for the effort), but often all it takes is understanding the general shape of the problem to move you to a quick solution.&lt;/p&gt;

&lt;h2 id="other-lessons"&gt;Other lessons&lt;/h2&gt;

&lt;p&gt;Here&amp;rsquo;s a couple of other things this experience reinforced for me (these are more subjective, take them or leave them):&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Local development environments are kind of a waste of time. The above work took me several hours and it&amp;rsquo;s going to result in ~zero user-visible improvements for anyone outside of Mozilla Data Engineering. I&amp;rsquo;m excited about the potential productivity improvements that might come from using tools like &lt;a href="https://github.com/features/codespaces"&gt;GitHub Codespaces&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;While I can&amp;rsquo;t confirm this was the source of the problem in this particular case, in general backwards compatibility &lt;em&gt;on every level&lt;/em&gt; is super important when your software has broad reach and doubly so if it&amp;rsquo;s a widely-used dependency of other software (and is thus hard to reason about in isolation). In these cases, what seems like a trivial change (e.g. improving the type signatures inside a Python library) can squander many hours of people&amp;rsquo;s time if you&amp;rsquo;re not careful. Backwards-incompatible changes, however innocuous they may seem, should always invoke &lt;a href="https://semver.org/"&gt;a major version bump&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;Likewise, bugs in software that have broad usage (like dependabot) can have big downstream impacts. If dependabot&amp;rsquo;s version bumping for python was more reliable, we likely wouldn&amp;rsquo;t have had this problem. The glass-half-full interpretation of this is that fixing these types of issues would have an outsized benefit for the commons.&lt;/li&gt;&lt;/ul&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-08-16-python-dependency-gotchas-always-go-to-the-source-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;As an aside, the main reason we use dependabot and aggressively update packages like &lt;code&gt;google-api-core&lt;/code&gt; is due to a &lt;a href="https://github.com/pypa/pip/issues/9644"&gt;bug in pip&lt;/a&gt;.&amp;nbsp;&lt;a href="#2021-08-16-python-dependency-gotchas-always-go-to-the-source-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">Lightweight dashboards and reports with Irydium and surge.sh</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/08/lightweight-dashboards-and-reports-with-irydium-and-surge-sh/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-08-lightweight-dashboards-and-reports-with-irydium-and-surge-sh</id>
  <published>2021-08-03T15:37:35Z</published>
  <updated>2021-08-03T15:37:35Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;One of my main goals with &lt;a href="https://irydium.dev"&gt;Irydium&lt;/a&gt; is to allow it to be a part of as many data science and engineering workflows as possible (including ones I haven&amp;rsquo;t thought of). Yes, like &lt;a href="https://alpha.iodide.io"&gt;Iodide&lt;/a&gt; and other products, I am (slowly) building a web-based interface for building and sharing dashboards, reports, and similar things. However, I also want to fully support local and command-line based workflows. Beyond the obvious utility of being able to use your favorite text-editor to create documents, this also opens up the possibility of combining Irydium with other tools and workflows. For a slightly longer exposition on why this is desirable, I would highly recommend reading Ryan Harter&amp;rsquo;s post on the subject: &lt;a href="https://blog.harterrt.com/coding_in_textboxes.html"&gt;Don&amp;rsquo;t make me code in your text box&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="using-the-irydium-template"&gt;Using the irydium template&lt;/h2&gt;

&lt;p&gt;To make getting started easier, I just created an &lt;a href="https://github.com/irydium/irydium-template"&gt;irydium-template&lt;/a&gt;: a simple GitHub repository which contains a minimal markdown document (a &lt;a href="https://www.economist.com/big-mac-index"&gt;big mac index&lt;/a&gt; visualization) which you can use as a base, as well as a bit of npm scaffolding to get you up and running quickly. To check it out via the console, I recommend using &lt;a href="https://github.com/Rich-Harris/degit"&gt;degit&lt;/a&gt; (the tool of choice for such things in the Svelte community):&lt;/p&gt;

&lt;div class="brush: bash"&gt;
 &lt;div class="colorful"&gt;
  &lt;pre&gt;&lt;span&gt;&lt;/span&gt;npx&lt;span class="w"&gt; &lt;/span&gt;degit&lt;span class="w"&gt; &lt;/span&gt;git@github.com:irydium/irydium-template.git&lt;span class="w"&gt; &lt;/span&gt;my-notebook
npm&lt;span class="w"&gt; &lt;/span&gt;install
npm&lt;span class="w"&gt; &lt;/span&gt;run&lt;span class="w"&gt; &lt;/span&gt;dev
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;

&lt;p&gt;This will create a webserver which renders the document (index.md) at port 3000, along with some debugging options. As you edit and save the document, the site should update automatically.&lt;/p&gt;

&lt;h2 id="publishing-your-work"&gt;Publishing your work&lt;/h2&gt;

&lt;p&gt;When you&amp;rsquo;re happy with the results, you can create a static version of the site (an &lt;code&gt;index.html&lt;/code&gt; file) by running &lt;code&gt;npm run build&lt;/code&gt;. You can publish this via whatever you like: GitHub pages, Netlify / Vercel or&amp;hellip; my new favorite service, &lt;a href="https://surge.sh"&gt;surge.sh&lt;/a&gt;. Surge provides a really simple hosting service for hosting static sites and works great with Irydium. Installing &lt;em&gt;and&lt;/em&gt; running it locally is two commands:&lt;/p&gt;

&lt;div class="brush: bash"&gt;
 &lt;div class="colorful"&gt;
  &lt;pre&gt;&lt;span&gt;&lt;/span&gt;npm&lt;span class="w"&gt; &lt;/span&gt;install&lt;span class="w"&gt; &lt;/span&gt;-g&lt;span class="w"&gt; &lt;/span&gt;surge
surge
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;

&lt;p&gt;Surge will prompt you for an email and a password, then will automatically publish your site at a unique URL. As an example, I published a site for the above template: &lt;a href="https://few-blade.surge.sh"&gt;few-blade.surge.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Interested in chatting more about this? Feel free to reach out on the &lt;a href="https://gitter.im/irydium/community"&gt;Irydium Gitter chat&lt;/a&gt;.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Irydium @ Recurse Updates</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/07/irydium-recurse-updates/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-07-irydium-recurse-updates</id>
  <published>2021-07-28T19:16:42Z</published>
  <updated>2021-07-28T19:16:42Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Some quick updates on where &lt;a href="https://irydium.dev"&gt;Irydium&lt;/a&gt; is at, roughly a week-and-a-half before my mini-sabbatical at the &lt;a href="https://recurse.com"&gt;Recurse Centre&lt;/a&gt; ends.&lt;/p&gt;

&lt;h2 id="jupyterbook-and-myst"&gt;JupyterBook and MyST&lt;/h2&gt;

&lt;p&gt;I&amp;rsquo;d been admiring &lt;a href="https://jupyterbook.org"&gt;JupyterBook&lt;/a&gt; from afar for some time: their project philosophy appealed to me greatly. In particular, the &lt;a href="https://myst-parser.readthedocs.io/"&gt;MyST extensions&lt;/a&gt; to markdown seemed like a natural fit for this project and a natural point of collaboration and cross-pollination. A couple of weeks ago, I finally got in touch with some people working on that project, which prompted a few small efforts:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="https://github.com/executablebooks/myst-vs-code/pull/32"&gt;Adding Svelte support to VSCode&amp;rsquo;s MyST Plugin&lt;/a&gt;, which in turn prompted me to figure out &lt;a href="https://github.com/sveltejs/language-tools/issues/1094"&gt;why the VSCode plugin for Svelte doesn&amp;rsquo;t render inline content correctly&lt;/a&gt; (tl;dr: probably a bug in VSCode?)&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://irydium.dev/examples#myst-directives"&gt;Adding support for a couple of MyST&amp;rsquo;s built-in directives&lt;/a&gt; (&amp;ldquo;warning&amp;rdquo; and &amp;ldquo;note&amp;rdquo;).&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://irydium.dev/examples#myst-directives"&gt;&lt;img src="https://i.imgur.com/A24e302.png" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve become convinced that building on top of MyST is right for both Irydium and the larger community. Increasing Irydium&amp;rsquo;s support for MyST is tracked in &lt;a href="https://github.com/irydium/irydium/issues/123"&gt;irydium/irydium#123&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="using-irydium-to-build-irydium"&gt;Using Irydium to build Irydium&lt;/h2&gt;

&lt;p&gt;I&amp;rsquo;ve been spending a fair bit of time thinking of how to ma ke it easier for people to build Irydium documents through &lt;em&gt;composition&lt;/em&gt; of existing documents. Landed the first pieces of this. The first is the ability to &amp;ldquo;import&amp;rdquo; a code chunk from another irydium document. There&amp;rsquo;s a few examples of this in the new &lt;a href="https://irydium.dev/components"&gt;components section&lt;/a&gt; of irydium.dev:&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="https://i.imgur.com/y4qNTj6.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;In a sense this allows you to define a reusable piece of code along with both documentation and usage examples. I think this concept will be particularly useful for supporting language plugins (which I will write about in an upcoming post).&lt;/p&gt;

&lt;h2 id="its-a-real-project-now"&gt;It&amp;rsquo;s a real project now&lt;/h2&gt;

&lt;p&gt;I spent a bit of time last week doing some community gardening. I still consider Irydium an &amp;ldquo;experiment&amp;rdquo; but I&amp;rsquo;d like to at least open up the possibility of it being something larger. To help make that happen, I started working on some basic project governance pieces, namely:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;We have a &lt;a href="https://github.com/irydium/irydium/blob/main/CODE_OF_CONDUCT.md"&gt;code of conduct&lt;/a&gt; and &lt;a href="https://github.com/irydium/irydium/blob/main/CONTRIBUTING.md"&gt;contributing guidelines&lt;/a&gt;. I opted to go for the Contributor Covenant, which seems to be a good minimal viable social contract. I considered something proposing something more comprehensive (like the &lt;a href="https://www.rust-lang.org/policies/code-of-conduct"&gt;Rust Code of Conduct&lt;/a&gt;), but I felt that&amp;rsquo;s something for a &lt;em&gt;group&lt;/em&gt; of people to discuss and debate, should the time come where Irydium is more than a one-person show. For now, I&amp;rsquo;ll do my best to make sure that everyone in Irydium&amp;rsquo;s orbit has a good experience.&lt;/li&gt;
 &lt;li&gt;There&amp;rsquo;s a proper issues list, including some &amp;ldquo;good first bugs&amp;rdquo; for people to look at (shout out to &lt;a href="https://github.com/m-clare/"&gt;@m-clare&lt;/a&gt; for submitting the first PR to Irydium!)&lt;/li&gt;
 &lt;li&gt;We have a &lt;a href="https://gitter.im/irydium/community"&gt;channel on gitter&lt;/a&gt;, also accessible &lt;a href="https://matrix.to/#/#irydium_community:gitter.im"&gt;via Matrix&lt;/a&gt;. Come say hi!&lt;/li&gt;&lt;/ul&gt;

&lt;h2 id="next-steps"&gt;Next steps&lt;/h2&gt;

&lt;p&gt;There&amp;rsquo;s not a ton of time left at RC, so some of these things may have to be done in my spare time after the batch ends. That said, here&amp;rsquo;s my near-term roadmap:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Add support for code chunks to output content directly to the DOM (currently the only way to output to an Irydium document is through a Svelte component). This will be particularly important for Python support, where people expect the output of a cell running &lt;a href="https://github.com/altair-viz"&gt;altair&lt;/a&gt; or &lt;a href="https://github.com/matplotlib/matplotlib/"&gt;matplotlib&lt;/a&gt; to display directly in the document (as they do in Jupyter). Tracked in &lt;a href="https://github.com/irydium/irydium/issues/122"&gt;irydium/irydium#122&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;Integrate &lt;a href="https://ellx.io/"&gt;ellx.io&lt;/a&gt;&amp;rsquo;s next-generation JavaScript bundler, &lt;a href="https://github.com/dmaevsky/tokamak"&gt;tokamak&lt;/a&gt;. This should make building irydium documents much more robust and error proof and paves the way to further improvements. Special shout-out to the ellx developers for being so friendly and open to collaboration: ellx is a novel approach to application development and definitely worth checking out if you haven&amp;rsquo;t already. Tracked in &lt;a href="https://github.com/irydium/irydium/issues/125"&gt;irydium/irydium#125&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;Finish and document support for language plugins (and make another blog post especially about them, they&amp;rsquo;re cool!). Tracked in &lt;a href="https://github.com/irydium/irydium/issues/144"&gt;irydium/irydium#144&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;</content></entry>
 <entry>
  <title type="text">10 years at Mozilla</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/07/10-years-at-mozilla/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-07-10-years-at-mozilla</id>
  <published>2021-07-12T16:30:42Z</published>
  <updated>2021-07-12T16:30:42Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Yesterday (July 11, 2021) was the 10 year anniversary of starting at the Mozilla Corporation. My life has changed a &lt;em&gt;ton&lt;/em&gt; in those years: in that time I ended a marriage, changed the city in which I live two times, and took up religion&lt;sup&gt;&lt;a href="#2021-07-12-10-years-at-mozilla-footnote-1-definition" name="2021-07-12-10-years-at-mozilla-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt;. Mozilla has also changed pretty drastically in my time here, &lt;a href="https://blog.mozilla.org/blog/2020/08/11/changing-world-changing-mozilla/"&gt;especially in the last year&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Yet somehow I&amp;rsquo;m still at it, for more or less for the same reasons that led me to accept my initial offer to join the &lt;a href="https://wiki.mozilla.org/EngineeringProductivity"&gt;A-team&lt;/a&gt;.&lt;sup&gt;&lt;a href="#2021-07-12-10-years-at-mozilla-footnote-2-definition" name="2021-07-12-10-years-at-mozilla-footnote-2-return"&gt;2&lt;/a&gt;&lt;/sup&gt; The Internet has the immense potential to be a force for individual empowerment and yet more than ever, we see this technology used to consolidate unchecked power, spread misinformation, and generally exploit people. Mozilla is not perfect (no organization is: 10 years anywhere will teach you that), but it&amp;rsquo;s one of the few remaining counter-forces to these accelerating trends. While I&amp;rsquo;m currently taking a bit of a break to &lt;a href="https://wrla.ch/blog/2021/06/mini-sabbatical-and-introducing-irydium/"&gt;explore some stuff on my own&lt;/a&gt;, I am looking forward to getting back to work on &lt;a href="https://www.mozilla.org/en-CA/about/manifesto/"&gt;the mission&lt;/a&gt; when I return in mid-August.&lt;/p&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-07-12-10-years-at-mozilla-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;To the extent that Zen Buddhism is a religion.&amp;nbsp;&lt;a href="#2021-07-12-10-years-at-mozilla-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;li id="2021-07-12-10-years-at-mozilla-footnote-2-definition" class="footnote-definition"&gt;
   &lt;p&gt;I&amp;rsquo;ve since moved to &lt;a href="https://wiki.mozilla.org/Data"&gt;Data @ Mozilla&lt;/a&gt;&amp;nbsp;&lt;a href="#2021-07-12-10-years-at-mozilla-footnote-2-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">Adding persistence to Irydium with Supabase</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/07/adding-persistence-to-irydium-with-supabase/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-07-adding-persistence-to-irydium-with-supabase</id>
  <published>2021-07-05T15:09:56Z</published>
  <updated>2021-07-05T15:09:56Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Entering the second week of &lt;a href="https://recurse.com"&gt;Recurse&lt;/a&gt;. Besides orientation and a few adventures in pair programming (special shout out to &lt;a href="http://universalities.com/"&gt;Jane Adams&lt;/a&gt; for trying out Irydium with me!), I spent most of my time attempting to get document saving &amp;amp; loading working with Irydium.&lt;/p&gt;

&lt;p&gt;I learned from &lt;a href="https://alpha.iodide.io"&gt;Iodide&lt;/a&gt; that not having a good document sharing story really inhibits collaboration and sharing, which is something I explicitly want to do here at the Recurse centre (and in general for this project). That said, this isn&amp;rsquo;t actually an area I want to spend a lot of time on right now: it&amp;rsquo;s the shape of problem I&amp;rsquo;ve solved many times before (and that has been solved by many others). I&amp;rsquo;d rather spend my time over the next few weeks on things I haven&amp;rsquo;t had much of a chance to look at or pursue in my day-to-day.&lt;/p&gt;

&lt;p&gt;So, to try to keep the complexity down, I decided to take the same approach as the &lt;a href="https://svelte.dev/repl"&gt;svelte repl&lt;/a&gt;, which aims only to allow the reproduction of simple examples. It allows you to save anything you type in it and also browse anything that you had previously saved. That&amp;rsquo;s not going to replace GitHub, but it&amp;rsquo;s more than enough to get started.&lt;/p&gt;

&lt;h2 id="supabase"&gt;Supabase&lt;/h2&gt;

&lt;p&gt;So with that goal in mind, how to do go about it? If I wanted to completely fall back on my previous knowledge, I could have gone for the tried + true approach of Django / Heroku to add a persistence layer (what I did for Iodide). That would have had the benefit of being familiar but would also have increased the overall implementation complexity of Irydium considerably. In the past year, I&amp;rsquo;ve become convinced that &lt;a href="https://en.wikipedia.org/wiki/Serverless_computing"&gt;serverless&lt;/a&gt; approaches to building web applications are the wave of the future, at least for applications like this one. They&amp;rsquo;re easier to set up, easier to develop, and (generally speaking) cheaper to deploy. Just before I launched, I set up &lt;a href="https://irydium.dev"&gt;irydium.dev&lt;/a&gt; as a static site on &lt;a href="https://netlify.com"&gt;Netlify&lt;/a&gt; and it&amp;rsquo;s been a great experience: deploys are super fast and it&amp;rsquo;s easy to reason about what&amp;rsquo;s going on &amp;ldquo;under the hood&amp;rdquo; (since there&amp;rsquo;s not a much of a hood to look under).&lt;/p&gt;

&lt;p&gt;With that in mind, I decided to take a (small) gamble and give &lt;a href="https://supabase.io/"&gt;Supabase&lt;/a&gt; a try for this one after determining it would be compatible with the approach I wanted to take. Supabase bills itself as a &amp;ldquo;Firebase Alternative&amp;rdquo; (&lt;a href="https://firebase.google.com/"&gt;Firebase&lt;/a&gt; is another popular solution for bootstrapping simple web applications with persistence). In contrast to Firebase, Supabase uses a standard database technologies (Postgres!) and has a nice JavaScript SDK and a bunch of well-written tutorials (including &lt;a href="https://supabase.io/docs/guides/with-svelte"&gt;one especially for Svelte&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The naive model for integrating with Supabase is pretty simple:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Set up a Supabase application, which provides you with a unique API endpoint to make web requests (this endpoint can be exposed publicly).&lt;/li&gt;
 &lt;li&gt;Have your client authenticate with an OAuth provider (e.g. GitHub, GitLab), then store an authentication token in localStorage.&lt;/li&gt;
 &lt;li&gt;You can then make requests to the above endpoint with the authentication token, which lets Supabase use row-level security to restrict modifications to the database: in this case, we can restrict users to updating their own documents.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;I&amp;rsquo;d say it probably took me 20&amp;ndash;30 hours to get the feature working end-to-end (including documentation), which wasn&amp;rsquo;t too bad. My impressions were pretty positive: the aforementioned tutorial is pretty decent, the supabase-js library provides a nice ORM-like abstraction over SQL and integrates nicely with Svelte. In general working with Supabase felt pretty familiar to me from previous experiences writing database-backed applications, which I take as a very good sign.&lt;/p&gt;

&lt;p&gt;The part that felt the weirdest was writing raw SQL to set up the &amp;ldquo;documents&amp;rdquo; table that Irydium uses: SQL is something I&amp;rsquo;m fairly used to writing because of my experiences at Mozilla, but I imagine this might be off-putting to someone newer to writing these types of things. Also, I have some concerns of how maintainable a Supabase database is over the long term: while it was easy enough to &lt;a href="https://github.com/irydium/irydium/blob/f816ea6444c94635972a57bc92d7770398117c1e/README.md#working-on-the-site"&gt;document the currently-simple setup instructions in the README&lt;/a&gt;, I do somewhat fear the prospect of managing my database via their SQL console. Something like Django&amp;rsquo;s &lt;a href="https://docs.djangoproject.com/en/3.2/topics/migrations/"&gt;schema migrations&lt;/a&gt; and &lt;a href="https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/"&gt;management commands&lt;/a&gt; would be a welcome addition to Supabase&amp;rsquo;s SDK.&lt;/p&gt;

&lt;h2 id="netlify-functions"&gt;Netlify functions&lt;/h2&gt;

&lt;p&gt;The above approach isn&amp;rsquo;t what most people would consider to be &amp;ldquo;best practice&amp;rdquo;&lt;sup&gt;&lt;a href="#2021-07-05-adding-persistence-to-irydium-with-supabase-footnote-1-definition" name="2021-07-05-adding-persistence-to-irydium-with-supabase-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt;. In particular, storing credentials in localStorage is probably not the best idea for an application presenting interactive content like Irydium: it wouldn&amp;rsquo;t be particularly difficult for a malicious document to steal someone&amp;rsquo;s secret and send it somewhere it shouldn&amp;rsquo;t be.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m not &lt;em&gt;so&lt;/em&gt; worried about it at this stage of the project, but one intriguing possibility here (that&amp;rsquo;s compatible with our current deploy set up) would be to write some simple &lt;a href="https://www.netlify.com/products/functions/"&gt;Netlify Functions&lt;/a&gt; to do the actual interaction with Supabase, while delegating to Netlify for the authentication itself (using &lt;a href="https://docs.netlify.com/visitor-access/identity/"&gt;Netlify Identity&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I experimented writing a simple function to prove out this approach and it seems to work quite well (&lt;a href="https://github.com/irydium/irydium/blob/fecea66a1cd0bedaaab4a3e6502413c55d34ec11/packages/site/netlify_functions/post.js"&gt;source&lt;/a&gt;, &lt;a href="https://irydium.dev/.netlify/functions/post?id=65107940-dd88-11eb-866c-0a4e9a1089db"&gt;example&lt;/a&gt;). This particular function is making an anonymous query to the database, but I see no obstacle to handling authenticated ones as well. Having an API under a &lt;code&gt;.netlify&lt;/code&gt; namespace seems kinda weird on first blush, but I can probably get used to it.&lt;/p&gt;

&lt;p&gt;I want to move on to other things now (parsers! document state visualizations!) but might poke at this more later. In the mean time, if you write/build something cool at &lt;a href="https://irydium.dev/repl"&gt;irydium.dev/repl&lt;/a&gt;, let me know!&lt;/p&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-07-05-adding-persistence-to-irydium-with-supabase-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;See, for example, &lt;a href="https://dev.to/rdegges/please-stop-using-local-storage-1i04"&gt;Please Stop Using Local Storage&lt;/a&gt;&amp;nbsp;&lt;a href="#2021-07-05-adding-persistence-to-irydium-with-supabase-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">Irydium: Points of departure</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/06/irydium-points-of-departure/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-06-irydium-points-of-departure</id>
  <published>2021-06-28T16:28:40Z</published>
  <updated>2021-06-28T16:28:40Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;So it&amp;rsquo;s my first day at the Recurse centre, which I &lt;a href="/blog/2021/06/mini-sabbatical-and-introducing-irydium/"&gt;blogged briefly about last week&lt;/a&gt;. I thought I&amp;rsquo;d start out by going into a bit more detail about what I&amp;rsquo;m trying to do with &lt;a href="https://github.com/irydium/irydium"&gt;Irydium&lt;/a&gt;. This post might be a bit discursive and some of my thoughts are only half-formed: my intent here is towards trying to &lt;em&gt;express some of these ideas at all&lt;/em&gt; rather than to come up with the perfect formulation for them, which is going to take time. It is based partly on a presentation I gave at Mozilla last Friday (just before going on my 6-week leave, which starts today).&lt;/p&gt;

&lt;h2 id="first-principles"&gt;First principles&lt;/h2&gt;

&lt;p&gt;The premise of Irydium is that despite obvious advances in terms of the ability of computers to crunch numbers and analyze data, our ability to share whatever we learn from these understandings is still far too difficult, especially for people new to the field. Even for domain experts (those with the job title &amp;ldquo;Data Engineer&amp;rdquo; or &amp;ldquo;Data Scientist&amp;rdquo; or similar) this is still more difficult than one would like.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve made a few observations over the past couple years of trying to explain and document Mozilla&amp;rsquo;s data platform that I think form a good starting point for trying to close the gap:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;em&gt;Text is pretty great&lt;/em&gt;.  Writing, just plain text, is (in my opinion) the single best medium for giving context to data.  In terms of raw information density and ability to communicate complex ideas, nothing beats it.  If you haven&amp;rsquo;t read it before, the essay &lt;a href="https://graydon2.dreamwidth.org/193447.html"&gt;always bet on text&lt;/a&gt; (by Graydon Hoare, creator of Rust) is well worth reading.&lt;/li&gt;
 &lt;li&gt;&lt;em&gt;Markdown is pretty great too&lt;/em&gt;.  Essentially an easy-to-write superset of HTML, it&amp;rsquo;s become the medium of choice for many desktop publishing workflows and has become the basis for many efforts in the &amp;ldquo;interactive presentation&amp;rdquo; space that I&amp;rsquo;m most interested in.&lt;/li&gt;
 &lt;li&gt;&lt;em&gt;Reactive Systems make Data Exposition Exposition Easier&lt;/em&gt;.  A reactive abstraction in front of your computational model reduces development times, makes your work more reproducible and is often easier for less-experienced people to understand.  I&amp;rsquo;d cite the long-standing success of Excel and the recent interest in projects like Observable as evidence for this.&lt;/li&gt;&lt;/ul&gt;

&lt;h2 id="ok-so-what-is-irydium"&gt;Ok, so what is Irydium?&lt;/h2&gt;

&lt;p&gt;Irydium is, at heart, a way to translate markdown documents into an interactive, compelling visual presentation.&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/06/irydium-2.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;My view is that publishing markdown text on the web is very close to a solved problem, and that we should build on that success rather than invent something new. This is not necessarily a new point of view (e.g. &lt;a href="https://rmarkdown.rstudio.com/"&gt;Rmarkdown&lt;/a&gt; and &lt;a href="https://jupyterbook.org/"&gt;JupyterBook&lt;/a&gt; have similar premises) but I think some aspects of Irydium&amp;rsquo;s approach are mildly novel (or at least within the space of &amp;ldquo;not generally accepted ideas&amp;rdquo;).&lt;/p&gt;

&lt;p&gt;If you want to get a bit of a flavor for how it works, visit the demonstration site (&lt;a href="https://irydium.dev"&gt;irydium.dev&lt;/a&gt;) and play with some of the examples.&lt;/p&gt;

&lt;h2 id="what-makes-irydium-different-from-x"&gt;What makes Irydium different from &amp;lt;X&amp;gt;?&lt;/h2&gt;

&lt;p&gt;While there are a bunch of related projects in this space, there&amp;rsquo;s a few design principles about Irydium that make it a little different from most of what&amp;rsquo;s already out there&lt;sup&gt;&lt;a href="#2021-06-28-irydium-points-of-departure-footnote-1-definition" name="2021-06-28-irydium-points-of-departure-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt;:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;em&gt;Reactive&lt;/em&gt;: Irydium is reactive in the same way that a spreadsheet is &amp;mdash; that is, any individual change you make will immediately flow to the rest of the system.  This provides a more intuitive model for the creator of the document and also makes it easier to create truly interactive visualizations.&lt;/li&gt;
 &lt;li&gt;&lt;em&gt;Idempotent&lt;/em&gt;: in Irydium, a source document will yield the same presentation every time it&amp;rsquo;s run.  There&amp;rsquo;s no need to reason about what the state of the &amp;ldquo;kernel&amp;rdquo; is.  This is a highly valuable property when thinking about how to make your analyses reproducible.&lt;/li&gt;
 &lt;li&gt;&lt;em&gt;Familiar&lt;/em&gt;: Irydium uses as few &lt;em&gt;novel&lt;/em&gt; concepts and technologies as possible: it builds on some of the best ideas and technologies produced by the open source community: &lt;a href="https://python.org"&gt;Python&lt;/a&gt;, &lt;a href="https://pyodide.org"&gt;pyodide&lt;/a&gt;, &lt;a href="https://svelte.dev"&gt;Svelte&lt;/a&gt;, &lt;a href="https://mdsvex.com"&gt;mdsvex&lt;/a&gt;, &lt;a href="https://myst-parser.readthedocs.io/en/latest/"&gt;MyST&lt;/a&gt; and a few others &amp;mdash; chosen for having a reasonably shallow learning curve.&lt;/li&gt;
 &lt;li&gt;&lt;em&gt;Hackable&lt;/em&gt;: While I&amp;rsquo;m working on an online environment to build and share irydium documents, it&amp;rsquo;s also fully possible to do so using the tools you know and love like Visual Studio Code.&lt;/li&gt;&lt;/ul&gt;

&lt;h2 id="related-projects"&gt;Related projects&lt;/h2&gt;

&lt;p&gt;With the above caveats, there are still a number of projects that overlap with Irydium&amp;rsquo;s ideas and/or design goals. A few that seem worth mentioning here:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;&lt;a href="https://alpha.iodide.io"&gt;Iodide&lt;/a&gt;: This is the obvious one, at least for those who have been following my work for a while.  Iodide was an experiment in making a &amp;ldquo;web native&amp;rdquo; version of a scientific notebook: it uses the cell-based computational model that will be familiar to anyone who&amp;rsquo;s used Jupyter, but all the computation happens on the client.  It is probably most famous for launching &lt;a href="https://pyodide.org"&gt;pyodide&lt;/a&gt;, a port of Python to WebAssembly (that Irydium now uses to support Python).  I feel like it has a number of design issues (some of which I&amp;rsquo;ve &lt;a href="/blog/2020/11/iodide-retrospective/"&gt;blogged about previously&lt;/a&gt;) and is not currently in active development.&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://observablehq.com"&gt;Observable&lt;/a&gt;: Client-side reactive notebooks, commercial backing, broadly used in the D3 community.  Shares Irydium&amp;rsquo;s reactive approach, departs from it in terms of using a custom file format and emphasizing their interactive editing and collaboration environment (which is indeed quite impressive).  I&amp;rsquo;ve used Observable for a few small work things (&lt;a href="https://observablehq.com/@wlach/mozregression-public-usage-dashboard"&gt;example&lt;/a&gt;) and while there&amp;rsquo;s a lot I like about it, I am a bit non-plussed by how many wheels it reinvents and the implicit lock-in to a single vendor.&lt;sup&gt;&lt;a href="#2021-06-28-irydium-points-of-departure-footnote-2-definition" name="2021-06-28-irydium-points-of-departure-footnote-2-return"&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://starboard.gg"&gt;Starboard&lt;/a&gt;: Similar in some ways to Iodide, but in active development.  I&amp;rsquo;ve started chatting a bit with the core developers on whether there might be areas we could collaborate.&lt;/li&gt;
 &lt;li&gt;&lt;a href="https://ellx.io/"&gt;Ellx&lt;/a&gt;: I found out a bit about this relatively recently, via the Svelte discord.  Actually very close in some ways to Irydium in terms of choices of technology (e.g. &lt;a href="https://svelte.dev"&gt;Svelte&lt;/a&gt;).  Again, in initial chats with the core developers on possible collaborations.&lt;/li&gt;&lt;/ul&gt;

&lt;h2 id="success-criteria"&gt;Success criteria&lt;/h2&gt;

&lt;p&gt;My intent with Irydium, at this point in its development, is to prove out some concepts and see where they lead. While I&amp;rsquo;d welcome it if Irydium became a successful, widely adopted environment for building interactive data visualizations, I&amp;rsquo;d also be totally happy with other outcomes, such as:&lt;/p&gt;

&lt;ol&gt;
 &lt;li&gt;Providing a source of ideas and/or code for other people.&lt;/li&gt;
 &lt;li&gt;Working on (or with) Irydium being a good learning experience both for myself and others&lt;/li&gt;&lt;/ol&gt;

&lt;hr /&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-06-28-irydium-points-of-departure-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;Please don&amp;rsquo;t conflate &amp;ldquo;unique&amp;rdquo; with &amp;ldquo;superior&amp;rdquo;: I&amp;rsquo;m well aware that all designs come with trade offs. In particular, Irydium&amp;rsquo;s approach will almost certainly make it difficult / impossible to directly interact with &amp;ldquo;big data&amp;rdquo; systems in an efficient way.&amp;nbsp;&lt;a href="#2021-06-28-irydium-points-of-departure-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;li id="2021-06-28-irydium-points-of-departure-footnote-2-definition" class="footnote-definition"&gt;
   &lt;p&gt;There is at least one effort (&lt;a href="https://github.com/asg017/dataflow"&gt;Dataflow&lt;/a&gt;) to allow editing Observable documents without using Observable itself, which is interesting.&amp;nbsp;&lt;a href="#2021-06-28-irydium-points-of-departure-footnote-2-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">Mini-sabbatical and introducing Irydium</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/06/mini-sabbatical-and-introducing-irydium/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-06-mini-sabbatical-and-introducing-irydium</id>
  <published>2021-06-23T21:15:15Z</published>
  <updated>2021-06-23T21:15:15Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Approaching my 10-year moz-iversary in July, I&amp;rsquo;ve decided it&amp;rsquo;s time to take a bit of a mini-sabbatical: I&amp;rsquo;ll be out (and trying as hard as possible not to check bugmail) from Friday, June 25th until August 9th. During this time, I&amp;rsquo;ll be doing a batch at the &lt;a href="https://recurse.com"&gt;Recurse Centre&lt;/a&gt; (something like a writer&amp;rsquo;s retreat for programmers), exploring some of my interests around data visualization and analysis that don&amp;rsquo;t quite fit into my role as a Data Engineer here at Mozilla.&lt;/p&gt;

&lt;p&gt;In particular, I&amp;rsquo;m planning to work a bunch on a project tentatively called &amp;ldquo;Irydium&amp;rdquo;, which pursues some of the ideas I &lt;a href="https://wrla.ch/blog/2020/11/iodide-retrospective/"&gt;sketched out last year in my Iodide retrospective&lt;/a&gt; and a few more besides. I&amp;rsquo;ve been steadily working on it in my off hours, but it&amp;rsquo;s become clear that some of the things I want to pursue would benefit from more dedicated attention and the broader perspective that I&amp;rsquo;m hoping the Recurse community will be able to provide.&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/06/irydium.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;I had meant to write up a proper blog post to announce the project before I left, but it looks like I&amp;rsquo;m pretty much out of time. Instead, I&amp;rsquo;ll just offer up the examples on the newly-minted &lt;a href="https://irydium.dev"&gt;irydium.dev&lt;/a&gt; and invite people to contact me if any of the ideas on the site sounds interesting. I&amp;rsquo;m hoping to blog a whole bunch while I&amp;rsquo;m there, but probably not under the Mozilla tag. Feel free to add wrla.ch to your RSS feed if you want to follow what I&amp;rsquo;m up to!&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Glean Dictionary updates</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/06/glean-dictionary-updates/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-06-glean-dictionary-updates</id>
  <published>2021-06-02T16:01:52Z</published>
  <updated>2021-06-02T16:01:52Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;(&lt;a href="https://blog.mozilla.org/data/2021/06/02/this-week-in-glean-glean-dictionary-updates/"&gt;this is a cross-post from the data blog&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Lots of progress on the Glean Dictionary since I made the initial release announcement a couple of months ago. For those coming in late, the Glean Dictionary is intended to be a &lt;a href="https://en.wikipedia.org/wiki/Data_dictionary"&gt;data dictionary&lt;/a&gt; for applications built using the &lt;a href="https://mozilla.github.io/glean"&gt;Glean SDK&lt;/a&gt; and &lt;a href="https://github.com/mozilla/glean.js/"&gt;Glean.js&lt;/a&gt;. This currently includes Firefox for Android and Firefox iOS, as well as newer initiatives like &lt;a href="https://rally.mozilla.org"&gt;Rally&lt;/a&gt;. Desktop Firefox &lt;em&gt;will&lt;/em&gt; use Glean in the future, see &lt;a href="https://firefox-source-docs.mozilla.org/toolkit/components/glean/index.html"&gt;Firefox on Glean (FoG)&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="production-url"&gt;Production URL&lt;/h2&gt;

&lt;p&gt;We&amp;rsquo;re in production! You can now access the Glean Dictionary at &lt;a href="https://dictionary.telemetry.mozilla.org"&gt;dictionary.telemetry.mozilla.org&lt;/a&gt;. The old protosaur-based URL will redirect.&lt;/p&gt;

&lt;h2 id="glean-dictionary--looker--"&gt;Glean Dictionary + Looker = ❤️&lt;/h2&gt;

&lt;p&gt;At the end of last year, Mozilla chose &lt;a href="https://looker.com"&gt;Looker&lt;/a&gt; as our internal business intelligence tool. Frank Bertsch, Daniel Thorn, Anthony Miyaguchi and others have been building out first class support for Glean applications inside this platform, and we&amp;rsquo;re starting to see these efforts bear fruit. Looker&amp;rsquo;s explores are far easier to use for basic data questions, opening up data based inquiry to a much larger cross section of Mozilla.&lt;/p&gt;

&lt;p&gt;I recorded a quick example of this integration here:&lt;/p&gt;

&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/B635wgZy7Iw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"&gt;&lt;/iframe&gt;

&lt;p&gt;Note that Looker access is restricted to Mozilla employees and NDA&amp;rsquo;d volunteers. Stay tuned for &lt;a href="https://docs.telemetry.mozilla.org/cookbooks/public_data.html"&gt;more public data&lt;/a&gt; to be indexed inside the Glean Dictionary in the future.&lt;/p&gt;

&lt;h2 id="glean-annotations"&gt;Glean annotations!&lt;/h2&gt;

&lt;p&gt;I did up the first cut of a GitHub-based system for adding annotations to metrics &amp;mdash; acting as a knowledge base for things data scientists and others have discovered about Glean Telemetry in the field. This can be &lt;em&gt;invaluable&lt;/em&gt; when doing new analysis. A good example of this is the annotation added for the &lt;a href="https://dictionary.telemetry.mozilla.org/apps/firefox_ios/metrics/app_opened_as_default_browser"&gt;opened as default browser&lt;/a&gt; metric for Firefox for iOS, which has several gotchas:&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/06/annotations-example.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;Many thanks to Krupa Raj and Leif Oines for producing the requirements which led up to this implementation, as well as their evangelism of this work more generally inside Mozilla. Last month, Leif and I did a presentation about this at Data Club, which has been syndicated onto YouTube:&lt;/p&gt;

&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/aGjrXhXNRq8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"&gt;&lt;/iframe&gt;

&lt;p&gt;Since then, we&amp;rsquo;ve had a very successful working session with some people Data Science and have started to fill out an initial set of annotations. You can see the progress in the &lt;a href="https://github.com/mozilla/glean-annotations"&gt;glean-annotations&lt;/a&gt; repository.&lt;/p&gt;

&lt;h2 id="other-improvements"&gt;Other Improvements&lt;/h2&gt;

&lt;p&gt;Lots more miscellaneous improvements and fixes have gone into the Glean Dictionary in the last several months: see our &lt;a href="https://github.com/mozilla/glean-dictionary/releases"&gt;releases&lt;/a&gt; for a full list. One thing that irrationally pleases me are the &lt;a href="https://github.com/mozilla/glean-dictionary/pull/626"&gt;new labels Linh Nguyen added last week&lt;/a&gt;: colorful and lively, they make it easy to see when a Glean Metric is coming from a library:&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/06/labels-example.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;h2 id="future-work"&gt;Future work&lt;/h2&gt;

&lt;p&gt;The Glean Dictionary is just getting started! In the next couple of weeks, we&amp;rsquo;re hoping to:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Expand the Looker integration outlined above, as our deploy takes more shape.&lt;/li&gt;
 &lt;li&gt;Work on adding &amp;ldquo;feature&amp;rdquo; classification to the Glean Dictionary, to make it easier for product managers and other non-engineering types to quickly find the metrics and other information they need without needing to fully understand what&amp;rsquo;s in the source tree.&lt;/li&gt;
 &lt;li&gt;Continue to refine the user interface of the Glean Dictionary as we get more feedback from people using it across Mozilla.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;If you&amp;rsquo;re interested in getting involved, join us! The Glean Dictionary is developed in the open using cutting edge front-end technologies like &lt;a href="https://svelte.dev"&gt;Svelte&lt;/a&gt;. Our conviction is that being transparent about the data Mozilla collects helps us build trust with our users and the community. We&amp;rsquo;re a friendly group and hang out on the &lt;a href="https://chat.mozilla.org/#/room/#glean-dictionary:mozilla.org"&gt;#glean-dictionary channel&lt;/a&gt; on Matrix.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">mozregression update May 2021</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/05/mozregression-update-may-2021/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-05-mozregression-update-may-2021</id>
  <published>2021-05-10T13:56:43Z</published>
  <updated>2021-05-10T13:56:43Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;Just wanted to give some quick updates on the state of &lt;a href="https://mozilla.github.io/mozregression"&gt;mozregression&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="anti-virus-false-positives"&gt;Anti-virus false positives&lt;/h2&gt;

&lt;p&gt;One of the persistent issues with mozregression is that it seems to be &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1647533"&gt;persistently detected as a virus by many popular anti-virus scanners&lt;/a&gt;. The causes for this are somewhat complex, but at root the problem is that mozregression requires fairly broad permissions to do the things it needs to do (install and run copies of Firefox) and thus its behavior is hard to distinguish from a piece of software doing something malicious.&lt;/p&gt;

&lt;p&gt;Recently there have been a number of mitigations which seem to be improving this situation:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;:bryce has been submitting copies of mozregression to Microsoft so that Windows Defender (probably the most popular anti-virus software on this platform) doesn&amp;rsquo;t flag it.&lt;/li&gt;
 &lt;li&gt;I recently &lt;a href="https://github.com/mozilla/mozregression/releases"&gt;released mozregression 4.0.17&lt;/a&gt;, which upgrades the GUI dependency for pyinstaller to a later version which sets PE checksums correctly on the generated executable (&lt;a href="https://github.com/pyinstaller/pyinstaller/issues/5579"&gt;pyinstaller/pyinstaller#5579&lt;/a&gt;).&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;It&amp;rsquo;s tempting to lament the fact that this is happening, but in a way I can understand it&amp;rsquo;s hard to reliably detect what kind of software is legitimate and what isn&amp;rsquo;t. I take the responsibility for distributing this kind of software seriously, and have pretty strict limits on who has access to the mozregression GitHub repository and what pull requests I&amp;rsquo;ll merge.&lt;/p&gt;

&lt;h2 id="ci-ported-to-github-actions"&gt;CI ported to GitHub Actions&lt;/h2&gt;

&lt;p&gt;Due to changes in Travis&amp;rsquo;s policies, we needed to migrate continuous integration for mozregression to GitHub actions. You can see the gory details in &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1686039"&gt;bug 1686039&lt;/a&gt;. One possibly interesting wrinkle to others: due to Mozilla&amp;rsquo;s security policy, we can&amp;rsquo;t use (most) external actions inside our GitHub repository. I thus rewrote the logic for uploading a mozregression release to GitHub for MacOS and Linux GUI builds (Windows builds are still happening via &lt;a href="https://www.appveyor.com/"&gt;AppVeyor&lt;/a&gt; for now) &lt;a href="https://github.com/mozilla/mozregression/blob/495ef37e701709dce3a4b76ea67ec5b1f26043be/.github/workflows/build.yml#L86"&gt;from scratch&lt;/a&gt;. Feel free to check the above out if you have a similar need.&lt;/p&gt;

&lt;h2 id="macos-big-sur"&gt;MacOS Big Sur&lt;/h2&gt;

&lt;p&gt;As of version 4.0.17, the mozregression GUI now works on MacOS Big Sur. It is safe to ask community members to install and use it on this platform (though &lt;a href="https://mozilla.github.io/mozregression/install.html#mozregression-gui"&gt;note the caveats&lt;/a&gt; due to the bundle being unsigned).&lt;/p&gt;

&lt;h2 id="usage-dashboard"&gt;Usage Dashboard&lt;/h2&gt;

&lt;p&gt;Fulfilling a promise I implied last year, I created a &lt;a href="https://docs.telemetry.mozilla.org/cookbooks/public_data.html"&gt;public dataset&lt;/a&gt; for mozregression and created an &lt;a href="https://observablehq.com/@wlach/mozregression-public-usage-dashboard"&gt;dashboard tracking mozregression use&lt;/a&gt; using &lt;a href="https://observablehq.com/"&gt;Observable&lt;/a&gt;. There are a few interesting insights and trends there that can be gleaned from our telemetry. I&amp;rsquo;d be curious if the community can find any more!&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Blog moving back to wrla.ch</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/03/blog-moving-back-to-wrla-ch/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-03-blog-moving-back-to-wrla-ch</id>
  <published>2021-03-21T07:12:19Z</published>
  <updated>2021-03-21T07:12:19Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;House keeping news: I&amp;rsquo;m moving this blog back to the &lt;a href="https://wrla.ch"&gt;wrla.ch&lt;/a&gt; domain from wlach.github.io. This domain sorta kinda worked before (I set up a &lt;a href="https://netlify.com"&gt;netlify&lt;/a&gt; deploy a couple years ago), but the software used to generate this blog referenced github all over the place in its output, so it didn&amp;rsquo;t really work as you&amp;rsquo;d expect. Anyway, this will be the last entry published on wlach.github.io: my plan is to turn that domain into a set of redirects in the future.&lt;/p&gt;

&lt;p&gt;I don&amp;rsquo;t know how many of you are out there who still use RSS, but if you do, please update your feeds. I have filed a bug to update my Planet Mozilla entry, so hopefully the change there will be seamless.&lt;/p&gt;

&lt;p&gt;Why? Recent events have made me not want to tie my public web presence to a particular company (especially a larger one, like Microsoft). I don&amp;rsquo;t have any immediate plans to move this blog off of github, but this gives me that option in the future. For those wondering, the original rationale for moving &lt;em&gt;to&lt;/em&gt; github is in &lt;a href="/blog/2016/01/new-year-new-blog/"&gt;this post&lt;/a&gt;. Looking back, the idea of moving away from a VPS and WordPress made sense, the move away from my own domain less so. I think it may have been harder to set up static hosting (esp. with HTTPS) at that time&amp;hellip; or I might have just been ignorant.&lt;/p&gt;

&lt;p&gt;In related news, I decided to reactivate my twitter account: you can once again find me there as &lt;a href="https://twitter.com/wrlach"&gt;@wrlach&lt;/a&gt; (my old username got taken in my absence). I&amp;rsquo;m not totally thrilled about this (I basically stand by what I wrote a &lt;a href="/blog/2018/01/quitting-twitter/"&gt;few years ago&lt;/a&gt;, except maybe the concession I made to Facebook being &amp;ldquo;ok&amp;rdquo;), but Twitter seems to be where my industry peers are. As someone who doesn&amp;rsquo;t have a large organic following, I&amp;rsquo;ve come to really value forums where I can share my work. That said, I&amp;rsquo;m going to be very selective about what I engage with on that site: I appreciate your understanding.&lt;/p&gt;</content></entry>
 <entry>
  <title type="text">Community @ Mozilla: People First, Open Source Second</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/02/community-mozilla-people-first-open-source-second/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-02-community-mozilla-people-first-open-source-second</id>
  <published>2021-02-24T14:08:16Z</published>
  <updated>2021-02-24T14:08:16Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;It&amp;rsquo;s coming up on ten years at Mozilla for me, by far the longest I&amp;rsquo;ve held any job personally and exceedingly long by the standards of the technology industry. When I joined up in Summer 2011 to work on &lt;a href="https://wiki.mozilla.org/EngineeringProductivity"&gt;Engineering Productivity&lt;/a&gt;&lt;sup&gt;&lt;a href="#2021-02-24-community-mozilla-people-first-open-source-second-footnote-1-definition" name="2021-02-24-community-mozilla-people-first-open-source-second-footnote-1-return"&gt;1&lt;/a&gt;&lt;/sup&gt;, I really did see it as a dream job: I&amp;rsquo;d be paid to work full time on free software, which (along with open data and governance) I genuinely saw as one of the best hopes for the future. I was somewhat less sure about Mozilla&amp;rsquo;s &amp;ldquo;mission&amp;rdquo;: the notion of protecting the &amp;ldquo;open web&amp;rdquo; felt nebulous and ill-defined and the &lt;a href="https://www.mozilla.org/en-CA/about/manifesto/"&gt;Mozilla Manifesto&lt;/a&gt; seemed vague when it departed from the practical aspects of shipping a useful open source product to users.&lt;/p&gt;

&lt;p&gt;It seems ridiculously naive in retrospect, but I can remember thinking at the time that the right amount of &amp;ldquo;open source&amp;rdquo; would solve all the problems. What can I say? It was the era of the &lt;a href="https://en.wikipedia.org/wiki/Arab_Spring"&gt;Arab Spring&lt;/a&gt;, WikiLeaks had not yet become a scandal, Google still felt like something of a benevolent upstart, even Facebook&amp;rsquo;s mission of &amp;ldquo;making the world more connected&amp;rdquo; sounded great to me at the time. If we could just push more things out in the open, then the right solutions would become apparent and fixing the structural problems society was facing would become easy!&lt;/p&gt;

&lt;p&gt;What a difference a decade makes. The events of the last few years have demonstrated (conclusively, in my view) that open systems aren&amp;rsquo;t necessarily a protector against abuse by governments, technology monopolies and ill-intentioned groups of individuals alike. Amazon, Google and Facebook are (still) some of the top contributors to key pieces of open source infrastructure but it&amp;rsquo;s now beyond any doubt that they&amp;rsquo;re &lt;em&gt;also&lt;/em&gt; responsible for amplifying a very large share of the problems global society is experiencing.&lt;/p&gt;

&lt;p&gt;At the same time, some of the darker sides of open source software development have become harder and harder to ignore. In particular:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Harassment and micro aggressions inside open source communities is rampant: aggressive behaviour in issue trackers, personal attacks on discussion forums, the list goes on. Women and non-binary people are disproportionately affected, although this behaviour exacts a psychological toll on everyone.&lt;/li&gt;
 &lt;li&gt;Open source software as exploitation: I&amp;rsquo;ve worked with &lt;em&gt;lots&lt;/em&gt; of contributors while at Mozilla. It&amp;rsquo;s hard to estimate this accurately, but based on some back-of-the-envelope calculations, I&amp;rsquo;d estimate that the efforts of community volunteers on projects I&amp;rsquo;ve been involved in have added up to (conservatively) to hundreds of thousands of U.S. dollars in labour which has never been directly compensated monetarily. Based on this experience (as well as what I&amp;rsquo;ve observed elsewhere), I&amp;rsquo;d argue that Mozilla as a whole could not actually &lt;em&gt;survive&lt;/em&gt; on a sustained basis without unpaid work, which (at least on its face) seems highly problematic and creates a lingering feeling of guilt given how much I&amp;rsquo;ve benefited financially from my time here.&lt;/li&gt;
 &lt;li&gt;It&amp;rsquo;s a road to burnout. Properly managing and nurturing an open source community is deeply complex work, involving a sustained amount of both attention and &lt;a href="https://en.wikipedia.org/wiki/Emotional_labor"&gt;emotional labour&lt;/a&gt; &amp;mdash; this is difficult &lt;a href="https://noidea.dog/glue"&gt;glue work&lt;/a&gt; that is not always recognized or supported by peers or management. Many of the people I&amp;rsquo;ve met over the years (community volunteers and Mozilla employees alike) have ended up feeling like it just isn&amp;rsquo;t worth the effort and have either stopped doing it or have outright left Mozilla. If it weren&amp;rsquo;t for an intensive meditation practice which I established around the time I started working here, I suspect I would have been in this category by now.&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;All this has led to a personal crisis of faith. Do openness and transparency inherently lead to bad outcomes? Should I continue to advocate for it in my position? As I mentioned above, the opportunity to work in the open with the community is the main thing that brought me to Mozilla&amp;mdash; if I can&amp;rsquo;t find a way of incorporating this viewpoint into my work, what am I even doing here?&lt;/p&gt;

&lt;p&gt;Trying to answer these questions, I went back to the manifesto that I just skimmed over in my early days. Besides openness &amp;mdash; what are Mozilla&amp;rsquo;s values, really, and do I identify with them? Immediately I was struck by how much it felt like it was written &lt;em&gt;explicitly for&lt;/em&gt; the present moment (even aside from the &lt;a href="https://blog.mozilla.org/blog/2018/03/29/mozilla-marks-20th-anniversary-commitment-better-human-experiences-online/"&gt;addendums&lt;/a&gt; which were added in 2018). Many points seem to confront problems we&amp;rsquo;re grappling with now which I was only beginning to perceive ten years ago.&lt;/p&gt;

&lt;p&gt;Beyond that, there was also something that resonated with me on a deeper level. There were a few points, highlighted in bold, that really stood out:&lt;/p&gt;

&lt;ol&gt;
 &lt;li&gt;The internet is an integral part of modern life—a key component in education, communication, collaboration, business, entertainment and society as a whole.&lt;/li&gt;
 &lt;li&gt;The internet is a global public resource that must remain open and accessible.&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;The internet must enrich the lives of individual human beings.&lt;/strong&gt;&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;Individuals’ security and privacy on the internet are fundamental and must not be treated as optional.&lt;/strong&gt;&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;Individuals must have the ability to shape the internet and their own experiences on the internet.&lt;/strong&gt;&lt;/li&gt;
 &lt;li&gt;The effectiveness of the internet as a public resource depends upon interoperability (protocols, data formats, content), innovation and decentralized participation worldwide.&lt;/li&gt;
 &lt;li&gt;Free and open source software promotes the development of the internet as a public resource.&lt;/li&gt;
 &lt;li&gt;Transparent community-based processes promote participation, accountability and trust.&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;Commercial involvement in the development of the internet brings many benefits; a balance between commercial profit and public benefit is critical.&lt;/strong&gt;&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;Magnifying the public benefit aspects of the internet is an important goal, worthy of time, attention and commitment.&lt;/strong&gt;&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;I think it&amp;rsquo;s worth digging beneath the surface of these points: what is the underlying value system behind them? I&amp;rsquo;d argue it&amp;rsquo;s this, simply put: &lt;em&gt;human beings really do matter&lt;/em&gt;. They&amp;rsquo;re not just line items in a spreadsheet or some other resource to be optimized. They are an end in of themselves. &lt;em&gt;People&lt;/em&gt; (more so than a software development methodology) are the reason why I show up every day to do the work that I do. This is really an absolute which has enduring weight: it&amp;rsquo;s a foundational truth of every major world religion to say nothing of modern social democracy.&lt;/p&gt;

&lt;p&gt;What does working and building in then open mean then? As we&amp;rsquo;ve seen above, it certainly isn&amp;rsquo;t something I&amp;rsquo;d consider &amp;ldquo;good&amp;rdquo; all by itself. Instead, I&amp;rsquo;d suggest it&amp;rsquo;s a &lt;em&gt;strategy&lt;/em&gt; which (if we&amp;rsquo;re going to follow it) should &lt;em&gt;come out&lt;/em&gt; of that underlying recognition of the worth of Mozilla&amp;rsquo;s employees, community members, and users. Every single one of these people matter, deeply. I&amp;rsquo;d argue then, that Mozilla should consider the following factors in terms of how we work in the open:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Are our spaces&lt;sup&gt;&lt;a href="#2021-02-24-community-mozilla-people-first-open-source-second-footnote-2-definition" name="2021-02-24-community-mozilla-people-first-open-source-second-footnote-2-return"&gt;2&lt;/a&gt;&lt;/sup&gt; generally safe for people of all backgrounds to be their authentic selves? This not only means free from sexual harassment and racial discrimination, but also that they&amp;rsquo;re able to work to their full potential. This means creating opportunities for &lt;em&gt;everyone&lt;/em&gt; to &lt;a href="/blog/2018/11/making-contribution-work-for-firefox-tooling-and-data-projects/"&gt;climb the contribution curve&lt;/a&gt;, among other things.&lt;/li&gt;
 &lt;li&gt;We need to be more honest and direct about the economic benefits that community members bring to Mozilla. I&amp;rsquo;m not sure exactly what this means right now (and of course Mozilla&amp;rsquo;s options are constrained both legally and economically), but we need to do better about acknowledging their contributions to Mozilla&amp;rsquo;s bottom line and making sure there is a fair exchange of value on both sides. At the &lt;em&gt;very minimum&lt;/em&gt;, we need to make sure that people&amp;rsquo;s contributions help them grow professionally or otherwise if we can&amp;rsquo;t guarantee monetary compensation for their efforts.&lt;/li&gt;
 &lt;li&gt;We need to acknowledge the efforts that our employees make in creating functional communities. This work does not come for free and we need to start acknowledging it in both our career development paths and when looking at individual performance. Similarly, we need to provide better guidance and mentorship on how to do this work in a way that does not extract too hard a personal toll on the people involved &amp;mdash; this is a complex topic, but a lot of it in my opinion comes down to better onboarding practices (which is something we should be doing anyway) as well as setting better boundaries (both in terms of work/life balance, as well as what you&amp;rsquo;ll accept in your interactions).&lt;/li&gt;
 &lt;li&gt;Finally, what is the end result of our work? Do the software and systems we build genuinely enrich people&amp;rsquo;s lives? Do they become better informed after using our software? Do they make them better decisions? Free software might be good in itself, but one must also factor in &lt;em&gt;how it is used&lt;/em&gt; when measuring its social utility (see: Facebook).&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;None of the above is easy to address. But the alternatives are either close everything down to public participation (which I&amp;rsquo;d argue will lead to the death of Mozilla as an organization: it just doesn&amp;rsquo;t have the resources to compete in the marketplace without the backing of the community) or continue down the present path (which I don&amp;rsquo;t think is sustainable either). The last ten years have shown that the &amp;ldquo;open source on auto-pilot&amp;rdquo; approach just doesn&amp;rsquo;t work.&lt;/p&gt;

&lt;p&gt;I suspect these problems aren&amp;rsquo;t specific to Mozilla and affect other communities that work in the open. I&amp;rsquo;d be interested in hearing other perspectives on this family of problems: if you have anything to add, my contact information is below.&lt;/p&gt;

&lt;div class="footnotes"&gt;
 &lt;ol&gt;
  &lt;li id="2021-02-24-community-mozilla-people-first-open-source-second-footnote-1-definition" class="footnote-definition"&gt;
   &lt;p&gt;I&amp;rsquo;ve since moved to the &lt;a href="https://wiki.mozilla.org/Data"&gt;Data team&lt;/a&gt;.&amp;nbsp;&lt;a href="#2021-02-24-community-mozilla-people-first-open-source-second-footnote-1-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
  &lt;li id="2021-02-24-community-mozilla-people-first-open-source-second-footnote-2-definition" class="footnote-definition"&gt;
   &lt;p&gt;This includes our internal communications channels like our &lt;a href="https://wiki.mozilla.org/Matrix"&gt;Matrix instance&lt;/a&gt; as well as issue trackers like Bugzilla. There&amp;rsquo;s also a question of what to do about non-Mozilla channels, like Twitter or the &lt;a href="https://news.ycombinator.com"&gt;Orange Site&lt;/a&gt;. Although not Mozilla spaces, these places are often vectors for harassment of community members. I don&amp;rsquo;t have any good answers for what to do about this, aside from offering my solidarity and support to those suffering abuse on these channels. Disagreement with Mozilla&amp;rsquo;s strategy or policy is one thing, but personal attacks, harassment, and character assasination is never ok&amp;mdash; no matter where it&amp;rsquo;s happening.&amp;nbsp;&lt;a href="#2021-02-24-community-mozilla-people-first-open-source-second-footnote-2-return"&gt;↩&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content></entry>
 <entry>
  <title type="text">The Glean Dictionary</title>
  <link rel="alternate" href="https://wrla.ch/blog/2021/01/the-glean-dictionary/?utm_source=all&amp;utm_medium=Atom" />
  <id>urn:https-wrla-ch:-blog-2021-01-the-glean-dictionary</id>
  <published>2021-01-27T13:53:44Z</published>
  <updated>2021-01-27T13:53:44Z</updated>
  <author>
   <name>William Lachance</name></author>
  <content type="html">
&lt;p&gt;&lt;em&gt;(“This Week in Glean” is a series of blog posts that the Glean Team at Mozilla is using to try to communicate better about our work. They could be release notes, documentation, hopes, dreams, or whatever: so long as it is inspired by Glean. You can find &lt;a href="https://mozilla.github.io/glean/book/appendix/twig.html"&gt;an index of all TWiG posts online.&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On behalf of Mozilla&amp;rsquo;s Data group, I&amp;rsquo;m happy to announce the availability of the first milestone of the Glean Dictionary, a project to provide a comprehensive &amp;ldquo;data dictionary&amp;rdquo; of the data Mozilla collects inside its products and how it makes use of it. You can access it via this development URL:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dictionary.protosaur.dev/"&gt;https://dictionary.protosaur.dev/&lt;/a&gt;&lt;/p&gt;

&lt;div class="figure"&gt;&lt;img src="/files/2021/01/glean-dictionary.png" alt="" /&gt;
 &lt;p class="caption"&gt;&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;The goal of this first milestone was to provide an equivalent to the &lt;a href="https://probes.telemetry.mozilla.org"&gt;popular &amp;ldquo;probe&amp;rdquo; dictionary&lt;/a&gt; for newer applications which use the Glean SDK, such as Firefox for Android. As Firefox on Glean (FoG) comes together, this will also serve as an index of what data is available for Firefox and how to access it.&lt;/p&gt;

&lt;p&gt;Part of the vision of this project is to act as a showcase for Mozilla&amp;rsquo;s practices around &lt;a href="https://www.mozilla.org/en-US/about/policy/lean-data/"&gt;lean data&lt;/a&gt; and &lt;a href="https://wiki.mozilla.org/Firefox/Data_Collection"&gt;data governance&lt;/a&gt;: you&amp;rsquo;ll note that every metric and ping in the Glean Dictionary has a data review associated with it &amp;mdash; giving the general public a window into what we&amp;rsquo;re collecting and why.&lt;/p&gt;

&lt;p&gt;In addition to displaying a browsable inventory of the low-level metrics which these applications collect, the Glean Dictionary also provides:&lt;/p&gt;

&lt;ul&gt;
 &lt;li&gt;Code search functionality (via &lt;a href="https://searchfox.org"&gt;Searchfox&lt;/a&gt;) to see where any given data collection is defined and used.&lt;/li&gt;
 &lt;li&gt;Information on how this information is represented inside Mozilla&amp;rsquo;s BigQuery data store.&lt;/li&gt;
 &lt;li&gt;Where available, links to browse / view this information using the &lt;a href="https://glam.telemetry.mozilla.org"&gt;Glean Aggregated Metrics Dashboard&lt;/a&gt; (GLAM).&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;Over the next few months, we&amp;rsquo;ll be expanding the Glean Dictionary to include derived datasets and dashboards / reports built using this data, as well as allow users to add their own annotations on metric behaviour via a GitHub-based documentation system. For more information, see the &lt;a href="https://docs.google.com/document/d/1OkTWA3rsSJ0m5g9GDnxXVUMkJP-xJMQk_bDgDq-Z9xM/edit#"&gt;project proposal&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The Glean Dictionary is the result of the efforts of many contributors, both inside and outside Mozilla Data. Special shout-out to &lt;a href="https://www.linh-nguyen.com/outreachy"&gt;Linh Nguyen&lt;/a&gt;, who has been moving mountains inside the codebase as part of an Outreachy internship with us. We welcome your feedback and involvement! For more information, see our &lt;a href="https://github.com/mozilla/glean-dictionary"&gt;project repository&lt;/a&gt; and Matrix channel (&lt;a href="https://chat.mozilla.org/#/room/#glean-dictionary:mozilla.org"&gt;#glean-dictionary on chat.mozilla.org&lt;/a&gt;).&lt;/p&gt;</content></entry></feed>