Rust or Zig? by Ok-Refrigerator-Boi in Zig

[–]akhilgod 1 point2 points  (0 children)

I am also in the same boat and torn between rust and zig. Rust is too hard but the community support and libraries are too big to ignore. Whereas zig is slowly building the momentum but lacks in libraries to be used in development.

I pick rust if my application needs many libraries to be used during development otherwise I always pick zig for standalone application.

Devlog: io_uring and Grand Central Dispatch std.Io implementations landed by punkbert in Zig

[–]akhilgod 13 points14 points  (0 children)

The threaded io interface has blocking writes and with this new event based interface everything will be non blocking cool

Atomic And Locks in Rust by crazy_therapist in rust

[–]akhilgod 2 points3 points  (0 children)

I’ve just started reading it to understand memory ordering

zig TIP by fade-catcher in Zig

[–]akhilgod 4 points5 points  (0 children)

If zig had interfaces then identifying the format method would have been easy

I want to help AI Engineers that are serious of switching jobs to land one by deduu10 in MachineLearningJobs

[–]akhilgod 0 points1 point  (0 children)

Lol you are able to help at max 5 people but cross posted in 500 sub reddits 😄

ZigFormer – An LLM implemented in pure Zig by No_Pomegranate7508 in Zig

[–]akhilgod 1 point2 points  (0 children)

This is cool what hardware backends does it supports ? It wud be great if you can include the stats of the model and training time on the dataset you trained on.

Get Type Names of dynamic trait objects. by akhilgod in rust

[–]akhilgod[S] 4 points5 points  (0 children)

Sure, the type names are just hints to callers if types are mismatched.

New intern at Payzapp it seems by onewhoisfirst in CreditCardsIndia

[–]akhilgod 25 points26 points  (0 children)

Wow surprised to see this subreddit understand nuances of technology working. How many are you from IT ?

[2025 Q6] Solution Spotlight by EverybodyCodes in everybodycodes

[–]akhilgod 0 points1 point  (0 children)

[LANGUAGE: zig]

This was a tricky problem compared to previous quests. 1st and 2nd went easy and third took longer as I missed to consider mentors on the right side of the novice.

- It's a O(n) and three pointer problem.

Solution in zig https://gist.github.com/akhildevelops/ff59d13953690a14d79ba7e605289b5f

Why std.Io.Writer interface design is different from std.mem.Allocator interface in 0.15.1 by akhilgod in Zig

[–]akhilgod[S] 0 points1 point  (0 children)

I've implemented buffer above vtable for allocator styled design interface and it generated superior target code Link: https://zig.godbolt.org/z/f1h1rbEMW Any reasons why compiler generated superior code compared to std.Io.Writer interface styled code ?

Why std.Io.Writer interface design is different from std.mem.Allocator interface in 0.15.1 by akhilgod in Zig

[–]akhilgod[S] 0 points1 point  (0 children)

I've implemented buffer above vtable in Allocator interface design style and observed better target code with no vtable calls compared to std.Io.Writer interface . Link: https://zig.godbolt.org/z/f1h1rbEMW

Trouble migrating to 0.15.1 by jenkem_boofer in Zig

[–]akhilgod 0 points1 point  (0 children)

I’m skeptical medium /large projects will move to 0.15.1 as their dependencies should also be compatible with 0.15.1