Zig... anyone try it?
-
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