Remix.run Logo
epolanski 2 hours ago

OT: I'm always surprised at how popular Zig discussions get here, or Youtube and other medias.

Don't get me wrong, I love Zig and I think it's a great C replacement, but I'm very confused on why C3 or Odin rarely get any attention at all, despite being in the same C-replacement crowd.

But still surprised at what Zig does better than these other projects? Is Andrew much better at marketing/promoting the language? He's very hard to dislike.

Iridescent_ 2 hours ago | parent | next [-]

I think Andrew is a big part of it, and the people he surrounded himself with are the other part. What kind of pre-1.0 language hosts conventions? Crazy that they manage to do that. Andrew's vision has always been clear and inspiring to me. I think this got Zig its initial following, and they have capitalized extremely well on it to grow as a community.

nickmonad 2 hours ago | parent | prev | next [-]

Andrew doesn't strike me as someone who does any marketing at all. He just wants to make the language he wants to use, and does it well.

Sometimes its just right time, right place. But also, Zig has received attention via projects like Ghostty, TigerBeetle, and Bun (prior to rewrite of course)

csb6 an hour ago | parent [-]

They have definitely done a lot of marketing through social media and forums like HN. There have been large numbers of posts here by Zig's developers for years, and a few releases of LLVM even mentioned Zig prominently in their release notes.

AlienRobot an hour ago | parent | prev | next [-]

With Zig, I can just import SDL.h and use it without writing a binding.

Can I do that in C3 or Odin?

pyrolistical 39 minutes ago | parent | next [-]

And then you can get AI do a nicer port of SDL.zig and you get way better decls.

Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of

1. [*]T

2. [:0]T

3. ?T

4. *T

And these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier

flumpcakes an hour ago | parent | prev [-]

Odin has SDL built into the language (shipped as a vendored library).

AlienRobot 9 minutes ago | parent [-]

That's not what I mean...

There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.

kI3RO 2 hours ago | parent | prev [-]

Yes, Andrew did a lot of internet cult marketing over the years, and then you have exponential free cult marketing.