You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ This code is interesting, and worth a read for the following reasons :
68
68
- It uses the excellent http.zig library https://github.com/karlseguin/http.zig to do all the web stuff. I have had exactly zero issues using this lib.
69
69
- Single file binary, which includes the game, a web server, all assets such as HTML, images and audio. 1 file - no litter on your filesystem
70
70
- Generated docker image = 770Kb (compressed) All it has is the compiled executable (2.5MB), which includes only a single binary, nothing else.
71
-
- Run stats - uses about 60MB RAM and really low CPU %
71
+
- Run stats - in ReleaseFast mode running a 2 player game, uses less than 2MB RAM to run, and hardly any CPU. Its pretty resource efficient.
72
72
- Its about as simple as doing the same thing in Go, there is really nothing too nasty required in the code.
73
73
- The router, and all the HTML contents is part of the Game object ... the implications of this are that it is possible to create 'web components' using this
74
74
zig/htmx approach that are all self contained, and can be imported into other projects, without having to know about connecting up routes, or pulling in content. Interesting.
0 commit comments