Anthony Accioly @Anthony Accioly - 3d
Hi folks, I just published a small bugfix release of Haven (v1.0.6) on the official repository. This should fix the issue with Blossom mirroring on Primal web for those who weren’t on the latest master branch (thanks nostr:nprofile1qyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqpzpmhxue69uhkummnw3ezumrpdejqzgrhwden5te0dehhxarj9eeh2er0vdshymr0wvhxxmmd9a5kucn00qq3qamnwvaz7tmwdaehgu3wwa5kuegprpmhxue69uhhwmm59eeh2er0vdshymr0wvhxxmmdqqsqxcftp6awpmydxqp3c3qt5zrllx73v2tzmla6fdhqy8ky4lt3y9s0z69na), as well as hopefully fix the "Haven getting stuck during import" issue. No official binaries yet, as I'm still validating on Windows and ARM-based Linux. For now, other than building from source, users are welcome to obtain binaries from my fork: https://github.com/aaccioly-open-source/haven/releases/tag/v1.0.6 As always, feedback is highly appreciated. #haven #nostr #relay #personalRelay
sudocarlos @sudocarlos - 2d
do the binaries run without c dependencies on the system? in docker i have to add those. if i can run the binary with an alpine base, that would be nice
Anthony Accioly @Anthony Accioly - 2d
The Zig compiler is, in theory, building fully static executables and handling all the cross-compilation shenanigans, including compiling LMDB and all other C dependencies, as well as linking against libc. For Linux, it's using a musl target and, in theory, the resulting binary should run on Alpine or even on a distroless container. Though I haven’t tested it myself. If you want to try it out and let me know how it goes, that would be brilliant. With a bit of flag magic, I can produce ridiculously small binaries - less than 2 MB on macOS and Linux or arm)… So once the binaries have been integrated into the main repo, I might start using it for my own container builds as well. While glibc is faster than musl libc, and even though the images from my "distroless" build above are already quite small, having a 2 to 5 MB multi-arch (x86_64 / arm64) distroless container image would be fantastic. Side note: I'm very impressed by Zig. It may be the best tool out there for cross-compiling. The fact that I’m able to use it to cross-compile Go code with CGO enabled is just… mind-blowing!
nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpr3mhxue69uhhyetvv9ujucnfw33k76twwpshy6ewvdhk6tcpzdmhxue69uhhwmm59e6hg7r09ehkuef0qy2hwumn8ghj7un9d3shjtn4w3ux7tn0dejj7ne6u4e, FYI.
the parts of that which i understand sound pretty cool