Y
Hacker News
new
|
ask
|
show
|
jobs
by
shirleyquirk
1647 days ago
zig's IR is llvm, while Nim's IR is C/C++/javascript. C supports more platforms than llvm.
zig: no macros plz
nim: macros are amazing
2 comments
beagle3
1646 days ago
FWIW, there’s nlvm which is a fork of Nim that emits LLVM IR directly.
link
jeltz
1647 days ago
Zig has a work in progress C backend so it does not only generated llvm IR. Also to ve more specific Zig is macros are awesome but best implemented as C++'s comptime.
link