Pinned toot

I would like to remind everyone that if I follow someone or boost their post, that does not mean I think they are a good person. It means I find their posts interesting, and that is it.

How do I tell if a Python asyncio StreamReader's underlying TCP connection has been closed at the other end?

Welcome to "Being the Operating System," an exercise in frustration with application programmers.

Python's threads are awful, because they have all the downsides of preemptive multitasking in a shared address space with no actual parallelism. Its async, however, is amazing.

(I've never worked with multiprocessing much, but a casual look at the documentation makes me think it's probably okay.)

Static linking but every symbol is in its own .o so link-time dead code elimination happens automatically.

Today in Alex's Unnecessary Software 

Show thread

Today in Alex's Unnecessary Software 

POLL: What is your favorite command-line help system?

I downgraded to 5.4.13, my previous kernel, so that I can get through the installation.

Show thread

Maybe CPU ucode patches aren't getting installed or something...

Show thread

Something is definitely causing spurious protection faults, which is somewhat alarming (mostly it just causes things to segfault for no reason, but sometimes it causes a kernel oops and a lockup, what fun). I suspect it may have something to do with kernel 5.5.13, because it seemed to start after I upgraded to that version. I'll bump to 5.6 later and we'll see if it gets better.

Show thread

I think this may be my fourth or fifth time reaching the emerge @world step of the Gentoo installation process, but none of those attempts have yet reached a graphical environment. The hope is that this one will finally get there now that I've nailed the biggest issue in the last attempt. And I still have said previous attempt as a template.

Show thread

Considering transforming the current LENS collection of repositories into a monorepo with multiple crates in it to ease building, versioning, and cross-crate coordination in general; anyone have thoughts?

I still have not been able to test because UML is causing abnormal amounts of trouble with extended attributes.

Show thread

Fun fact: If you try to cat /proc/sys/fs/binfmt_misc/register, you get "Invalid argument" (very much not a normal error message from cat), probably because it's write-only. I wonder why it's not "Operation not permitted" or something else more appropriate?

Show thread

I managed to get it to use my real rootfs mounted read-only, which I guess works well enough? But it turns out I forgot to actually turn on binfmt_misc, and when I did I got ~3 compiler errors.

Show thread

So I'm trying to test in user-mode Linux, and it compiles (yay) but I can't get UML to start (boo) because it can't find the rootfs (???). This isn't related to my changes; it's just because I've never used UML before.

Show thread
Show more
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.