← All projects
Project record1 mention
Originally shared on Hacker News

Native Tcl/Tk Wayland and Android Port

A native Wayland backend implemented inside Tk itself, plus an Android port sharing the same approach: a thin X11 emulation layer (like Tk's macOS and Windows ports), developed top to bottom by Claude with the submitter testing and sanity-checking the outcome. It uses Cairo/HarfBuzz drawing, with touch and the on-screen keyboard handled in generic Tk through new commands and events. Tkabber runs on the Wayland port unaltered and on Android with one small fix.

Last shared
01 / The problem

What it addresses

Native Wayland support for Tk was proposed years ago as a hard GSoC project and considered very hard for humans to implement.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Native Tcl/Tk Wayland and Android Port

    A native Wayland backend implemented inside Tk itself, plus an Android port sharing the same approach: a thin X11 emulation layer (like Tk's macOS and Windows ports), developed top to bottom by Claude with the submitter testing and sanity-checking the outcome. It uses Cairo/HarfBuzz drawing, with touch and the on-screen keyboard handled in generic Tk through new commands and events. Tkabber runs on the Wayland port unaltered and on Android with one small fix.

    Problem: Native Wayland support for Tk was proposed years ago as a hard GSoC project and considered very hard for humans to implement.

    Posted by @wusspuss · Original source ↗

    Story title · @wusspuss · · Source ↗

    Show HN: Native Tcl/Tk Wayland and Android Port

    Submitted URL · @wusspuss · · Source ↗

    https://github.com/pounceandmiss/tkabber-demo

    Source text · @wusspuss · · Source ↗

    https://github.com/pounceandmiss/tk-wayland/releases/

    Source text · @wusspuss · · Source ↗

    https://github.com/pounceandmiss/tkabber-demo/releases/

    Source text · @wusspuss · · Source ↗

    Claude was given the freedom to make its choices from top to bottom, including stack and architecture. It came up with a thin X11 emulation layer, the same approach Tk's macOS and Windows ports already take - except this one is shared by Wayland and Android thanks to their similarity.

    Source text · @wusspuss · · Source ↗

    Unlike AndroWish (an SDL-based Tcl/Tk distribution for Android), this is a backend inside Tk itself, shared with the Wayland port: Cairo/HarfBuzz drawing, with touch and the on-screen keyboard handled in generic Tk through new commands and events.

    Source text · @wusspuss · · Source ↗

    Tkabber (a large, long-lived XMPP client) runs on the Wayland port unaltered, and on Android with one small fix.

    Source text · @wusspuss · · Source ↗

    Native Wayland for Tk was proposed years ago as a hard GSoC project ( https://wiki.tcl-lang.org/page/GSoC+Idea%3A+Tk+Backend+for+the+Wayland+Display+Protocol ) - and let's be honest, it's very hard for humans. Turns out AI cracks it in a few hours.