Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

introducing nanoui: desktop apps in Zig, drawn on the GPU. Natively. super low latency 0.06 ms frames a SUPER nano 0.7 MB binaries AND a 0% CPU when idle WITH zero dependencies AND no webview every frame of this video was drawn by nanoui itself(without a window).

62,199 görüntüleme • 14 gün önce •via X (Twitter)

32 Yorum

Rach profil fotoğrafı
Rach14 gün önce

The app in the video is nanomon, an activity monitor built on nanoui, with a graff bubble that suggests what to quit. There's also nanoterm, a Warp-style terminal with coding agents. Both have notarized DMGs: and the terminal is very experimental at: (these are just a few examples of how to work with nanoui!)

Rach profil fotoğrafı
Rach14 gün önce

And small. The same benchmark app is 0.7 MB on nanoui and 11.8 MB on mygo. nanomon is 1.1 MB and nanoterm is 1.8 MB. Electron's runtime alone is 224+ MB before you write a line.

Rach profil fotoğrafı
Rach14 gün önce

Another benefit with Zig that I have had over the past few months has been that a single machine builds for every platform: macOS (AppKit and Metal), Linux (GTK 3, loaded at runtime) and Windows (Win32). Off macOS it uses its own TrueType reader and a CPU renderer that's tested to match the Metal one pixel for pixel.

Rach profil fotoğrafı
Rach14 gün önce

AND everything is testable without a window: click, type, scroll and screenshot views in-process. That's how this video was made. A script drives the real nanomon UI headlessly, frame by frame, straight into ffmpeg. (which is great for agents!)

Rach profil fotoğrafı
Rach14 gün önce

Huge thanks to mygo by @localhost_5173 , which nanoui started as a port of, and to GPUI from the @zeddotdev team for the element model and shadow math 🙏 MIT licensed. Try it: nanoui: nanomon, the activity monitor:

Cesar Canassa profil fotoğrafı
Cesar Canassa14 gün önce

This is really cool, congratulations! Btw, I have a fork of Zig with a working self-hosted AArch64 backend. It compiles in seconds instead of the minutes LLVM takes. Maybe it can help you.

Jaume profil fotoğrafı
Jaume14 gün önce

0% cpu when idle is the whole pitch

Archo profil fotoğrafı
Archo14 gün önce

How does it compare to gpui?

Rach profil fotoğrafı
Rach13 gün önce

its in the benchmarks!

Sun Chawn profil fotoğrafı
Sun Chawn14 gün önce

copying from mygo?

Pablo Manjarres profil fotoğrafı
Pablo Manjarres14 gün önce

0.06 ms frames while electron apps take a sabbatical to open settings

Chris profil fotoğrafı
Chris14 gün önce

i am building a retained ui library lately. gpui is 5x slower than dear imgui. the cpu usage is poorer on the ceiling. after being in retained ui hell though i can see why immediate mode is so appealing. it is hard to do complex layouts without multiple passes also.

unkenny profil fotoğrafı
unkenny14 gün önce

This looking great chef

Brjan | AI Builder profil fotoğrafı
Brjan | AI Builder13 gün önce

shipping a UI framework with zero dependencies could change the game for performance

Flesance profil fotoğrafı
Flesance14 gün önce

Looks good!

Dλvi Sugλ profil fotoğrafı
Dλvi Sugλ14 gün önce

Using tahoe 26.4

Jedidiah profil fotoğrafı
Jedidiah13 gün önce

We badly needed this in the zig ecosystem.

grim profil fotoğrafı
grim14 gün önce

looking at this gave me a burst of dopamine that has to be a good sign

Cory Schulz profil fotoğrafı
Cory Schulz13 gün önce

this is awesome!

Shubham Sinha profil fotoğrafı
Shubham Sinha14 gün önce

What’s the difference with ?

Rach profil fotoğrafı
Rach13 gün önce

@grok what’s the difference between native and

Grok profil fotoğrafı
Grok13 gün önce

native (vercel-labs) uses TypeScript + declarative .native markup that compiles via Zig to a native binary with a custom renderer (no WebView by default). It offers a polished CLI and hot reload for web/TS developers. nanoui is pure Zig: immediate-mode GPU UI (Metal on macOS), optional webview, ~0.7 MB binaries, 0% idle CPU, and headless testing. Built for Zig users wanting max minimalism and speed. Both deliver lightweight native desktop apps without Electron.

Mattscreative profil fotoğrafı
Mattscreative14 gün önce

Wicled all of otter shell and all apps are zig and my entire de is now zig its a great lang

fajar sp profil fotoğrafı
fajar sp14 gün önce

what about compile time ?

💗 profil fotoğrafı
💗14 gün önce

what model did you use for this?

Rach profil fotoğrafı
Rach14 gün önce

6.1 sol with codegraff

The Koyim profil fotoğrafı
The Koyim14 gün önce

>zero dependency >0.7 Mb binaries Something does not add up.

Nixℝ𝕆ℕ profil fotoğrafı
Nixℝ𝕆ℕ14 gün önce

两者有什么区别?

Earl Cameron profil fotoğrafı
Earl Cameron13 gün önce

ew zig

Fackler profil fotoğrafı
Fackler14 gün önce

arent the zig folks anti ai?

Ravi profil fotoğrafı
Ravi14 gün önce

rendering the demo video from a script driving the real ui is such a flex. no display server, no screen recorder, and an agent gets the same click, type, screenshot loop for free

DODO profil fotoğrafı
DODO14 gün önce

how does this compare to Can Buluk's Tern? are you using webgpu

Benzer Videolar