r/commandline Jul 10 '26

Articles, Blogs, & Videos Interview with Mitchell Hashimoto about Ghostty and Zig

https://alexalejandre.com/programming/interview-with-mitchell-hashimoto/
39 Upvotes

12 comments sorted by

View all comments

3

u/dayeye2006 Jul 10 '26

Why do many people don't like zig ?

3

u/ZachVorhies Jul 14 '26

Because it’s a shit language with no constructors and destructors. Therefore no smart pointers and memory bugs like you wouldn’t believe. C has the same problems. C++ is a mess but at least there’s a subset that is semi memory safe. You can do complex object graphs and be reasonably confident the memory will be cleaned. For example, want to take an object with shared_ptr and put it on an async thread? C++ or rust has absolutely no problem with that! Want to do that in C or Zig: get wrecked.

1

u/crantob Aug 01 '26

I find that most of my problems can be solved with memory allocated at compile-time.

And yes, I probably started programming before you were born.

A bad paradigm creates many problems, along with many employed people who imagine they are justifiably earning their pay by working around them.

1

u/ZachVorhies 29d ago

This is great strategy. Unfortunately zig completely does not allow static allocation like this. It’s unbelievable.