29
top 7 comments
sorted by: hot top controversial new old
[-] ruffsl@programming.dev 5 points 1 year ago

I'm surprised there isn't a community on this intense for this language already.
I'd suggest those who interested to make a post over on !community_request@programming.dev .

[-] huntrss@feddit.de 4 points 1 year ago

There is ziglang@lemmy.org but it's pretty empty.

But there is a forum on ziggit.dev that is pretty lively.

[-] Sigmatics@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)
[-] huntrss@feddit.de 1 points 1 year ago

I think it is https://ziggit.dev/

But it doesn't work for me at the moment as well. But firefox and my internet connection or something in between could be the reason

[-] glad_cat@lemmy.sdf.org 2 points 1 year ago

I hate videos that try to talk about programming concepts. Also it would be better if we had a real comparison between Nim and Zig as it seems that they try to fill the same void in programming languages.

[-] Paradox@lemdro.id 6 points 1 year ago* (last edited 1 year ago)

Well, one major difference between nim and zig is that nim has codegen features built in, and the ergonomics are so simple around them you'll wind up using them without knowing.

Nim, if you just start calling functions in your code, will evaluate them at compile time. This means you can use loops and other constructs to generate bits of code. This is similar to how it works in Ruby and Elixir (and python too IIRC).

So you can do this contrived example:

for i in [a, b, c]:
  proc i =
    echo "Generated proc"

That code probably wont work, but you can see the utility on being able to generate stuff inside your source code.

Zig explicitly has chosen to not have codegen features. The reasoning is that it keeps the language simpler, and is inline with Zigs efforts to stay away from macros and templates. The closest you can get is the comptime keyword, which evaluates it's right at compile, but it's very limited

[-] PipedLinkBot@feddit.rocks 0 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/watch?v=kxT8-C1vmd4

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

load more comments
view more: next ›
this post was submitted on 03 Aug 2023
29 points (91.4% liked)

Programming

17225 readers
137 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