frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Utl:parallel – Work-stealing concurrency library for C++17

https://github.com/DmitriBogdanov/UTL/blob/master/docs/module_parallel.md
2•GeorgeHaldane•2h ago
Hello HN.

Despite the seeming triviality of the problem, there seems to be no stand-alone threadpools that support nested tasks, so I decided to make one and pair it with a proper API for parallel loops and reductions.

Recursive tasks are frequently needed in scatter/gather algorithms, a "standard" C++ solution for such parallelism would be std::async, but as practice shows it is horribly slow for small tasks (below 1ms) due to the overhead of constantly spawning/joining new threads.

To deal with this I implemented a work-stealing threadpool with some additional features sprinkled on top for convenience.

The idea itself is nothing new, but its existing implementations are usually buried somewhere deep inside the larger frameworks and it feels like a waste to bring in a huge dependency just to use what should be at best a single ~400 line class.

All this resulted in a rather nice library that I'd like to showcase here and, perhaps, hear some opinions on its improvement.

In a nutshell: - Work-stealing thread pool with a fully thread-safe API - Tasks, parallel loops and reductions - Support for recursive parallelism - Operates on containers, iterators and index ranges - Single-include, small, easy to use

https://github.com/DmitriBogdanov/UTL/blob/master/docs/modul...

Vibe-coding your profession into irrelevance

https://www.osnews.com/story/142956/vibe-coding-yourself-into-irrelevance/
1•fragmede•54s ago•0 comments

Commissioner of the Bureau of Labor Statistics Fired, Weak Jobs Report Cited

https://www.nytimes.com/2025/08/01/business/economy/trump-bls-firing-jobs-report.html
1•miiiiiike•1m ago•0 comments

Arsenic life paper gets retracted after 15 years

https://arstechnica.com/science/2025/07/widely-panned-arsenic-life-paper-gets-retracted-15-years-after-brouhaha/
1•gmays•2m ago•0 comments

How Wiz Crushed Lacework: A Data Infrastructure Perspective

https://www.puppygraph.com/blog/how-wiz-crushed-lacework-a-data-infrastructure-perspective
1•zw17•2m ago•0 comments

Donor List Suggests Scale of Trump's Pay-for-Access Operation

https://www.nytimes.com/2025/08/02/us/politics/donor-list-suggests-scale-of-trumps-pay-for-access-operation.html
2•gok•5m ago•0 comments

Ask HN: What are your best practices for using Claude Code?

1•hubraumhugo•7m ago•0 comments

Where do we go from here? Some thoughts and speculation

https://blog.codesolvent.com/2025/08/where-do-we-go-from-here-some-thoughts.html
1•Edmond•8m ago•0 comments

Neutrino masses are not likely to originate from interactions with dark matter

https://phys.org/news/2025-07-neutrino-masses-interactions-dark.html
1•bikenaga•10m ago•0 comments

Whar are rare earths and why are they so important?

https://qz.com/rare-earth-minerals-what-are-they-guide
1•Bluestein•12m ago•0 comments

100-hour-long exposure: ESA releases the sharpest image of the Ultra Deep Field

https://www.notebookcheck.net/100-hour-long-exposure-ESA-releases-the-sharpest-image-of-the-Ultra-Deep-Field.1076317.0.html
1•Brajeshwar•13m ago•0 comments

Lightning "megaflash" stretching 515 miles long is new world record

https://www.cbsnews.com/news/lightning-flash-megaflash-new-world-record/
1•Brajeshwar•13m ago•0 comments

Silicon Valley's New Strategy: Move Slow and Build Things

https://www.wsj.com/tech/ai/silicon-valley-ai-infrastructure-capex-cffe0431
1•Brajeshwar•14m ago•0 comments

Use phone/tablets/other laptops as external monitor with your laptop

https://raju.dev/use-phone-tablets-other-laptops-as-external-monitor-with-your-laptop/
1•JNRowe•17m ago•0 comments

Show HN: Write lead sheets in a Markdown way and transpose in a second

https://cord.land/landing
1•ivanhsu•18m ago•0 comments

US Tariffs Are Making Money. That May Make Them Hard to Quit

https://www.nytimes.com/2025/08/03/business/trump-tariffs-how-much-money-debt.html
3•mykowebhn•18m ago•2 comments

Show HN: Structured Cooperation – A new way of building distributed apps & POC

https://github.com/gabrielshanahan/scoop
2•gabrielshanahan•20m ago•0 comments

Task-based returns to generative AI: Evidence from a central bank

https://cepr.org/voxeu/columns/task-based-returns-generative-ai-evidence-central-bank
1•hhs•20m ago•0 comments

Fatigue, anxiety, pain? They might be MS in disguise

https://www.sciencedaily.com/releases/2025/08/250802022920.htm
1•FollowingTheDao•23m ago•1 comments

Show HN: Scryptogram – Like Wordle, but for trivia lovers

https://www.scryptogram.com/
1•sea_improvement•23m ago•0 comments

Minimal Astro and TypeScript blog theme with MDX and SEO support

https://github.com/anliberant/jsdev-astro-theme
1•javatuts•25m ago•0 comments

What if Nuclear Science could save rhinos?

https://rhisotope.org/
1•danielschreber•26m ago•0 comments

Use local LLM to neutralise the headers on the web

https://github.com/av/unhype
1•everlier•29m ago•0 comments

Glossary of Studio Neologisms (2018)

https://www.miltonline.com/2018/05/25/studio-neologisms/
1•brudgers•34m ago•0 comments

The Prompt-Intent Gap: Why We're All Bad at Talking to AI

2•prompthance•36m ago•1 comments

Mouse study shows that watching others eat may influence overeating

https://medicalxpress.com/news/2025-07-mouse-overeating.html
1•PaulHoule•38m ago•0 comments

Roboracer AI

https://roboracer.ai/
1•wslh•38m ago•0 comments

Cryptocurrency Parallel Tree Optimization

https://github.com/Discovery099/Cryptocurrency-Parallel-Tree-Optimization
1•alexchen002•39m ago•0 comments

How Social Media Shortens Your Life and How to Expand It

https://www.gurwinder.blog/p/how-social-media-shortens-your-life
4•jger15•40m ago•0 comments

1-Based Indexing Is the Better Way to Access Arrays

https://new-af.github.io/blog/1-based-array-indexing
3•_adev•46m ago•0 comments

The rise of AI tools that write about you when you die

https://www.washingtonpost.com/technology/2025/08/03/ai-obituaries-funeral-homes/
2•awnird•48m ago•0 comments