frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Partitions over Permutations

https://www.johndcook.com/blog/2026/06/04/partitions-over-permutations/
7•ibobev•1d ago

Comments

DroneBetter•39m ago
this is explained by the symbolic method (https://en.wikipedia.org/wiki/Symbolic_method); in the language of exppnential generating functions, we say that bell(n) = A000110(n) = [x^n/n!] exp(exp(x)-1), since exp() means "sets of ()," exp()-1 means "nonempty sets of ()" and x means "singletons" (it can be read as "bell(n) is the # of partitions of [n] into sets of nonempty sets").

see the asymptotic formulae by Vaclav Kotesovec and Natalia L. Skirrow (me!) on https://oeis.org/A000110; the former (together with Stirling's approximation) says bell(n)/n! ~ exp(n/W(n) - nlog(W(n)) - 1) / √(τ(1+W(n))), and the latter says that the average number of subsets in a partition on [n] counted by the Bell number is ~ n/log(n), while for a permutation it's only = H_n ~ log(n).

(using W(n) ~ log(n), although it's more precisely log(n) - log(log(n)) + o(1); its appearance here comes from solving for the radius from the origin at which |exp(exp(z)-1) / z^(n+1)| has a saddle point in the complex plane, which lets you pretend your contour integral from Cauchy's formula is a Gaussian and approximate it in terms of the generating function's logarithmic second derivative)

another cool adjacent result that comes out of saddlepointery on e.g.f.s is that (# of sets of lists on [n], A000262(n))/(# of sets of cycles on [n], n!) ~ exp(2√n - 1/2)/(2√π * n^(3/4)); this is also the expected number of preimages under the surjection A000262(n) -> n! from closing lists into cycles, or equivalently the expected product of cycle lengths in a random permutation ∈ Sₙ, and is my favourite example of a function whose growth is between polynomial and exponential

Vitamin D3 During Pregnancy and Cognitive Performance at 10 Years

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2849122
53•supermatou•1h ago•19 comments

LLMs are eroding my software engineering career and I don't know what to do

https://human-in-the-loop.bearblog.dev/llms-are-eroding-my-software-engineering-career-and-i-dont...
479•poisonfountain•3h ago•420 comments

Cloning a Sennheiser BA2015 battery pack

https://blog.brixit.nl/cloning-a-sennheiser-ba2015-accu-pack/
14•zdw•22h ago•1 comments

The 29th International Obfuscated C Code Contest (IOCCC) 2025 Winners

https://www.ioccc.org/2025/
294•matt_d•10h ago•71 comments

Anthropic, please ship an official Claude Desktop for Linux

https://github.com/anthropics/claude-code/issues/65697
205•predkambrij•3h ago•90 comments

Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

https://github.com/devenjarvis/lathe
79•devenjarvis•5h ago•13 comments

Yon – a topos-oriented language with a content-addressed lattice heap

https://yon-lang.org/
39•amenn•2d ago•28 comments

Win16 Memory Management

http://www.os2museum.com/wp/win16-memory-management/
100•supermatou•2d ago•50 comments

Show HN: Kyushu – A self-hostable WASM sandbox for JavaScript workers

https://kyushu.dev/
38•le_chuck•8h ago•22 comments

Podman 6: machine usability improvements

https://blog.podman.io/2025/10/podman-6-machine-usability-improvements/
21•daesorin•2h ago•1 comments

Speculative KV coding: losslessly compressing KV cache by up to ~4×

https://fergusfinn.com/blog/kv-entropy-coder/
117•kkm•3d ago•19 comments

How Long Does It Take for a QQuickItem to Become Visible?

https://www.kdab.com/how-long-does-it-take-for-an-item-to-become-visible/
23•jandeboevrie•2d ago•1 comments

The OnlyFans Economy of American AI

https://leoveanu.com/2026-06-06-qwen3.7max/
100•futurisold•1h ago•119 comments

My Software North Star

https://kristoff.it/blog/north-star/
164•kristoff_it•3d ago•96 comments

9 Mothers (YC P26) Is Hiring

https://9mothers.com/careers
1•ukd1•4h ago

The best relationships are all-encompassing.

https://andys.blog/the-best-relationships/
28•andytratt•4h ago•24 comments

The Secret Life of Circuits with lcamtuf / Michał Zalewski (Audio Interview)

https://theamphour.com/725-the-secret-life-of-circuits-with-lcamtuf-michal-zalewski/
34•ChrisGammell•3d ago•4 comments

Public Domain Image Archive

https://pdimagearchive.org/
192•davidbarker•16h ago•27 comments

Ntsc-rs – open-source video emulation of analog TV and VHS artifacts

https://ntsc.rs/
382•gregsadetsky•21h ago•116 comments

Field of clones: How horse replicas came to dominate polo

https://knowablemagazine.org/content/article/technology/2026/cloned-polo-horses
137•gscott•13h ago•63 comments

Symbolica 2.0: Programmable Symbols for Python and Rust

https://symbolica.io/posts/symbolica_2_0_release/
123•mmastrac•1d ago•11 comments

Valve P2P networking broken for more than 2 months

https://github.com/ValveSoftware/GameNetworkingSockets/issues/398
228•babuskov•13h ago•110 comments

Tokenomics: Quantifying Where Tokens Are Used in Agentic Software Engineering

https://arxiv.org/abs/2601.14470
141•Anon84•14h ago•61 comments

Warren's Abstract Machine: A Tutorial Reconstruction

https://github.com/a-yiorgos/wambook
37•nextos•1d ago•4 comments

Biohub releases a world model of protein biology

https://biohub.org/news/world-model-of-protein-biology/
128•gmays•3d ago•19 comments

Efficient and Training-Free Single-Image Diffusion Models

https://arxiv.org/abs/2606.04299
31•yorwba•6h ago•0 comments

There's no escaping it: an exploration of ANSI codes

https://blog.safia.rocks/2025/12/22/ansi-codes/
10•ankitg12•2d ago•3 comments

Arithmetic Without Numbers – How LLMs Do Math

https://alvaro-videla.com/llm-arithmetic-internals/article_interactive/article.html
77•old_sound•2d ago•24 comments

How Liminalism Became the Defining Aesthetic of Our Time

https://hyperallergic.com/how-liminalism-became-the-defining-aesthetic-of-our-time/
129•zeech•14h ago•72 comments

Harness engineering: Leveraging Codex in an agent-first world

https://openai.com/index/harness-engineering/
263•pramodbiligiri•1d ago•177 comments