You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ziglang is a systems programming language that's still in development. It focuses on having good interoperability with C. One of the outstanding features of its compiler is the ability to compile C code: It can be used as a drop-in replacement for gcc or clang. It doesn't have any dependencies, and is very easy to install. It can also cross-compile C code to other operating systems and/or CPU architectures.
Is there an interest in using Zig as the suggested compiler for the project? While not yet considered stable, it is successfully used at and supported by Uber, Google and Cloudflare.
Using zig cc as a compiler could also open the door to potentially writing parts of the codebase in Zig, which is a bit more memory-safe than C.
Please don't take this as an attempt to enforce Zig upon everyone, I just think it could make for a nicer DX working on this project.
The text was updated successfully, but these errors were encountered:
So I actually got this to work so far using the current build system. Essentially follow the build steps as explained in the README, but instead of make -j run make -j CC="zig cc". It actually builds and runs!
jp2a can be build with every C compiler, including zig cc. Which compiler is used depends on the package maintainer of the distribution you use.
Switching to a modern language with memory safety features is a good idea. However switching jp2a all at once takes a lot of effort for little benefit.
I am open to contributions written in Zig.
For the time being I added a GitHub action job that builds jp2a with Zig and runs the tests.
Ziglang is a systems programming language that's still in development. It focuses on having good interoperability with C. One of the outstanding features of its compiler is the ability to compile C code: It can be used as a drop-in replacement for
gcc
orclang
. It doesn't have any dependencies, and is very easy to install. It can also cross-compile C code to other operating systems and/or CPU architectures.Is there an interest in using Zig as the suggested compiler for the project? While not yet considered stable, it is successfully used at and supported by Uber, Google and Cloudflare.
Using
zig cc
as a compiler could also open the door to potentially writing parts of the codebase in Zig, which is a bit more memory-safe than C.Please don't take this as an attempt to enforce Zig upon everyone, I just think it could make for a nicer DX working on this project.
The text was updated successfully, but these errors were encountered: