@drewdevault Interesting times, having #hare, #vlang, #zig in development. These are all great and hopefully they'll replace #golang. Anyways, I think hare is sometimes a bit too simple. How would one implement a generic map type? I guess with union types? Do you have an example somewhere?
Just updated all https://thi.ng/wasm-api packages, related example projects & build scripts to work with the latest #Zig v0.11-dev version. Due to recent Zig syntax changes[1] and to keep things simple on my end, I've had to discontinue support for older Zig versions (incl. v0.10.1)
Will people stop comparing Zig's comptime to Rust's macros? They are not the same!
Sure, there is some overlap, but comptime can do things macros can't do (such as really nice assertion checks), and macros can do things that comptime can't do (such as code generation).
"Zig is trying to help. C and assemblers don’t much care what I do with my memory, so they make it "easy" to write code that performs actions regardless of type. But if I get it wrong (and I will), the program will segfault. The language won’t get in my way, but it won’t help me either. Zig makes you get it right, and that’s a good thing. Slower and more tedious, especially at first, but good."
yooo! #zig seems to have fixed a long-standing issue where building the compiler using its build.zig directly instead of cmake+make would always produce a non-working executable for me, even with the same version.
excited for the #WebAssembly build of #SpacestationDefense! Almost all the pieces are in the place, I've figured out how to wrangle #emscripten into cooperating. I just need the #zig folks to release async support and then I can write the necessary websocket API.
Over the weekend I published a blog post describing how I integrate Zig with SwiftUI. This enables me to create cross-platform apps with native GUI experiences while a vast majority of the code remains shared/platform-neutral. https://mitchellh.com/writing/zig-and-swiftui#zig#ziglang
I’m really enjoying #zig so far. First-class support for SIMD built right into the language is really cool, but especially because they though it was important enough to put into a language that is deliberately kept small.
Is there anyone knowing how to use #ZigLang on #macOS ?
What means a "shell startup script" ? (to extend the PATH)
I think, #Zig may be a good language for OpenStreetMap tools.
My 18yo nephew asked me what my favorite #ProgrammingLanguage is and I don’t actually know the answer.
I use#C and #Go for applications. I write #Python for data munging and scripts and small apps. I’ve written many thousands of lines of each. I sponsor #Zig.
With Go's toolchain, cross-compiling is a breeze. But what if your repo contains C++ code as well?
Faced with the outlook of setting up and maintaining 15 LLVM toolchains (three host architectures multiplied by five targets), a team at Uber decided to build a C++ version of Go's cross-compiling toolchain.
Their toolchain is based on Zig, which is more lightweight than an LLVM or GCC solution and supports all targets at once. So they only need one toolchain per host.
Result: "Since January 2023, the Zig toolchain compiles all of the C and C++ code in Uber’s Go Monorepo for Linux targets."