News for hackers. Stuff that matters.

dzbarsky

Re:I'm Fucking Done with Slop on Friday October 16, 2026 @12:56PM (#50120980)
This was nowhere near the top submission. But even if a solo engineer could get a top kernel, you don't think that having thousands of engineers, infinite tokens, and stronger models than are available to the public would give the labs a significant edge?
Re:C/C++ projects packaged for Zig on Tuesday July 28, 2026 @08:18AM (#49082680)
See my comment above - the common language rulesets work in similar ways as Buck(2), AIUI. (Except bazel has features to consume external dependencies without vendoring, as opposed to Reindeer approach for example). Another difference is that since Bazel has much more adoption across the OSS world, there are more viable choices in language implementation rulesets, as opposed to Buck's prelude.
Re:C/C++ projects packaged for Zig on Tuesday July 28, 2026 @08:16AM (#49082664)
This comment gives off the impression the bazel just wraps cargo/pip/npm invocations, which is incorrect.

First of all, bazel does not handle any of these languages/ecosystems itself. Such logic is delegated to language-specific rulesets, of which there are multiple implementations with different tradeoffs.

For python - https://github.com/aspect-build/rules_py parses a UV lockfile and does not use either UV or pip at build time.

For rust - https://github.com/hermeticbuild/rules_rs parses the cargo lockfiles but does not invoke cargo itself.

For js, https://github.com/aspect-build/rules_js parses the pnpm lockfile but does not invoke pm at build time in the commonly used configurations.

While it's true that bazel allows to patch all dependencies on the fly, in my experience many Bazel users do try to contribute back, because managing stacks of hundreds of patches across all your dependencies isn't particularly fun.

Care to elaborate how OpenAI is failing in your opinion?
Re:Zig ELF Linker Improvements Devlog on Saturday May 30, 2026 @02:19PM (#48339190)
None? All of these things were in flight for a while and given Zigs anti-AI stance i think they wrote off Bun ever since the acquisition
Re:ANN v3: 200ms p99 query latency over 100B vectors on Sunday January 25, 2026 @03:48PM (#46758030)
Look into Bazel, a very standard build system used at many large tech companies. It splits fetches from build/test actions and allows blocking network for build/test actions with a single CLI flag. No hassle at all.

The fact that you haven't come across this kind of setup suggests that your hundreds of CI systems are not representative of the industry as a whole.

Re:Committing to Rust for Kernel Code on Thursday November 23, 2023 @05:46PM (#38398534)
https://github.com/dzbarsky/static-clang should let you build it in a reproducible way with a single command.
Even if you ignore all the other benefits of type annotations, merely being explicit about the types of parameters your function accepts helps people reading your code.

If you're going to make the argument that you can just add comments with the types - well then that's exactly what mypy is doing, but if you do it in the mypy format you get static analysis of your types for free.

Static typing and unit testing aren't mutually exclusive.

> What does mypy do if you make a call from code with type annotations into code without? Or vice-versa?

It's not able to analyze across such boundaries, but as you expand the set of typed code you get better and better coverage.

> Has anyone ever gotten paid to add annotations to code that works?

At Dropbox, we're starting to add type annotations to code. We're confident it will catch many bugs at lint time. Source: I work at Dropbox.

> Personally, I view type systems as like a safety line when doing work on a roof, and optional typing as having a line that might or might not be tied off.

At least it has the possibility of being tied off and catching you. Better than definitely not having a line.

This is why you should use containers for running binaries on user-supplied data.