Hacker News new | ask | show | jobs
by lhorie 1849 days ago
Re: strings, this is a thread about that topic: https://github.com/ziglang/zig/issues/234

It strikes me as a difference in opinion wrt at which level should strings be handled (zig folks saying it should be a userspace/stdlib concern, ddevault saying it should be a core language concern). IMHO the point of contention seems to be that ddevault considers stdlib an integral part of a language, whereas zig has an ideology that aggressive support for freestanding, no-stdlib-whatsoever workflows is part of its scope.

From my understanding from the other HN thread, Hare appears to use QBE as a backend, which only targets x64 (whereas Zig says it'll continue to use LLVM for prod builds). Zig is also somewhat unique among low level languages in that it put quite a non-trivial amount of legwork on cross-compilation plumbing (e.g. the article about compiling C extensions for go via zig[0])

[0] https://dev.to/kristoff/zig-makes-go-cross-compilation-just-...