frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Kimi K3 is now live

https://www.kimi.com/en
226•vincent_s•1h ago•111 comments

OnePlus halts operations in USA and Europe

https://community.oneplus.com/thread/2170715118587871237
356•pilililo2•5h ago•193 comments

Goes-19 weather satellite enters Safe Hold mode

https://www.spaceweather.gov/news/goes-19-safe-hold
71•yabones•2h ago•38 comments

How Our Rust-to-Zig Rewrite Is Going

https://rtfeldman.com/rust-to-zig
130•jorangreef•4h ago•27 comments

Let's Build PlanetScale from Scratch: Infrastructure

https://onatm.dev/2026/07/16/homescale-part-1/
80•onatm•4h ago•16 comments

Sony Deletes a Bunch More Movies from the Accounts of People Who 'Bought' Them

https://www.techdirt.com/2026/07/15/sony-deletes-a-bunch-more-movies-from-the-accounts-of-people-...
250•nekusar•3h ago•129 comments

Where are YC founders now? OpenAI and Anthropic, mostly

https://joinedanthropic.com
252•ohong•7h ago•142 comments

Ente – Opening Our Books

https://ente.com/open/
134•Sherex•5h ago•38 comments

Show HN: I've built a words game based on binary search

https://hilogame.cc/
34•ludovicianul•2h ago•26 comments

GC shape stenciling in Go generics

https://rednafi.com/go/gc-shape-stenciling/
6•ingve•4d ago•0 comments

Guide to data tools landscape for developers

https://sinja.io/blog/data-landscape-guide-for-developers
18•OlegWock•1h ago•2 comments

The lost joy of music piracy

https://www.pigeonsandplanes.com/read/music-piracy-what-cd-oink-nine-inch-nails-streaming
599•mcgin•11h ago•397 comments

Inkling: Our Open-Weights Model

https://thinkingmachines.ai/news/introducing-inkling/
1133•vimarsh6739•21h ago•277 comments

How to Train a Gen AI Kick Drum Model on Your Old Linux Desktop with 6GB VRAM

https://www.zhinit.dev/blog/training-a-kick-drum-diffusion-model
5•zhinit•49m ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
16•caminanteblanco•2d ago•2 comments

Teardown: A Generic 7-Port USB 3.0 Hub That Wasn't

https://goughlui.com/2026/07/09/teardown-a-generic-7-port-usb-3-0-hub-that-wasnt/
163•speckx•3d ago•72 comments

1,300 Beautiful Wildlife Illustrations from the 19th Century Now Restored

https://www.openculture.com/2026/07/explore-1300-beautiful-wildlife-illustrations-from-the-19th-c...
189•gslin•12h ago•31 comments

The Act and the Outcome of Creation

https://www.ssp.sh/blog/on-creation/
23•zazuke•3h ago•5 comments

Let's build a simple interpreter for APL – part 1

https://mathspp.com/blog/lsbasi-apl-part1
30•mpweiher•6d ago•0 comments

Track your workout from the iPhone Lock Screen

https://musklr.com/blog/2026/iphone-lock-screen-workout-tracking-live-activity/
30•badgag•5h ago•26 comments

Panel meter calculator with floating point

https://lcamtuf.substack.com/p/panel-meter-calculator-with-floating
28•surprisetalk•3d ago•4 comments

Grok Build is open source

https://github.com/xai-org/grok-build
549•skp1995•19h ago•581 comments

Governments, companies, nonprofits should invest in free, open source AI [pdf]

https://www.siegelendowment.org/wp-content/uploads/2026/07/fortune-david-siegel-open-source-ai.pdf
260•bilsbie•18h ago•94 comments

If you want to create a button from scratch, you must first create the universe

https://madcampos.dev/blog/2026/07/accessibility-from-scratch/
205•treve•12h ago•100 comments

Introduction to KizunaShelf: A shelf for everything you love

https://mudkip.me/2026/07/16/Introduction-to-KizunaShelf/
19•mudkipme•3h ago•3 comments

Reynard: A real Firefox web browser for iOS 13 or later

https://github.com/minh-ton/reynard-browser
126•AbuAssar•11h ago•34 comments

SQLite should have (Rust-style) editions

https://mort.coffee/home/sqlite-editions/
334•gnyeki•17h ago•154 comments

World-War-Ⅱ-era telephone line still in use in Upper Tanana Valley Alaska (2021)

https://www.sketchesofalaska.com/2021/03/world-war-ii-era-telephone-line-still.html
16•Lammy•5d ago•2 comments

Generative AI Is an Engineering Disaster

https://www.theatlantic.com/technology/2026/07/generative-ai-engineering-disaster/687901/
48•latexr•2h ago•16 comments

Making 768 servers look like 1

https://planetscale.com/blog/making-768-servers-look-like-1
131•hisamafahri•12h ago•54 comments
Open in hackernews

How Our Rust-to-Zig Rewrite Is Going

https://rtfeldman.com/rust-to-zig
124•jorangreef•4h ago

Comments

coffeeindex•1h ago
Didn’t know Roc was still being worked on. I think it’s an interesting concept for a language that I personally haven’t seen elsewhere
onlyrealcuzzo•1h ago
Zig's incremental builds are DEFINITELY a killer feature. In the short term, I could see why you'd make a switch to get it. But, in the medium term, can we really not expect to see this in Rust in the somewhat near future?

I want to go fast, but I don't want to go fast just to shoot my foot off.

If only somehow we could get Rust's safety with all of Zig's features and Go's runtime without GC...

