3 ms·
> Probably the most incredible virtue of Zig compiler is its ability to compile C code. This associated with the ability to cross-compile code to be run in anot
by robotresearcher 1y ago
> Probably the most incredible virtue of Zig compiler is its ability to compile C code. This associated with the ability to cross-compile code to be run in another architecture, different than the machine where it is was originally compiled, is already something quite different and unique.
Isn't cross compilation very, very ordinary? Inline C is cool, like C has inline ASM (for the target arch). But cross-compiling? If you built a phone app on your computer you did that as a matter of course, and there are many other common use cases.
- crest 1y ago> Isn't cross compilation very, very ordinary? Working cross compilation out of the box any-to-any still isn't.
- BoorishBears 1y agoYes, very rare and there is a strong cartel of companies ensuring it doesn't happen in more mainstream langs through multiple avenues to protect their interests! From helicoptering folks onto steering committee and indoctrination of young CS majors.
- rmunn 1y agoIf I had the ability to downvote a comment yet, I'd downvote you. If you're going to spout conspiracy-theory-sounding stuff, at least provide some evidence for your claims!
- BoorishBears 1y agoIt doesn't sound like a conspiracy theory, you just have an incredibly poorly calibrated sense of judgement as to the tone of a statment. Not uncommon in this space though, especially as you get closer to the metal (close as cross-compilation is relative to something like React frontends, at least)
- TylerE 1y agoThis comment deserves a [citation needed] visible from geosynchronous orbit.
- BoorishBears 1y ago[flagged]
- ksenzee 1y agoSometimes if a joke doesn't land, it's because the joke wasn't funny. (Also, yes, a lot of folks here are autistic, maybe cool it with the veiled insults.)
- BoorishBears 1y agoSure sometimes... other times you get deadpan replies unironically demanding citations and proof of claims. There's nothing veiled or an insult: what I mentioned is a real factor in why people would read that statement and jump to demanding proof. - If I told a room full of plumbers that Sharkbites are actually sponsored by big Water trying to encourage water wastage, it definitely might not land... but none of them are going to demand a citation!
- ksenzee 1y agoYou truly don't see how "you didn't get my joke because you're autistic" is not an insult, to people who did you the courtesy of assuming good faith? Not to drag this out, and I don't personally have an autism diagnosis, but seriously this is no way to act in a space where autism is overrepresented.
- rkomorn 1y agoDid you accidentally double negative?
- 1y ago
- robotresearcher 1y agoAny-to-any? Do you mean host-to-any (or host-to-many)? I'd be surprised if there's a single build that runs on any host arch. I guess it's convenient to have support for many target architectures built in by default. I wonder how big that package is.
- kibwen 1y agoIt is for every major compiled language released since 2010.
- jibal 1y agoIf you install Zig, you can now generate executables for virtually any target with just a CLI argument specifying the target, regardless of what machine you installed it on. Nothing else does that--cross compilation generally requires compiling the compiler to target a different architecture.
- kibwen 1y agoNo, languages like Go and Rust have supported cross-compilation out-of-the-box since before Zig existed.