Zig gets improved float parser/formatter
116 points by Retro_Dev 4 hours ago | 25 comments

mitchellh 3 hours ago
Based 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/
reply
jjice 45 minutes ago
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.
reply
mi_lk 3 hours ago
Call software development dead however you want. It just peaces my mind knowing there’re still people hand-crafting serious software engineering
reply
jeffbee 3 hours ago
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.
reply
karlmcguire 3 hours ago
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://www.youtube.com/watch?v=dP1xVpMPn8M

reply
paaloeye 3 hours ago
reply
OneManHorde 3 hours ago
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.

reply
lnxsxu 2 hours ago
[dead]
reply
cromka 2 hours ago
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?
reply
paaloeye 2 hours ago
Absolutely not. If anything, Zig not being tainted by AI is a feature.
reply
cromka 49 minutes ago
How so?
reply
burglins 31 minutes ago
How not?
reply
DangIsATyrant 12 minutes ago
The Rust community was poisoned by AI. Its sad.
reply
geophph 38 minutes ago
Is success of a language binary? Surely there’s a middle ground between used everywhere and doomed.
reply
aurareturn 2 hours ago
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.

reply
flykespice 60 minutes ago
what are such languages?
reply
ForHackernews 44 minutes ago
Golang, arguably. It's built to be idiot-proof, unambiguous, and extremely verbose.
reply
parlortricks 38 minutes ago
Id add Python is pretty great given how much content the LLMs consumed on it.
reply
80fj0348i 12 minutes ago
With Python I am consistently running into problems with: 1. lack of type safety at runtime, especially across modules, and 2. poor primitives for concurrency. I get much better results in languages with strict static typing and native, broadly used concurrency tools.
reply
KneeAwn 2 hours ago
Doomed in what sense?
reply
cromka 47 minutes ago
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.

reply
jjuel 36 minutes ago
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.
reply
shoobiedoo 28 minutes ago
> 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.

reply
paaloeye 35 minutes ago
> 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.

reply
wasabinator 42 minutes ago
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.
reply
Numeric1137 29 minutes ago
Key word: opinion
reply
Vivek-KY 2 hours ago
[dead]
reply