yesterday at 8:03 PM
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/
yesterday at 9:23 PM
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.
yesterday at 7:28 PM
Call software development dead however you want. It just peaces my mind knowing there’re still people hand-crafting serious software engineering
today at 2:43 AM
Whether to write code by hand is a question of how specific and precise the result needs to be, not whether AI could do it. We write code for the same reasons we literally "write by hand" or do anything else by hand.
The same has always been true across all of history for other skills that are deemed "obsolete".
What makes code different is that it is both the specification and the implementation of an idea. If you're working alone this is a meaningless fact. If you're working on a team and there are strict requirements, you could spend an afternoon reviewing AI output... or you could just write it yourself and be sure. The only difference is what makes you feel better. The work doesn't stop though. We are not limited by materials or customers here. We are limited by purpose. It's still just code. You write as much or as little as you need to.
If this was a war, it doesn't matter who pulls the trigger and firing more bullets faster doesn't necessarily mean you win.
yesterday at 7:39 PM
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.
today at 2:48 AM
Ryu was the second wave of it https://dl.acm.org/doi/10.1145/3192366.3192369
yesterday at 7:51 PM
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
yesterday at 7:48 PM
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.
yesterday at 11:13 PM
> I've also compared to a zig implementation of zmij which is generally considered the fastest formatting implementation and found it to be generally about the same speed.
This seems somewhat unexpected. Most benchmarks I've seen put zmij significantly faster than uscale, so does this imply that the zig port of zmij is sufficiently slower to put them on more equal footing? Or did the author find additional speedups for uscale?
I do fully agree with the author on speed not being everything and adaptability etc can definitely be valid reasons to prefer this.
yesterday at 9:01 PM
[dead]
yesterday at 8:16 PM
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?
today at 1:54 AM
Loaded questions are, by their nature, not honest.
yesterday at 8:25 PM
Absolutely not. If anything, Zig not being tainted by AI is a feature.
yesterday at 9:19 PM
How so?
yesterday at 9:56 PM
The Rust community was poisoned by AI. Its sad.
today at 1:52 AM
This is so funny. The rust community is largely extremely anti-AI to a point where I worry that the community is going to sabotage the language.
yesterday at 10:41 PM
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.
yesterday at 11:21 PM
You could say the same of Linux. In fact, why trust anything you didn't make yourself? Make the next Apple. With blackjack and hookers! (and no AI)
yesterday at 9:37 PM
How not?
yesterday at 10:43 PM
What kind of answer is that? I asked How So because I want to know, not because I said it is NOT!
yesterday at 9:29 PM
Is success of a language binary? Surely there’s a middle ground between used everywhere and doomed.
yesterday at 8:31 PM
Doomed in what sense?
yesterday at 9:20 PM
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.
yesterday at 9:32 PM
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.
yesterday at 9:40 PM
> 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.
today at 1:54 AM
I don't think this is a big issue anymore. I've written totally new languages, from scratch, with LLMs. I then write programs using those languages and LLMs can do so just fine, they do surprisingly well at picking things up and in-context learning them. Unless your languages is extremely different I just don't think it'll be an issue.
yesterday at 10:37 PM
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.
today at 12:20 AM
What you tend to find in clothing patterns and the like is that they’re more obviously designed for beginners with fewer skills, generally with more explicit instructions for things like seam allowance, seam selection, or pattern segment mirroring. Old patterns expected that seamstresses already knew about the limitations of their own material choice or design because there was stronger tacit knowledge in the user base. I'd expect that this led to more creative expression within the medium at the small scale, with a higher level of technical skill for a larger number of people.
I don't think you can call the modern ecosystem 'improved', necessarily, it's just that the tools (specifically knowledge-based tools or documentation) have been altered to the standard of the specific technology’s audiences. There are certainly areas of fashion education or industry now with much more technical and creative output, and also online tutorials covering techniques not previously available, but crucially the distribution of deep skill has changed dramatically.
It seems relevant to LLMs, at least, that the specific production methods used have odd effects on the mass and distribution of skill throughout a set of technology users, and it's not necessarily a positive change overall.
today at 12:29 AM
Not sure what you're talking about, I'm currently writing a fairly sophisticated parser with C ABI in zig with LLM assistance. No issues with LLMs at all. On latest zig version + gemini neon.
But on the maturity side I kinda agree. I think the zig core team is small which worries me a bit and not sure what would happen to zig if Andrew disappeared one day.
yesterday at 9:26 PM
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.
yesterday at 10:13 PM
> 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
yesterday at 9:33 PM
> 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.
today at 2:27 AM
I am having a great time with zig + ai. And im glad the core strict-no-ai, the language features are sprawling enough that i cant imagine ai not slopping it if it were.
yesterday at 9:39 PM
Key word: opinion
yesterday at 8:19 PM
[dead]
yesterday at 8:24 PM
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.
today at 2:43 AM
I'm pretty sure that AI sees programming languages as far more boring that humans do.
today at 1:38 AM
You'd want tons and tons of high quality code for training data, so you'd probably want easily transpilation from one or more very popular languages.
You'd want to have high information density to get most efficiency out of your inference budget / energy consumption.
Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph with just enough type hints to run something like HM type inference.
That might also mean such a language might not be too difficult for an AI to transpile back into Rust and/or C++.
today at 2:29 AM
> You'd want tons and tons of high quality code for training data
Why does everyone say this? Im building a de novo theorem proving language and AI is doing a very good job of writing the stdlib.
https://github.com/ityonemo/2b4m
> You'd want to have high information density to get most efficiency out of your inference budget / energy consumption.
Also nonsensical. For example, a two or three token variable name with semantic meaning is going to beat the shit out of a variable like x, v, v1, v2, etc.
> Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph
You know whats a great, dense way to symbolically represent a control flow graph? Code.
> with just enough type hints to run something like HM type inference.
Type hints require two round trips to fix, and is often information at a distance (without experience you cannot e.g. easily de novo guess the types at the call site -- is it put(dict, k, v) or is it put(k, v, dict)), honestly semantic hints are much better (e.g. good function names, modular organization, etc.) At least this is my experience doing LOTS of AI assisted coding in a dynamically typed language. The AI makes very few if any typing errors.
yesterday at 9:08 PM
what are such languages?
yesterday at 9:23 PM
Golang, arguably. It's built to be idiot-proof, unambiguous, and extremely verbose.
yesterday at 10:22 PM
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.
yesterday at 11:14 PM
Zig is very similar in this aspect but lets you reach a bit lower down the stack.
today at 2:59 AM
Quite a bit lower than Go. Zig is slightly lower level than C imo.
yesterday at 9:30 PM
Id add Python is pretty great given how much content the LLMs consumed on it.
yesterday at 9:56 PM
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.
today at 1:22 AM
So I guess Javascript is the worse candidate for LLM coding