Skip to content

Comments

Add Silky - immediate mode UI graphics#3231

Merged
narimiran merged 1 commit intonim-lang:masterfrom
treeform:add_silky
Feb 12, 2026
Merged

Add Silky - immediate mode UI graphics#3231
narimiran merged 1 commit intonim-lang:masterfrom
treeform:add_silky

Conversation

@treeform
Copy link
Contributor

Silky - Fast UI for Nim.

Silky is an immediate mode GUI that focuses on speed above all else.

  • Single draw call to render the entire UI
  • A clean DSL to build interfaces that looks like idiomatic Nim
  • 9-patch support for scalable UI elements
  • Texture atlas for efficient rendering

It borrows many ideas from Dear ImGui, but it is not a direct port.

Philosophy

I wanted something very, very fast. Dear ImGui is known to be one of the fastest GUI libraries out there. I studied Dear ImGui to understand what actually makes it fast. Why is it so performant?

But I didn't want to just use Dear ImGui directly. It's written in C++, a completely different language. I wanted to build something that feels more Nim-like — using templates that look the way Nim code is supposed to look.

So this is my reimplementation, or rather, reimagination of what an immediate mode GUI should look like in Nim.

I've written many other libraries like Pixie (2D graphics) and Windy (Windowing system). I wanted to use them as well because I believe they're high-quality software. But ultimately, I wanted to build my own GUI library to understand GUIs from the inside out.

@narimiran narimiran merged commit 1009c52 into nim-lang:master Feb 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants