What are your programming "hunches" you haven't yet investigated?

Open original

A Lobste.rs thread where developers share untested ideas—from building GUI toolkits with an accessibility-first architecture to enable better testing and scripting, to using 32-bit pointers on 64-bit systems for memory savings, and applying property-based approaches to infrastructure. Contributors discuss tools like AccessKit, the x32 ABI, and the benefits of driving design by fundamental properties rather than legacy constraints.

  • Building GUI toolkits with accessibility as the core data model (not bolted on) enables pixel-free testing, automation via high-level actions, and multiple "themes" (graphical, voice, terminal, remote) on one semantic backbone—AccessKit already does much of this for Rust/Egui.
  • Reviving x32 ABI (32-bit pointers on 64-bit hardware) cut Mastodon's RAM use from 650MB to 350MB by shrinking pointers and improving cache density, though Debian disables it by default and most distros don't ship it.
  • V8 and other JIT engines already use pointer compression for sandboxing, suggesting broader adoption of narrow pointers could yield wider resource savings.

Building a GUI toolkit around accessibility first means treating the accessibility tree as the core data model instead of a post-hoc add-on. You define view hierarchies, event bindings and layout relationships in explicit data structures from day one. That lets you ship test suites early—tools can inspect that same tree to verify behavior without brittle pixel-based checks. You end up with a system where graphical rendering, voice output, terminal UIs or remote browser views are all just “themes” layered on the same semantic backbone. Early accessibility support also unlocks scripting and automation. Rather than driving UIs by raw mouse coordinates, you send high-level actions—“activate button X” or “select item Y.” That makes integrations with AppleScript, Lua, or any automation framework far simpler to bolt on. It turns out the hardest part isn’t designing the toolkit’s view abstractions but peeling away 1990s cruft—pointer-chasing trees and tight main-loop coupling—so you can take full advantage of modern CPU, memory and GPU capacity. Someone pointed out AccessKit, a Rust-based accessibility library with C and Python bindings, already tackles much of this work. It’s been hooked into Egui (a Rust GUI), though IMGui support is unclear. Matt Campbell’s RustWeek talk (youtube.com/watch?v=OI2TzJ6Sw10) walks through how it exposes a clean, cross-platform a11y interface. With AI tools helping decode Windows, macOS and Linux legacy APIs, building a unified accessibility layer finally seems doable. There’s a second hunch about resurrecting x32, the Linux ABI that uses 32-bit pointers on 64-bit hardware. You halve pointer sizes, shrink memory footprints by up to 50%, and fit more data in L1/L2 cache. Experiments deploying Mastodon on x32 cut RAM use from 650 MB to 350 MB. Debian disables x32 by default and most distros don’t even ship it, but multiarch support could let amd64 and x32 binaries coexist. JIT engines like V8 already use pointer compression for sandboxing; a broader x32 revival could save resources across the board.

Ask about this article