Software engineer at @Microsoft. @ziglang core team member. My views not my employer’s. He/him

Joined November 2011
@ziglang's self-hosted in action. This feels so good!
0
4
26
473
extern fns in x86_64 on MachO in @ziglang self-hosted ✅
0
0
7
Progress! `write` and `exit` linked from within libSystem on macOS with @ziglang's stage2 compiler. Check it out!
Happy New Year y'all! It took me a couple of evenings, but may I present to you the first working PoC of extern function calls in self-hosted @ziglang on arm64 macOS. It took a couple of evenings, but finally managed to pull enough functionality together to make it click. Enjoy!
0
0
5
Happy New Year y'all! It took me a couple of evenings, but may I present to you the first working PoC of extern function calls in self-hosted @ziglang on arm64 macOS. It took a couple of evenings, but finally managed to pull enough functionality together to make it click. Enjoy!
0
3
38
TIL you can have multiple __TEXT segments and they don't even have to follow one another. In the pic, first __TEXT contains header/load commands, followed by __DATA, followed by __TEXT with __text section. I might burn in hell for this, but I'm so using this fact in @ziglang.
1
0
3
Soon you won't need the system linker hack to build your @ziglang compiler on Apple Silicon! After I clean it up and get it merged upstream, how does everyone feel about me fixing stage1 cross-compilation to *any* MachO target? Hint, yes, this includes Apple Silicon.
0
1
41
Show this thread
A few people were asking if the adhoc code signing is only valid for the machine it was done on. In short, no. To prove the point, I decided to also emphasise @ziglang's mission of seamless cross-compilation: `exit.zig` cross-compiled to arm64 macOS from x86_64 ArchLinux.
0
4
22
Great news everyone! @ziglang's self-hosted now ships its own Mach-O adhoc code signing mechanism. A draft but nonetheless functional. Now binaries generated with Zig's self-hosted compiler are already code signed for you and will work out of the box on @Apple Silicon on Big Sur!
3
7
115
Y'all, sorry for the spam, but after 2 weeks of working out the reductions, going through endless @Apple's sources, dissecting nth "valid" MachO binary, I finally got the output of stage2 @ziglang compiler to code sign and run on Apple Silicon!
3
7
109
Ooops, forgot to attach photo!
0
0
2
Show this thread