Hacker News Viewer

Porting Go's strings package to C

by ingve on 4/3/2026, 3:12:45 PM

https://antonz.org/porting-go-strings/

Comments

by: nasretdinov

Interestingly enough, the initial Go implementation was indeed just a transpiler to C, and generally Go and C are semantically very similar. So the fact that you can even (successfully and relatively easily) do Go->C transpiling isn't entirely surprising. Of course you can't port `go` keyword and GC, but the language that the author is developing (called So) doesn't support these features anyway :).

4/3/2026, 4:33:54 PM


by: welder

Refreshing seeing someone coding without AI in 2026.

4/7/2026, 12:34:19 AM