Get the latest tech news

Kruci: Post-mortem of a UI library


Who didn't once want to roll their own user interface toolkit?

For each ocean tile you have to calculate a couple of sines and exponentials - it's not the end of the world for a modern CPU, but it does become problematic in my case, because the game is rendered entirely on the server, players are just SSH terminals. If you always render an entire frame from scratch, you can simply iterate through all of the cells and replace their foreground color to gray (or do some kind of interpolation if you want to have a fade in effect or something). One of the reasons why I've eventually abandoned my custom tui-ui project was that I was getting increasingly worried that the overhead of managing trees and subtrees and selectors and surfaces and whatnot will be greater than any potential gains I could win by avoiding the diffing.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of ui library

ui library

Photo of kruci

kruci

Related news:

News photo

Show HN: Tkintergalactic - Declarative Tcl/Tk UI Library for Python

News photo

Magic UI: UI Library for Design Engineers

News photo

Show HN: Bloom – A shadcn like UI library for Elixir and Phoenix