proomt

Search

Search posts, papers, and topics

All posts

Hacker News front pagemindbox7723 min readadvanced

A graphical desktop for the ZX Spectrum

Summary

The author built a full graphical desktop for the 48 KB ZX Spectrum in Z80 assembly, fitting overlapping windows, menus, input handling, and a heap within a single frame. All performance claims are backed by measurements taken on real hardware.

  • Overlapping windows with Z‑order and focus are implemented using a 16‑slot ring event queue and a per‑frame scheduler that keeps input handling constant‑time.
  • A custom memory map separates contended (slow) and fast RAM, ensuring no time‑critical code runs in the ULA‑stealed region.
  • Timing is measured against the 69,888‑T‑state interrupt period, achieving sub‑0.01% error and revealing actual contention cost (~14.7%).
  • The storage layer abstracts RAM, tape, and ESXDOS backends via a 14‑byte descriptor table, enabling pluggable persistence.

Engineers building UI or real‑time systems on extreme resource constraints can learn concrete techniques for timing, memory layout, and event handling from this work.

7/10

Related reading

  1. Custom home server built from spare parts

    A DIY home NAS built from a repurposed Zotac mini‑PC, 6×8 TB WD Red drives in a RAIDZ2 ZFS pool, encrypted boot, Wi‑Fi, custom Noctua cooling, and a front‑panel ESP32‑S3 touch screen driven by LVGL. Runs Kubuntu 24.04 with Docker‑Compose services behind Caddy, plus a self‑written dashboard and API.

    Hacker News front pageasmat.ca7 minHN8949
  2. Announcing Project Zenith: The ready-to-code Windows experience on developer-class devices

    Microsoft announced Project Zenith, a Windows 11 configuration bundled with high‑end developer PCs (64 GB+ unified memory, ≥250 GB/s bandwidth) that ships with VS Code, Windows Terminal and tuned settings for a distraction‑free coding workspace. It also adds built‑in WSL container support and MXC security, enabling on‑device execution of 30B‑parameter AI models without cloud token costs.

    Microsoft Edgewindows.com4 minHN143
  3. From Megawatts to Tokens: How NVIDIA Maximizes AI Factory Production

    NVIDIA’s DSX platform lets AI data‑centers shift workloads in response to grid signals, squeezing ~24% more token throughput (4 M→5 M tps) and ~23% better performance‑per‑watt on a fixed megawatt budget. The first production demo used Emerald AI’s Conductor to drop a 4 MW load to 3 MW in under a minute without interrupting high‑priority jobs. DSX MaxLPS reallocates headroom across HGX B200 server…

    Nvidianvidia.com5 min
  4. One App, More Than One Native Window

    Codename One now supports true native desktop windows via a new `Window` class that separates per‑surface state (paint queue, input routing, native peers) from the global `Display`. The change adds a `PaintSurface` abstraction, platform‑specific window back‑ends (AWT/Swing, Direct2D, GTK, UIWindowScene), and a migration path for components that assumed a single `Form`. Initial release has some UI…

    CodeName Onecodenameone.com11 min
  5. SiliconBench: Speed, Memory, and Fidelity for LLM Serving on Unified-Memory Desktops

    SiliconBench benchmarks nine Apple‑Silicon LLM serving engines on unified‑memory desktops, measuring speed, memory usage, and output fidelity across Qwen3, Qwen3.5, and Gemma‑4 models. It finds vllm‑metal doubles throughput at modest concurrency, memory budgets often fail to preserve headroom, and only three stacks satisfy all fidelity and model‑coverage requirements, with tensor‑parallel scaling…

    Hugging Face Daily Papersarxiv.org1 minpaper