I released Samatas Analyzer v1.0
Used zig 0.17.1 for building and embedding the fonts, Juce and cpp https://juce.com/.
What troubled me most during the development of this product:
- Ui and ux (damn thing kept looking ugly and clumsy),
- hosts-os tests (each host-os combination just had to have some unique bug)
- manual writing (it was ridiculously slow)
- video creation (even more ridiculously slow)
What helped me and others may find useful when developing plugins with Juce:
What I didn’t like when using zig for building my project:
- cache clean-up. I must erase the cache folder often, manually. Other build systems also have the same issue, solving it at some point could serve as a differentiator.
What I like about this release (write software you love):
- handles 3d and sound evolution over time in a unique way
- done, even if it is weird and imperfect.
LLM usage disclosure:
- I used Claude, for testing, docs, general advice, code sections. The decisions, supervision, and responsibility are mine.
1 Like
A script should help you with cache cleanup. I ran into this inconvenience myself not long ago.
#!/usr/bin/env bash
set -e
BUILD_TMPDIR=$(mktemp -d)
trap 'rm -rf "$BUILD_TMPDIR"' EXIT
ZIG_LOCAL_CACHE_DIR="$BUILD_TMPDIR/local" \
ZIG_GLOBAL_CACHE_DIR="$BUILD_TMPDIR/global" \
zig build
This will also ensure proper cleanup regardless of build success. Another option is to add a “clean” step to your build config that invokes a shell command. Just don’t make it a dependency of your build tree. You MUST invoke it separately.
But I would rather prefer a --clear-cache option in zig.
原文来源:ziggit.dev