[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: ZIG?.png (21 KB, 576x304)
21 KB
21 KB PNG
I once tried to learn C++ but so many things just sucked:
The syntax, headder files, 1000 ways to do the same thing, the ((meta-)meta-) "build" system(s) and overall the feeling of the language:
It is like someone had continuously updated his hobby project without concerning other users.

I want to learn a modern language instead and chose Zig out of Rust or Zig as Rust seemed gay-coded to me.
Is it a good decision to learn Zig? Will Zig stay?
>>
>>107645788
It's a fucking programming language. Once you learn one it's really fucking easy to switch to another so you're never wasting your time. Zig is dogshit imo because its build system is as complex as tard wrangling gcc or clang and it's syntax is as ugly and messy as Rust/C++'s. It's the worst of both worlds. Odin is the only modern systems language that has clean syntax and a braindead easy build system but it's a meme lang, like Zig, but unlike zig it is only used by indie game devs meaning it's probably already dead. If you want a systems language that will be around in 10 years time your only legitimate options are C and regrettably Rust.
>>
>>107645788
Zig is a conceptually poor language and Zig vs Rust vs C is a false dichotomy. Both languages are build over the foundation of C.
>>
>>107645921
I have heard that Zig has growing adoption in new languages. I is also compatible with C/C++ so if it is true what you have said, that it is not hard to learn a new language and Zig has benefits over C/C++ but is also able to maintain projects written in C/C++ it should be growing?
>>
>>107645966
>I is also compatible with C/C++
No they removed that. Also, the zig compiler has never successfully built the full version of itself. It can still only be bootstrapped.
>>
for low level languages, you benefit heavily by being (very) familiar with C semantics. This applies doubly so for meme languages because you will eventually want to interface with C libraries due to sheer volume
knowing about some of c++'s warts also helps, because features are often motivated by what went wrong in c++
>>
>>107645788
Zig is just so superior, but you should learn and master C first.
>>
>>107645966
>I have heard that Zig has growing adoption in new languages.
zig is growing (barely) because it exists. there is hardly any new (non-meme) players entering the game. maybe a couple of currently pre-alpha projects will grow into some relevancy...eventually. otherwise, for people looking for something new and almost ready for v1.0, zig is all they got.
>>
im learning zig by making a small game engine. its comfier and less trannycoded than rust
>>
>>107647427
Ghostty is nice.
If I find another nice Zig program I'll be using as many Zig programs as Haskell programs.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.