summaryrefslogtreecommitdiffstats
path: root/2026/info/rau-after.md
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2026-11-28 22:30:43 -0500
committerSacha Chua <sacha@sachachua.com>2026-11-28 22:30:43 -0500
commitf09e6da59da3b8a579557e7f2d0ec1fd4e73e7f0 (patch)
tree650a2da1abcc251478aa9d4a87b558dd275133cb /2026/info/rau-after.md
parent18b89b973a9642df1a540cb7bb08fc6e689fc364 (diff)
downloademacsconf-wiki-f09e6da59da3b8a579557e7f2d0ec1fd4e73e7f0.tar.xz
emacsconf-wiki-f09e6da59da3b8a579557e7f2d0ec1fd4e73e7f0.zip
publish talks
Diffstat (limited to '2026/info/rau-after.md')
-rw-r--r--2026/info/rau-after.md325
1 files changed, 325 insertions, 0 deletions
diff --git a/2026/info/rau-after.md b/2026/info/rau-after.md
index 3791b700..6d0393b2 100644
--- a/2026/info/rau-after.md
+++ b/2026/info/rau-after.md
@@ -1,6 +1,331 @@
<!-- Automatically generated by emacsconf-publish-after-page -->
+<div class="transcript transcript-mainVideo"><a name="rau-mainVideo-transcript"></a><h1>Transcript</h1>
+
+
+<div class="transcript-heading">[[!template new="1" text="""Introduction""" start="00:00:02.317" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""I am Thomas Koch and I'll be talking about Emacs""" start="00:00:02.317" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""as a window manager.""" start="00:00:05.938" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""My window manager is called Râu.""" start="00:00:08.299" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I'll explain that name later.""" start="00:00:11.881" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""When I told my wife that after two months of work""" start="00:00:15.742" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I could now move and resize windows on my screen,""" start="00:00:19.464" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""she was not impressed.""" start="00:00:25.286" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Maybe today I have more luck and can find people""" start="00:00:28.022" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""who understand what I actually worked on and why""" start="00:00:31.285" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""it was so much fun.""" start="00:00:34.387" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""When I initially switched to Wayland some months""" start="00:00:37.730" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""ago, I first went for Niri as my window manager.""" start="00:00:41.132" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Niri is fantastic.""" start="00:00:45.376" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It is fast, beautiful, stable, featureful.""" start="00:00:47.137" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It has a large fanbase for good reasons.""" start="00:00:50.380" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""But Niri has its own key bindings.""" start="00:00:54.395" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And there are many more key bindings not shown on""" start="00:00:58.619" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""this slide.""" start="00:01:01.883" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I did not want to learn all these key bindings.""" start="00:01:03.644" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""I already got a window manager""" start="00:01:08.349" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""First, I tried to make Niri behave like Emacs.""" start="00:01:08.349" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Then I realized that I already got a window""" start="00:01:12.834" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""manager.""" start="00:01:15.957" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And it has a superb key binding system.""" start="00:01:17.256" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And it is tiled.""" start="00:01:20.500" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And it has workspaces.""" start="00:01:22.103" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And a help system.""" start="00:01:23.765" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And a functional scripting language.""" start="00:01:25.387" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And an overview.""" start="00:01:27.690" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And inter-process communication.""" start="00:01:28.992" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And much more.""" start="00:01:31.755" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Reka, an Emacs window manager""" start="00:01:33.764" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""My friend Tazjin wrote an Emacs window manager""" start="00:01:33.764" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""based on the Wayland compositor River.""" start="00:01:37.647" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Since his window manager is based on River,""" start="00:01:42.010" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""he called it Reka,""" start="00:01:45.232" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""which is the Russian word for River.""" start="00:01:47.394" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""On the slide you see Reka.""" start="00:01:51.397" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The screen is fully occupied by an Emacs frame.""" start="00:01:54.259" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""On the left is one buffer displaying Firefox.""" start="00:01:59.437" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""On the top right is a Magit buffer and on the""" start="00:02:03.760" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""bottom right a Markdown text buffer.""" start="00:02:07.742" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""At the top of the screen there are three Emacs""" start="00:02:11.545" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""tabs and on the bottom is the mini buffer.""" start="00:02:15.087" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Reka is written partly in Rust""" start="00:02:22.312" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""Reka is written partly in Elisp""" start="00:02:22.312" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and partly in Rust.""" start="00:02:25.434" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The Rust part is an Emacs module.""" start="00:02:28.065" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It runs a separate thread and uses libwayland to""" start="00:02:31.667" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""communicate over a Unix socket with River.""" start="00:02:35.589" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I like Rust. But I do not like the friction""" start="00:02:40.071" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""between Elisp and Rust.""" start="00:02:43.792" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And I don't like the overhead to set up the Rust""" start="00:02:47.254" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""toolchain and the compilation time.""" start="00:02:50.756" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Râu""" start="00:02:56.093" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""So I found ewc, an Elisp library that could speak""" start="00:02:56.093" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""the Wayland protocol.""" start="00:03:01.176" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""EWC allowed me to replace the Rust part of Reka""" start="00:03:03.978" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""with pure Elisp.""" start="00:03:09.242" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I named my fork of Reka Râu, which is the""" start="00:03:12.704" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Romanian word for river.""" start="00:03:17.848" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""After a lot of refactorings, I eventually arrived""" start="00:03:22.080" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""at the architecture shown here:""" start="00:03:26.423" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""a frontend Emacs process that starts a backend""" start="00:03:30.325" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Emacs process.""" start="00:03:34.147" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The backend Emacs process""" start="00:03:36.329" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""talks to River. Note that although the backend""" start="00:03:38.130" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""is a child process""" start="00:03:42.452" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""of the frontend, they do not use standard input""" start="00:03:44.273" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and output as their communication channel.""" start="00:03:48.696" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I did not find a non-blocking way for Emacs to""" start="00:03:53.485" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""listen to its standard input, and the backend""" start="00:03:56.787" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""must not block because it also needs to""" start="00:04:00.410" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""communicate with River.""" start="00:04:03.352" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I will also talk about another problem I ran into""" start="00:04:06.854" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""before I arrived at the current state, but first""" start="00:04:10.017" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""some words about the magic involved that lets""" start="00:04:14.220" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Emacs manage Wayland windows.""" start="00:04:17.601" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""River: Separating compositor and WM""" start="00:04:24.027" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""Please do not try to understand the state machine""" start="00:04:24.027" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""on this slide.""" start="00:04:27.109" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""This is only an illustration for River.""" start="00:04:28.430" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Isaac Freund presented River on this year's""" start="00:04:33.092" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""FOSDEM.""" start="00:04:36.695" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""After working on the window manager River for""" start="00:04:38.436" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""over six years, he made an important observation""" start="00:04:41.678" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""about Wayland window managers in general.""" start="00:04:46.020" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""At this point, it is important to understand that""" start="00:04:50.327" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""so far every Wayland window manager was actually""" start="00:04:53.971" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""a window manager and a compositor in one program.""" start="00:04:58.056" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""So, Isaac noticed that there is""" start="00:05:04.002" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""a similar state machine""" start="00:05:06.545" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""at the core of different Wayland window managers,""" start="00:05:08.547" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and that this state machine could actually be the""" start="00:05:12.770" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""base for a common API between window managers and""" start="00:05:15.852" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Wayland compositors.""" start="00:05:22.196" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""So he created this API and since version 4, River""" start="00:05:24.598" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""is now only a Wayland compositor.""" start="00:05:29.841" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""There are now over 20 different Wayland window""" start="00:05:34.125" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""managers in 8 different programming languages""" start="00:05:37.587" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""using River as their compositor.""" start="00:05:41.649" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""How?""" start="00:05:47.512" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""Let's look at the core idea of Reka and Râu.""" start="00:05:47.512" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I have not looked at EXWM yet, but I assume it""" start="00:05:53.195" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""does something similar.""" start="00:05:58.437" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""For every screen or output in Wayland terms, we""" start="00:06:02.347" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""create an Emacs frame.""" start="00:06:07.488" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Such frames have two important Wayland objects""" start="00:06:10.849" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""related to them:""" start="00:06:14.650" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""the Wayland output that this Emacs frame should""" start="00:06:16.950" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""be shown on and the Wayland window that is""" start="00:06:20.871" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""actually showing the Emacs frame.""" start="00:06:26.072" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Emacs frames can have parameters that can store""" start="00:06:30.345" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""arbitrary data.""" start="00:06:35.509" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""We store the IDs of the associated Wayland""" start="00:06:38.631" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""objects as frame parameters.""" start="00:06:44.755" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""That is, the window ID and the output ID.""" start="00:06:48.278" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Then there are the other Wayland windows that are""" start="00:06:54.757" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""not showing Emacs frames associated with outputs.""" start="00:06:58.259" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""For every such Wayland window,""" start="00:07:03.441" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""we create an Emacs buffer""" start="00:07:06.102" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and store the Wayland window id""" start="00:07:08.163" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""as a buffer-local value""" start="00:07:11.565" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and the Wayland window title as the buffer name.""" start="00:07:14.346" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Now every time the buffer is shown,""" start="00:07:19.389" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""we ask Emacs for the edges of the buffer""" start="00:07:23.528" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and use those to position""" start="00:07:27.909" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""the Wayland window exactly above its associated""" start="00:07:30.590" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Emacs buffer.""" start="00:07:35.751" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The same idea visualized:""" start="00:07:40.312" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""For every Wayland output, that means for every""" start="00:07:44.106" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""screen or monitor, there is one maximized Emacs""" start="00:07:47.649" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""frame occupying the whole screen.""" start="00:07:52.233" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The Emacs frame displays one or more Emacs""" start="00:07:56.937" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""windows with associated Emacs buffers.""" start="00:08:01.401" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""If such an Emacs buffer is a rau-mode buffer,""" start="00:08:07.277" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""then we display the associated Wayland window""" start="00:08:12.699" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""exactly at the position of the Emacs window.""" start="00:08:16.760" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Demo""" start="00:08:21.881" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""Now, let's see this in action.""" start="00:08:21.881" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""For simplicity, we don't use a launcher but start""" start="00:08:25.522" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""LibreOffice as an async process.""" start="00:08:29.243" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Async is important here to not block Emacs.""" start="00:08:32.904" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Râu has initial support for floating windows.""" start="00:08:37.155" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""They can be moved around by pressing a modifier""" start="00:08:41.275" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""key together with the left mouse button and""" start="00:08:44.317" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""resized with the right mouse button.""" start="00:08:48.619" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""A middle button click with the modifier key""" start="00:08:52.640" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""closes the window.""" start="00:08:55.581" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Notice that the Emacs UI is fully functional,""" start="00:08:58.162" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""including pop-up menus.""" start="00:09:02.524" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I will come back to this.""" start="00:09:04.745" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Wayland windows are represented as buffers and""" start="00:09:07.175" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""thus can be switched like buffers.""" start="00:09:10.838" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Splitting the screen automatically resizes, and if""" start="00:09:14.481" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""necessary, repositions the Wayland window.""" start="00:09:18.744" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Use `C-x b` with autocompletion""" start="00:09:23.068" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""to switch windows.""" start="00:09:26.931" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""You can also close windows by killing their""" start="00:09:29.213" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""associated Emacs buffers.""" start="00:09:32.255" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Concurrency""" start="00:09:37.313" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""As I said, it took multiple iterations to arrive""" start="00:09:37.313" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""at the current architecture.""" start="00:09:41.656" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The most pressing problem was that accidental""" start="00:09:44.538" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""mouse click could open an x-popup menu and this""" start="00:09:48.000" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""would freeze the whole window manager.""" start="00:09:52.744" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I can only assume that somehow Emacs and River""" start="00:09:56.266" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""were waiting for each other.""" start="00:10:00.289" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""So I first tried to defer event processing with""" start="00:10:04.064" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""timers and get it out of the process-filter""" start="00:10:08.547" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""function.""" start="00:10:12.169" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""That did not help.""" start="00:10:13.350" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Then I used artificial intelligence to write me""" start="00:10:16.132" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""an Emacs module.""" start="00:10:20.114" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The module would do the Unix socket communication""" start="00:10:22.156" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""in a separate thread.""" start="00:10:25.898" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""However, this also did not solve the freezing,""" start="00:10:28.729" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""so I threw the code away.""" start="00:10:32.530" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Thanks to artificial intelligence,""" start="00:10:36.371" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""this experiment took only about an hour.""" start="00:10:39.312" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Eventually, I broke Râu""" start="00:10:43.513" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""into two separate Emacs processes.""" start="00:10:46.394" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""That finally fixed the issue.""" start="00:10:50.655" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I did the coding of this refactoring myself.""" start="00:10:54.436" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""But I discussed the necessary steps""" start="00:10:58.601" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and code organization with AI.""" start="00:11:01.862" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""On concurrency""" start="00:11:07.063" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""I looked at existing packages for concurrency.""" start="00:11:07.063" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""They also use separate Emacs processes.""" start="00:11:11.344" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Both async and futur, however, only support""" start="00:11:15.485" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""short-lived functions.""" start="00:11:19.806" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""For Râu, I need a long-living process.""" start="00:11:22.247" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""In the end, it took only about 150 lines of code""" start="00:11:26.943" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""to start a child Emacs instance and allow remote""" start="00:11:31.687" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""procedure calls in both directions.""" start="00:11:35.770" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Both processes just call functions""" start="00:11:39.793" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""on the other side.""" start="00:11:42.936" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The code could be that simple""" start="00:11:45.198" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""because I do not need return values""" start="00:11:47.640" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""for the function calls.""" start="00:11:50.202" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Serialization is provided by""" start="00:11:53.052" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Elisp's symbolic expressions.""" start="00:11:55.273" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The child Emacs process starts an Emacs server,""" start="00:11:59.055" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""so I can look into the backend with Emacs client.""" start="00:12:02.996" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""So, although my problem is solved,""" start="00:12:07.618" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""it would be very nice to have""" start="00:12:11.080" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""isolated worker threads in Emacs""" start="00:12:12.500" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""like in JavaScript.""" start="00:12:15.401" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Logging: lgr""" start="00:12:22.898" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""A window manager should of course write log""" start="00:12:22.898" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""messages and write them to the same place as""" start="00:12:25.779" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""other services do.""" start="00:12:29.120" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I found around 15 different logging""" start="00:12:31.561" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""implementations in my Emacs,""" start="00:12:35.342" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""all of them specific to their package.""" start="00:12:39.343" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Thankfully there is now a logging package""" start="00:12:43.524" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""for Emacs.""" start="00:12:45.705" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Lgr supports a hierarchy of loggers.""" start="00:12:48.102" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Each node in the hierarchy can have its own""" start="00:12:51.705" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""configuration,""" start="00:12:54.548" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""so you can raise the logging level""" start="00:12:56.489" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""in only a specific part of your code""" start="00:12:58.891" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and won't be spammed by log messages""" start="00:13:00.933" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""from other parts.""" start="00:13:04.876" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Log messages have levels.""" start="00:13:06.998" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""They can be written to different places""" start="00:13:09.140" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and log messages are only constructed""" start="00:13:11.902" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""when actually needed.""" start="00:13:14.925" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The latter allows you to craft informative debug""" start="00:13:17.412" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""log messages with helpful data without worrying""" start="00:13:21.373" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""about performance.""" start="00:13:26.015" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Please adopt Lgr and make it part of Emacs core!""" start="00:13:28.576" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Commodore 64""" start="00:13:36.158" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""When you're around my age, you might have a warm""" start="00:13:36.158" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""feeling when seeing this screen.""" start="00:13:40.399" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""One great thing about the C64 was that""" start="00:13:44.490" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""it welcomed the user directly""" start="00:13:48.733" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""with the programming environment.""" start="00:13:51.154" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It was very natural to start""" start="00:13:54.256" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""hacking your computer.""" start="00:13:56.297" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It only occurred to me after some time that Râu""" start="00:14:01.100" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""actually recreates this experience.""" start="00:14:05.242" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""When you use Emacs as your window manager,""" start="00:14:09.261" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""you are booting directly into""" start="00:14:12.165" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""an Elisp programming environment.""" start="00:14:14.048" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""If I were a school teacher,""" start="00:14:18.354" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I would install Râu in the Computer Science lab.""" start="00:14:20.598" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Besides Râu, there is of course the old""" start="00:14:28.037" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Emacs X Window Manager.""" start="00:14:31.220" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""There is Reka, which I already talked about.""" start="00:14:34.182" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And there is EWM, also a Wayland window manager.""" start="00:14:38.165" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""EWM was initially created with the help of""" start="00:14:43.750" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""artificial intelligence.""" start="00:14:47.753" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It includes its own compositor and is more""" start="00:14:49.935" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""featureful than Reka or Râu.""" start="00:14:53.458" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I have created the Category Window Manager""" start="00:14:57.503" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""in the Emacs Wiki.""" start="00:15:01.644" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Please look there and also update the wiki.""" start="00:15:03.484" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Artificial intelligence""" start="00:15:10.206" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""I have not made up my mind yet.""" start="00:15:10.206" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I am humble enough to understand that artificial""" start="00:15:13.647" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""intelligence is a complex issue.""" start="00:15:17.387" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I am convinced though that any meaningful""" start="00:15:21.897" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""discussion on AI should involve at least the""" start="00:15:25.560" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""concepts written on this slide.""" start="00:15:30.344" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Artificial intelligence is no doubt a tool for""" start="00:15:34.247" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""control over people through surveillance,""" start="00:15:37.990" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""autonomous weapons, and propaganda.""" start="00:15:41.353" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Artificial intelligence challenges previous""" start="00:15:45.340" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""understanding of property, labor, and capital.""" start="00:15:48.441" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And none of the above can be talked about without""" start="00:15:53.243" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""also talking about human life and love.""" start="00:15:56.985" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Unfortunately, that cannot be done in a""" start="00:16:02.467" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""conference talk nor on a mailing list.""" start="00:16:06.029" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I did use AI right at the start to convert the""" start="00:16:13.268" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Rust part of Reka into Elisp.""" start="00:16:18.312" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Since then, however, I have refactored and""" start="00:16:21.715" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""rewritten code so much that I am not aware of any""" start="00:16:25.158" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""remaining trace of the initial AI converted code.""" start="00:16:30.922" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I do not use AI to generate code.""" start="00:16:36.327" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""The most important reason for me is that""" start="00:16:40.823" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""the brain needs training like a muscle""" start="00:16:43.744" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""and I don't want to become stupid.""" start="00:16:46.585" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And second, I only want to commit code that I""" start="00:16:49.986" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""fully understand.""" start="00:16:53.727" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I still do use AI, however, to review my code and""" start="00:16:56.908" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""this is tremendously helpful.""" start="00:17:02.850" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""It regularly catches errors.""" start="00:17:05.611" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Then AI is a much better search engine.""" start="00:17:09.512" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I can ask, for example, is there a built-in""" start="00:17:14.098" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""function in Emacs to check whether a value""" start="00:17:18.402" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""is a cons cell.""" start="00:17:21.605" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""And the life-changing benefit of AI shows""" start="00:17:25.128" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""during debugging.""" start="00:17:30.234" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""AI easily finds the root cause that would""" start="00:17:32.654" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""otherwise have taken me hours to dig up.""" start="00:17:36.718" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Another observation is that AI probably""" start="00:17:42.322" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""diminished the role of testing.""" start="00:17:45.645" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Writing tests for a graphical, rapidly evolving""" start="00:17:49.008" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""project with multiple network connected""" start="00:17:53.371" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""components is more than a challenge.""" start="00:17:57.815" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Having AI available for code review and debugging""" start="00:18:02.619" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""was more than a replacement for a test read at""" start="00:18:07.382" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""this stage of the project.""" start="00:18:11.144" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""As I said, AI is a very complex issue.""" start="00:18:16.968" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""In the context of a large and old codebase""" start="00:18:23.252" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""like Emacs,""" start="00:18:27.034" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""it is however very inspiring to think about the""" start="00:18:28.805" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""things that AI could enable and that previously""" start="00:18:34.007" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""would be deemed as infeasible.""" start="00:18:39.049" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""What could you do with 100 junior programmers""" start="00:18:44.312" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""that won't get tired?""" start="00:18:50.134" video="mainVideo-rau" id="subtitle"]]
+
+<div class="transcript-heading">[[!template new="1" text="""Wrapping up""" start="00:18:55.774" video="mainVideo-rau" id="subtitle"]]</div>[[!template new="1" text="""So, please go ahead and give Râu a try.""" start="00:18:55.774" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""I'm looking forward to user feedback and""" start="00:19:02.004" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""contributions.""" start="00:19:05.109" video="mainVideo-rau" id="subtitle"]]
+[[!template text="""Thank you.""" start="00:19:07.613" video="mainVideo-rau" id="subtitle"]]
+
+</div>
+
+Captioner: sachac
+
Questions or comments? Please e-mail [thomas@koch.ro](mailto:thomas@koch.ro?subject=Comment%20for%20EmacsConf%202023%20rau%3A%20Emacs%20as%20a%20Window%20Manager%20and%20concurrency)