Separating the logic and drawing into separate threads made the app so fast, around 400 FPS, that it crashed my StumpWM, LOL
arpnsh
mastodon 4.8.0-alpha.3+glitchLisper
East Jakarta, Indonesia
i've been using Zig for a while, i built an ATtiny85 emulator with Raylib for my final university assignment, it can compile to Linux, Windows, macOS*, and the web with just zig build, which is pretty amazing.
https://codeberg.org/aerphanas/zel
*i don't have a Mac, but technically it should build there too.
I tried Zig today, it was pleasant to write. The last time I checked IIRC it was version 0.10.1. I think the language is progressing quite well and I like it.
PreScheme arena allocator, the funny part is i can just define external C text like in address->color and color-size LOL
would be banger if my emulator can pull data from unix or tcp socket that generated from Lisp
@alanxoc3@tilde.zone i checked it, yes it doesn't have read permision for user
~ $ ls -l /bin/su
-rws--x--x 1 root root 59552 Feb 13 2021 /bin/su
~ $
need to ship a Raylib app on Windows, thank god Zig can compile Windows resource files
plus side of StumpWM, i can change background directly with clx without hsetroot
When creating a function that frees memory, having the function accept an allocator is helpful. I can just track that function, which is pretty convenient.