HNHacker News
TopNewBestAskShowJobs

sebastiandb

29 karma · joined July 14, 2023

submissionscomments
sebastiandb··on Asynchronous Rust on Cortex-M microcontrollers
This article about async in Python helped me understand it pretty well, since it explains them in terms of coroutines, which are very intuitive for me: https://mleue.com/posts/yield-to-async-await/

Another thing that helps me get it is comparing it to the continuation passing style, where you never return from a function, you just take an argument that's basically a function pointer bound to an environment, and at the end of the function, instead of returning, you call your input function, giving it another function and environment as input, repeating the cycle. It's very similar to the transformation of callbacks within callbacks within callbacks pattern in JavaScript to the async/await pattern.

sebastiandb··on JetBrains Mono Typeface
However, not all IDEs, text editors, and terminal emulators support disabling the use of ligatures, so it's often easiest to just switch to a font that doesn't include them if you don't want them.
sebastiandb··on COSMIC DE: Desktop environment created for Pop!_OS and other Linux distros
I'm using a Dell laptop, but I'm running vanilla GNOME on EndeavourOS (took out the distro-specific customizations in the installer), and its trackpad support seems perfect on mine. Everything is as smooth as I've seen on Windows or MacOS. The settings menu for it is nice. I especially like how it comes with a three-finger swipe left or right to switch workspaces/desktops, or a three-finger swipe up to get an overview of your current desktop. It all feels natural, and it gives me a sense of control; if I swipe slowly, it switches slowly, rather than just make the transition deterministically after I've swiped in some direction (something I've experienced elsewhere on Linux).

I also like that you can use two-fingers to zoom in on a webpage with Firefox, just as on Windows.

GNOME is the first DE I've tried where all of this touchpad support was implemented so well, although I haven't tried that many, to be fair.

Sorry if I sound like an advertisement; I just wanted to be specific about what I like about GNOME's trackpad support as opposed to just saying that it "works fine for me."