mov_
Joined 6 years ago
Joined 6 years ago
JSON. The protocol for front-end / back-end communication, as well as between the back-end
and plug-ins, is based on simple JSON messages. I considered binary formats, but the actual
improvement in performance would be completely in the noise. Using JSON considerably lowers
friction for developing plug-ins, as it’s available out of the box for most modern languages,
and there are plenty of the libraries available for the other ones.
4 years later: The choice of JSON was controversial from the start. It did end up being a source of friction, but for surprising reasons.
For one, JSON in Swift is shockingly slow.
Surprising reasons?!I think this is describing how the system includes momentum, and you're saying that the system (momentum) is producing racially-biased outcomes _without_ racist input today. That's true in the strictest, most technical sense, but is this supposed to be a motivation for reparations or something?
I found that the Arch Linux wiki page (https://wiki.archlinux.org/index.php/Font_configuration) is helpful because it applies to other distributions like Ubuntu, and provides example configuration files. (https://wiki.archlinux.org/index.php/Font_configuration/Exam...)
Since there weren't any suggestions for linux, this is what I did for Ubuntu 20:
* 2x scaling
* Downloaded libfreetype, enabled subpixel rendering option, replaced existing libfreetype.so
(I think Ubuntu 20 might already have this enabled, but just to be safe I did it manually)
* Turned off all hinting options in font configuration
* Turn on lcddefault filtering
(necessary if you have subpixel rendering enabled)
* Specifically set 158 dpi in Alacritty terminal config
(Not entirely sure that's necessary?)That said I agree completely, `Option`/`Result` themselves (even if they are just intrinsic language elements, not user-implementable types) are valuable.
My exasperation is you were surprised by JSON becoming an issue, when this was the most controversial design decision about the project. To me, it's completely unsurprising.