frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Zig by Example

https://github.com/boringcollege/zig-by-example
96•dariubs•1h ago

Comments

shaftoe444•1h ago

  Examples target Zig 0.14.
Been some significant changes since then, not least to printing and formatting (see writergate).
gren236•1h ago
Also build system and c interop is outdated
embedding-shape•10m ago
Ah, but are those changes in the training data yet?
fallingmeat•1h ago
lots of people into zig this morning apparently!
dominotw•53m ago
I am really looking into zig now because founder seems like a cool dude.
code-blooded•1h ago
I just looked this up yesterday so sharing some more up-to-date resources for those interested in Zig:

- Learning Zig by Karl Seguin: https://www.openmymind.net/learning_zig/

- https://zig.guide/

- Free project-based online book Introduction to Zig by Pedro Park: https://pedropark99.github.io/zig-book.

- Ziglings, almost working programs you need to fix: https://codeberg.org/ziglings/exercises

fallingmeat•1h ago
for those new, start with why: https://ziglang.org/learn/why_zig_rust_d_cpp
aselimov3•1h ago
Is this much different than ziglings?
voidUpdate•13m ago
This is essentially just a textbook of zig examples. Ziglings is an interactive exercise
pezgrande•1h ago
I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.
eclectric•42m ago
I would be interested to learn why that is a problem. As a new Rust learner, I am curious.
loeg•41m ago
It might not be the version you have installed, or the same version as another project you want to glue together into a single application.
afavour•12m ago
Rust has editions, which can be mixed and matched between different dependencies. AFAIK Zig does not have this.
nvme0n1p1•27m ago
The situation will improve once they release a stable 1.0 version.

