<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z" -->

---
title: Quest for eternal dock on Wayland - lambdock (C + GTK4 +...
description: A developer recounts building lambdock, a Wayland-native desktop dock written in C with GTK4 and gtk4-layer-shell, embedding a GNU Guile Scheme runtime via...
canonical: https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Quest for eternal dock on Wayland - lambdock (C + GTK4 + Lisp GNU Guile Scheme) | daily.dev
og:description: A developer recounts building lambdock, a Wayland-native desktop dock written in C with GTK4 and gtk4-layer-shell, embedding a GNU Guile Scheme runtime via...
og:url: https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z
og:image: https://api.daily.dev/og/posts/8465Lo60Z.png
og:image:alt: Quest for eternal dock on Wayland - lambdock (C + GTK4 + Lisp GNU Guile Scheme)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Quest for eternal dock on Wayland - lambdock (C + GTK4 + Lisp GNU Guile Scheme)

**[Lobsters](https://daily.dev/sources/lobsters)** · 11 min read · 0 upvotes · 0 comments

## Summary

A developer recounts building lambdock, a Wayland-native desktop dock written in C with GTK4 and gtk4-layer-shell, embedding a GNU Guile Scheme runtime via libguile for live configuration and a REPL. The story covers failed prototypes in pure Guile GTK bindings, Python, Rust, and Node.js before settling on a C core with an embedded Lisp brain. Features include multi-dock instance support with hot-reloading config files, a Scheme DSL for defining launchers and widgets, and a Unix domain socket REPL for live-editing dock state from Emacs Geiser or socat. The project is packaged for Guix, Nixpkgs, openSUSE, Debian, Arch, and as OCI containers, and works on wlr-layer-shell-compatible compositors like Sway, Hyprland, and KDE Plasma Wayland (not GNOME/Mutter).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://jointhefreeworld.org/blog/articles/gnu-linux/quest-for-eternal-dock/index.html>

## Questions this post answers

### Which Wayland compositors support a layer-shell based dock application like lambdock?

Any compositor implementing the wlr-layer-shell-unstable-v1 protocol works, including KDE Plasma's Wayland session, Smithay-based compositors like Niri and COSMIC Desktop, wlroots-based compositors such as Sway, Hyprland, River, and Wayfire, and Mir-based compositors. GNOME's Mutter is not supported because it does not implement this protocol.

_Check daily.dev before picking a compositor if layer-shell docks and bars are part of your Wayland setup._

### Why did embedding Guile Scheme with libguile work better than pure Rust or Python bindings for a GTK4 dock application?

Rust GTK bindings introduced verbosity and async event-loop mismatches with GTK4's main thread, plus the borrow checker fought against dynamic features, and Rust's lack of reflection blocked embedding a live REPL. Python suffered GIL stutters that broke fluid slide-out animations. C with libguile gave native performance plus a genuinely live, interactive Lisp runtime for configuration and REPL inspection.

_Developers weighing Rust, Python, or C for GTK4 tooling can compare these tradeoffs on daily.dev._

### How do you connect to a running application's Guile REPL over a Unix domain socket from Emacs?

Use Emacs with the Geiser package: run M-x geiser-connect-local, select guile as the Scheme implementation, then enter the socket path, for example /tmp/lambdock-repl.sock. Alternatively connect from a terminal with socat, ncat, or nc using the -U flag, optionally wrapped with rlwrap for a better editing experience.

_Lisp-curious developers building live-reloadable tools can find similar REPL workflows on daily.dev._

## Similar posts on daily.dev

- [Ubuntu’s old Unity desktop remade in Wayfire and Libadwaita](https://daily.dev/posts/ubuntu-s-old-unity-desktop-remade-in-wayfire-and-libadwaita-jgh0abp3u) · omg\! ubuntu\! · 1 upvotes · 0 comments
- [GitHub - J-x-Z/cocoa-way: Native macOS Wayland Compositor written in Rust using Smithay. Experience seamless Linux app streaming on macOS without XQuartz.](https://daily.dev/posts/github---j-x-z-cocoa-way-native-macos-wayland-compositor-written-in-rust-using-smithay-experience--dtohyh3ca) · Hacker News · 2 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#linux](https://daily.dev/tags/linux), [#c](https://daily.dev/tags/c)

[View this post on daily.dev](https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Quest for eternal dock on Wayland - lambdock (C + GTK4 + Lisp GNU Guile Scheme)","url":"https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z"},"datePublished":"2026-08-28T18:24:33.311Z","dateModified":"2026-08-28T18:25:00.944Z","description":"A developer recounts building lambdock, a Wayland-native desktop dock written in C with GTK4 and gtk4-layer-shell, embedding a GNU Guile Scheme runtime via...","image":"https://media.daily.dev/image/fetch/s--ssLmu8Df--/f_auto,pg_1,q_auto/https://jointhefreeworld.org/static-assets/lambdock/gif_2026-08-06_13-13-17.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--ssLmu8Df--/f_auto,pg_1,q_auto/https://jointhefreeworld.org/static-assets/lambdock/gif_2026-08-06_13-13-17.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,linux,c","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Quest for eternal dock on Wayland - lambdock (C + GTK4 + Lisp GNU Guile Scheme)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/quest-for-eternal-dock-on-wayland---lambdock-c-gtk4-lisp-gnu-guile-scheme--8465lo60z#faq","mainEntity":[{"@type":"Question","name":"Which Wayland compositors support a layer-shell based dock application like lambdock?","acceptedAnswer":{"@type":"Answer","text":"Any compositor implementing the wlr-layer-shell-unstable-v1 protocol works, including KDE Plasma's Wayland session, Smithay-based compositors like Niri and COSMIC Desktop, wlroots-based compositors such as Sway, Hyprland, River, and Wayfire, and Mir-based compositors. GNOME's Mutter is not supported because it does not implement this protocol. Check daily.dev before picking a compositor if layer-shell docks and bars are part of your Wayland setup."}},{"@type":"Question","name":"Why did embedding Guile Scheme with libguile work better than pure Rust or Python bindings for a GTK4 dock application?","acceptedAnswer":{"@type":"Answer","text":"Rust GTK bindings introduced verbosity and async event-loop mismatches with GTK4's main thread, plus the borrow checker fought against dynamic features, and Rust's lack of reflection blocked embedding a live REPL. Python suffered GIL stutters that broke fluid slide-out animations. C with libguile gave native performance plus a genuinely live, interactive Lisp runtime for configuration and REPL inspection. Developers weighing Rust, Python, or C for GTK4 tooling can compare these tradeoffs on daily.dev."}},{"@type":"Question","name":"How do you connect to a running application's Guile REPL over a Unix domain socket from Emacs?","acceptedAnswer":{"@type":"Answer","text":"Use Emacs with the Geiser package: run M-x geiser-connect-local, select guile as the Scheme implementation, then enter the socket path, for example /tmp/lambdock-repl.sock. Alternatively connect from a terminal with socat, ncat, or nc using the -U flag, optionally wrapped with rlwrap for a better editing experience. Lisp-curious developers building live-reloadable tools can find similar REPL workflows on daily.dev."}}]}
```

