HeadlinesBriefing favicon HeadlinesBriefing.com

Undroidwish: Single-File Tcl/Tk Binary for Cross-Platform Development

Hacker News •
×

Undroidwish is an experimental single-file Tcl/Tk binary that bundles the entire runtime into one executable across Windows, Linux, and other platforms. Built from the AndroWish source tree, it uses a ZIP virtual file system and SDL/AGG/freetype-based X11 emulation for rendering. The project provides ready-made binaries for 32-bit and 64-bit Windows, as well as Intel Linux systems.

This batteries-included approach includes advanced extensions like tkpath, tktreectrl, tkimg, and Canvas3D, along with Tcl-only libraries such as tcllib and tksqlite. The binary supports multiple video drivers including Wayland, KMSDRM for console mode, and even a jsmpeg driver that streams output to web browsers. Developers can run built-in demos directly by specifying script paths within the embedded ZIP file system.

Platform support extends to FreeBSD, OpenBSD, OpenIndiana, MacOS, Haiku, and Termux on Android devices. The project also includes Raspberry Pi-specific optimizations using SDL2's RPI driver. With built-in tools ranging from TkCon console to SQLite frontends and various demos, undroidwish offers a portable development environment that eliminates traditional installation dependencies while maintaining full Tcl/Tk functionality.