코딩Coding/Zig_❤️lang
-
Zig❤️ 에서 ld 링커 사용하는 명령어 겁나게 길다.코딩Coding/Zig_❤️lang 2022. 8. 26. 23:11
Zig, and zig ld in particular, has the ability to link against frameworks when cross-compiling $ zig cc -target aarch64-macos --sysroot=/home/kubkon/macos-SDK -I/usr/include -L/usr/lib -F/System/Library/Frameworks -framework Foundation -o hello hello.c https://github.com/ziglang/zig/wiki/FAQ#where-is-the-documentation-for-the-zig-standard-library GitHub - ziglang/zig: General-purpose programming..
-
A Review of the Zig❤️Programming Language (using Advent of Code 2021)코딩Coding/Zig_❤️lang 2022. 8. 10. 21:20
https://www.duskborn.com/posts/2021-aoc-zig/ A Review of the Zig Programming Language (using Advent of Code 2021) I’ve long thought that Zig was an interesting programming language, potentially more interesting than Rust in many respects given that Zig seems to be targetting a more modern C-like language replacement whereas Rust firmly looks like it is trying to tak www.duskborn.com
-
Unsafe Zig ❤️ is Safer than Unsafe Rust코딩Coding/Zig_❤️lang 2022. 8. 10. 21:15
Unsafe Zig is Safer than Unsafe Rust https://andrewkelley.me/post/unsafe-zig-safer-than-unsafe-rust.html Unsafe Zig is Safer Than Unsafe Rust - Andrew Kelley Unsafe Zig is Safer than Unsafe Rust 2018 January 24 Consider the following Rust code: struct Foo { a: i32, b: i32, } fn main() { unsafe { let mut array: [u8; 1024] = [1; 1024]; let foo = std::mem::transmute::(&mut array[0]); foo.a += 1; an..
-
Zig) ❤️Why no function overloading?코딩Coding/Zig_❤️lang 2022. 8. 2. 21:35
Why no function overloading? I can't seem to find any rationale for Zig not supporting function overloading, only [mentions from Andrew](https://github.com/ziglang/zig/issues/1251) that Zig does not and probably never will have it. Meanwhile that's one of the worst flaws of C, and one very easily correctable. Have there been any hard counter-arguments given? Note that I'm not asking about operat..