Zig... anyone try it?
-
Any time man. And I get it; I'll never fully replace C in my heart. :laugh: It's literally the backbone of the world we live in.
Jeremy Falcon
Jeremy Falcon wrote:
It's literally the backbone of the world we live in.
A quote I have seen (and used myself once too): "Do not forget that my compiler compiled your compiler." :-D :-D
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
I find myself with the itch to learn a new system programming language. I really, really wanted to like Rust because I think the idea of compile time memory checks is great. And you don't want to become a dinosaur where tech passes you by. But, it's too opinionated... with crap that doesn't even matter. Like good luck changing the `src` directory to `app` to discourage too many acronyms being used (I consider app shorthand and not an acronym). Rust be like... nope you too st00pid for dat. Now, C will always be my favorite language, despite the fact I rarely use it these days and spend my time in TypeScript. For all the C haters out there... look inward. People that hate C are usually young kids who never used it. Moving on is one thing, but hatred is another. IMO it's not that hard to understand safe memory management. All the hoopla about C sucking is just that... hoopla. Unfortunately, I understand that most programmers never really take the time to learn crap, so I do get the need to rethink things to prevent overflows. Anyway, so I heard about Zig. Being a C fanboi and its two-way interoperability with it, I was immediately like... noice. Can't say I'm crazy about the name, but at least I can change my `src` directory to `app`. :laugh: It doesn't have a borrow checker like Rust, but it does have a way to at least help track down memory issues which is pretty clever. There's no global memory allocator at all. And it has a pretty nifty compile time build system that's like C++'s templating on steroids. It doesn't have nearly the tooling as Rust, but then again neither does C. :laugh: But, it can use any C library, so you don't have to do everything from scratch at least. Anyone try it? Like it? Don't like it? Has cooties?
Jeremy Falcon
ou've hit the nail on the head with your assessment of Rust and C. Rust's rigidity, while aiming for safety, can often feel restrictive. C, while potent, demands discipline and is unforgiving of errors. Zig seems to offer a compelling middle ground. Its C-like syntax and interoperability are huge pluses for those coming from a C background. The ability to fine-tune memory management without sacrificing safety is intriguing. And let's not forget the compile-time magic that can potentially supercharge development. However, it's still a relatively new language. The ecosystem and tooling might not be as mature as Rust or C++. There could be potential pitfalls or limitations we haven't discovered yet. I'd love to hear from others who have dived into Zig. Your experiences, both good and bad, would be invaluable. Have you tried Zig? What were your first impressions? Did you encounter any significant challenges or limitations? Let's share our thoughts and help the community grow
-
ou've hit the nail on the head with your assessment of Rust and C. Rust's rigidity, while aiming for safety, can often feel restrictive. C, while potent, demands discipline and is unforgiving of errors. Zig seems to offer a compelling middle ground. Its C-like syntax and interoperability are huge pluses for those coming from a C background. The ability to fine-tune memory management without sacrificing safety is intriguing. And let's not forget the compile-time magic that can potentially supercharge development. However, it's still a relatively new language. The ecosystem and tooling might not be as mature as Rust or C++. There could be potential pitfalls or limitations we haven't discovered yet. I'd love to hear from others who have dived into Zig. Your experiences, both good and bad, would be invaluable. Have you tried Zig? What were your first impressions? Did you encounter any significant challenges or limitations? Let's share our thoughts and help the community grow
I haven't used it in a project yet. So far it's just been playing around and watching YT videos. I too, am worried about the ecosystem. Granted, every ecosystem is small when something is new. So, I doubt I'd use it for an enterprise application just yet, but for home projects I would.
Jeremy Falcon
-
I find myself with the itch to learn a new system programming language. I really, really wanted to like Rust because I think the idea of compile time memory checks is great. And you don't want to become a dinosaur where tech passes you by. But, it's too opinionated... with crap that doesn't even matter. Like good luck changing the `src` directory to `app` to discourage too many acronyms being used (I consider app shorthand and not an acronym). Rust be like... nope you too st00pid for dat. Now, C will always be my favorite language, despite the fact I rarely use it these days and spend my time in TypeScript. For all the C haters out there... look inward. People that hate C are usually young kids who never used it. Moving on is one thing, but hatred is another. IMO it's not that hard to understand safe memory management. All the hoopla about C sucking is just that... hoopla. Unfortunately, I understand that most programmers never really take the time to learn crap, so I do get the need to rethink things to prevent overflows. Anyway, so I heard about Zig. Being a C fanboi and its two-way interoperability with it, I was immediately like... noice. Can't say I'm crazy about the name, but at least I can change my `src` directory to `app`. :laugh: It doesn't have a borrow checker like Rust, but it does have a way to at least help track down memory issues which is pretty clever. There's no global memory allocator at all. And it has a pretty nifty compile time build system that's like C++'s templating on steroids. It doesn't have nearly the tooling as Rust, but then again neither does C. :laugh: But, it can use any C library, so you don't have to do everything from scratch at least. Anyone try it? Like it? Don't like it? Has cooties?
Jeremy Falcon
-
i downloaded it. i'll check it out, but not right now. hardware/software issues to work on.
"A little time, a little trouble, your better day" Badfinger
jmaida wrote:
i downloaded it. i'll check it out, but not right now.
Cool man.
jmaida wrote:
hardware/software issues to work on.
Good times. Good times. :laugh:
Jeremy Falcon
-
jmaida wrote:
i downloaded it. i'll check it out, but not right now.
Cool man.
jmaida wrote:
hardware/software issues to work on.
Good times. Good times. :laugh:
Jeremy Falcon
-
Ain't that the truth. I am a old C programmer, as well, so I like what I am seeing.
"A little time, a little trouble, your better day" Badfinger
Noice
Jeremy Falcon
-
Noice
Jeremy Falcon
-
Coolio?
Jeremy Falcon
-
I find myself with the itch to learn a new system programming language. I really, really wanted to like Rust because I think the idea of compile time memory checks is great. And you don't want to become a dinosaur where tech passes you by. But, it's too opinionated... with crap that doesn't even matter. Like good luck changing the `src` directory to `app` to discourage too many acronyms being used (I consider app shorthand and not an acronym). Rust be like... nope you too st00pid for dat. Now, C will always be my favorite language, despite the fact I rarely use it these days and spend my time in TypeScript. For all the C haters out there... look inward. People that hate C are usually young kids who never used it. Moving on is one thing, but hatred is another. IMO it's not that hard to understand safe memory management. All the hoopla about C sucking is just that... hoopla. Unfortunately, I understand that most programmers never really take the time to learn crap, so I do get the need to rethink things to prevent overflows. Anyway, so I heard about Zig. Being a C fanboi and its two-way interoperability with it, I was immediately like... noice. Can't say I'm crazy about the name, but at least I can change my `src` directory to `app`. :laugh: It doesn't have a borrow checker like Rust, but it does have a way to at least help track down memory issues which is pretty clever. There's no global memory allocator at all. And it has a pretty nifty compile time build system that's like C++'s templating on steroids. It doesn't have nearly the tooling as Rust, but then again neither does C. :laugh: But, it can use any C library, so you don't have to do everything from scratch at least. Anyone try it? Like it? Don't like it? Has cooties?
Jeremy Falcon
-
I find myself with the itch to learn a new system programming language. I really, really wanted to like Rust because I think the idea of compile time memory checks is great. And you don't want to become a dinosaur where tech passes you by. But, it's too opinionated... with crap that doesn't even matter. Like good luck changing the `src` directory to `app` to discourage too many acronyms being used (I consider app shorthand and not an acronym). Rust be like... nope you too st00pid for dat. Now, C will always be my favorite language, despite the fact I rarely use it these days and spend my time in TypeScript. For all the C haters out there... look inward. People that hate C are usually young kids who never used it. Moving on is one thing, but hatred is another. IMO it's not that hard to understand safe memory management. All the hoopla about C sucking is just that... hoopla. Unfortunately, I understand that most programmers never really take the time to learn crap, so I do get the need to rethink things to prevent overflows. Anyway, so I heard about Zig. Being a C fanboi and its two-way interoperability with it, I was immediately like... noice. Can't say I'm crazy about the name, but at least I can change my `src` directory to `app`. :laugh: It doesn't have a borrow checker like Rust, but it does have a way to at least help track down memory issues which is pretty clever. There's no global memory allocator at all. And it has a pretty nifty compile time build system that's like C++'s templating on steroids. It doesn't have nearly the tooling as Rust, but then again neither does C. :laugh: But, it can use any C library, so you don't have to do everything from scratch at least. Anyone try it? Like it? Don't like it? Has cooties?
Jeremy Falcon
As far as I know, Zig is a language that promotes the DOD (Data Oriented Design) style. Its creator, Andrew Kelley has posted a lot of material about DOD and the like. There are several online resources about DOD, including videos by the author of Zig. Also articles like: Data Oriented Design: A Way of Thinking - Hello C++[^] Regards
-
I'm not a C programmer, so forgive my eventual stupid question: there is/was also a language called 'D' which claimed to enhance some of C flaws. I'm not a D programmer either. Anyone here with enough ZIG and D experience to compare both?
Nothing against D, but AFAIK (could be wrong) it's always had a garbage collector. I heard talks about them trying to make it optional, but not sure if that's happened yet. If I was gonna use a GC language, may as well use Go that's backed by Google ya know.
Jeremy Falcon
-
As far as I know, Zig is a language that promotes the DOD (Data Oriented Design) style. Its creator, Andrew Kelley has posted a lot of material about DOD and the like. There are several online resources about DOD, including videos by the author of Zig. Also articles like: Data Oriented Design: A Way of Thinking - Hello C++[^] Regards
Cool, I'll have to check it out. Thanks.
Jeremy Falcon
-
Nothing against D, but AFAIK (could be wrong) it's always had a garbage collector. I heard talks about them trying to make it optional, but not sure if that's happened yet. If I was gonna use a GC language, may as well use Go that's backed by Google ya know.
Jeremy Falcon