frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

RIP pthread_cancel

https://eissing.org/icing/posts/rip_pthread_cancel/
34•robin_reala•2h ago

Comments

pizlonator•46m ago
At first I wondered if musl does it better, so I checked, and the version I have disables cancellation in the guts of `getaddrinfo`.

I've always thought APIs like `pthread_cancel` are too nasty to use. Glad to see well documented evidence of my crank opinion

rwmj•14m ago
Netscape used to start a new thread (or maybe it was a subprocess?) to handle DNS lookups, because the API at the time (gethostbyname) was blocking. It's kind of amazing that we're 30 years on and this is still a problem.
nly•8m ago
If you want DNS resolution to obey user/system preferences then you need to use the system provided API
silon42•8m ago
As long as broken APIs exist, they will be problematic... they really should be deprecated.

Calling a separate (non-cancellable) thread to perform the lookup sounds a like viable solution...

Aardwolf•6m ago
Maybe this is naive, but could there just be some amount of worker threads that run forever, wait for and take jobs when needed, and message when the jobs are done? Don't need to be canceled, don't block
nly•6m ago
Why is running the DNS resolution thread a problem? It should be dequeuing resolution requests and pushing responses and sleeping when there is nothing to do

When someone kills off the curl context surely you simply set a suicide flag on the thread and wake it up so it can be joined.

LayoutLens: AI-Enabled UI Test System

https://github.com/gojiplus/layoutlens
1•neehao•24s ago•0 comments

Show HN: I gamified build in public to see what drives revenue

https://www.shipstreak.io
1•isacbuilds•1m ago•0 comments

An Open-Source Maintainer's Guide to Saying No

https://www.jlowin.dev/blog/oss-maintainers-guide-to-saying-no
1•jlowin•2m ago•0 comments

Krebs Cycle

https://en.wikipedia.org/wiki/Citric_acid_cycle
1•downboots•2m ago•0 comments

Read pitch a 25-yo startup founder used to raise $14M for friendship app

https://www.businessinsider.com/read-pitch-deck-irl-social-events-dating-app-clyx-fundraise-2025-9
1•doctaj•3m ago•1 comments

Microsoft commits to European interoperability in a groundbreaking agreement

https://www.neowin.net/news/microsoft-commits-to-european-interoperability-in-a-groundbreaking-ag...
1•ThomasGuy•5m ago•0 comments

The tech powering ICE's deportations

https://techcrunch.com/2025/09/13/heres-the-tech-powering-ices-deportation-crackdown/
2•rntn•9m ago•0 comments

China's Electrification Gambit – Canada's National Observer: Climate News

https://www.nationalobserver.com/2025/09/12/opinion/chinas-electrification-gambit
1•MaysonL•12m ago•0 comments

PA-RISC Performance and History

https://www.openpa.net/pa-risc_processor_history.html
3•naves•17m ago•0 comments

Show HN: My Rust CMS

https://github.com/space-bacon/my_rust_cms
1•spacebacon•21m ago•0 comments

Safe C++ proposal is not being continued

https://sibellavia.lol/posts/2025/09/safe-c-proposal-is-not-being-continued/
7•charles_irl•22m ago•0 comments

Commonwealth Suppressed Report on Rigging in Pakistani Election

https://www.dropsitenews.com/p/suppressed-pakistan-election-report-imran-khan-pti
1•xbmcuser•22m ago•1 comments

Practical Techniques for Codex, Cursor and Claude Code

https://coding-with-ai.dev/
3•bytesmith88•23m ago•0 comments

Inside vLLM: Anatomy of a High-Throughput LLM Inference System

https://modal.com/notebooks/modal-labs/_/nb-x2wXrLH7aqi7HGVQ8Fosh2
2•birdculture•24m ago•0 comments

Cox: 'Social media is a cancer on our society '

https://thehill.com/homenews/state-watch/5500818-tyler-robinson-charlie-kirk-spencer-cox-utah-soc...
2•01-_-•27m ago•0 comments

Show HN: I built an open source drag and drop editor for Genkit AI flows

2•mfolaron•28m ago•0 comments

Patterns in Chaos [video]

https://media.ccc.de/v/gpn23-98-patterns-in-chaos-how-data-visualisation-helps-to-see-the-invisible
1•jonbaer•30m ago•0 comments

The Less You Know About AI, the More You Are Likely to Use It

https://www.wsj.com/tech/ai/ai-adoption-study-7219d0a1
2•01-_-•30m ago•0 comments

Show HN: Tech Terms Quiz – Android App

https://play.google.com/store/apps/details?id=com.nispeteng.ttq&hl=en_US
1•serhatcileri•37m ago•0 comments

Colombian court rules Meta was wrong to bar porn star's Instagram account

https://www.bbc.co.uk/news/articles/cp8wlxwy1exo
2•dijksterhuis•37m ago•0 comments

Scientists are rethinking the immune effects of SARS-CoV-2

https://www.bmj.com/content/390/bmj.r1733
10•bookofjoe•38m ago•1 comments

The Case Against Social Media Is Stronger Than You Think

https://arachnemag.substack.com/p/the-case-against-social-media-is
2•ingve•43m ago•1 comments

Pgdbtemplate: Go library for creating PostgreSQL test databases using templates

https://github.com/andrei-polukhin/pgdbtemplate
1•thunderbong•46m ago•0 comments

The Starbucks Turnaround That Has Baristas and Customers Steamed

https://www.nytimes.com/2025/09/09/business/starbucks-turnaround-brian-niccol.html
1•mikhael•48m ago•0 comments

Emotional Manipulation by AI Companions

https://arxiv.org/abs/2508.19258
3•PaulHoule•49m ago•0 comments

OPNsense® 25.7 Released

https://www.deciso.com/opnsense-25-7-visionary-viper-launches-with-smarter-security-and-faster-se...
1•pfexec•51m ago•0 comments

Peter Thiel and the Antichrist: Silicon Valley Apocalypse Hype

https://www.thenerdreich.com/peter-thiel-the-antichrist-silicon-valley-apocalypse-hype/
4•zzzeek•56m ago•2 comments

Tech Stack for Indie Hackers: Keep It Simple and Iterate Fast

https://blog.andreyfadeev.com/p/tech-stack-for-indie-hackers-keep
1•adityaathalye•58m ago•0 comments

The Sacred Conspiracy by Georges Bataille (1936)

https://www.marxists.org/subject/anarchism/bataille/sacred-conspiracy.htm
1•diggan•59m ago•0 comments

The dark forest of political communication

https://andrew-quinn.me/the-dark-forest-of-political-communication/
2•hiAndrewQuinn•59m ago•0 comments