HNHacker News
TopNewBestAskShowJobs

Liskni_si

404 karma · joined March 30, 2018

https://github.com/liskin https://lisk.in/

https://meet.hn/city/gb-London

Socials: - github.com/liskin - linkedin.com/in/pivnik - reddit.com/user/Liskni_si

Interests: Cycling, Fitness, Gaming, Hacking, Hiking, Open Source, Outdoor Activities, Programming, Remote Work, Running

---

submissionscomments
Liskni_si··on XMonad – The Automated Tiling WM
Thank you!
Liskni_si··on XMonad – The Automated Tiling WM
Hi, xmonad maintainer here. "nothing yet" is probably fairly accurate, although perhaps a bit too pessimistic. :-)

A slightly longer answer is in a bullet point on our fundraising page (https://github.com/sponsors/xmonad):

> Wayland: It's becoming increasingly clear that the days of X11 are over and some Linux distros are already switching to Wayland. We're committed to keeping xmonad on X11 stable and alive as long as necessary, but if time allows, we should explore the Wayland ecosystem and figure out what it means for xmonad. Do we go all in on waymonad? Shall we try to keep xmonad a pluggable window-management component for another Wayland compositor? Honestly, we don't know yet. This one is a bit of a stretch goal: we might need more than one person full-time to actually make this happen.

Elsewhere in this thread, I wrote about some concerns I have about waymonad and xmonad on Wayland in general: https://news.ycombinator.com/item?id=28796909 The gist of it is that I'd like to keep the compositor and WM separate, because a) xmonad is reconfigured by compiling/restarting, b) I don't think the Haskell runtime is good for handling input and presenting frames, c) I don't want to maintain a compositor :-).

Liskni_si··on XMonad – The Automated Tiling WM
waymonad has a somewhat more active fork here: https://github.com/L-as/waymonad, but it's still just a one-man show that got picked up at ZuriHac 2021 and then failed to gather sufficient momentum.

As a maintainer of xmonad upstream, I'm watching the waymonad project to see where it goes, but I have some concerns about its architecture which I'd love to see addressed before we'd officially endorse people to try switching. This is a copy of a message I sent to fellow xmonad developers a couple months ago:

> We should certainly take a look sooner or later. From a quick glance, I have some concerns about the general design of it:

> It's a compositor and window-manager in one. This is typical for Wayland, but there are lots of disadvantages:

> * Restarting the WM is just like restarting X: session over. Unacceptable for xmonad/waymonad, as we don't reload config, we recompile and restart. Someone is apparently working on making Wayland compositors restartable, in general: https://indico.freedesktop.org/event/1/contributions/20/, though.

> * Another consequence of the WM and compositor being one is that they share memory leaks and GC pauses and signal handlers and whatnot. As much as I love Haskell, I'd prefer frames from an FPS shooter to be presented on screen by something else. Oh and did I mention the compositor/WM also handles input, making any GC pauses doubly painful?

> * Aside from operational issues, this also means all of that needs to be implemented. There's https://github.com/swaywm/wlroots/ (used by waymonad), a library that supposedly lets individual Wayland compositors implement less code, but it doesn't seem to be nowhere near what X gives us: we take care of window management and all the input/output handling is taken care of by other tools with their own configuration and tools. It simply doesn't seem to work that way in the Wayland world. There are other options like implementing a shell plugin for Weston, or possibly other libraries, I don't really understand the landscape.

> I may be wrong on some of these, as I didn't actually try to compile and run the thing.

> Anyway, I am convinced it'd be best if the compositor and WM were separate processes, ideally maintained by separate teams. You know, that old “do one thing and do it well” philosophy. And I have no idea how difficult would it be to make things work this way. If someone were to work on this, discovering the answer to this question would be one the first things to do.

I should probably clarify the wlroots handling IO thing: what I meant is that with Xorg, there are command-line tools like setxkbmap, xinput, xset, xmodmap, xcape, xrandr, autorandr and possibly others that a user can use to interact with the X server and tweak stuff, and from what I understand these don't have equivalents in the Wayland world that would work across WMs/compositors. I could be wrong, though, perhaps wlroots does have a standard protocol for such things and such tools already exist?

Liskni_si··on Show HN: Strava-gear – local-first rule-based component tracker for Strava
Hi, I'm the author of the strava-map-switcher[1] browser extension and last year I published strava-offline[2], a tool to download activities metadata from Strava into local sqlite database (and optionally also activities as gpx).

I'm quite a data nerd, so I wanted to track component wear in more detail than Strava allows. Some people on /r/Strava suggested their online web-based gear trackers, but I was always afraid of trusting them with all the data, and also quite reluctant to enter hundreds of components manually. I really prefer to keep this in git rather than in a 3rd party website that can go away. So now that I have activities metadata in sqlite from strava-offline, it was quite easy to create a local gear tracker that reads rules from YAML and computes component wear. Most of the work was spent polishing this and documenting. :-)

[1]: https://github.com/liskin/strava-map-switcher

[2]: https://github.com/liskin/strava-offline

Liskni_si··on GitHub Actions limitations and gotchas
Thanks!
Liskni_si··on GitHub Actions limitations and gotchas
Related to 3.3 (You can’t restart a single job of a workflow), is there any reason why the numeric id of a specific job run isn't available anywhere? There's GITHUB_RUN_ID, but that only identifies the workflow run, not the individual jobs, and this isn't unique across run/job restarts. Services like https://coveralls.io/ need an actually unique job run id, and they could also use the numeric id to link to the specific job run in a build matrix.

To clarify this further, in https://github.com/xmonad/xmonad/actions/runs/1201348600, GITHUB_RUN_ID=1201348600, GITHUB_RUN_NUMBER=168, but there's no way to get the 3514203530 out of https://github.com/xmonad/xmonad/runs/3514203530 (that's one of the jobs of that run).

Liskni_si··on Ask HN: What small tools/utils I can build with Haskell?
Customize your desktop experience by trying xmonad.
Liskni_si··on The Future of discord.py
Not OP but I also use a collapsible sidebar. Src here: https://github.com/liskin/dotfiles/blob/home/src-webextensio...
Liskni_si··on Debian 11
I have a non-ancient computer with the same Debian (testing with a bit of unstable mixed in) on it for over 16 years now. I still get excited about new stuff, I just don't want that new stuff to break anything. :-)
Liskni_si··on Twitter's new font, Chirp, is apparently giving some users headaches
It's not meant to undo all design changes on Twitter. It just disables the webfont and lets your browser use its default font instead.
Liskni_si··on Twitter's new font, Chirp, is apparently giving some users headaches
Oh, right, mea culpa. I just copy&pasted this from a tweet and didn't notice the added ://.
Liskni_si··on Twitter's new font, Chirp, is apparently giving some users headaches
I solved this by adding this rule to uBlock:

    ||http://abs.twimg.com/fonts/*.woff
Liskni_si··on New in Git: switch and restore
There's also diff-highlight[1] which is shipped with git itself and does almost the same thing, just possibly isn't as polished.

[1]: https://github.com/git/git/tree/master/contrib/diff-highligh...

Liskni_si··on Element raises $30M to boost Matrix
It absolutely does not work well. It only just barely works if all you need is chatting in public rooms that you joined from another client (e.g. Element). Everything else (joining rooms, sending private messages to people you don't have a 1:1 room with, viewing images sent to encrypted rooms, …) is painful or impossible.

And then there's the "little" issue of it not being able to coexist with wee-slack. That's a bug Python 3.9, not in weechat-matrix, but still.

I mean, I still use it because all I really need is chatting in already joined public rooms and for that it's better than that Element/Electron crap, because it's still a weechat after all, but it absolutely is not ready for any kind of serious usage. It's just a quick hack that sort of maybe works, sometimes.

Liskni_si··on The Framework Laptop is now shipping
+1

The current keyboard is not really fit to be used as a primary keyboard. A proper 7-row keyboard with full-sized arrows is really a must for people who use laptop keyboards as their main daily driver. Here's a picture of what one looks like: https://imgur.com/Epo5kBw

Please make something like that possible!

Liskni_si··on Valve Steam Deck
I've been running a mixed testing/sid install since 2005 and not once did I have to reinstall. Even managed to cross-grade from i386 to amd64 a couple years ago.
Liskni_si··on EU withheld a study that shows piracy doesn't hurt sales (2017)
What other major platforms still sell music though? Since Google Play Music's demise, I haven't been able to find a single one selling music in my region (Czech Republic).
Liskni_si··on Google Internal Comics
I made a comic book archive out of it for easier reading on phones/tablets/e-inks: https://store.lisk.in/tmp/goomics.cbz
Liskni_si··on Bash PS1 Generator
Another useful thing to have in one's PS1 is an optional newline if the last output didn't print one itself. Turns out this is non-trivial to get working perfectly (https://stackoverflow.com/questions/19943482/configure-shell..., https://work.lisk.in/2020/11/20/even-faster-bash-startup.htm...). The version that I've been using for a while without problems is this one:

  function __col1_ps1 {
    [[ $MC_SID ]] && return

    local termios cur_y
    # ask the terminal for any pending (line buffered) input
    termios=$(stty --save) && stty -icanon && stty "$termios"
    # if there's pending input, assume it's been echoed and we're not in first column
    # otherwise ask the terminal for current column and read it from input
    if read -t 0 || { IFS='[;' read -s -r -d'R' -p$'\033[6n' _ _ cur_y && [[ $cur_y != 1 ]]; }; then
      echo $'\001\033[41m↵\033[m\002\n\001\r\002'
    fi
  }

  PS1='$(__col1_ps1)<the rest of my prompt>'
My full prompt is here: https://github.com/liskin/dotfiles/blob/9785740f7f97d7da1f84...
Liskni_si··on Freenode ops take control of 700 channels
No, many of those channels were not already closed. #xmonad was still very much active on both sides as we were waiting for libera.chat staff to process our community registration, and there was just this tiny little mention at the _end_ of the topic that we're in the process of moving.

Still, freenode kicked us out anyway this morning. Luckily the Libera staff were able to process our registration quickly afterwards.

Liskni_si··on Show HN: Inflation-adjusted Hacker News
Would be nice if hnrss filtered by inflation adjusted points… :-)
Liskni_si··on Improving Firefox stability on Linux
I don't think that's it, really.

The real trick is that Debian packages have sonames in their versions, so ABI compatibility is encoded in package dependencies. So when I try to downgrade a library (to a known older version from snapshot.debian.org), it knows precisely which packages depend on the new version and forces them to be downgraded as well.

This is entirely orthogonal to following upstream vs. backporting patches. Sure, Debian (stable) does backport patches, which makes it more likely that single package downgrades don't downgrade half of the system, but it really is a different thing. Debian testing/unstable follow upstream to a larger extent than Debian stable, and upstream fixes are usually preferred to patch backports. Still, partial upgrades and downgrades almost always work without trouble.

Liskni_si··on Improving Firefox stability on Linux
The types of issues upgrading e.g. glibc or openssl can cause are largely predictable, aren't they? That's why there's libtool and sonames and that kind of stuff. The only missing piece is support for this in the package manager…
Liskni_si··on Improving Firefox stability on Linux
Can you elaborate why has Arch chosen to not support partial upgrades by design? They do work in Debian and it's saved my day a number of times. They let me roll back a broken upgrade without holding back upgrades of the rest of the system, and my computer then continues to be usable until the package in question is fixed.
Liskni_si··on Leaving Freenode for a new network
weechat-matrix unfortunately cannot coexist with wee-slack if running on top of Python 3.9 (https://github.com/wee-slack/wee-slack/issues/812, https://github.com/poljar/weechat-matrix/issues/248), so one has to choose between Slack and Matrix. It's just a bug that will eventually get fixed, but it does make things unnecessarily complicated right now.

With this issue and Matrix being several times slower than any other instant messenger I've ever seen, I'd really prefer communities didn't move to Matrix. :-/

Liskni_si··on Google Docs will now use canvas based rendering
Has anyone found a way to report bugs in the preview implementation?
Liskni_si··on Can I Email?
…as long as they contain the same content. I've seen e-mails where the HTML content is up to date, and the plain text part contains whatever was being sent a couple years ago, and hasn't been updated since then. Got me quite confused until I figured it out.
Liskni_si··on The Animal Is Tired
So, um, was that a typo? Am I parsing your sentence wrong? Been waiting for an edit but it doesn't seem one is coming. :-)
Liskni_si··on The Animal Is Tired
20 miles is just 6 miles less than a marathon, and would take over 6 hours at the normal pace of 5 km/h. Is that really what you manage to do in the morning before work? :-O
Liskni_si··on Show HN: A portfolio website simulating macOS's GUI using React
First thing that came to my mind when I opened this: hey let's test if maximization is just as broken as in real MacOS. And oh my god it is indeed! Safari won't maximize to the entire screen, just like in the real thing, and other apps like the terminal maximize correctly. Wow, this level of attention to detail is really crazy! :-)
← PreviousPage 4 of 7Next →