💾 Archived View for separateconcerns.com › 2016-09-16-thoughts-1.gmi captured on 2023-11-14 at 07:55:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-09-28)

-=-=-=-=-=-=-

Thoughts 1

published 2016-09-16

Thoughts

I have not found the motivation to write here for a while, so I will be trying something new. This is the first of a series of posts which will be composed of a few smaller unrelated snippets, mostly things I would usually post in a smaller form on Twitter. They will relate to anything I will have found interesting recently. Some will be practical and some will just be reflections about a given topic.

MSYS2

If, like me, you are mostly a Linux user but sometimes have to work on a Windows machine, have a look at MSYS2 [1]. It allows you to quickly get a decent environment set up, with Bash and a package manager, (pacman [2]), which you can use to install things like Git.

1: https://msys2.github.io/

2: https://www.archlinux.org/pacman/

Sailfish

I have had my Jolla C [3] for two months now. I have not spent as much time as I would like playing with it, but so far I am pretty happy with Sailfish. Like WebOS [4], it relies heavily on gestures, which makes most of the features of the phone usable with the thumb of a single hand. There are not many applications in the store so far but the default applications are good in general and most Android applications work well, I could run Lima [5] on it without any problem for instance.

From a programmer's point of view, it is all I hoped for. I went from zero to Hello World on the device in less than an hour. Coding happens in QT Creator and the UI of the application is described with QML [6]. The SDK ships with an emulator that runs in VirtualBox, but also with a second virtual machine which is used to compile code, which means you don't have to install a cross-compiler on your local machine. Applications, which are technically RPM packages, can be deployed to hardware devices via USB or SSH over WiFi.

It also has to be noted that the native terminal application is very good, much better than anything I saw on Android. A SSH client is included so it can occasionally be used to log into a server.

The main reason I have not made that device my main phone yet is that its battery life is much worse than that of my Android phone, but hopefully that is something that can be solved.

3: https://jolla.com/jollac/

4: https://en.wikipedia.org/wiki/WebOS

5: https://blog.separateconcerns.com/2019-02-15-goodbye-lima.html

6: https://en.wikipedia.org/wiki/QML

The fractal dimension of software

I stumbled upon an insightful tweet [7] about software development time estimation. The larger the tasks we try to estimate, the more wrong we will be. Maybe an estimate as a single number representing time is not enough; maybe we should also try to figure out the fractal dimension [8] of the job to be done.

7: https://twitter.com/jtolds/status/758716505320075266

8: https://en.wikipedia.org/wiki/Fractal_dimension

Distributed systems are a UX problem

Everyday I grow more convinced that this is true [9]. Not only of failure conditions, but even more so of things like reconciliation strategies in case of causally concurrent events, for instance how to represent data with CRDTs [10].

It is a problem, because people doing distributed systems often either do not want to do UX, do not have the competence to do it, or just do not have the permission. We tend to be at the bottom of the stack, and some people think it would be a disaster to let us work on anything user-facing. On the other hand, most people actively doing UX do not understand or care for distributed systems issues.

The result of this is that, if we design without taking technical constraints into account, we end up with systems that cannot be implemented without relying on central authority. Add to that the fact that it is almost always much easier to implement something in a centralized way, and you have one reason why the Cloud is winning and distributed alternatives to popular services never seem to take off.

9: http://bravenewgeek.com/distributed-systems-are-a-ux-problem/

10: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type

Palm

I stumbled upon two fantastic documents related to Palm recently. The first is a series of blog posts called A History of Palm [11]. Very interesting, even though I disagree with the conclusion of the fifth post. What killed the Pre line at HP was not that WebOS did not take off; they never let it a chance to. I have been using a Pre 3 for a long time (I had pre-ordered it so I was one of the lucky few to have it in France) and it was a fantastic device, extremely influential on future evolutions of both iOS and Android (after all, the interface was the brainchild of Mathias Duarte [12]). What ended Palm's legacy was the eviction of Mark Hurd [13] and his replacement with Léo Apotheker [14], who hates hardware. Probably one of the worst mistakes the HP board ever made.

The second document is the Zen of Palm [15], a design guide for Palm OS from 2003 which is still pretty relevant today in some ways.

11: http://lowendmac.com/2016/a-history-of-palm-part-1-before-the-palmpilot/

12: https://en.wikipedia.org/wiki/Mat%C3%ADas_Duarte

13: https://en.wikipedia.org/wiki/Mark_Hurd#Resignation

14: https://en.wikipedia.org/wiki/L%C3%A9o_Apotheker

15: https://archive.org/details/zen-of-palm

Is preemption the root of all evil?

Two decades years ago cooperative scheduling [16] was more frequent than preemptive scheduling. Windows 3.1 was completely cooperatively scheduled, which means that all applications had to yield to the system scheduler, or they would block the whole system. In Mac OS 9, the threading API was cooperative as well within a process, even though different applications would be scheduled preemptively by the kernel.

Modern OSs do not make much distinction between a thread and a process anymore, threads are basically processes which share memory, and they are scheduled preemptively. I have come to think that this design results in code of lower quality, and which is harder to reason about. Of course, it is still possible to use event loops or programming languages which do their own preemptive scheduling (like Lua)...

16: https://en.wikipedia.org/wiki/Computer_multitasking#Cooperative_multitasking