Re:How (memory) safe is Zig? (2021)
by ajross on Tuesday May 13, 2025 @08:19PM
(#43979383)
Weird that Swift is your totem for "managed/collected runtime" and not Java (or C#/.NET, or Go, or even Javascript). I mean, it fits the bill, but it's hardly the best didactic choice.
[ Parent
| on HN ]
I don't think they said anything about that?
The point was that basically no one knows Swift, and everyone knows Java. If you want to point out a memory safe language in the "managed garbage-collected runtime" family, you probably shouldn't pick Swift.
I wouldn’t put Swift in the same ‘managed garbage-collected runtime’ family as Java, C#/.NET, Go, and Javascript, so maybe they weren’t trying to do what you think.
Swift is more like a native systems programming language that makes it easy to trade performance for ergonomics (and does so by default).