How is Zig?
-
How is Zig? Is it a usable language or more like a work in progress expect much changes thing?
-
R relay@relay.an.exchange shared this topic
-
How is Zig? Is it a usable language or more like a work in progress expect much changes thing?
@lunathemoongirl I can only give second hand info, but quite some people whose opinion I value recommended it to me quite some time ago Alex
Like @ikskuh ... who is taking a social media break, damnit ^^`
-
How is Zig? Is it a usable language or more like a work in progress expect much changes thing?
I always think i should maybe get good at a second language (as in regular use good) just in case odin goes belly up or maybe to have more options to collaborate with other people
And well I like C. I love C and i would just write C but also C is 50 years old and I can feel it.
-
I always think i should maybe get good at a second language (as in regular use good) just in case odin goes belly up or maybe to have more options to collaborate with other people
And well I like C. I love C and i would just write C but also C is 50 years old and I can feel it.
Other than that idk. C3? Dunno only heard it exists never heard anyone use it. Rust? I guess is a working language and wont dissapear but idk It's also exhausting to write and I don't like the package manager.
-
How is Zig? Is it a usable language or more like a work in progress expect much changes thing?
@lunathemoongirl I'm a big fan of zig and have written quite a bit of code in it. Big changes are still happening in the standard library and language. The next major release (0.16.0) will introduce a new Io & async API, and the current release (0.15.2) introduced a streaming reader/writer api.
I would say Zig feels like a modern version of C, with many of the jagged edges rounded off. Precision, verbosity, and explicitness are preferred over brevity and convenience.
-
@lunathemoongirl I'm a big fan of zig and have written quite a bit of code in it. Big changes are still happening in the standard library and language. The next major release (0.16.0) will introduce a new Io & async API, and the current release (0.15.2) introduced a streaming reader/writer api.
I would say Zig feels like a modern version of C, with many of the jagged edges rounded off. Precision, verbosity, and explicitness are preferred over brevity and convenience.
@lunathemoongirl I am generally a fan of the explicitness, but one area it can be annoying is with math. No operator overloading means geometric vector math is function/method calls. On the plus side, math is checked for overflow/underflow by default and zig has separate operators for wrapping and saturating arithmetic; I don't use them every day but it is quite handy when you do need them.
-
@lunathemoongirl I am generally a fan of the explicitness, but one area it can be annoying is with math. No operator overloading means geometric vector math is function/method calls. On the plus side, math is checked for overflow/underflow by default and zig has separate operators for wrapping and saturating arithmetic; I don't use them every day but it is quite handy when you do need them.
@desttinghim coming from a language with first class linear algebra support that sounds a bit scary but it's probably not that annoying when making things that don't consist of 90% vector math like games? ^^
Hmm I heard one of the big features is also lots of compiletime execution?