My fourth Obnam 3 development session. Put into place the scaffolding to add chunk encryption, but didn't have the time to actually implement the encryption.
Small steps and tea is the way to reach goals while having fun.
(Obnam 3 is my Sunday project to experiment with implementing fundamental components for backup software.)
BREAKING: The C++ committee imposes tariffs on non-US locales.
Quite cool, I have to say. fwupdmgr managed to update my HP USB-C Dock G5.
fun Linux fact: because MAP_SHARED|MAP_ANONYMOUS
is actually a file-backed mapping under the hood, unmapping part of such a mapping does not discard the data stored in that part:
$ cat mremap.c
#define _GNU_SOURCE
#include <err.h>
#include <stdio.h>
#include <sys/mman.h>
int main(void) {
char *p = mmap(NULL, 0x2000, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
if (p == MAP_FAILED) err(1, "mmap");
p[0x1000] = 'X';
if (munmap(p+0x1000, 0x1000)) err(1, "munmap");
// that 'X' we just wrote... is it gone?
// nope, let's bring it back!
p = mremap(p, 0x1000, 0x2000, MREMAP_MAYMOVE);
if (p == MAP_FAILED) err(1, "mremap");
printf("p[0x1000]='%c'\n", p[0x1000]);
}
$ gcc -o mremap mremap.c
$ ./mremap
p[0x1000]='X'
$
US government’s attack on free speech, science, and research is causing a brain drain
How do you create a brain drain and lose your status as eminent destination for scientists and researchers?
The United States seems to be sending out questionnaires to researchers at universities and research institutes outside of the United States, asking them about their political leanings. Dutch universities are strongly advising Dutch researches not to respond to the questionnaire
This week Michael Hudson-Doyle of the #Ubuntu Foundations team published a write-up of our experimentation with the `-O3` GCC flag by default in the distribution.
The tl;dr is that we don't yet believe that the change makes sense globally, but there are certainly come packages that would benefit from using the increased optimisation level.
See the post here: https://discourse.ubuntu.com/t/benchmarking-a-distribution-and-some-o3-results/58027