Live data from Hacker News

Touring the Zig-EM code-scape (2024)

zigem.openem.org

1–10 of 13 posts

Re: Touring the Zig-EM code-scape (2024)

#3
post #2

> Zig•EM – a novel programming framework for developing and deploying applications which target resource-constrained MCUs, where every byte of memory and every μJoule of energy matters https://zigem.openem.org/post-002/

Thank you, I couldn't find an explanation about what is was about.

Re: Touring the Zig-EM code-scape (2024)

#7

How does this compare to Rust? I still fail to see where does Zig make a difference vs. Rust. What's the usefulness of the project here...

The two languages have completely different design philosophies and a completely different feel leading to a completely different experience. I would say they're more different from each other than Java is different from Python. Some low-level developers will be drawn to Rust more while others will be drawn to Zig more.

Re: Touring the Zig-EM code-scape (2024)

#8
post #5

How does this compare to Rust? I still fail to see where does Zig make a difference vs. Rust. What's the usefulness of the project here...

If you fail to see the difference, maybe study the subject matter a little more?

Maybe you could help me a bit here.

Re: Touring the Zig-EM code-scape (2024)

#9
post #7

How does this compare to Rust? I still fail to see where does Zig make a difference vs. Rust. What's the usefulness of the project here...

The two languages have completely different design philosophies and a completely different feel leading to a completely different experience. I would say they're more different from each other than Java is different from Python. Some low-level developers will be drawn to Rust more while others will be drawn to Zig more.

Oh, that's something I know, of course.

I just wonder what are the advantages of using a language that is not memory-safe and it's not even stable yet...

Edit: If there's any technical reason. Of course, being a hobby project, the author is free to pick whatever he feels is most ergonomic/he likes the most.

Re: Touring the Zig-EM code-scape (2024)

#10

How does this compare to Rust? I still fail to see where does Zig make a difference vs. Rust. What's the usefulness of the project here...

I think its a control vs safety trade off. Zig forces explicit control over memory with some tools for safety. Rust forces safety with some tools for control. I only have hobbyist level experience with these languages. I find both enjoyable and I hope Zig continues to mature.

A much better source on Zig vs Rust would be Alex Kladov [0], one of the authors of TigerBeetle [1], which is one of the best Zig code bases I have seen.

[0] https://matklad.github.io/2023/03/26/zig-and-rust.html

[1] https://github.com/tigerbeetle/tigerbeetle

Post reply on HN