frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Intrusive Linked Lists

https://www.data-structures-in-practice.com/intrusive-linked-lists/
18•tripdout•3d ago

Comments

el_pollo_diablo•32m ago
The go a bit further than the article on the advantages of intrusive data structures, taking linked lists as an example:

As the article mentions, intrusive data structures naturally lead to one fewer indirection. To do the same with a traditional list (where the list node owns the payload), a different node type is needed for each payload type. This is easy to do with the proper support for monomorphized generics, see C++'s std::list. It is awkward in C, where the implementation has to be macro-generated. C naturally pushes towards an indirection through void *, which makes intrusive lists more attractive.

One other advantage of intrusive data structures is the ability to link a payload into several parallel collections without indirections (where traditional collections would require e.g. one collection owning the payloads, and the other collections merely holding non-owning pointers to them).

Las but not least, the defining property of intrusive data structures is that they leave the responsibility of allocating the elements to the user. The elements can be allocated on the heap, on the stack, in a global array (like "initholes" in the article), in a special arena, etc. It is even reasonable to use non-uniform allocation strategies; for example, for a circular list, allocate an anchor node on the stack and the other nodes (those embedded in payloads) on the heap.

klps10•14m ago
I think this article rewrites history and it is unfortunately already cited by the clankers.

"Intrusive" is C++ speak. The regular linked lists always had embedded data or a mix of embedded data and pointers to outside data in a C struct.

Audacity 4.0

https://github.com/audacity/audacity/releases/tag/Audacity-4.0.0
366•ClydeN•2h ago•83 comments

Elevated Errors for Multiple Models

https://status.claude.com/incidents/461yvfrzpwtt
33•__vivek•18m ago•3 comments

Pre-Release of Polars 2.0

https://pola.rs/posts/announcing-polars-2/
267•komape•6h ago•78 comments

The Browser's Main Thread Is Expensive

https://kciter.so/posts/the-expensive-main-thread/en/
217•kciter•1d ago•68 comments

Invisible Companies

https://colossus.com/article/invisible-companies/
48•ltononro•2d ago•13 comments

What I Learned from My Mom (1941-2026)

https://experimentalliving.substack.com/p/what-i-learned-from-my-mom-1941-2026
103•NaOH•4d ago•6 comments

Intrusive Linked Lists

https://www.data-structures-in-practice.com/intrusive-linked-lists/
18•tripdout•3d ago•3 comments

Gemini 3.8 Flash and 3.8 Flash Cyber

https://blog.google/innovation-and-ai/models-and-research/gemini-models/3-8-flash-and-3-8-flash-c...
1086•bratao•22h ago•616 comments

Muse Spark 1.3

https://developer.meta.com/ai/models/muse-spark/
631•bvaldivielso•18h ago•414 comments

9 Mothers (YC P26) Is Hiring in Austin, TX

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

Nvidia to Acquire Hugging Face

https://blogs.nvidia.com/blog/nvidia-to-acquire-hugging-face/
66•tosh•1h ago•19 comments

Fish Bad, Sugar Good and Other Medieval Ideas About Food

https://lithub.com/fish-bad-sugar-good-and-other-medieval-ideas-about-food/
46•mooreds•2d ago•29 comments

Claude for Commerce Agents

https://claude.com/blog/claude-for-commerce-agents
28•ashazal•4h ago•25 comments

Amazon Stonehenge: Parque Arqueológico do Solstício

https://en.wikipedia.org/wiki/Parque_Arqueol%C3%B3gico_do_Solst%C3%ADcio
5•nycdatasci•3d ago•2 comments

Three sites made 215,128 “best software” pages for AI. Perplexity cites them

https://trellner.com/reports/manufactured-sources-behind-ai-recommendations/
470•jakobgreenfeld•23h ago•228 comments

Google avoids a breakup of its ad tech business

https://www.nytimes.com/2026/09/02/technology/google-ad-tech-remedies.html
427•donohoe•23h ago•301 comments

The Computer Museum of America reclamation project

https://computer-museum.org/wp/
70•rbanffy•2d ago•29 comments

Three schoolgirls in Kinsale pulled up a pea plant covered in warts (2016)

https://scienceblog.com/b-three-schoolgirls-in-kinsale-pulled-up-a-pea-plant-covered-in-warts-and...
109•DamonHD•6h ago•44 comments

Holden's Lightning Flight

https://en.wikipedia.org/wiki/Holden%27s_Lightning_flight
190•ColinWright•3d ago•40 comments

Can I opt out of my input or output data being used for training?

https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-fo...
470•teekert•1d ago•220 comments

Fable 5.1 World Modeling

https://github.com/PhiloLabs/fable51-worlds
295•surreal_•17h ago•84 comments

A dark horse enters China's AI race: StartLux

https://chinaonchina.com/article/chen-dawei-returns-enters-the-large-model-sector
32•try-working•2h ago•11 comments

Google Antigravity TOS: 3rd party usage can get Google account suspended

https://twitter.com/GergelyOrosz/status/2095453567955968398
57•tosh•2h ago•28 comments

Reverse Engineering Unknown File Formats with ImHex

https://werwolv.net/posts/file_format_reverse_engineering/
228•carlos-menezes•3d ago•43 comments

Launch HN: RonanRX (YC S26) – Personalized Peptides and GLP-1s

74•lloydarmbrust•15h ago•76 comments

Biggest dark matter detector spots a single weird particle

https://www.science.org/content/article/world-s-biggest-dark-matter-detector-spots-single-weird-p...
321•randycupertino•1d ago•116 comments

Aging brains blend memories together instead of just forgetting them

https://studyfinds.com/aging-brains-blend-memories-together-instead-of-forgetting-them-study-finds/
310•mdp2021•1d ago•126 comments

Wendell Berry has died

https://www.nytimes.com/2026/08/31/us/wendell-berry-dead.html
213•Curiositry•2d ago•110 comments

Qantas Airbus A380 engine failure in 2010 (2023)

https://admiralcloudberg.medium.com/a-matter-of-millimeters-the-story-of-qantas-flight-32-bdaa62d...
163•gumby•19h ago•95 comments

Engineering of the fastest WebAssembly interpreters

https://wasmi-labs.github.io/blog/posts/wasmi-v2.0/
122•herobird•2d ago•14 comments