HNHacker News
TopNewBestAskShowJobs

matthewkosarek

69 karma · joined November 12, 2025

Developer of miracle-wm, working on Mir at Canonical
submissionscomments
matthewkosarek··on Layer_shell.dart – Write a Wayland Shell in Flutter
I work on both the Mir Wayland compositor library and Flutter, and I've been wanting to fill a gap that I saw in the current Flutter ecosystem for a while now: desktop shell components on Linux. Now that Flutter is gaining multi-window capabilities on the desktop platforms (which I have been contributing to extensively), we can finally build our Wayland shells in Flutter . Come find me at FlutterCon USA in Orlando this year if you want to hear more about the new windowing API in Flutter.

I hope you have a fun time building shells with Flutter!

matthewkosarek··on Ask HN: What Are You Working On? (April 2026)
A WebAssembly plugin system for my Wayland compositor: https://github.com/miracle-wm-org/miracle-wm

The idea is that you'll be able to program window management, animation, configuration and more from WebAssembly plugins that are built with Rust. I've been wanting something like this for a while now in Wayland, especially something that skirts around the need for a heavy scripting language. I'm hoping to have a stable release of it by mid year.

I'm in the process of recreating the Niri window manager in Miracle: https://github.com/miracle-wm-org/miri-plugin

matthewkosarek··on Miracle – A hackable window manager for Linux
Yup! A nice language-agnostic API + a lightweight runtime was my goal. Although I concede the point about debuggability and whatnot. I'm hoping to figure that out later down the road, but it is a tricky part.
matthewkosarek··on Creating a WebAssembly Plugin System for Window Management in Miracle
A long, long time ago I implemented virtual outputs in Mir: https://github.com/canonical/mir/pull/3056

I forget if we've added dynamic configuration for them, but I don't see why it wouldn't be a possibility of we had upstream support there :)

matthewkosarek··on Creating a WebAssembly Plugin System for Window Management in Miracle
I've been working on a new Wayland compositor called Miracle for about two years now. I recently built a plugin system for window management based off of WebAssembly. Check out my blog post for more information, but I think it is a solid and novel approach to separating window management from the compositor in Wayland. Let me know what you think!
matthewkosarek··on Ladybird adopts Rust, with help from AI
There is also cxx.rs, which is quite nice, albeit you have to struggle sending `std` types back and forth a bit