frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Zig Libc

https://ziglang.org/devlog/2026/#2026-01-31
75•ingve•5h ago

Comments

cies•1h ago
Super cool project.

I expect a lot of C code may be quite mechanically translated to Zig (by help of LLMs). Unlike C->Rust or C->C++, where there's more of a paradigm shift.

Retro_Dev•31m ago
There's solid reason for the translation here; the Zig core team is aiming to eliminate duplicated code and C functions, and avoid the need to track libc from multiple sources. In the future, LLMs could serve as part of this, but they are currently quite terrible at Zig (as far as I understand it, it's not a lack of Zig code samples, it's an imbalance of OLD Zig to NEW Zig, as Zig changes quite frequently).

You would need to consider if it is even worth it translating your C code. If the paradigm is identical and the entire purpose would be "haha it is now one language," surely you could just compile and link the C code with libzigc... In my opinion, it's not worth translating code if the benefit of "hey look one language" requires the cost of "let's pray the LLM didn't hallucinate or make a mistake while translating the code."

nesarkvechnep•1h ago
"Furthermore, when this work is combined with the recent std.Io changes, there is potential for users to seamlessly control how libc performs I/O - for example forcing all calls to read and write to participate in an io_uring event loop"

This is exciting! I particularly care more about kqueue but I guess the quote applies to it too.

nemo1618•1h ago
This strikes me as a very agent-friendly problem. Given a harness that enforces sufficiently-rigorous tests, I'm sure you could spin up an agent loop that methodically churns through these functions one by one, finishing in a few days.
henning•44m ago
Have you ever used an LLM with Zig? It will generate syntactically invalid code. Zig breaks so often and LLMs have such an eternally old knowledge cutoff that they only know old ass broken versions.

The same goes for TLA+ and all the other obscure things people think would be great to use with LLMs, and they would, if there was as much training data as there was for JavaScript and Python.

jzelinskie•1h ago
Cool idea, for sure, but I can't help but wonder: for the code that's been ported, is there a concern that you'd have to perpetually watch out for CVEs in glibc/musl and determine if they also apply to the Zig implementations?
xrd•30m ago
"Abolish ICE" at the bottom. Obviously a Bad Bunny fan, as I am.
adzm•21m ago
I too am sick of internal compiler errors
meisel•14m ago
> It’s kind of like enabling LTO (Link-Time Optimization) across the libc boundary, except it’s done properly in the frontend instead of too late, in the linker

Why is the linker too late? Is Zig able to do optimizations in the frontend that, e.g., a linker working with LLVM IR is not?

OsamaJaber•13m ago
250 C files were deleted. 2032 to go. Watching Zig slowly eat libc from the inside is one of the more satisfying long term projects to follow
self_awareness•6m ago
Why does the author think that "abolish ice" is more important than "abolish iranian authoritarian regime which is killing its own people"? seems kinda nationalistic
o_m•2m ago
He is American

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
162•g-mork•1h ago•420 comments

The Codex App

https://openai.com/index/introducing-the-codex-app/
429•meetpateltech•4h ago•272 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
107•trms•2h ago•21 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
57•bhouston•1h ago•16 comments

Ask HN: Who is hiring? (February 2026)

220•whoishiring•6h ago•280 comments

Hacking Moltbook

https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
197•galnagli•6h ago•133 comments

4x faster network file sync with rclone (vs rsync) (2025)

https://www.jeffgeerling.com/blog/2025/4x-faster-network-file-sync-rclone-vs-rsync/
223•indigodaddy•3d ago•111 comments

Advancing AI Benchmarking with Game Arena

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/kaggle-game-arena-updates/
85•salkahfi•5h ago•42 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
200•yz-yu•10h ago•24 comments

The largest number representable in 64 bits

https://tromp.github.io/blog/2026/01/28/largest-number-revised
58•tromp•4h ago•45 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
250•wodniok•5h ago•149 comments

Zig Libc

https://ziglang.org/devlog/2026/#2026-01-31
77•ingve•5h ago•14 comments

Ask HN: Who wants to be hired? (February 2026)

84•whoishiring•6h ago•202 comments

Stelvio: Ship Python to AWS

https://github.com/stelviodev/stelvio
19•todsacerdoti•3h ago•29 comments

Geologists may have solved mystery of Green River's 'uphill' route

https://phys.org/news/2026-01-geologists-mystery-green-river-uphill.html
131•defrost•9h ago•32 comments

Pretty soon, heat pumps will be able to store and distribute heat as needed

https://www.sintef.no/en/latest-news/2026/pretty-soon-heat-pumps-will-be-able-to-store-and-distri...
117•PaulHoule•1d ago•104 comments

General Graboids: Worms and Remote Code Execution in Command and Conquer

https://www.atredis.com/blog/2026/1/26/generals
18•speckx•6d ago•4 comments

On being sane in insane places (1973) [pdf]

https://www.weber.edu/wsuimages/psychology/FacultySites/Horvat/OnBeingSaneInInsanePlaces.PDF
57•dbgrman•5h ago•36 comments

Joedb, the Journal-Only Embedded Database

https://www.joedb.org/index.html
4•mci•3d ago•0 comments

Nvidia shares are down after report that its OpenAI investment stalled

https://www.cnbc.com/2026/02/02/nvidia-stock-price-openai-funding.html
59•greatgib•2h ago•18 comments

Court orders restart of all US offshore wind power construction

https://arstechnica.com/science/2026/02/court-orders-restart-of-all-us-offshore-wind-construction/
13•ck2•14m ago•1 comments

EPA Advances Farmers' Right to Repair

https://www.epa.gov/newsreleases/epa-advances-farmers-right-repair-their-own-equipment-saving-rep...
143•bilsbie•4h ago•56 comments

Why software stocks are getting pummelled

https://www.economist.com/business/2026/02/01/why-software-stocks-are-getting-pummelled
103•petethomas•18h ago•151 comments

UK government launches fuel forecourt price API

https://www.gov.uk/guidance/access-the-latest-fuel-prices-and-forecourt-data-via-api-or-email
77•Technolithic•9h ago•88 comments

IsoCoaster – Theme Park Builder

https://iso-coaster.com/
86•duck•3d ago•23 comments

Show HN: Adboost – A browser extension that adds ads to every webpage

https://github.com/surprisetalk/AdBoost
81•surprisetalk•9h ago•98 comments

TileIR Internals

https://maknee.github.io/blog/2026/NVIDIA-TileIR-Internals-from-CuTile-to-MLIR-LLVM-to-SASS/
6•vimarsh6739•3d ago•1 comments

My fast zero-allocation webserver using OxCaml

https://anil.recoil.org/notes/oxcaml-httpz
129•noelwelsh•12h ago•44 comments

Parking lots as economic drains

https://progressandpoverty.substack.com/p/stop-incentivizing-surface-parking
102•surprisetalk•4h ago•116 comments

Tomo: A statically typed, imperative language that cross-compiles to C [video]

https://www.youtube.com/watch?v=-vGE0I8RPcc
34•evakhoury•4d ago•15 comments