News for hackers. Stuff that matters.
Re:Hobby x86 kernel written with Zig by rvz on Monday January 06, 2020 @06:26AM (#21968306)
I found the module system for C interop, quite innovative and was surprised to see that Rust didn't even have such a thing. If you compare bindgen to this approach, bindgen just seems like double work and harder to maintain autogenerated bindings.

I have seen both Zig and Swift use the module system very well despite several devs strangely saying its somewhat complicated, but when used for low-level development this makes Zig an interesting language to use for language bindings.

Re:Hobby x86 kernel written with Zig by dnautics on Monday January 06, 2020 @07:02AM (#21968485)
I wrote a library for ffi (nifs) in elixir using zig, and a long term goal is for it to be easier to use zig as an intermediary for c library ffi than it is to use c.

Already importing blas into elixir with it is crazy easy.

Re:Hobby x86 kernel written with Zig by zambal on Monday January 06, 2020 @08:07AM (#21968801)
That sounds interesting. Do you have a link to a hex package or repo?
Re:Hobby x86 kernel written with Zig by dnautics on Monday January 06, 2020 @08:24AM (#21968914)