News for hackers. Stuff that matters.
Re:A New Go API for JSON by asim on Wednesday November 04, 2026 @02:40PM (#50370500)
At this stage to me Go is the new C compiler. Quite honestly I spent 10 years or more writing Go code. At times 18 hours a day. And now with AI, I get models to write my Go code. I STILL want it to be Go code. Is that strange? No because I understand the performance and safety of Go. But I rarely write it directly anymore. Probably not at all in 6-9 months. Yet I still occasionally look at the code to see what the output looks like.

So yea hopefully a nice new addition but only my prompts now matter. So need to make sure they pickup on the new API.

Re:A New Go API for JSON by dofm on Wednesday November 04, 2026 @02:42PM (#50370517)
This is mostly why I have come back to Go.

I am using local LLMs and Go has a bunch of strengths where smaller contexts are concerned; less complicated flow of control being one of them.

Re:A New Go API for JSON by calvinmorrison on Wednesday November 04, 2026 @03:23PM (#50370976)
not a lot of overloading complexity, very verbose with a small total language structure too helps.
Re:A New Go API for JSON by dofm on Wednesday November 04, 2026 @03:38PM (#50371174)
Yes. It's that thing — the fact that a language helps you read what a single function does really easily, but in so doing makes the entire codebase quite dense, is not optimal for us, but is good for them.

And the things that we do to manage this, that are symbolic or based on visceral real-world analogy, are good for us and bad for them.

Go is kind of in the middle, in the way that many vaguely Wirth-like and CSP-like languages possibly are, I guess.

Re:A New Go API for JSON by citizenpaul on Wednesday November 04, 2026 @03:26PM (#50371017)
People are sleeping on Go as a LLM language of choice. Everyone trying to rewrite in rust which is fine and rust is fine. However its compile times are several orders of magnitude greater than Go. You can have LLMs write and compile 20 apps in the time one rust app compiles. I've got a Go personal project that would take hours for rust to compile, I can't imagine making the same velocity in Rust. Though I do see the workplace appeal of bringing back the xkcd "compiling" meme.

However it kind of makes me feel like my professional life was wasted and I don't really know what kind of future I have. One of Go's main points was you can pick it up in a weekend. What career moat do people like us have?

Re:A New Go API for JSON by pjmlp on Wednesday November 04, 2026 @03:50PM (#50371316)
I would rather have LLM directly generate machine code, and best of all, macro Assemblers are blazing fast for decades.
Re:A New Go API for JSON by bayindirh on Wednesday November 04, 2026 @04:03PM (#50371489)
You can't PGO that code, though. Also, I'm not sure it can generate architecture specific optimized (-march, -mtune) code as well.

Considering it just pulls and remixes blocks, this is a very tall order for today's LLMs, and maybe a couple of generations as well.

Calling GCC/clang at the back and emitting ASM is both cheating and has no advantages whatsoever as well.

Re:A New Go API for JSON by pjmlp on Wednesday November 04, 2026 @04:16PM (#50371653)
That is fighting the last war on the early days of 5 GLs, and taken care by agentic runtimes.

This isn't futurology, besides a few projects that already came up on Phoronix and around here, with Assembly generation, there are enough SIGPLAN papers on ML driven compilers already.

Re:A New Go API for JSON by anthk on Wednesday November 04, 2026 @10:28PM (#50374776)
Like inform7 but irreproducible and shitter on every iteration.
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @12:50AM (#50375668)
Like JIT and PGO machine learning optimizer passes more likely.
Re:A New Go API for JSON by bayindirh on Thursday November 05, 2026 @04:57AM (#50377297)
ML driven compilers are different than LLM assembly generation, and former is more sound than the latter one. I believe we both have enough experience to understand that.

However, starting with LLMs directly generating machine code and moving to ML directed optimization passes, you're moving the whole stadium with a crawler-transporter, not only the goalposts.

Helping compiler in a well defined way, and working on IR or driving it repeatedly to optimize the output is one thing, generating machine code from a training set is other. Let's not mix them.

Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @05:03AM (#50377339)
Yeah, well as mentioned, that is where it is going.

"Compiler 2.0: Building the Next Generation of Compilers with Machine Learning"

https://eecs.berkeley.edu/research/colloquium/compiler-2-0-b...

There are other researchers if you interest yourself on the matter.

Then the whole iPaaS agentic coding environments like Workato and Boomi, that even if they might generate 3GL as intermediate step, you don't get to see it.

Re:A New Go API for JSON by bayindirh on Thursday November 05, 2026 @05:39AM (#50377563)
Thanks for the link. I have also found a small trove as a warm-up. If anyone interested, here it is:

https://github.com/zwang4/awesome-machine-learning-in-compil...

Using small, purpose built ML "things" to make things better makes sense. We use them everywhere. I never argued against it, as well.

Re:A New Go API for JSON by politician on Wednesday November 04, 2026 @09:22PM (#50374311)
Use a working Go program as the prompt+oracle for cross-language port or direct generation.
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @12:52AM (#50375684)
I rather not, unless I have to.

If 3 GL code has to be generated, my option list won't certainly have Go on it.

Re:A New Go API for JSON by loadatom on Friday November 06, 2026 @02:07AM (#50389128)
May I ask what your option list will be.
Re:A New Go API for JSON by kibwen on Wednesday November 04, 2026 @09:24PM (#50374319)
This is like saying that a strong man would rather dig a hole by hand than use a shovel. Programming languages are force multipliers, it makes absolutely no sense to bypass them just so you can vibe assembly directly.
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @12:51AM (#50375677)
Optimizing compilers were faced with the same disbelief by Assembly developers.
Re:A New Go API for JSON by kibwen on Thursday November 05, 2026 @07:37AM (#50378380)
In no sense is this "disbelief". You seem to be laboring under a fundamental misunderstanding of the role of structured programming languages.
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @07:50AM (#50378494)
I am already using a bagger, while you are arguing for electric shovels.

In case you answer there don't fit the same purpose, there are tiny baggers that replace shovels altogether.

Re:A New Go API for JSON by kibwen on Tuesday November 10, 2026 @05:47PM (#50447376)
> I am already using a bagger, while you are arguing for electric shovels.

This demonstrates that you continue to misunderstand the analogy.

Let's speak plainly. Someone who attempts to use LLMs to generate assembly directly will be outcompeted by someone who uses LLMs to generate code in a high-level language, which then uses an ordinary compiler to generate assembly. The value of a high-level language is that it defines a more constrained abstract machine than the machine that a CPU represents, which both humans and LLMs alike benefit from.

Re:A New Go API for JSON by dgb23 on Thursday November 05, 2026 @05:06AM (#50377355)
One of the best techniques for using LLM coding is to let it write programs that frontload and automate work in a repeatable and testable manner rather than letting it only do free form turns.

Letting it generate machine code directly would be the opposite of that.

Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @05:09AM (#50377377)
Like a JIT compiler then.

As for proven wrong,

"Frame was created over the past month largely via Claude Code. The Assembly code in all its glory can be found on GitHub."

https://www.phoronix.com/news/Frame-X11-Server-Assembly

Re:A New Go API for JSON by simlevesque on Wednesday November 04, 2026 @04:17PM (#50371672)
My only issue with it is that you can't ship a wasm go app in under 2mb. With rust you can make it under 100kb.
Re:A New Go API for JSON by jazzypants on Wednesday November 04, 2026 @05:54PM (#50372600)
[deleted]
Re:A New Go API for JSON by groundzeros2015 on Wednesday November 04, 2026 @10:05PM (#50374635)
Jeez, and I thought 100 KB was absurd.
Re:A New Go API for JSON by citizenpaul on Thursday November 05, 2026 @02:57PM (#50383666)
Do you do a lot of work in WASM? What is a reasonable size? Or just against the every increasing internet bloat in general?
Re:A New Go API for JSON by groundzeros2015 on Thursday November 05, 2026 @11:52PM (#50388378)
Think about how many instructions fit in 100 KB. Why are they in your hello world?

Binary bloat is not just about size; it impacts startup time and icache. It’s basically the speed of light launch time.

So you’re telling me rust is not good for UNIX style tools.

Re:A New Go API for JSON by xarope on Thursday November 05, 2026 @02:37AM (#50376274)
isn't that one of TinyGo's raison d'etre's? I've never tried wasm, but executables are typically a magnitude smaller than go's (assuming your go code is compatible with tinygo, of course)
Re:A New Go API for JSON by egnehots on Wednesday November 04, 2026 @03:52PM (#50371342)
Truly the argument can be made either way.

If you code in Go, the code is more high level, prettier, simpler.

If you code in Rust, the code is more robust, efficient, faster.

Both are important for LLM, why can't we have a high level, simple language that is also robust, efficient and fast? =)

Re:A New Go API for JSON by TheChaplain on Wednesday November 04, 2026 @03:54PM (#50371368)
Goose?
Re:A New Go API for JSON by andriy_koval on Wednesday November 04, 2026 @04:05PM (#50371506)
> Both are important for LLM, why can't we have a high level, simple language that is also robust, efficient and fast? =)

I think many variants from Rust can be stripped to make it simple, especially in type system, which is way more complicated than go.

Re:A New Go API for JSON by nonethewiser on Wednesday November 04, 2026 @04:12PM (#50371596)
I dont think we need simpler types for agentic coding though. We need compiler speed. I guess those are probably related to some degree though.
Re:A New Go API for JSON by andriy_koval on Wednesday November 04, 2026 @04:50PM (#50372050)
It depends if you are full vibe-coding mode or still try to understand your codebase.

LLM can generate very cryptic rust code.

Re:A New Go API for JSON by jimbob45 on Wednesday November 04, 2026 @05:00PM (#50372154)
If I want simplicity and maintainability, I’d pick Kotlin over Go. If I want speed, I’m picking Rust over Go. Why would I ever pick Go? It’s the best at nothing.
Re:A New Go API for JSON by procaryote on Wednesday November 04, 2026 @05:12PM (#50372246)
What if you want a single language that's pretty fast while simple and maintainable?
Re:A New Go API for JSON by jimbob45 on Wednesday November 04, 2026 @05:41PM (#50372503)
Then you pick C# which is both faster and simpler than Go.
Re:A New Go API for JSON by metaltyphoon on Wednesday November 04, 2026 @07:48PM (#50373563)
I like C# but simpler? I don’t believe so.
Re:A New Go API for JSON by girvo on Thursday November 05, 2026 @03:23AM (#50376595)
Simpler it definitely is not. Better, yes I would accept that. C# is complex though.
Re:A New Go API for JSON by mfru on Thursday November 05, 2026 @03:44AM (#50376765)
C# may be easier but it is not simpler than Go
Re:A New Go API for JSON by dankobgd on Thursday November 05, 2026 @06:08AM (#50377770)
didn't that language have like 150 keywords 10 years ago, it probably has 500 keywords now
Re:A New Go API for JSON by alexfortin on Wednesday November 04, 2026 @08:31PM (#50373897)
Recently I stumbled upon https://crystal-lang.org/ and I love it!

It's really great fun to build stuff in Crystal, I don't have anything prod-grade yet to say how it scores there but the community seems to be happy about that too.

Re:A New Go API for JSON by ksec on Wednesday November 04, 2026 @08:57PM (#50374118)
Crystal is slow to compile. There is a variant of Crystal that compiles a lot faster. But I forgot its name. Need to dig it up when I get back home.
Re:A New Go API for JSON by alexfortin on Thursday November 05, 2026 @01:26AM (#50375867)
I agree, the compiler is slow but I don't mind much, or better, the fact that I find building maintainable programs much easier outweights that downside massively in my case.
Re:A New Go API for JSON by coldtea on Wednesday November 04, 2026 @08:21PM (#50373814)
It's surely better than Kotlin in simplicity and maintainability. It also doesn't tie you to the JVM.
Re:A New Go API for JSON by rTX5CMRXIfFG on Wednesday November 04, 2026 @07:40PM (#50373482)
Swift
Re:A New Go API for JSON by satvikpendem on Wednesday November 04, 2026 @09:14PM (#50374250)
OCaml fits your bill. Super fast compile times and also very fast runtime.
Re:A New Go API for JSON by jimbokun on Wednesday November 04, 2026 @10:59PM (#50374996)
It always feels like OCaml is on the verge of becoming the perfect language.

Expressive and type safety of a functional language, without the odd semantics of Haskell, where laziness can make performance difficult to predict and purity can make simple things like IO difficult to understand.

Re:A New Go API for JSON by konart on Thursday November 05, 2026 @02:53AM (#50376374)
OCaml 5 + https://github.com/ocaml-multicore/eio

I' just starting OCaml, so can't really compare, but it seems a good progress there.

Re:A New Go API for JSON by Vaushite on Wednesday November 04, 2026 @11:15PM (#50375103)
Efficient code means code with a large amount of embedded assumptions. Code that's more generic is almost always less efficient.

Go is about as far as you can "go" to the efficiency end without becoming Rust. It's a low-overhead language (like C) but with a GC that ensures memory safety. If you want to manage memory yourself and still prove safety it gets very complicated, as we see in Rust.

Re:A New Go API for JSON by biztos on Wednesday November 04, 2026 @03:54PM (#50371362)
As I do more agentic coding, I am starting to feel strongly that I need to set aside a project -- and time -- for strictly hand-coding, using AI (if at all) only to explain things, never to write any code.

First, I like programming and don't want to stop doing it just because a machine can do it too. Second, I'm pretty sure atrophied coding skills will make me worse at directing the machines, thus worse at what seems to be "the job" these days.

Re:A New Go API for JSON by nonethewiser on Wednesday November 04, 2026 @04:09PM (#50371552)
>First, I like programming and don't want to stop doing it just because a machine can do it too. Second, I'm pretty sure atrophied coding skills will make me worse at directing the machines, thus worse at what seems to be "the job" these days.

In theory wouldn’t atrophied coding skills not matter if models are sufficiently good at coding? I mean isn’t whats left just design and architecture and testing?

Sure, if LLMs are producing shit code you need to have an understanding of what it should do instead. But I think that day is already gone.

Its hard to think of a skill that you’d need to build with an LLM that requires writing meaningful amounts of code by oneself. From my end all the complexity is business logic and system design.

Re:A New Go API for JSON by xgulfie on Wednesday November 04, 2026 @04:26PM (#50371803)
> In theory wouldn’t atrophied coding skills not matter if models are sufficiently good at coding?

I am begging HN users to understand that some people enjoy writing software themselves

Re:A New Go API for JSON by nonethewiser on Wednesday November 04, 2026 @05:07PM (#50372205)
Read my comment again. And the one I replied to. He claimed that his ability to code through LLMs has decreased as his coding ability atrophied. Im not questioning coding for the love of the game.
Re:A New Go API for JSON by biztos on Saturday November 07, 2026 @12:28AM (#50401914)
> He claimed that his ability to code through LLMs has decreased as his coding ability atrophied.

No, I didn't. I claimed that if my coding ability atrophies, I expect that my ability to code through LLMs will decrease. And this is an outcome I want to avoid for the stated reasons and others.

That said, I get your point: maybe "the thing writing the code" will be as abstract as "the thing moving the electricity through transistors" at some point. And maybe I will be wrong about coding skill translating to good agent-herding skill. But I don't think I'm wrong now.

Re:A New Go API for JSON by swatcoder on Wednesday November 04, 2026 @04:59PM (#50372133)
[delayed]
Re:A New Go API for JSON by nonethewiser on Wednesday November 04, 2026 @05:06PM (#50372195)
> You don't expect everyone to stop wanting to do those just because they can be automated more or less effectively, right?

Please reread my comment. That’s not what I’m addressing.

Re:A New Go API for JSON by cyphar on Wednesday November 04, 2026 @05:34PM (#50372431)
[delayed]
Re:A New Go API for JSON by nonethewiser on Wednesday November 04, 2026 @06:42PM (#50372999)
>No, because good understanding of design comes from programming experience.

“Programming” is a bit loaded. Do you mean thinking through and typing everything out yourself?

What design skills specifically can you only develop from continually programming in this way?

Personally I’ve found the opposite to be true. As writing out code myself has shrank to nearly 0, I now have a much shorter feedback loop on design. You get a lot more repetition and feedback when that’s basically all you are doing.

Re:A New Go API for JSON by skydhash on Wednesday November 04, 2026 @09:34PM (#50374403)
> seeing feedback on your design in minutes rather than weeks or even months.

Weeks and month for to wait for a feedback in developing software? Are you the sloth in zootopia?

The longest cycle for feedback for me has only been hours. And that was about redesigning the core architecture of an app. Otherwise, it’s like 10 minutes cycle if it’s edit-compile-run, 5 minutes if it’s REPL (lisp, bash, python,…).

Re:A New Go API for JSON by Mawr on Thursday November 05, 2026 @04:13AM (#50376962)
> What design skills specifically can you only develop from continually programming in this way?

As I write code myself I continously take into consideration stuff like following the consistency of the entire design, whether what I'm doing is efficient, etc. LLMs are terrible at this and I don't see how you could develop such skills by prompting only.

For example, I would never produce designs that require degenerate db access patterns (linear scans, etc.). Everything I write myself always takes into account using db & network efficiently from the ground-up. Every query is an index lookup, every api request is rate limited, everything is batched and cached, so on and so forth.

LLMs meanwhile don't care about any of this. I just had Claude happily try to fetch youtube page html because the api didn't expose something. Great idea, I'd love to be banned by google for scraping.

Designing with performance in mind is black magic too, I need to notice myself that stuff that I think has no reason to be slow (pretty much nothing does) is slow and hammering the llm to finally come up with a non-stupid design that's not ridiculously slow and wasteful. Yeah, why don't we pull 2.3mb of html to update a list, sounds good.

Re:A New Go API for JSON by queenkjuul on Wednesday November 04, 2026 @10:32PM (#50374799)
I still catch Claude writing some shit code sometimes
Re:A New Go API for JSON by nextaccountic on Thursday November 05, 2026 @12:17AM (#50375496)
Only in the same sense that painting skills not matter
Re:A New Go API for JSON by nilamo on Wednesday November 04, 2026 @04:47PM (#50372017)
I haven't actually tried it yet, but I think it'd be good to write a dsl for whatever you're doing. Then have ai make an interpreter to run it. Sort of as a way to stay... interested? Engaged?
Re:A New Go API for JSON by queenkjuul on Wednesday November 04, 2026 @10:31PM (#50374796)
That's exactly how i do all my personal projects. No agents, AI just for planning/research/debugging and occasionally for small bits of code i am not super interested in. For example I'm currently working in Go, but need to use a C library, and don't know C much at all. So when i get stuck with the C interop parts, sometimes i let the AI write bits of C for me, or let it write scripts for cross-compiling or other stuff i just find to be a pain. But I'm doing all the writing and logic myself.

Agents make it too easy to gloss over too much. They're great at work where i care about productivity but I've zero interest at home where the point is learning and having fun

Re:A New Go API for JSON by lkirkwood on Thursday November 05, 2026 @12:29AM (#50375565)
Do it! I have the same feeling and the hardest part is picking something that you are interested in. I have just kept the idea of "thinking of ideas" on my mind for a few days once I finish something. I usually come up with a few ideas if I'm always considering any little thing for a project. It has been fun and I have learned a few things along the way - more than I feel I do letting AI write most of the code.
Re:A New Go API for JSON by jacobgold on Wednesday November 04, 2026 @03:57PM (#50371415)
I still prefer Go over the alternatives because I'm reviewing the code carefully and trying to make it all look as good as if I'd written it very carefully by hand.

The few times I've needed a language without a GC and used Rust and C as target languages, I've reviewed the code less and enjoyed it less.

Re:A New Go API for JSON by da02 on Wednesday November 04, 2026 @06:48PM (#50373043)
Which are your favorite models for writing Go? Any models for editing/improving written documentation?
Re:A New Go API for JSON by hoppp on Wednesday November 04, 2026 @07:01PM (#50373146)
Go is lovely. Best language to generate backend services with.
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @05:16AM (#50377423)
JVM and .NET platforms.

JIT and AOT compilers, REPL development, bleeding edge GC implementations, Java, Scala, Kotlin, Clojure, C#, F# to chose from, and modern IDEs inspired by Smalltalk/Lisp Machines experience, batteries included backed and frontend development frameworks.

Re:A New Go API for JSON by wannabe44 on Thursday November 05, 2026 @05:45AM (#50377616)
> generate
Re:A New Go API for JSON by pjmlp on Thursday November 05, 2026 @07:35AM (#50378361)
Yes, and my comment still applies, I usually read what I reply to.
Re:A New Go API for JSON by wannabe44 on Thursday November 05, 2026 @11:27PM (#50388202)
Very generous of you to assume "generate" guys are reading code, so IDE and REPL are useless to them.
Re:A New Go API for JSON by pjmlp on Friday November 06, 2026 @02:05AM (#50389106)
Very generous of you to assume Go matters at all, in such scenarios the text being generated is a markdown paragraph description.
Re:A New Go API for JSON by BigTTYGothGF on Wednesday November 04, 2026 @09:20PM (#50374294)
> At times 18 hours a day

I hope you're not still doing this, it's nothing to brag about.

Re:A New Go API for JSON by vikramkr on Wednesday November 04, 2026 @09:29PM (#50374360)
As long as you do it because you want to and not because you're forced to for work or something who cares? Whatever gives people energy
Re:A New Go API for JSON by jimbokun on Wednesday November 04, 2026 @10:55PM (#50374976)
Sleep deprivation does not give you energy.
Re:A New Go API for JSON by TheDong on Thursday November 05, 2026 @03:41AM (#50376734)
I do personally find myself most productive with a cycle of 20 hours awake / 12 hours asleep. Circadian rhythms vary by person.

Unfortunately, the world makes it hard to keep that cycle, and so instead I mostly do 17 hours awake / 7 asleep, which makes me feel constantly tired (though less tired than 16/8 at least).

Re:A New Go API for JSON by vikramkr on Thursday November 05, 2026 @04:15PM (#50384551)
Im not saying this is what's happening here, it could totally be just that he was burning himself out at work, but it's a truly incredible thing to find something that you love working on and want to dive into to the point that you lose hours at it and have to pull yourself away from it to go to sleep (obviously outside of stuff designed to be addictive and exploitative like gambling that hijack those reward mechanisms). Programming is one of those artistic technical pursuits and a lot of programmers love it in that way. And are grieving losing that with A. At least so far as you felt you could only justify spending time on something you loved like that if you were also paid for it. Nobody is stopping you from opening up a text editor again on your own time. But you know, it's good to be passionate about things. Not being able to sleep until you figure something out, losing track of time while you're lost in whatever you're working in - all that stuff where it's from innate drive and the love of the game? that stuff rules. If it's burnout throw it out but don't throw out the electric stuff that makes us human
Re:A New Go API for JSON by sellmesoap on Friday November 06, 2026 @12:59AM (#50388723)
It actually can if you ride that dragon just the right way! https://en.wikipedia.org/wiki/Wake_therapy
Re:A New Go API for JSON by asim on Thursday November 05, 2026 @01:41AM (#50375939)
No not a brag. I haven't done this in a long time. It's really unhealthy but I was trying to get a startup off the ground and became obsessed. Don't recommend it.
Re:A New Go API for JSON by karolist on Thursday November 05, 2026 @06:03AM (#50377738)
Did you succeed?
Re:A New Go API for JSON by c0wb0yc0d3r on Wednesday November 04, 2026 @11:16PM (#50375106)
This is sort of the deal with any language. I’m using go for personal projects and dotnet for paid projects.

Why? Because I don’t give time to wait for code to compile on my time and I don’t have time for people to learn a new language for review at work.

Life is good! Would recommend that split.

Re:A New Go API for JSON by osigurdson on Thursday November 05, 2026 @08:08AM (#50378653)
>> to me Go is the new C compiler

In what sense? Go has a GC and binary sizes are relatively pretty huge. Its closer to Java and C# than C.