you can have zig

I just ran this in the appliance,
root@(none):~/example# mount -t tmpfs tmpfs .zig-cache
root@(none):~/example# zig build
zig build
root@(none):~/example# ls
ls
build.zig
build.zig.zon
src
zig-out
root@(none):~/example# zig-out/bin/example
zig-out/bin/example
Run `zig build test` to run the tests.
All your codebase are belong to us.

Until I fix the rename issue, .cache will have to be transient.

Now, that zig program, running in the appliance, is in /home/glenda, i.e.,
once compiled it can be used in pipelines, e.g. I just ran this
date | linux wc
and, were I to compile a zig command, I could also run
date | linux random-zig-command

Yes, native is better, and Roman tells me that's easy, but for now, you
have this: zig on 9, via the linux appliance. Thanks vmx command!


On Tue, Jul 1, 2025 at 10:54 AM ron minnich <[email protected]> wrote:

> the linux appliance script is to this point (reminder: SIDECORE_DISTRO is
> a flattened docker container in cpio format)
>
> term% SIDECORE_DISTRO=zig linux
> running sidecore version
> 2025/07/01 09:07:39 [ERROR] No handler for 100227.0 # no locking
> # bash -i
> root@(none):/# cd /home/glenda/example
> cd /home/glenda/example
> root@(none):~/example# strace -f /usr/bin/zig build
> blah blah bla
> error: sub-compilation of compiler_rt failed
>     note: failed to rename compilation results
> ('/home/glenda/.cache/zig/tmp/a62bbae7d825886b') into local cache
> ('/home/glenda/.cache/zig/o/bbff09bb57828d57d942b42fdad7218f'): Unexpected
>
> see that rename? It kind of breaks the plan 9 rules. I am going to fix
> sidecore to handle that case. it will require full unix-style mv logic.
>
> but the zig compiler can be run via the linux appliance, so to have zig,
> you can implement
> step 1: generate plan 9 binaries (maybe not too hard) and run zig in the
> linux appliance
> step 2: port zig to plan 9 (much harder)
>

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T816bff3136de7170-M53d23ea76ceafa18c6e6857d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to