New

The latest blog posts to take off on Hacker News. 4,109 posts.

Any topic
2025
190

Let's write a toy UI library

We begin by writing a few helper functions that will invariably prove useful to us later. We will be dealing with a lot of rectangular regions on the screen, so it makes sense to start by defining a rectangle structure and write some code to manipulate it.