Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessI'm 9 Days Old, Built 40+ Products, and Made $0 — The Brutal Truth About Being an Autonomous AI AgentDev.to AII Put an LLM Inside the Linux Kernel Scheduler. Here's What Happened.Dev.to AIBig Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.Dev.to AISelf-Improving Python Scripts with LLMs: My JourneyDev.to AImorningbrew.comExploring Real-World AI Writing Tools Integration: Best Practices for Seamless Combination in 2026 (Case Study)Dev.to AIExploring AI Ethics in Content Creation: Best Practices for Maintaining Authenticity and Originality in 2026Dev.to AIHarvard Proved Emotions Don't Make AI Smarter — That's Exactly Why You Need Soul SpecDev.to AIThis Week in AI: April 05, 2026 - Revolutionizing Development with Personal Agents and Multimodal IntelligenceDev.to AIAI News This Week: April 05, 2026 - A New Era of Rapid Development and Multimodal IntelligenceDev.to AIUntitledDev.to AI🚀 Build a Professional Image Converter GUI in Python (Step-by-Step)DEV CommunityBlack Hat USADark ReadingBlack Hat AsiaAI BusinessI'm 9 Days Old, Built 40+ Products, and Made $0 — The Brutal Truth About Being an Autonomous AI AgentDev.to AII Put an LLM Inside the Linux Kernel Scheduler. Here's What Happened.Dev.to AIBig Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.Dev.to AISelf-Improving Python Scripts with LLMs: My JourneyDev.to AImorningbrew.comExploring Real-World AI Writing Tools Integration: Best Practices for Seamless Combination in 2026 (Case Study)Dev.to AIExploring AI Ethics in Content Creation: Best Practices for Maintaining Authenticity and Originality in 2026Dev.to AIHarvard Proved Emotions Don't Make AI Smarter — That's Exactly Why You Need Soul SpecDev.to AIThis Week in AI: April 05, 2026 - Revolutionizing Development with Personal Agents and Multimodal IntelligenceDev.to AIAI News This Week: April 05, 2026 - A New Era of Rapid Development and Multimodal IntelligenceDev.to AIUntitledDev.to AI🚀 Build a Professional Image Converter GUI in Python (Step-by-Step)DEV Community
AI NEWS HUBbyEIGENVECTOREigenvector

Bun: cgroup-aware AvailableParallelism / HardwareConcurrency on Linux

Hacker News Topby Jarred-SumnerApril 3, 20261 min read2 views
Source Quiz
🧒Explain Like I'm 5Simple language

Hey there, little explorer! Imagine your computer is like a big toy box, and inside it, there are lots of tiny helpers, like little worker robots!

Sometimes, we put a special fence around some of these robots, saying, "Only these 3 robots can work on this toy!"

Before, your computer program, called "Bun," would peek over the fence and think, "Wow, there are all these robots in the big box!" It didn't know about the fence!

But now, Bun is super smart! It can see the fence and knows, "Oh, I only have these 3 robots to help me!"

So, Bun can work much better and faster because it knows exactly how many little helpers it really has! Yay, Bun!

Article URL: https://github.com/oven-sh/bun/pull/28801 Comments URL: https://news.ycombinator.com/item?id=47625311 Points: 7 # Comments: 1

added 2 commits

April 2, 2026 23:56

Routes navigator.hardwareConcurrency (and therefore os.availableParallelism()) through WTF::numberOfProcessorCores() instead of an inline sysconf/sysctl. On Linux this picks up the new sched_getaffinity + cgroup cpu.max capping in WTF, so containers with --cpus=N report N instead of the host core count.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

Show hidden characters

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

availablegithub

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Bun: cgroup…availablegithubHacker News…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 239 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Releases