Zig gets improved float parser/formatter
codeberg.orgBased on Russ Cox's work. I take every opportunity I get to implore people who care about computer science and/or software engineering to read everything Russ Cox writes anywhere and everywhere, but starting on his blog is good: https://research.swtch.com/
His writing on regular expressions and their engines is maybe the best resource for them I've ever found. He's such a wealth of knowledge and him publishing this on his site is an incredible resource of the rest of us.
Call software development dead however you want. It just peaces my mind knowing there’re still people hand-crafting serious software engineering
Well, it was dead for a while. Nobody gave two poops about FP conversion for 20 years until Grisu, then there was a flood of improvements.
Russ Cox inspired me 10+ years ago to get into programming (and Go). I'm glad he's still making breakthroughs. If you haven't already, check out his tour of the Acme editor:
https://research.swtch.com/fp is a must read.
Crazy-better in particular for 128-bit floats! Nice.
The commentary on the change is nice as well; some good improvements being deferred to a later moment, as they introduce API changes, etc.
Honest question: given the popularity of Rust with AI projects and how things have turned upside down in general, isn’t Zig doomed at this point?
Is success of a language binary? Surely there’s a middle ground between used everywhere and doomed.
Absolutely not. If anything, Zig not being tainted by AI is a feature.
How so?
How not?
I think Rust is going to be doomed soon too.
Some programming language designed from the group up for agents would likely dominate in the future.
what are such languages?
Golang, arguably. It's built to be idiot-proof, unambiguous, and extremely verbose.
Id add Python is pretty great given how much content the LLMs consumed on it.
Doomed in what sense?
It hasn’t picked up enough popularity to have enough software written with which, in turn, so there isn’t much material to train AI with. As opposed to other strongly-typed languages. This is why Rust is so popular with all new stuff.
It’s a fairly common opinion that no new language designed for humans will ever get popular and Zig is that language that hasn’t even matured fully compared to other ones.
So a language has to be able to be used well by AI to not be doomed? Then I would argue there are a lot of doomed languages out there. Honestly, I have moved back to caveman era for my coding. I want to learn and write it myself. I don't want to be in the industry if all I do is prompt, and verify output. Could an AI create something fast for me? Sure, but where is the fun in just constantly putting out stuff that may or may not be useful to anyone including myself by just prompting an LLM and then surfing the internet until it is done? To me this perfectly encapsulates why I have pivoted to Zig. They are about learning, and improving as a programmer and person. I could feel my ability to critically think, and find answers myself slipping away at my last job (basically a prompt factory). It was not what I liked. It hurt all parts of my life not just coding. So to me there will be lots of people like that and will pick up Zig due to their stance on AI/LLMs. Will it ever be the go to for all sorts of companies? Probably not, but I don't think it was on that track before all this AI factory stuff started anyway.
> They are about learning, and improving as a programmer and person.
Couldn't agree more. I've been thinking for a while that I want to make my own lispy programming language, so I took it one step further and bought an ARM assembly book which I have to learn before I can write the language in assembly.
An LLM could bang out a lisp in less than a minute, but I know that looking back and having my own story, overcoming obstacles using my brain, and knowing that a project is "mine" is so critical to being human, in my opinion.
> there isn’t much material to train AI with
I obviously haven't seen with my own eyes how much Zig the frontier was exposed to, but Zig + agents isn't painful at all.
> have enough software written with
Ghostty, no? The community is using AI too.
IMMO, Zig is mature enough.
That makes it popular in my books. The world needs something that isn't yet another AI oriented technology. People need to remember that what is popular to them within their own echo sphere doesn't naturally extend to all of humanity.
Key word: opinion