this post was submitted on 13 Jul 2026
71 points (96.1% liked)

Programming

27697 readers
236 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] eager_eagle@lemmy.world 13 points 1 day ago (1 children)

Zig is not as strict as Rust for memory management

[–] tracyspcy@lemmy.ml 3 points 1 day ago (1 children)
[–] eager_eagle@lemmy.world 5 points 1 day ago* (last edited 1 day ago) (1 children)

yes, but when you make a port from one language to another, usually you want to rewrite it as a translation first, then refactor later with the features that language provides. A port that refactors everything in the first release is too risky.

The fact the translation has unsafe blocks only demonstrates the Zig version is not really safe as per Rust standards.

[–] tracyspcy@lemmy.ml 4 points 1 day ago (1 children)

my comment was just pointing out to unsafe rust blocks used in sloppy rewrite.

[–] BB_C@programming.dev -2 points 1 day ago (2 children)

You clearly don't even know what unsafe in rust means. And it's not something you can avoid when FFI is involved, slopping involved or otherwise.

[–] vanillama@programming.dev 2 points 1 day ago

I see what you're saying, but there's no need to be rude.

[–] tracyspcy@lemmy.ml 1 points 1 day ago (1 children)
[–] BB_C@programming.dev -4 points 1 day ago (1 children)

You can interface with a C++ JS engine without unsafe (which is equivalent to just using C btw), if you just really put a real effort into it.

😇

I do love me some internet gantry commentary. Especially when it's super confident and acting knowledgable, with multiple layers of genius on display.

[–] tracyspcy@lemmy.ml 6 points 1 day ago

where is quote from? You pretend this is a quote of something I wrote?