this post was submitted on 29 Jul 2023
28 points (88.9% liked)

Programming

17492 readers
36 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 1 year ago
MODERATORS
 

Through witchcraft and dark magic, Zig contains a C standard library and cross compiler for every architecture in 45 megabytes.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] SFGrenade@feddit.de 9 points 1 year ago (1 children)

amazingly i read recently that zig wants to cut out llvm in the future, which is the reason it can compile c/c++

[โ€“] etewar@lemmy.blahaj.zone 6 points 1 year ago

I read that as well and Andrew explained that although he wants to do that, it won't happen immediately. There are large projects that rely on this feature and he asked for their input on this topic.

Another thing is that proposed change is to remove clang from the zig distribution. It would still be possible to depend on a zig package that provides an interface to seamlessly compile with system clang.