frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Contracts in Nix

https://sraka.xyz/posts/contracts.html
25•todsacerdoti•22h ago

Comments

bojo•1h ago
Sorry to be that guy. I love nix, I want to read more about how people use nix.

The font presented under NixOS + Firefox is near unreadable on this website.

mananaysiempre•45m ago
The font (family) is a variant of Computer Modern. Computer Modern is, unfortunately, an extreme example of the problem where a font designed to compensate for ink spread on physical paper looks overly thin on a computer screen. It is also, unfortunately, one of the very few free fonts with good support for mathematics.
lmm•1h ago
Meh. Runtime assertions are a poor substitute for a type system, even if you give them a type-system-like syntax.
TheDong•1h ago
I think it's more nuanced than that.

For a long-running program, like a network service or whatever, yes absolutely runtime assertions are a poor substitute.

For an impure program, where which branches of code are hit or aren't hit depends on the result of network calls, filesystem state, user input, etc, then yes, a type-system will be more powerful.

However, nix is more-or-less pure. By fully evaluating the output, you can hit all of the non-dead code, and hit every runtime assertion every time.

For a completely pure program, runtime and compiletime might as well be the same, running it and caching the output is the exact same as compiling it, and if it fails to run and outputs an error, that's the same as it failing to compile.

I know the "more-or-less pure" is doing a lot of work there, and in reality there's a lot of bits that aren't really pure, but it's close enough that a runtime type system gives you a lot more than you'd get from one in a traditional language.

anon291•23m ago
Nix already has a ton written in it and it works... Magically.

Gradual typing for a system like this is the proper thing to do. You can always write a static linter for sections you need tested and maybe eventually you'll be able to type nixpkgs as well.

Any solution to the nix typing problem NEEDS graduality. Nixpkgs is too large to make it possible to have one commit that fixes everything. Starting from scratch is not a realistic option either.

koiueo•22m ago
Looks amazing!

Some time ago I wanted to write a Nix configuration dsl for an application I use. My effort halted due to lack of type checking, and implementing one felt like too much effort which would never pay back.

I'll give a try.

Defeating a 40-year-old copy protection dongle

https://dmitrybrant.com/2026/02/01/defeating-a-40-year-old-copy-protection-dongle
403•zdw•9h ago•117 comments

Apple's MacBook Pro DFU port documentation is wrong

https://lapcatsoftware.com/articles/2026/2/1.html
49•zdw•3h ago•3 comments

Show HN: NanoClaw – “Clawdbot” in 500 lines of TS with Apple container isolation

https://github.com/gavrielc/nanoclaw
300•jimminyx•7h ago•86 comments

Actors: A Model of Concurrent Computation [pdf] (1985)

https://apps.dtic.mil/sti/tr/pdf/ADA157917.pdf
52•kioku•5h ago•18 comments

My thousand dollar iPhone can't do math

https://journal.rafaelcosta.me/my-thousand-dollar-iphone-cant-do-math/
235•rafaelcosta•9h ago•113 comments

Notepad++ hijacked by state-sponsored actors

https://notepad-plus-plus.org/news/hijacked-incident-info-update/
531•mysterydip•4h ago•293 comments

Apple I Advertisement (1976)

http://apple1.chez.com/Apple1project/Gallery/Gallery.htm
214•janandonly•13h ago•125 comments

Contracts in Nix

https://sraka.xyz/posts/contracts.html
25•todsacerdoti•22h ago•6 comments

Adventure Game Studio: OSS software for creating adventure games

https://www.adventuregamestudio.co.uk/
295•doener•16h ago•54 comments

Time Machine-style Backups with rsync (2018)

https://samuelhewitt.com/blog/2018-06-05-time-machine-style-backups-with-rsync
61•accrual•6h ago•22 comments

Show HN: Wikipedia as a doomscrollable social media feed

https://xikipedia.org
93•rebane2001•6h ago•46 comments

Treasures found on HS2 route stored in secret warehouse

https://www.bbc.com/news/articles/c93v21q5xdvo
45•breve•8h ago•14 comments

Leaked Chats Expose the Daily Life of a Scam Compound's Enslaved Workforce

https://www.wired.com/story/the-red-bull-leaks/
17•smurda•1h ago•2 comments

Efficient String Compression for Modern Database Systems

https://cedardb.com/blog/string_compression/
108•jandrewrogers•2d ago•25 comments

Founding is a snowball

https://blog.bawolf.com/p/founding-is-a-snowball
60•bryantwolf•3d ago•23 comments

Building Your Own Efficient uint128 in C++

https://solidean.com/blog/2026/building-your-own-u128/
53•PaulHoule•10h ago•24 comments

Two kinds of AI users are emerging

https://martinalderson.com/posts/two-kinds-of-ai-users-are-emerging/
113•martinald•6h ago•103 comments

Ian's Shoelace Site

https://www.fieggen.com/shoelace/
91•righthand•12h ago•12 comments

MicroPythonOS graphical operating system delivers Android-like user experience

https://www.cnx-software.com/2026/01/29/micropythonos-graphical-operating-system-delivers-android...
197•mikece•3d ago•59 comments

A Crisis comes to Wordle: Reusing old words

https://forkingmad.blog/wordle-crisis/
74•cyanbane•12h ago•84 comments

Netbird – Open Source Zero Trust Networking

https://netbird.io/
668•l1am0•20h ago•251 comments

Towards a science of scaling agent systems: When and why agent systems work

https://research.google/blog/towards-a-science-of-scaling-agent-systems-when-and-why-agent-system...
71•gmays•12h ago•25 comments

Building a Telegram Bot with Cloudflare Workers, Durable Objects and Grammy

https://flashblaze.xyz/posts/cloudflare-workers-durable-objects-telegram-bot/
11•flashblaze•3h ago•0 comments

In the Lab – Soldering Prototypes with Enamel Magnet Wire

https://tomverbeure.github.io/2020/02/22/In-The-Lab-Magnet-Wire-Soldering.html
15•hasheddan•2d ago•14 comments

Stop Using Pseudo-Types

https://f2r.github.io/en/stop-using-pseudo-types.html
7•speckx•4d ago•0 comments

Clearspace (YC W23) Is Hiring an Applied Researcher (ML)

https://www.ycombinator.com/companies/clearspace/jobs/GOWiDwp-research-engineer-at-clearspace
1•anteloper•11h ago

Teaching my neighbor to keep the volume down

https://idiallo.com/blog/teaching-my-neighbor-to-keep-the-volume-down
643•firefoxd•11h ago•311 comments

Show HN: Sandbox Agent SDK – unified API for automating coding agents

https://github.com/rivet-dev/sandbox-agent
34•NathanFlurry•4d ago•2 comments

FOSDEM 2026 – Open-Source Conference in Brussels – Day#1 Recap

https://gyptazy.com/blog/fosdem-2026-opensource-conference-brussels/
206•yannick2k•20h ago•114 comments

Troublemaker: The fierce, unruly life of Jessica Mitford

https://www.lrb.co.uk/the-paper/v48/n02/rosemary-hill/one-of-the-worst-things
20•against•4d ago•1 comments