That's what I'm working on building [=

Hinrik•53m ago
Layperson here: what is special about Go's runtime, aside from the GC?
onlyrealcuzzo•45m ago
It's literally the most sophisticated scheduling engine in the world.

In practice, Go can typically outperform Rust in throughput (using more memory), despite having a mountain of disadvantages against it in theory.

That's how good the Go scheduler/runtime is.

jcgl•25m ago
This is the first I've heard anyone claim higher throughput for Go than Rust. Any articles you'd point to to learn more?
Aurornis•8m ago
> n practice, Go can typically outperform Rust in throughput (using more memory), despite having a mountain of disadvantages against it in theory

This is a huge claim that disagrees with both my real-world experience and everything I've seen from artificial comparisons.

Every high performance Go system I've worked on has quickly reached the point where we're optimizing memory management and doing things that would have been explicit in a non-GC language like Rust anyway.

The Go runtime is amazingly optimized, but it comes with overhead over doing the same work directly in a lower level language.

jandrewrogers•3m ago
> It's literally the most sophisticated scheduling engine in the world.

That seems unlikely regardless of how good it is. This is a domain where state-of-the-art research is not in the public literature. Scheduling is an AI-complete problem.

fnord77•44m ago
Goroutines?
lioeters•46m ago
Instead of waiting for faster compiler in Rust, how about from the other direction, adding some kind of borrow checker to Zig? That sounds more within reach and practically achievable, possibly even in userland.
onlyrealcuzzo•45m ago
That's sort of what I'm doing...

I'm writing a language with Affine Ownership that transpiles to Zig and has a built-in FSM-based Green Fiber runtime.

Affine Ownership gives you memory safety + fearless concurrency + eliminates the need for Go's GC.

It's obviously going to slow down compilation - since you need to do Rust's borrow checking, etc. But I can do this incrementally as well...

dnautics•33m ago
> how about from the other direction, adding some kind of borrow checker to Zig? That sounds more within reach and practically achievable, possibly even in userland.

It's doable, and as static analysis. see sibling comment.

Ar-Curunir•27m ago
No, it would fundamentally change how Zig works.
dnautics•35m ago
> if only somehow we could get Rust's safety with all of Zig's features

i periodically throw my unused codex tokens at this:

https://github.com/ityonemo/clr

KoleSeise1277•1h ago
The 35ms incremental rebuild is the part that sold me. I'd be curious to see the same benchmark on ARM once -fincremental gets there.
steveklabnik•40m ago
I think this is a fine post. But one comment:

> remember that for compilers which emit machine code, like roc and rustc, doing memory-unsafe things is a big part of the job

I don't really think that this is true, in the way that it's written.

I think that for the hot binary patching / code reloading features, yes, that is going to need unsafe. But for regular old "producing an executable" compilation? Emitting machine code isn't the part that requires unsafe. The language's runtime is a more likely site to find unsafe.

paulddraper•32m ago
Agreed, that’s disturbingly incorrect.

If anything, compilers are perfect models of trees and well formed programs.

Aurornis•14m ago
That line confused me, too. What parts of their compiler require memory-unsafe operations to produce machine code?
EPWN3D•12m ago
Yeah that is definitely 1000% wrong. A compiler can do its job with totally abstract data structures. If anything would need to do unsafe stuff in memory, it would probably be a linker.
landr0id•37m ago
>ReleaseSafe catches use-after-free errors through runtime checks which panic if the program tries to use freed memory.

I don't know Zig so maybe they know something I don't, but I have seen no evidence that it catches any type of use-after-free including double-free?

While writing a blog post (below) I went through the documentation to figure out the possible runtime memory safety checks Zig can insert. The term "use-after-free" or "UaF" never occurs on that documentation page. Searching for "safety-checked" doesn't yield any related hits either.

Unless maybe they're using the DebugAllocator in release builds? Even that does not reliably surface UaF.

https://landaire.net/memory-safety-by-default-is-non-negotia...

arthurbrown•36m ago
Interesting that OCaml was flexible and expressive enough to be used as a prototype testbed but not chosen as the implementation language, especially given the maturity of both. I would be surprised if Zigs incremental builds could be meaningfully faster than dune's.

Cross compilation is great, but not mentioned in the "why Zig" section. Is memory control that crucial for a compiler?

Rust itself was originally written in OCaml, same with WASM. I'm curious about what milestone gets reached where the maintainers collectively decide to transition away.

steveklabnik•33m ago
Rust moved away from OCaml when it decided to be re-written in Rust. The post alludes to this as being a usual time for a wholesale re-write, and I'd agree.
grayrest•27m ago
One of the primary goals for the Roc project is compiler speed. I presume OCaml is out of the running because it's not a systems language.
satvikpendem•24m ago
OCaml compiler is incredibly fast. I wonder how it'd fare with Jane Street's extensions for the borrow checker etc in OxCaml, if it's good enough for their HFT I'm sure it's good enough for a new language.
up2isomorphism•33m ago
I think there will be soon a wave of rewriting rust to language X coming up.
dev_l1x_be•32m ago
Zig is a pre-1.0 language while Rust is post-1.0. This alone is settles which one to pick for may developers. The library support is probably favours Rust too. Rust build times are much slower than Zig, I get that, but I rarely optimize software for build times.
satyambnsal•12m ago
is this uno reverse for bun post of zig to rust port ?
giancarlostoro•7m ago
One thing I wish Rust would improve over time is the builds. Its one of the biggest sources of wasted storage space on all my computers, builds a ton of libraries can take tens of gigs, it adds up very quickly. Not sure what the best solution is, one I found is to set the global build folder so dependencies get reused across projects, but imho it should be an OOTB default behavior whatever the real solution should be.