News for hackers. Stuff that matters.
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.