*knock* *knock* art thys thung workyng?
It's been a while, but we haven't been whiling away the time[0]. Instead libinput has seen a few new features, scheduled for the upcoming 1.33 release. In this post I'll be discussing the brand new[1] novel[1] innovative[1] feature of the "Click Lock".
Typically, in order to hold a button down a user would have to, well, hold the button down. This is of course inconvenient when something prevents you from doing that, be that some physiodivergency or just lack of patience in regards to the button and it's pressing demands. This is where click lock comes in - it lets you nominate buttons that use a locking approach we typically know from the Caps Lock key[2]: press once to logically hold it down, press a second time to release.
Click Lock does exactly that: you tell libinput that you want buttons BTN_LEFT, BTN_RIGHT to be locked and clicking it once locks the button logically down, pressing it a second time releases the logical button. The exact locking mode is determined by a (configurable) timeout and a (configurable!) movement threshold, so the initial press needs to be held past the (configurable!!) timeout and the movement has to be less than the (configurable!!!) distance - currently defaulting(!!!!) to 1.2s and 1mm, respectively. The timeout can be set to zero in which case any click locks immediately [3].
We may add other modes in the future but for now this one should do for the majority of use-cases. Since this is a (long overdue) accessibility feature, I do encourage the compositor developers to integrate this soon.
And of course credit where it's due, this feature was implemented by Owen Kent, I'm just taking credit via this blog post here to get more internet points.
[0] The jury is still out on how much the time has been whiling away on us though.
[1] A quick check of the xf86-input-mouse driver suggests this feature has existed there since at least the initial git import in 2003 and I can't be bothered going back further. But hey, Apple gets to call existing features innovative and new when they finally implement them, so why not us!
[2] Which everyone of course maps to the compose key to be able to write letters like Æ for Ð when a password field requires English letters only.
[3] Technically this is no longer a "timeout" mode but I figured if you're observant enough to notice that, you've also long noticed the universe is against us when it comes to naming things
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Faucet with small crack on the side
We have an IKEA kitchen DOMSJÖ sink and GLITTRAN faucet that we bought and installed about 10 years ago. The sink has since been discontinued by IKEA.So the problem I had almost from day one is that the locking mechanism for the faucet would make the faucet move a little, often creating a visible gap next to the faucet, which in turn would let water and soap get in there.
But it also meant the faucet was never 100% stable, so over time it would eventually come lose and I would have to try to faster it again, only to once again face the battle of it moving as I was tightening it from underneath the sink. So this having happened again a couple of weeks ago I thought, wonder if I could 3d print something that keeps things stable. So I took a photo with Google Lens and asked it to help me identify which sink and faucet this was. Once I had the names I feed them into Gemini and asked Gemini if it could help me create STL files I could print that would allow me to securely fasten my faucet without risking it moving as I was tightening it. The first result turned out to be pretty useless
Bottom of faucet with first iteration 3d print
, basically two flimsy pieces that achieved very little, but when I then feed photos of them back into Gemini then Gemini asked if I could provide accurate measurements and it would try again. So instead of just taking measurements I decided to take photos of everything with a measuring tape in the photo, and that turned out to work really well. I fed the photos into Gemini and it produced these two STL models for me.
Locking C shaped plate with measuring tape
Final 3d printed parts
Once I installed them, one inside the faucet and the other one underneath the stink the faucet could be installed without a problem and now sits perfectly, and for the first time since we bought it, there is no movement in the faucet, it sits rock stable on the sink. So it seems AI can help you fix even 10 year old IKEA fixtures :)
I have since tested both Gemini and Claude for creating STL files further and so far I very happy with the results. I had a open tray of screws that was lacking a lead, so I took a photo and also uploaded the STL file for the tray, and voila I had a perfect slide on lid. Then my son wanted me to print him a Sukuna finger which is from his favourite Anime called Jujutsu Kaisen. I found a beautiful model on printables.com, but it required painting, but once again I feed the STL model and the image of the painted version into Claude and out came a new STL file that I put into my INDX four color printer and it created this beauty seen below for me.
Sukuna finger colored by Claude
And this revolutionizes 3D printing for me, because my attempts using FreeCAD before was successful, but also very slow and painstaking as I had to learn the application as I was trying to do my work, and the pieces I made where very simple and basic. Incredible application, but for someone just wanting to make a random piece from time to time to fix something in my house, being able to ask my AI agent to create a STL file is a lot simpler.
Claude was also able to help me when I finished upgrading my Prusa Core One to a Prusa CoreOne INDX multicolor system last weekend. The nozzle kept scraping against the build plate when moving to to wiper tray. I could not figure out why and thought it was a tuning alignment issue on my side, but Claude took a look and found the issue in the default GCode for nozzle cleaning. It was literally the command to raise the nozzle by mistake being below the command to return to the nozzle cleaning tray. Once I fixed that and saved a new profile I been printing without a problem, and I solved my issue in less than an hour of effective work instead of being stuck on this issue for days or weeks.
INDX 4 Color frog test print
Read more of this story at Slashdot.
As I’ve said in previous posts, if I could un-invent LLMs, I would. But that’s not possible, and we should use them to accelerate human work – especially to defend our software systems.
It’s been humbling to see LLMs find flaws in software I wrote (by hand) long ago and thought reasonably secure; also on a daily basis pointing out new flaws in designs.
It’s still the case that a tuned harness can generate reasonable quality code much, much faster than I could type it. I still believe for “core” software it’s very important to ensure we retain human oversight and knowledge. LLMs today in my experience still have some incredibly bad failure modes that humans are better at spotting (and vice versa!).
Anyways, this post is about my evolution in how I use LLMs – under a separate identity, or where that’s not possible, with a very clear delineation between what I wrote (prompted, etc) vs what was generated, and with what level of review/oversight.
Run LLMs as a separate accountMost of my software work is currently on GitHub. It is allowed by the ToS to have two accounts, as long as the second is for “automation”. LLMs I think qualify.
I’d long ago created https://github.com/cgwalters-bot/ for a different reason (testing a merge bot, way before GitHub had merge queues etc). I recently repurposed it to be my “personal LLM harness”.
Lifecycle of issue to PR95% of my personal harness work is public and FOSS, but basically it supports a generic “issue to PR” style flow that can operate roughly like this:
If you look around you’ll find various examples of this live.
There are a few important aspects to this. One is that in the last step, I am showing that I am actually looking at my agent output. I don’t always find problems, but it’s not uncommon there are some nits at least.
(Of course, sweeping up that type of stuff and tuning the harness or project rules is its own subtask)
Using itDo I like this system? I like it a bit better than my coworkers getting multi-thousand line PRs from what to them is a black box (me and agents on my laptop). And the same applies in reverse, when I’m on the receiving end I’d rather have it be very clear what the human did and what the agent did. Note that with my harness, the agent job logs when working on public content are public by default.
I’m not going to deny that sometimes it is amazing and kind of thrilling just how fast I can generate things live and try them.
But it’s also exhausting and I would still un-invent LLMs if I could.
How it runsA key thing here in “use a separate identity” is “use a separate logical account”. In terms of how to sandbox AI effectively, in my opinion by far the simplest and most effective way to do so is e.g. Unix useradd. Then log it into its own accounts separately. A separate login user can then use its own containers/VMs and do whatever your main account does.
Of course it also becomes a bit easier to delegate work to remote environments when you’re using this clearly separate account.
It’s nice to give your agent harness the ability to just iterate on its own tools in its own git repositories.
As I mentioned in the previous post, my harness uses a safe outputs style system that restricts what a particular task can do. This is really pretty essential, as opposed to just allowing arbitrary operations with its own account.
Where you can’t use a separate account, or it’s too much overheadForges like GitHub make it clear in a submission who did what, but that’s not true of other things like say Google Docs – and this “separate account” thing can be ~impossible in corporate environments. When I’m in a situation like that, I believe a standard thing should be writing the document (or presentation, etc) in a form that’s basically:
This is of course exactly what you get when “sharing a session” from most popular hosted agent systems. I would much rather get that than have someone run some stuff using some private tools in their laptop and then dump a document on me like they wrote it. I mean, you can tell when it’s LLM generated most of the time, but the above is just better and more honest I think.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
At the GStreamer Conference in Prague in October, a whole block of the second day was a session about GStreamer 2.0: an overview, three talks and a panel discussion. This post is my summary of that session and of my own talk in it. The next one will be about what I have worked on since.
As in my talk: what I describe here is an early research prototype. The GStreamer project has not made any decision about 2.0.
The sessionThe GStreamer 2.0 session had four parts:
Two talks were already about this work, Mathieu’s experiments with negotiation and my new core, so we decided to build a whole session around the future of GStreamer: this 2.0 session.
My talk: why a new major release?GStreamer 1.0 is 14 years old. It has served us well, and a lot can and should keep improving within 1.x: porting elements to Rust, for example, already removes many memory bugs from the code that parses untrusted data. But some issues come from the design of the core itself, and fixing them needs a deep rework of it, which changes what elements and applications have to do. These are the kinds of changes a major version is for:
Those ideas come from the 2.0 wishlist that GStreamer developers have been writing together. I presented a new core written in Rust, with no GLib in it. I started it to try some of those ideas in real code and see which ones hold up. Two principles guide it: move complexity out of elements and applications into the core, and use Rust’s types to enforce rules that would otherwise live in documentation.
The design separates a data plane, where pad tasks move the data, from a control plane, where one task per pipeline handles every change to it. Both run on an executor that the application can provide, so GStreamer can fit into the async runtime or event loop an application already has.
The control task is what makes the goal reachable: transactional dynamic pipelines, where you stage a change to a running pipeline and commit it as a whole, or arm it to happen at a given point of the stream, without any streaming thread relinking pads.
I ended with what I propose for the transition. 1.x keeps being maintained for a long time. A stable C API on top of the Rust core gives C elements and applications a path to 2.0: elements that are not worth rewriting in Rust can stay in C and be ported to that new API. And the plugins being written in Rust for 1.x today should carry over. Nobody should have to jump all at once.
The panelAfter the talks came the panel discussion, moderated by Tim, with Nicolas Dufresne (Collabora), Sebastian Dröge, Jan Schmidt and Mathieu Duponchelle (Centricular), Håvard Graff (Pexip), and myself, Thibault Saunier (Igalia). It stayed at a high level rather than going into designs, and it showed a broad agreement on the direction.
Why a new GStreamer. Tim opened by asking Håvard whether Pexip wants a new GStreamer or “just a faster horse”. Pexip has been built on GStreamer from the start. It runs video conferences and bridges them with services like Microsoft Teams and Google Meet, and its hardest problems today come with scale: many small video calls, a few very large ones, and forwarding the media without re-encoding it whenever possible. GStreamer does not reach the numbers they need there. His gut feeling is that more chipping at the current core will not be enough, and that it is not one single thing: sharing threads alone did not bring the gain they hoped for. Nicolas described the same limits from the embedded side. The push-based, multithreaded model is now set in stone: scheduling is left to the operating system, negotiation is spread over every element with no single place that sees the whole graph, and the allocation query has never really worked as intended. He has been trying to make sense of it since 1.2: it carries lists of pools and allocators of which only the first is used, loosely defined parameters, and no way to intersect or merge proposals as caps negotiation does, a sign that it is in the wrong place. Every fix to make elements work together adds work for every new plugin.
Breaking the API, but carefully. Sebastian noted that the problems are well known, and that what we need now are solutions. Writing most elements should be as simple as providing a processing function and describing what goes in and out, while keeping the powerful API for the cases that need it. He also suggested that, while breaking compatibility, we could offer a compatibility layer for the small part of the API most applications actually use. Mathieu’s point was that if we never start, 2.0 will always be three years away: we should experiment now, expecting to throw those prototypes away and to bring the results together into one design. Jan put it in perspective: GStreamer 0.8 had its own green threads scheduler, 0.10 threw it away and relied on operating system threads, and probably used them too much. An async runtime is a middle ground, though we will still need boundaries where we wrap code that runs its own threads.
What must not be lost. Håvard’s favorite part of GStreamer is its building blocks: an element can be tested on its own, then trusted inside a bigger pipeline, and the same API can wrap V4L2, FFmpeg or any third party system. People in the audience added a learning curve that starts low for simple applications, modularity (shipping only the plugins a product needs matters for a medical device and its security paperwork), the sheer number of existing plugins, and the flexibility to handle exotic use cases.
What people want. The audience brought a long list:
The discussion also covered porting. Nobody wants a one to one translation of the existing plugins, by hand or with an LLM: porting is a chance to rethink an element, while keeping the workarounds for broken streams that accumulated over the years, since they encode real knowledge. The panel ended on a “brave new world” note, and a call to stop talking and start doing.
At the hackfestThe two hackfest days after the conference were a good opportunity to go deeper into some of these topics with the people working on them:
The wishlist keeps growing: it now has sections from nine people. On my side, the control task has landed on main of the prototype, and I am close to landing a first transaction API on top of it. That will be the subject of my next post.
I would also like to get people hacking on it together: I have proposed a hackfest dedicated to GStreamer 2.0 hacking, possibly hosted in Santiago de Chile, where I live.
The recordings of the session will be on the conference video archive.
Read more of this story at Slashdot.
I’ve been happily using Helix (best editor in the world) for a while. I love its “batteries included” approach, because nobody has 30 years before them to craft the perfect configuration file. I love its “every change has to be intentional and fix an actual problem, it’s actually desirable to say no to Pull Requests” philosophy. But it has two major problems:
I love Helix (best editor in the world) with all my soul, but it’s also missing some features that would make life much easier, like code folding for example. Its maintainers don’t owe anyone anything, but the project’s structure almost set them for burnout.
Several forks of Helix exist to make up for the lack of release, but most of them are band-aid on a wooden leg. They’re all about merging PRs that haven’t been merged upstream and releasing more often, but they still track upstream and rebase regularly. And that’s a good thing to do! To an extent.
When the upstream has gone dormant, a hard fork allows bolder decisions because you don’t have to worry about eventually rebasing and upstreaming your changes. A significant contributor to Helix, matoous, forked it over the summer to create Mitos. The reason given is
Helix built a strong foundation. Mitos is a chance to build on it at a faster pace, experiment with new features and different approaches to the architecture, and see where it can take us. For now, expect less stability and occasional breaking changes. Nevertheless, the end goal is similar - fast, robust, and extensible editor for all your needs.
I liked the idea of keeping Helix’ spirit, but also experimenting more. Early on I opened a discussion about governance to avoid repeating Helix’s mistake and the response has been positive: the project needs to experiment at a faster pace in its early days, but the maintainer is open to onboarding properly new maintainers eventually.
I’m still using Helix for now, but now that Mitos is available on homebrew I will give it a proper spin.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.
Read more of this story at Slashdot.