frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Finding a billion factorials in 60 ms with SIMD

https://codeforces.com/blog/entry/143279
59•todsacerdoti•4h ago

Comments

few•1h ago
It's interesting to see which codeforces blog posts get traction on HN.

For context, in competitive programming a lot of combinatorial problems (find some formula to count something) require you to output the answer modulo some prime. This is because otherwise the answer would overflow an int and make the problem too tedious to be fun and too hard for problem setters to write good problems or checkers for.

So to prove that you still know how to count the thing, you can do it a finite field. If you use integers mod prime, you still have all the usual arithmetic operations like addition subtraction multiplication. And even division is still easy since you can calculate multiplicative inverse with Fermat's Little Theorem (a^(p-2) = a^(-1) mod p). The final answer you output is not the real thing you're counting, but just evidence that you had the right formula and did all the right operations.

Anyway, just wanted to give context for why competitive programmers care about factorial mod a prime (usually as part of a binomial or multinomial expression). And I'm kind of surprised anyone outside of competitive programming cares about it.

See also:

https://usaco.guide/gold/modular?lang=cpp

https://usaco.guide/gold/combo?lang=cpp

vivzkestrel•2m ago
Since we are talking factorials, i wanted to ask. What is the largest factorial that the biggest supercomputer known to man has computed? how long did it take

Mechanical Watch: Exploded View

https://fellerts.no/projects/epoch.html
663•fellerts•12h ago•92 comments

I wrote my PhD Thesis in Typst

https://fransskarman.com/phd_thesis_in_typst.html
195•todsacerdoti•6h ago•94 comments

Python can run Mojo now

https://koaning.io/posts/giving-mojo-a-spin/
27•cantdutchthis•2d ago•1 comments

Using Home Assistant, adguard home and an $8 smart outlet to avoid brain rot

https://www.romanklasen.com/blog/beating-brainrot-by-button/
139•remuskaos•7h ago•63 comments

Finding a billion factorials in 60 ms with SIMD

https://codeforces.com/blog/entry/143279
59•todsacerdoti•4h ago•2 comments

Polystate: Composable Finite State Machines

https://github.com/sdzx-1/polystate
19•goless•1h ago•11 comments

Klein Bottle Amazon Brand Hijacking (2021)

https://www.kleinbottle.com/Amazon_Brand_Hijacking.html
143•sebg•8h ago•52 comments

Adobe Project Indigo is a new photo app from former Pixel camera engineers

https://www.engadget.com/apps/adobe-project-indigo-is-a-new-photo-app-from-former-pixel-camera-engineers-213453207.html
37•bookofjoe•2d ago•13 comments

Tensor Manipulation Unit (TMU): Reconfigurable, Near-Memory, High-Throughput AI

https://arxiv.org/abs/2506.14364
8•transpute•2h ago•1 comments

Hawaii Highways

http://www.hawaiihighways.com/
42•yakattak•4h ago•10 comments

Using Wave Function Collapse to solve puzzle map generation at scale

https://sublevelgames.github.io/blogs/2025-06-22-nurikabe-map-gen-with-wfc/
15•greentec•3h ago•1 comments

Optifye.ai (YC W25) – Founding Back End Engineer

1•Vivaan_Baid•2h ago

Cross-Account and Cross-Region Backups with AWS Backup (and Friends)

https://tylerrussell.dev/2025/06/20/cross-account-and-region-backups-with-aws-backup-and-friends/
20•terussell85•2d ago•6 comments

Git Notes: Git's coolest, most unloved­ feature (2022)

https://tylercipriani.com/blog/2022/11/19/git-notes-gits-coolest-most-unloved-feature/
460•Delgan•18h ago•114 comments

Radio Garden

https://radio.garden/?2025
48•LeoPanthera•6h ago•7 comments

Interview with Francine Prose on early-1970s San Francisco [audio]

https://www.laphamsquarterly.org/content/episode-3-francine-prose
46•keiferski•7h ago•7 comments

How to negotiate your salary package

https://www.complexsystemspodcast.com/episodes/how-to-negotiate-your-salary-package/
244•surprisetalk•4d ago•212 comments

LibRedirect – Redirects popular sites to alternative privacy-friendly frontends

https://libredirect.github.io
388•riffraff•21h ago•97 comments

2048 with only 64 bits of state

https://github.com/izabera/bitwise-challenge-2048
111•todsacerdoti•3d ago•26 comments

AGI is Mathematically Impossible 2: When Entropy Returns

https://philarchive.org/archive/SCHAIM-14
62•ICBTheory•9h ago•112 comments

We’ve had a Denisovan skull since the 1930s—only nobody knew

https://arstechnica.com/science/2025/06/the-controversial-dragon-man-skull-was-a-denisovan/
62•Bluestein•3d ago•15 comments

The cultural decline of literary fiction

https://oyyy.substack.com/p/the-cultural-decline-of-literary
129•libraryofbabel•11h ago•234 comments

2025 Alonzo Church Award: Paul Blain Levy for Call-by-Push-Value (CBPV)

https://siglog.org/winner-of-the-2025-alonzo-church-award/
7•matt_d•1d ago•0 comments

TPU Deep Dive

https://henryhmko.github.io/posts/tpu/tpu.html
380•transpute•1d ago•79 comments

CF-Shield – An open source tool to protect any website with Cloudflare

https://github.com/Sakura-sx/cf-shield
12•Sakura-sx•3h ago•5 comments

There's Gold in the Hills

https://longreads.com/2025/06/12/blm-land-enduring-wild-josh-jackson/
26•gmays•3d ago•6 comments

Kilauea volcano errupts, lava more than 1k feet high [video]

https://www.youtube.com/watch?v=oG5zz9Sjw3E
76•asix66•2d ago•34 comments

How fast are Linux pipes anyway?

https://mazzo.li/posts/fast-pipes.html
189•keepamovin•20h ago•28 comments

Show HN: Lego Island Playable in the Browser

https://isle.pizza
13•foxtacles•4h ago•2 comments

Using an $8 smart outlet to avoid brainrot

https://www.neilchen.co/blog/kasa
119•NWChen•15h ago•69 comments