Skip to content

Instantly share code, notes, and snippets.

@kamidev
kamidev / zig_master_build_history_m3max.md
Last active April 20, 2025 13:42
Zig master build history on M3 Max

2025014 Sequoia 15.4, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.2 (llvm@20)

20250407 Sequoia 15.4, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.2 (formula llvm@20)

20240319 Now using M3 Max. Sonoma 14.4.1, latest XCode Commandline Tools, homebrew-installed LLVM 17.0.6

20240420 Sonoma 14.4.1. latest XCode Commandline Tools, homebrew-installed LLVM 17.0.6

20240423 Sonoma 14.4.1. latest XCode Commandline Tools, homebrew-installed LLVM 17.0.6

@kamidev
kamidev / zig_behavior_test_2025020
Last active April 20, 2025 13:58
Failing behavior tests on zig master 0.15.0-dev.377+f01833e03
➜ build git:(master) zig build test-behavior
test-behavior
└─ run test behavior-aarch64-macos.15.4.1...15.4.1-none-apple_m3-Debug-libc-cbe 1927/2058 passed, 2 failed, 129 skipped
error: 'behavior.cast.test.cast f16 to wider types' failed
error: 'behavior.vector.test.array to vector with element type coercion' failed
error: while executing test 'behavior.usingnamespace.import_segregation.test.no clobbering happened', the following test command failed:
/Users/jonas/src/zig/zig/.zig-cache/o/9ae5e5e3e46e709564b43d4133ba5bd8/behavior-aarch64-macos.15.4.1...15.4.1-none-apple_m3-Debug-libc-cbe --seed=0xe484faa --cache-dir=/Users/jonas/src/zig/zig/.zig-cache --listen=-
test-behavior
└─ run test behavior-x86_64-macos.13.0...15.3.1-none-core2-Debug-selfhosted-no-lld 1908/2058 passed, 3 failed, 147 skipped
error: 'behavior.cast.test.cast f16 to wider types' failed: ???:?:?: 0x1044f0023 in ??? (???)
@kamidev
kamidev / zig_install_m3_max_macos.md
Last active April 20, 2025 14:13
zig_macos_m3_max_install

Personal notes building zig 0.15.0-dev.xxxx on Macbook M3 Max

2025014 Sequoia 15.4.1, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.3 (llvm@20)

This way of building probably works on all Apple Silicon Macs, but you must check other models yourself. Some Intel Macs should also work (the only significant difference is the default homebrew path). But I don't test that anymore.

Here is a my list recent succesful M3 Max builds

DO YOU REALLY NEED TO BUILD FROM SOURCE?

@kamidev
kamidev / zig_macos_m1_install.md
Last active April 25, 2023 10:07
Building zig master on M1 Mac

Keybase proof

I hereby claim:

  • I am kamidev on github.
  • I am kamidev (https://keybase.io/kamidev) on keybase.
  • I have a public key ASCUNUEd9gHCjY-9B48oJMznxi-1psO0bKSMgA3azCJb7Ao

To claim this, I am signing this object:

#demo {
font-family: 'Helvetica', Arial, sans-serif;
}
a {
text-decoration: none;
color: #f66;
}
li {
line-height: 1.5em;
margin-bottom: 20px;
@kamidev
kamidev / gist:c8cb4569851f75173bdfcacc8993ac3d
Created June 9, 2016 11:44
Phoenix.new error using Erlang 19.0-rc.2
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.3.0-rc.1) - press Ctrl+C to exit (type h() ENTER for help)
➜ installer git:(master) mix phoenix.new dev_app --dev
...
➜ installer git:(master) ✗ cd dev_app
➜ dev_app git:(master) ✗ mix phoenix.server
==> connection
Compiling 1 file (.ex)
Generated connection app