Until then, use mise, nix, docker, or something similar. (You should be doing this anyway for projects in all languages if you care about them building on anyone's machine other than your own.)

noelwelsh•1h ago
Very brief. I'm not sure what this adds over reading the language documentation (which itself is not great). As it's entirely organized by language features it doesn't really talk about any larger scale design decisions, which is where I think language proficiency is really found.
miroljub•1h ago
Looking for a resource (MCP, CLI, Skill, ...) that would improve Zig support in LLMs.

Currently, doing something with Zig as a target language would spend many more tokens and produce subpar results.

voidUpdate•19m ago
If you worked through this and learnt to use zig, your token usage would be even lower!
short_sells_poo•17m ago
Don't be ridiculous. Learning? That's for the dinosaurs. Just throw an llm at the problem!
miroljub•3m ago
What's wrong with learning by reviewing the LLM generated code and asking questions interactively? Works for other languages.
baalimago•29m ago
I'm missing the concurrency model.
jdw64•4m ago
Is Zig just a trend, or will it become a solidly established language? After all, learning something is an investment of time. With Zig, it doesn't seem to have the same kind of industry pressure as Rust. There's talk in open source circles about AI-related issues, and on Hacker News people say good things about Zig. The allocator concept looks great. But there's also a possibility that it won't become mainstream, like the D language. I personally like D and think its compiler is beautiful, but being linguistically good is different from being industrially adopted. So should I learn Zig, or wait a bit longer?

For now, I have a basic grasp of C#, a little Python, a little C++, and a little TypeScript. I also know Java to some extent, but honestly, what I mostly build is CRUD app assembly. To go deeper, I think I need to dig into a systems language. But I'm not sure whether to invest in Zig or Rust.

Zig by Example

https://github.com/boringcollege/zig-by-example
99•dariubs•1h ago•23 comments

Launch HN: Intuned (YC S22) – Build and run reliable browser automations as code

https://intunedhq.com
41•fkilaiwi•1h ago•10 comments

Anti-social: It's fads, not friends, which now dominate social media feeds

https://www.bbc.com/worklife/article/20260520-how-social-media-ceased-to-be-social
176•1vuio0pswjnm7•2h ago•141 comments

Show HN: Performative-UI – a react component library of design tropes

https://vorpus.github.io/performativeUI/
41•lizhang•51m ago•7 comments

The Cypherpunk Library

https://www.cypherpunkbooks.com
199•yu3zhou4•6h ago•63 comments

How much of Thermo Fisher's antibody data has been manipulated?

https://reeserichardson.blog/2026/05/28/how-much-of-thermo-fishers-antibody-data-has-been-manipul...
210•mhrmsn•8h ago•50 comments

Are you expected to run five Python type-checkers now?

https://pyrefly.org/blog/too-many-type-checkers/
33•ocamoss•2h ago•22 comments

Zig Structs of Arrays (2024)

https://andreashohmann.com/zig-struct-of-arrays/
70•Tomte•4d ago•17 comments

Dopamine Fracking

https://igerman.cc/blog/dopamine-fracking/
574•igmn•12h ago•291 comments

1k Data Breaches Later, the Disclosure Lag Is Worse

https://www.troyhunt.com/1000-data-breaches-later-the-disclosure-lag-is-worse-than-ever/
240•882542F3884314B•11h ago•88 comments

Building from zero after addiction, prison, and a felony

https://gavinray97.github.io/blog/building-from-zero-after-addiction-prison-felony
773•gavinray•20h ago•351 comments

Spherical Voronoi Diagram

https://www.jasondavies.com/maps/voronoi/
75•marysminefnuf•4d ago•21 comments

Config Files That Run Code: Supply Chain Security Blindspot

https://safedep.io/config-files-that-run-code/
38•signa11•5h ago•5 comments

APC–2 – A professional record cutter for producing original playback discs

https://teenage.engineering/products/apc-2
246•vthommeret•13h ago•149 comments

A Family Project (2022)

https://bittersoutherner.com/feature/2022/a-family-project
61•surprisetalk•2d ago•4 comments

The Smallest Brain You Can Build: A Perceptron in Python

https://ranpara.net/posts/perceptron-explained-from-scratch/
257•DevarshRanpara•14h ago•54 comments

Richard Scolyer Has Died

https://www.bbc.com/news/articles/c14yz5jg476o
107•nicwilson•10h ago•29 comments

Nvidia partners with LG robotics to build humanoid robots in South Korea

https://blogs.nvidia.com/blog/nvidia-and-lg-group-ai-factory/
35•spwa4•2h ago•26 comments

Playing with Vision Embeddings

https://prestonbjensen.com/posts/playing-with-vision-embeddings
107•prestoj•3d ago•9 comments

Making peace with your unlived dreams (2023)

https://nik.art/making-peace-with-your-unlived-dreams/
273•herbertl•20h ago•167 comments

New drug 'functionally cures' many hepatitis B virus infections

https://www.science.org/content/article/new-drug-functionally-cures-many-hepatitis-b-virus-infect...
233•gmays•13h ago•40 comments

Show HN: I Derived a Pancake

https://www.absurdlyoptimized.com/recipes/pancakes/
287•bkazez•3d ago•116 comments

Age verification tech could put children at greater risk, says think tank

https://www.computerweekly.com/news/366643835/Age-verification-tech-could-put-children-at-greater...
142•robtherobber•7h ago•108 comments

Tiny hackable CUDA language model implementation

https://github.com/markusheimerl/gpt
52•markusheimerl•2d ago•10 comments

Spanish traders set the standard for GnuCash database design

https://handson.money/blog/2026-06-06-horse-arse-and-design/
49•vitalikpie•1h ago•45 comments

A modular impact diverting mechanism for football helmets [pdf]

https://www.sfu.ca/~gwa5/pdf/2020_04.pdf
10•luu•1d ago•3 comments

Amber Tree: A Middle Ground Between Rowan Red and Green Trees

https://blog.gplane.win/posts/introducing-amber-tree.html
9•gplane•3d ago•1 comments

A Matter Wi-Fi Light Bulb in Rust on the Raspberry Pi Pico 2 W

https://github.com/melastmohican/rust-rpico2-embassy-examples
143•melastmohican•14h ago•28 comments

Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

https://github.com/devenjarvis/lathe
356•devenjarvis•1d ago•64 comments

DeepSeek V4 Pro beats GPT-5.5 Pro on precision

https://runtimewire.com/article/deepseek-v4-pro-beats-gpt-5-5-pro-on-precision
361•yogthos•13h ago•181 comments