frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: STB-like zero-dependency O(N) FMM gravity solver

https://github.com/nihiL7331/polesitter
2•nihiL7331•1h ago

Comments

nihiL7331•1h ago
Hi HN, Inspired by a YouTube video that popped up on my feed (The Fastest Gravity Algorithm You've Never Heard Of: Fast Multipole Method by Keyframe Codes) I decided to write a library implemeting a N-body solver with an O(N) time complexity.

Most real-time physics engines rely on the Barnes-Hut algorithm, which gets the time complexity down to O(N log N). The Fast Multipole Method (FMM) achieves true O(N) scaling, and I decided to write it entirely in C99 as an stb-style single-header library.

I ended up with a implementation, that running a 200,000 particles simulation grants a ~150x better performance than a naive O(N^2) approach, scaling linearly.

One of the downsides with the FFM approach is the cost of generating the octree, but i managed to yield better performance (compared to the naive approach) at as low as 1,000 particles.

Hey everyone, wanted to share something I built in case it helps someone here

https://foliumcv.com/
1•nahuelgiudizi•6m ago•1 comments

RFK Jr tells US families to vaccinate children against measles amid outbreak

https://www.theguardian.com/us-news/2026/aug/02/rfk-jr-measles-vaccination
3•doener•8m ago•0 comments

The Challenge of Recovering SpaceX's Starship at Sea [video]

https://www.youtube.com/watch?v=0i0hpJ0Hqj4
2•sbuttgereit•13m ago•0 comments

Attio – Next Gen CRM

https://attio.com
2•flurly•13m ago•0 comments

Cooked: A DIY Manifesto (2013) [pdf]

https://foodwriting.ua.edu/wp-content/uploads/2021/10/Cooked-exerpt.pdf
3•geneticdrifts•15m ago•0 comments

The diabolical world of convincing AI thirst traps

https://www.vox.com/culture/492604/ai-deepfake-gay-influencers-tiktok-thirst-traps
4•nabbed•15m ago•0 comments

Why Were the Dabaos Late?

https://www.crowdsupply.com/baochip/dabao/updates/why-were-the-dabaos-late
4•mananaysiempre•17m ago•1 comments

Crypto miners are stealing power in Southeast Asia

https://www.dw.com/en/how-crypto-miners-are-stealing-power-in-southeast-asia/a-78175364
3•tchalla•18m ago•0 comments

Europe Is a Country

https://www.noelmaurer.com/p/europe-is-a-country
3•barry-cotter•24m ago•0 comments

Study of 2M newborns shows refusing vitamin K shot led to higher bleeding risk

https://medicalxpress.com/news/2026-07-million-newborns-vitamin-shot-higher.html
2•Gaishan•24m ago•0 comments

New spinning drone hides in plain sight

https://news.northwestern.edu/stories/2026/07/new-spinning-drone-hides-in-plain-sight
5•defrost•27m ago•1 comments

Show HN: Blanked – Compare tech hiring processes by role and company

https://www.blanked.work/
2•mustafak99•31m ago•0 comments

Reaping Without Sowing

https://tjoresearchnotes.wordpress.com/2026/08/02/reaping-without-sowing/
2•mathgenius•31m ago•0 comments

Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours

https://github.com/pg83/shitty
10•pshirshov•33m ago•0 comments

Show HN: I'm 16 y/o and Built the only AI Agent for Hardware and Software Dev

https://github.com/spikonado/sprocket
3•amronos•34m ago•1 comments

Show HN: DRM-CLI – open-source release manager for MSSQL/PostgreSQL/Oracle

https://github.com/dband-drm/drm-cli
2•dband-drm•39m ago•0 comments

A causal history can exist locally everywhere and globally nowhere

https://zenodo.org/records/21606970
2•groverbennett•43m ago•0 comments

Wireless Transec Taxonomy

https://transec-taxonomy.pages.dev
2•belabartok39•44m ago•0 comments

Supply and Demand Is Not What Most People Think

https://shonczinner.substack.com/p/supply-and-demand-is-not-what-most
4•paulpauper•47m ago•0 comments

Bitcoin cold-wallet attack spreads to 4,500 addresses as losses near $89M

https://www.coindesk.com/tech/2026/08/02/bitcoin-cold-wallet-attack-spreads-to-4-500-addresses-as...
12•rbanffy•49m ago•2 comments

Wham! 10 Days in China [video]

https://www.youtube.com/watch?v=P7oAaJqqv8w
2•sxzygz•50m ago•0 comments

What Else Do We Lose When People Give Up Booze?

https://www.nytimes.com/2026/08/01/style/what-else-do-we-lose-when-people-give-up-booze.html
5•bookofjoe•54m ago•2 comments

AI poster wins Ohio State Fair contest

https://www.ohiostatefair.com/p/get-involved/arts/poster-contest
21•AlexAplin•55m ago•3 comments

Negative social ties as risks for faster aging, inflammation, and multimorbidity

https://pmc.ncbi.nlm.nih.gov/articles/PMC12933095/
6•davidbarker•55m ago•1 comments

Mention of Synon, the real inventors of Rapid Application Development, in 1986 [pdf]

http://archive.computerhistory.org/resources/access/text/2017/06/102726714-05-05-acc.pdf
2•jambalaya8•56m ago•0 comments

Abundant empirical evidence of multilevel selection

https://www.frontiersin.org/journals/ecology-and-evolution/articles/10.3389/fevo.2026.1752597/full
2•marojejian•57m ago•0 comments

Unexpected events and prosocial behavior: the Batman effect

https://www.nature.com/articles/s44184-025-00171-5
2•davidbarker•59m ago•0 comments

A Baby Bust Is Not yet a Growth Boom

https://www.labormarketmatters.com/p/a-baby-bust-is-not-yet-a-growth-boom
3•paulpauper•1h ago•0 comments

Teaching an AI to know itself: Building a local LLM agent in D

https://blog.dlang.org/2026/06/07/teaching-an-ai-to-know-itself-building-a-local-llm-agent-in-d/
2•teleforce•1h ago•0 comments

Show HN: STB-like zero-dependency O(N) FMM gravity solver

https://github.com/nihiL7331/polesitter
2•nihiL7331•1h ago•1 comments