frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Workspaces and Monorepos in Package Managers

https://nesbitt.io/2026/01/18/workspaces-and-monorepos-in-package-managers.html
16•Couto•3d ago

Comments

epage•13m ago
In Rust, we use workspaces for

- splitting up a package into smaller compilation units to speed up builds as llvm doesn't like large compilation units, e.g. I'm assuming this is why uv is split up

- splitting semver concerns (easiest if different parts of the api are versioned independently), e.g. one hope for splitting out `serde_core` is to allow breaking changes of `serde_derive`

- splitting out optional parts to improve build time (`features` can also be used but usability isn't as great), e.g. `clap` (cli parser) and `clap_complete` (completion support)

- local development tools, e.g. https://github.com/matklad/cargo-xtask

- less commonly run tests or benches that have expensive dependencies, e.g. `toml` splits out a benchmark package for comparing performance of `toml`, `toml_edit`, an old version of `toml`, and `serde_json`

- proc-macros generally have a regular library they generate code against

- lower development overhead to develop them together, e.g. anstyle has a lot of related packages and I wouldn't be wanting to maintain a repo per package

Packages also let you mix a library with bins and examples. We talked about multi-purpose packages vs libraries at https://blog.rust-lang.org/inside-rust/2024/02/13/this-devel... (this was before workspace publishing was supported).

Something this doesn't mention is that Cargo workspaces allow for sharing parts of the manifest through "workspace inheritance", including package metadata like the repo, dependency version requirements, lint configuration, or compilation profiles.

echelon•3m ago
Rust has the nicest workspaces of any language I've dealt with. It makes monorepos naturally easy to build. No manually cobbled together Pants or Bazel or hacks - it's first class out of the box.

Here's a rather large workspace with desktop apps, server apps, CLI tools, and libraries:

https://github.com/storytold/artcraft/blob/main/Cargo.toml

Cargo allows you to universally pin dependencies and features across the entire repo (if you'd like), though you can also deviate from this.

Javascript, on the other hand, is not very fun. I've used Nx, Lerna, and native tools. The tooling is esoteric, and the setup is arcane.

Open-source self-driving for 325 car models from 27 brands

https://comma.ai
119•JumpCrisscross•2h ago•47 comments

Unrolling the Codex agent loop

https://openai.com/index/unrolling-the-codex-agent-loop/
231•tosh•6h ago•112 comments

New YC homepage

https://www.ycombinator.com/
186•sarreph•9h ago•94 comments

Losing 1½ Million Lines of Go

https://www.tbray.org/ongoing/When/202x/2026/01/14/Unicode-Properties
33•moks•4d ago•0 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
79•signa11•4d ago•23 comments

Gas Town's agent patterns, design bottlenecks, and vibecoding at scale

https://maggieappleton.com/gastown
267•pavel_lishin•11h ago•277 comments

Microsoft gave FBI set of BitLocker encryption keys to unlock suspects' laptops

https://techcrunch.com/2026/01/23/microsoft-gave-fbi-a-set-of-bitlocker-encryption-keys-to-unlock...
687•bookofjoe•9h ago•454 comments

Route leak incident on January 22, 2026

https://blog.cloudflare.com/route-leak-incident-january-22-2026/
123•nomaxx117•9h ago•32 comments

Proof of Corn

https://proofofcorn.com/
323•rocauc•9h ago•243 comments

Mental Models (2018)

https://fs.blog/mental-models/
53•hahahacorn•6h ago•9 comments

Noora Health (YC W14) Is Hiring AI/ML Engineer

https://www.ycombinator.com/companies/noora-health/jobs/2B4RxLG-ai-ml-engineer
1•edithaelliott•2h ago

Wilson Lin on FastRender: a browser built by parallel agents

https://simonwillison.net/2026/Jan/23/fastrender/
28•lumpa•4h ago•5 comments

Booting from a vinyl record (2020)

https://boginjr.com/it/sw/dev/vinyl-boot/
286•yesturi•16h ago•102 comments

Caroline Ellison Former Alameda CEO Released from Prison After 440 Days

https://www.sec.gov/enforcement-litigation/litigation-releases/lr-26450
10•sizzle•24m ago•0 comments

KORG phase8 – Acoustic Synthesizer

https://www.korg.com/us/products/dj/phase8/
194•bpierre•12h ago•91 comments

The tech monoculture is finally breaking

http://www.jasonwillems.com/technology/2025/12/17/Tech-Is-Fun-Again/
144•at1as•11h ago•187 comments

Banned C++ features in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md
119•szmarczak•6h ago•97 comments

Proton Spam and the AI Consent Problem

https://dbushell.com/2026/01/22/proton-spam/
481•dbushell•20h ago•341 comments

Workspaces and Monorepos in Package Managers

https://nesbitt.io/2026/01/18/workspaces-and-monorepos-in-package-managers.html
16•Couto•3d ago•2 comments

Ask HN: What's the current best local/open speech-to-speech setup?

68•dsrtslnd23•16h ago•15 comments

Notes on the Intel 8086 processor's arithmetic-logic unit

https://www.righto.com/2026/01/notes-on-intel-8086-processors.html
87•elpocko•9h ago•9 comments

Everybody's at each other's throats': James Cameron left the US permanently

https://www.theguardian.com/film/2026/jan/23/james-cameron-left-the-us-permanently-covid-new-zealand
9•teleforce•29m ago•1 comments

The SIM-to-real problem isn't about simulators – it's about behavior robustness

https://medium.com/@freefabian/introducing-the-concept-of-kinematic-fingerprints-8e9bb332cc85
15•fabotelli•4d ago•2 comments

Show HN: Whosthere: A LAN discovery tool with a modern TUI, written in Go

https://github.com/ramonvermeulen/whosthere
215•rvermeulen98•15h ago•73 comments

I built an in-memory rate limiter in a Next.js project

https://www.freecodecamp.org/news/how-to-build-an-in-memory-rate-limiter-in-nextjs/
4•sudo_kaizen•2d ago•0 comments

Gold fever, cold, and the true adventures of Jack London in the wild

https://www.smithsonianmag.com/history/gold-fever-deadly-cold-and-amazing-true-adventures-jack-lo...
43•janandonly•5d ago•12 comments

Killing the ISP Appliance: An eBPF/XDP Approach to Distributed BNG

https://markgascoyne.co.uk/posts/ebpf-bng/
68•chaz6•9h ago•20 comments

Certificate Transparency Log Explorer

https://certs.swerdlow.dev
21•benswerd•7h ago•8 comments

Floating-Point Printing and Parsing Can Be Simple and Fast

https://research.swtch.com/fp
95•chmaynard•4d ago•7 comments

Nobody likes lag: How to make low-latency dev sandboxes

https://www.compyle.ai/blog/nobody-likes-lag/
62•mnazzaro•9h ago•34 comments