commit 1da6f2d6ce88d302fe4bfe757b3ca91256aede8c Author: Alessandro Mauri Date: Sat Aug 8 17:03:29 2020 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ad07d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dst/** diff --git a/makefile b/makefile new file mode 100644 index 0000000..5714ac5 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ +SRCDIR = src +DESTDIR = dst +SITENAME = "Mauri's blog" +URL = "https://alemauri.eu" + +all: + mkdir -p ${DESTDIR} + rm -f ${DESTDIR}/.files + ssg ${SRCDIR} ${DESTDIR} ${SITENAME} ${URL} + +clean: + rm -rf ${DESTDIR} diff --git a/src/.files b/src/.files new file mode 100644 index 0000000..8a5f9b7 --- /dev/null +++ b/src/.files @@ -0,0 +1,21 @@ +./src/sitemap.xml +./src/src/sitemap.xml +./src/src/src/sitemap.xml +./src/src/src/src/sitemap.xml +./src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/makefile +./src/src/src/src/src/src/src/src/src/src/styles.css +./src/src/src/src/src/src/src/src/src/src/dst/index.html +./src/src/src/src/src/src/src/src/src/src/dst/favicon.png +./src/src/src/src/src/src/src/src/src/src/dst/styles.css +./src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html +./src/src/src/src/src/src/src/src/src/src/dst/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/sitemap.xml +./src/src/src/src/src/src/src/src/src/src/src/index.html +./src/src/src/src/src/src/src/src/src/src/src/favicon.png +./src/src/src/src/src/src/src/src/src/src/src/styles.css +./src/src/src/src/src/src/src/src/src/src/src/commonsizes.html diff --git a/src/_footer.html b/src/_footer.html new file mode 100644 index 0000000..56b1c9e --- /dev/null +++ b/src/_footer.html @@ -0,0 +1,4 @@ + diff --git a/src/_header.html b/src/_header.html new file mode 100644 index 0000000..952d587 --- /dev/null +++ b/src/_header.html @@ -0,0 +1,2 @@ +Mauri's blog + diff --git a/src/commonsizes.md b/src/commonsizes.md new file mode 100644 index 0000000..1ffcf62 --- /dev/null +++ b/src/commonsizes.md @@ -0,0 +1,291 @@ +# Size in loc of common software +Bloat is everywhere, in 2018 I started my journey on debloating my digital +life, so far I mostly use linux as my main OS (the mostly is due to uni +stuff I don't want and/or have time to deal with), I don't use a desktop environment, +got rid of systemd, pulseaudio and polkit just to name a few. I could go on +about how I debloated most of my computing life but that is not the goal +of this article, that is I recently started to wonder: how much bloat is really +there? + +In order to answer that question I rolled up my sleeves and with the mighty +power of post-its, git and [scc][1] I cloned the repositories of many +common programs in order to check their bloat suckless style, with +lines of code. Let's get to the data. + + + +## Init systems + +| Name | loc | +| ----------- | --------- | +| systemd | 722K | +| OpenRC | 21K | +| s6 | 20K | +| runit | 12K | +| sysVinit | 9K | + +## Logging daemons +Technically systemd includes its own logging daemon but here is omitted. + +| Name | loc | +| ----------- | --------- | +| rsyslog | 157K | +| socklog | 5.6K | +| metalog | 2.5K | + +## Network +Generic network management programs. + +| Name | loc | +| --------------- | --------- | +| wpa_supplicant | 555K | +| kea | 486K | +| NetworkManager | 429K | +| ModemManager | 194K | +| connman | 103K | +| (e)iwd | 86K | +| dhcpcd | 41K | + +## Music players + +| Name | loc | +| ----------- | --------- | +| mpd | 102K | +| cmus | 42K | +| moc(p) | 35K | +| ncmpcpp | 25K | +| herrie | 7.4K | + +## Text editors +Don't tell me you saw that one coming. + +| Name | loc | +| ----------- | --------- | +| vim | 931K | +| neovim | 771K | +| vis | 109K | +| kakoune | 31K | +| micro | 29K | +| nano | 17K | + +## Build systems + +| Name | loc | +| ----------- | --------- | +| cmake | 854K | +| tup | 271K | +| meson | 107K | +| GNU make | 34K | +| ninja | 20K | +| samurai | 3.7K | + +## Shells (POSIX or not) + +| Name | loc | +| ----------- | --------- | +| bash | 210K | +| fish | 165K | +| zsh | 119K | +| ksh93 | 72K | +| tcsh | 65K | +| mksh | 30K | +| ash | 21K | +| dash | 13K | + +## Boot loaders/managers + +| Name | loc | +| ----------- | --------- | +| CloverBoot | 1.8M | +| GRUB | 331K | +| syslinux | 254K | +| eEFInd | 75K | +| LILO | 36K | + +## Display servers +Dependencies are counted two levels "deep" excluding duplicates, from +the alpine linux x86_64 package repositories.\ +U: Not built, protocol code not generated +B: Code generated + +| Name | loc | dependencies | +| ------------------- | --------------- | ------------ | +| xorg-server | 422K | 44 | +| - | - | - | +| wayland + | | | +| wayland-protocols + | | | +| wlroots | U: 97K, B:268K | 27 | + +## SSH servers/clients + +| Name | loc | +| ----------- | --------- | +| dropbear | 144K | +| OpenSSH | 123K | +| TinySSH | 14K | + +## Terminal multiplexers + +| Name | loc | +| ----------- | --------- | +| tmux | 132K | +| GNU screen | 36K | +| dvtm | 4.0K | + +## Terminal emulators + +| Name | loc | +| ----------- | --------- | +| kitty | 114K | +| alacritty | 26K | +| wayst | 24K | +| havoc | 10K | +| wterm | 10K | +| st | 4.4K | + +## Kernels + +| Name | loc | +| ------------ | --------- | +| netbsd | 40M | +| linux | 21M | +| FreeBSD | 18M | +| OpenBSD | 17M | +| DragonflyBSD | 934K | + +## Permission managers + +| Name | loc | +| ----------- | --------- | +| sudo | 195K | +| polkit | 26K | +| OpenDoas | 2.9K | +| PAM | 61K | + +## Compilers + +| Name | loc | +| ----------- | --------- | +| gcc | 9.0M | +| llvm | 8.0M | +| zig | 2.1M | +| rust | 856K | +| tcc | 93K | + +## Torrent clients + +| Name | loc | +| ------------- | --------- | +| qBittorrent | 762K | +| transmission | 329K | +| deluge | 137K | +| rtorrent | 24K | + +## Web browsers +Does not include libraries, only the main repos. + +| Name | loc | +| ----------- | --------- | +| chromium | | +| Firefox | 27M | +| badwolf | 1.8K | + +## Window managers + +| Name | loc | +| ----------- | --------- | +| awesome | 83K | +| i3 | 58K | +| openbox | 42K | +| bspwm | 12K | +| 2bwm | 3.3K | +| dwm | 2.5K | + +## Wayland compositors + +| Name | loc | +| ----------- | --------- | +| weston | 117K | +| sway | 42K | +| wayfire | 27K | +| hikari | 15K | +| river | 5.9K | + +## Application launchers + +| Name | loc | +| ------------- | --------- | +| rofi | 84K | +| bemenu | 6.6K | +| wofi | 4.3K | +| nwg-launchers | 3.5K | +| dmenu | 1.3K | + +## Device managers +NOTE: mdev is only one source file, so loc count doesn't +include anything but that file. + +| Name | loc | +| ----------- | --------- | +| eudev | 28K | +| mdevd | 2.3K | +| smdev | 771 | +| mdev | 751 | + +## Initramfs generators + +| Name | loc | +| ----------- | --------- | +| dracut | 32K | +| tinyramfs | 1.0K | + +## Code counters + +| Name | loc | +| ----------- | --------- | +| scc | 19K | +| tokei | 11K | + +## Package managers + +| Name | loc | +| ----------- | --------- | +| apt | 100K | +| xbps | 43K | +| pacman | 37K | +| apk | 17K | +| kiss | 1.1K | + +## Webservers + +| Name | loc | +| ----------- | --------- | +| apache | 419K | +| nginx | 142K | +| lighttpd | 75K | + +## Syncronization and backup programs + +| Name | loc | +| ----------- | --------- | +| borg | 236K | +| syncthing | 153K | +| rsync | 56K | +| restic | 49K | +| casync | 33K | + +## Others +Stuff that doesn't fit any other category (for now) + +| Name | loc | +| ----------- | --------- | +| openssl | 894K | +| bluez | 395K | +| libressl | 384K | +| elogind | 145K | +| dbus | 126K | +| tint2 | 37K | +| lowdown | 19K | +| pass | 3.5K | + +[1]: https://github.com/boyter/scc diff --git a/src/favicon.png b/src/favicon.png new file mode 100644 index 0000000..50532dd Binary files /dev/null and b/src/favicon.png differ diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..873673a --- /dev/null +++ b/src/index.md @@ -0,0 +1,3 @@ +# Mauri's blog lol + +[Size in loc of common software](commonsizes.html) diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..5714ac5 --- /dev/null +++ b/src/makefile @@ -0,0 +1,12 @@ +SRCDIR = src +DESTDIR = dst +SITENAME = "Mauri's blog" +URL = "https://alemauri.eu" + +all: + mkdir -p ${DESTDIR} + rm -f ${DESTDIR}/.files + ssg ${SRCDIR} ${DESTDIR} ${SITENAME} ${URL} + +clean: + rm -rf ${DESTDIR} diff --git a/src/sitemap.xml b/src/sitemap.xml new file mode 100644 index 0000000..1f4fcb1 --- /dev/null +++ b/src/sitemap.xml @@ -0,0 +1,55 @@ + + +//www/dst/2020-08-081.0 +//www/dst/commonsizes.html2020-08-081.0 +//www/src/2020-08-081.0 +//www/src/commonsizes.html2020-08-081.0 +//www/src/dst/2020-08-081.0 +//www/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/2020-08-081.0 +//www/src/src/commonsizes.html2020-08-081.0 +//www/src/src/dst/2020-08-081.0 +//www/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/2020-08-081.0 +//www/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/dst/2020-08-081.0 +//www/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/dst/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/dst/commonsizes.html2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/src/2020-08-081.0 +//www/src/src/src/src/src/src/src/src/src/src/src/src/commonsizes.html2020-08-081.0 + diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..18588fd --- /dev/null +++ b/src/styles.css @@ -0,0 +1,63 @@ +/* Global options */ +* { + text-align: center; + font-family: monospace; +} + +/* Table styles */ +table, th, td { + margin-left: auto; + margin-right: auto; + text-align: left; + border-collapse: collapse; + width: 70%; +} + +th, td { + padding-top: 10px; + padding-bottom: 10px; + padding-left: 20px; + padding-right: 20px; +} + +th { + border-bottom: 1px solid black; +} + +tr:nth-child(odd) { + background-color: #dcdcdc; +} + +/* Paragraphs and text */ +p { + font-size: 1.25em; +} + +body { + width: 80%; + margin: 0 auto; + background-color: #f5fffa; + color: black; + padding: 10px; +} + +html { + background-color: #696969; + scroll-behavior: smooth; +} + +/* Headings and footer */ +h1, h2, h3, h4, h5, h6 { + text-decoration: underline; +} + +footer { + background-color: #dcdcdc; + border-radius: 10px; +} + +footer p { + padding: 10px; + margin: 0px; + font-size: 1em; +}