Hacker News new | past | comments | ask | show | jobs | submit | chvrchbvrner's comments login

> The build system requirement may seem minor if you’re already a Zig programmer, but it’s massive if you want to attract C systems programmers.

You won't need knowledge of the build system nor a 'build.zig'.

After step 4 you would run 'zig translate-c' on 'foo.h'. Then use '@import' instead of '@cImport' in step 5 for the translated file.

'@cImport' is basically just doing that under the hood. It's an additional step for the user, that's a fair point, but I definitely wouldn't call it massive.


I think there is a typo in the table of the "Creating prefix-free codes" section. D should be '0010' (not '0110').

Otherwise a great read, thanks!


Aha, that makes sense, I was wracking my brain as to how 0110 was unambiguous.


Fixed it. Well spotted!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: