NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Zig gets improved float parser/formatter (codeberg.org)
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/
jjice 1 hours 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.
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
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.
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

paaloeye 3 hours ago [-]
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.

lnxsxu 2 hours ago [-]
[dead]
cromka 3 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?
geophph 1 hours ago [-]
Is success of a language binary? Surely there’s a middle ground between used everywhere and doomed.
paaloeye 2 hours ago [-]
Absolutely not. If anything, Zig not being tainted by AI is a feature.
cromka 2 hours ago [-]
How so?
DangIsATyrant 56 minutes ago [-]
The Rust community was poisoned by AI. Its sad.
simonask 11 minutes ago [-]
I don't think that's true at all, not any more than any other programming community. HN is much more AI-brained than any other forum.

The doomerism is so tiring. We don't know how any of this will play out, even in the short term.

burglins 1 hours ago [-]
How not?
cromka 10 minutes ago [-]
What kind of answer is that? I asked How So because I want to know, not because I said it is NOT!
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.

flykespice 2 hours ago [-]
what are such languages?
ForHackernews 1 hours ago [-]
Golang, arguably. It's built to be idiot-proof, unambiguous, and extremely verbose.
rootlocus 31 minutes ago [-]
Golang is nice for some projects, but I don't see it become the lingua franca of LLM software development for a very simple reason: it doesn't squeeze all the performance it can, and doesn't go as close to the metal as possible.

Every programming language is a tradeoff between performance, safety and programmer ergonomics. I trust LLMs will make this tradeoff obsolete, meaning we'll finally be able to ditch programmer ergonomics and some safety (testing can get better, tooling can get better, LLMs aren't as susceptible to footguns) and mostly ditck programmer ergonomics. This means we can finally write efficient software. And you won't implement highly performant software in a GC language.

parlortricks 1 hours ago [-]
Id add Python is pretty great given how much content the LLMs consumed on it.
80fj0348i 57 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.
KneeAwn 2 hours ago [-]
Doomed in what sense?
cromka 2 hours 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.

jjuel 1 hours 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.
shoobiedoo 1 hours 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.

Cordiali 16 minutes ago [-]
A huge part of the programming, computing, and electronics ecosystems exist purely for The Love of The Game™.

As another example, knitting used to be something done by a pretty large percentage of people. Now it's done by a tiny fraction. But I'll bet you anything, that the overall quality and diversity of their ecosystem (tools, knowledge of techniques, books, consumables, etc.) has massively improved compared with a hundred years ago.

wasabinator 1 hours 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.
paaloeye 1 hours 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.

flohofwoe 39 minutes ago [-]
> so there isn’t much material to train AI with

Presence of a lot of example code in the training data doesn't seem to matter as much as in the olden days. Zig works just fine as LLM target, and so do other 'niche' programming languages.

That Rust is particulary well suited for LLM code generation seems to be mainly a popular opinion in the Rust community as coping mechanism for the fact that language choice really doesn't matter much anymore and their precious Rust language as is good as any when the code is written by LLMs ;P

Numeric1137 1 hours ago [-]
Key word: opinion
Vivek-KY 3 hours ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 22:52:52 GMT+0000 (Coordinated Universal Time) with Vercel.