• 0 Posts
  • 2 Comments
Joined 1 year ago
cake
Cake day: January 23rd, 2025

help-circle
  • If Zig is easy than that means C is easy (as Zig is pretty much nicer written C) and if C is easy than, oh wait everything is written in C. I guess the only thing left to do is learn an unnecessary overcomplicated abstraction of C like java or C++.

    As for the question, pick a task than pick a language, servers? Go seems to be replacing Java for the next generation, Games? Zig C# Odin C C++ Lua, Rewrites? Rust. Random small scripts? Python. Bare metal? C C++ Zig.

    Also Zig Odin and Go are all C like languages if you learn one you learn about them all (with the exception of manual memory management for Go). My biased self recommend Zig as I think its the nicest, you almost certainly won’t get a job in it but the skills will transfer directly to C or Go where you can get jobs.


  • Zigs goal is to be more pragmatic than C.

    It is quite possibly the worst language to vibecode in, it is updating fast so LLMs usually don’t know what format to use (meaning a person who knows zig must fix those format errors). You can also get an LLM to write terrible rust code and while it will perform shit it will probably work, Zig on the other hand has manual memory management and everything has to be thought about or else it won’t work. This is why once Anthropic bought bun they decided to vibe remove zig.

    As the previous comment said the lead developer for zig really, Really, doesnt like AI and much of the community is also using zig because of its human focus. (Such as me)

    The great benifit of Zig over C in my opinion, is it is more human readible, especially in terms of what is happening with memory management. Zig aims to have no hidden actions making it just as low level than C while making more sense and hiding less.