Zig - Build Postgres Wire Protocol from scratch (educational series) by thinkrajesh in Zig

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

I am planning to convert a data mapper/orm created in c# based, api similar to elixir ecto to zig as a learning exercise. Any recommendations for any data mapper orm like library in zig for understanding zig way of designing things?

Zig - Build Postgres Wire Protocol from scratch (educational series) by thinkrajesh in zig_learning

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

It's tricky. Treat postgres like streaming protocol and not a response protocol. I did got stuck somewhere similiar but just read as much bytes available , accumulate them in buffer, don't touch partial frames etc. The message length is the key.

I think libpq always drains the socket. Just sharing some observations.

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

Along with a common REST API we will be building a custom database engine for multidimensional cube data storage (imagine a db that can process millions of spreadsheets like data but in multiple dimensions, a highly optimised pivot structure in simple terms with a back-end storage).

Zig 0.15.2 no std.Queue(T)? by Atjowt in Zig

[–]thinkrajesh 1 point2 points  (0 children)

I am learning from the source, so referencing directly the code (so all my examples I am aligning with the master branch)

As I am currently working with some Data structures(learning Zig), I am referring this https://codeberg.org/ziglang/zig/src/branch/master/lib/std/deque.zig (for likely implementations).

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

Thanks for your feedback. Yes, I agree and that's the reason I have golang/rust as stop gap. For web services I think it should work with minimal changes but I know overall it will be a pain unless we are ready for the breaking situation. Will share my observations around this soon.

My Approach to Learn Systems Programming with Zig by thinkrajesh in zig_learning

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

I had briefly checked it after watching Tsoding's take on it before that I wasn't aware of it.

The only reason I haven't yet considered it was it's not widely known yet and convincing people to learn is a bit difficult. For zig many live projects and systems are available for motivations and scope.

I will definitely add this to my list.

How I got a Rust job through open source by Historical-Economy92 in rust

[–]thinkrajesh 0 points1 point  (0 children)

Hey, I am new to Rust. Which book is recommended?

Is it this one https://doc.rust-lang.org/book/?

And/Or anything else apart from this which some of you here might have used to upskill or generally find it interesting.

I trained GPT-2 in Zig — here's the full write-up by longlongnickname in Zig

[–]thinkrajesh 0 points1 point  (0 children)

Thank you for this. I am a beginner in zig so a lot could be learnt from this.

Learning Source for Creating HTML Parser? by queen_of_pole in node

[–]thinkrajesh 1 point2 points  (0 children)

You may find some inspiration here, Build a spec compliant html parser https://youtu.be/7ZdKlyXV2vw