strace-ui, Bonsai_term, and the TUI renaissance
Jane Street's strace-ui turns strace into an interactive terminal UI with on-the-fly syscall hiding, per-file-descriptor navigation and filtering, short PID labels, hexdumped buffers, man-page lookup and hostname resolution for sockets. It is built on Bonsai_term, a terminal backend for the OCaml Bonsai framework, which models UIs as composable, incrementally computed state machines and avoids the js_of_ocaml library restrictions that complicate Bonsai_web. Text-based screenshot expect tests let coding agents run tests and read the rendered UI, a closed loop that made AI-assisted TUI development fast. Many internal terminal apps followed, including proctopus and dissect.
Related posts
- Bun v1.3.12
Bun mediumAdept
Bun v1.3.12 adds Bun.WebView, a built-in headless browser automation API with WebKit and Chrome (CDP) backends. It dispatches OS-level trusted input events and waits for elements to be actionable, Playwright-style. Other additions are terminal Markdown rendering via `bun ./file.md` and Bun.markdown.ansi(), an in-process Bun.cron() scheduler that never overlaps runs and fires in UTC, and async stack traces for native APIs. The release also fixes UDP ICMP error handling and truncation detection, aligns unix socket lifecycle with Node.js, and embeds standalone Linux executables in an ELF section so execute-only binaries work. A JavaScriptCore upgrade brings `using` declarations and JIT improvements, and benchmarks show URLPattern up to 2.3x faster, SIMD-accelerated stripANSI/stringWidth up to ~11x faster, and faster bun build on low-core machines.
- What if writing tests was a joyful experience?
Jane Street Tech Blog mediumAdeptExpect tests (snapshot tests) let you write a blank `[%expect]` block under code that prints output; the test runner fills in the actual output as a diff you can accept in your editor, making test-writing feel like a REPL session. Jane Street uses them for most of its OCaml test suite, from rounding-function tables and Bonsai web UI DOM diffs to magic-trace symbol demangling and order-book state machines. Because they capture whole printed state rather than hand-picked assertions, they implicitly guard against regressions you didn't anticipate. Good expect tests depend on helper functions and pretty-printers that keep the output concise and readable.
- Porting a cross-platform GUI application to Rust
Mozilla Hacks mediumAdeptFirefox's crash reporter was rewritten in Rust, replacing three separate native GUI implementations (Win32, GTK, macOS) and their C++/Objective-C glue, which had no test suite, with a small custom UI abstraction. The reporter must run independently of Firefox code and avoid large dependencies, so third-party GUI crates were rejected. Instead a declarative UI model borrowed from GTK concepts is built with an ElementBuilder and a ui! macro, wired up through simple data-binding primitives (events, synchronized values, on-demand values) in an MVVM-like style. Each platform backend implements just run_loop and invoke, and a virtual test backend lets the UI be tested.
- Zed Weekly: #25
Zed mediumAdeptZed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance. All state lives in an AppContext that acts like an application-specific heap: Model<T> handles are dereferenced through a context, and models emit and subscribe to events. View<T> wraps models whose types implement a Render trait that returns element trees. Components, Tailwind-style styling helpers, a color-scale-based theme system and a new layout engine and executor round out the design. Bottleneck crates (project, workspace, editor) made the port largely serial, so the team leaned on Rust's type system and Zed's collaborative editing to pair on it, with roughly a third to half of the app ported after two weeks.
- Open SWE: An Open-Source Framework for Internal Coding Agents
LangChain mediumAdeptOpen SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph. It packages the patterns that Stripe's Minions, Ramp's Inspect and Coinbase's Cloudbot converged on: per-task isolated cloud sandboxes, a small curated toolset, context drawn from AGENTS.md plus the source Linear issue or Slack thread, subagents for delegated subtasks, and deterministic middleware around the agent loop. Two middleware examples are injecting follow-up messages mid-run and opening a PR if the agent didn't. It is invoked from Slack, Linear and GitHub, and the sandbox provider, model, tools, triggers, prompt and middleware are all pluggable.