Live data from Hacker News

Flipper Zero Zig Template

github.com

1–10 of 22 posts

Re: Flipper Zero Zig Template

#7
post #3

`@cImport` is dead, apparently, so the example should be updated.

Stop the misinformation, it’s just changing where it’s being done moving from the language to the build system itself: https://ziggit.dev/t/cimport-going-away/5132

It’s also decoupling Zig compiler and C compiler so they’re updated independently.

It’s still a bummer in my view as I just replaced my build pipelines with just a Zig compiler instead of emscripten but that’s fine.

Re: Flipper Zero Zig Template

#9
post #5
post #4

Earlier quoted context omitted.

It's deprecated not removed yet.

I'm a little too lazy to double-check, but either way 0.17.0 is around the corner, where it will totally get nixed

It is being moved not going away.

It is just a wrapper around zig translate-c, moving it to the build system moves the resulting clang dependency to a place where it can be optional.

The functionality is staying, it is just moving.

Re: Flipper Zero Zig Template

#10
post #9
post #5

Earlier quoted context omitted.

I'm a little too lazy to double-check, but either way 0.17.0 is around the corner, where it will totally get nixed

It is being moved not going away. It is just a wrapper around zig translate-c, moving it to the build system moves the resulting clang dependency to a place where it can be optional. The functionality is staying, it is just moving.

The point here is that these examples need to be updated because @cImport, the syntactic feature of Zig, is being deprecated and removed. That there exists an alternative isn't relevant.
Post reply on HN