Get the latest tech news
Let's write a video game from scratch like it's 1987
Published on 2024-06-20. In a previous article I’ve done the ‘Hello, world!’ of GUIs in assembly: A black window with a white text, using X11 without any libraries, just talking directly over a socket.
In a previous article I’ve done the ‘Hello, world!’ of GUIs in assembly: A black window with a white text, using X11 without any libraries, just talking directly over a socket. The result is a ~300 KiB statically linked executable, that requires no libraries, and uses a constant ~1 MiB of resident heap memory (allocated at the start, to hold the assets). The advantage of this approach is that the application is tiny and stand-alone: statically linked with the few bits of libC it uses (and that’s it), it can be trivially compiled on every Unix, and copied around, and it will work on every machine (with the same OS/architecture that is).
Or read this on Hacker News