AI 资讯
AIchain Pool: Parallel Calls Instead of Sequential
You have 50 documents and you're running them through an LLM in a loop. The first one finishes at the 2-second mark. The fiftieth finishes at the 100-second mark — not because it's harder, but because it waited in line behind the other 49. Pool runs all 50 at the same time. The Problem With Loops Every developer who works with LLMs writes this code eventually: import os from yait_aichain.models import Model from yait_aichain.skills import Skill skill = Skill ( model = Model ( " claude-sonnet-4-6 " , api_key = os . getenv ( " ANTHROPIC_API_KEY " )), input = { " messages " : [{ " role " : " user " , " parts " : [ " Summarise in two sentences: \n\n {text} " ]}]}, ) documents = [{ " text " : f " Document { i } content... " } for i in range ( 50 )] results = [] for doc in documents : result = skill . run ( doc ) results . append ( result ) It works. It's readable. And it's painfully slow. Each LLM call takes roughly 2 seconds. Multiply that by 50 documents and you're staring at your terminal for almost two minutes. The calls are completely independent — document 37 doesn't need the result of document 12. Yet document 37 sits idle, waiting its turn. That's a scheduling problem, not a computation problem. I ran into this directly while building a task that pulled N files or links and produced a consolidated report. The sequential version was logically fine but just hemorrhaged time. I needed to fire everything at once without rewriting the Skill logic — no new prompt templates, no restructured code, just a different execution model. That's what Pool is. Pool: Parallel Map for LLM Calls Pool takes one Skill (or Chain) and a list of inputs , then launches all of them concurrently. Think of it as Array.map() where every element runs in parallel against an LLM. import os from yait_aichain.models import Model from yait_aichain.skills import Skill from yait_aichain.pool import Pool , DONE , FAILED skill = Skill ( model = Model ( " claude-sonnet-4-6 " , api_key = os . getenv ( "
AI 资讯
Your Kindle could unlock thousands of free books: These are the best places to find them
Our self-proclaimed Scroogian (cheapskate) book-loving writer has put together a guide on finding free books for your Kindle.
开发者
The new Sonos Play has become my go-to desk and kitchen speaker
The new Sonos Play can act as a portable speaker inside and outside your home.
AI 资讯
The impossible dream of the universal remote
You don't really ever have to explain why a universal remote is a good idea. You have a bunch of stuff that needs controlling; this thing controls them all. Many companies have set out to build a product worthy of this idea, and one product came much closer than most. It was called the Harmony, […]
AI 资讯
Apple TV 4K multiview: How to watch four live sports feeds at once
Our expert sports fan made a detailed guide on what sports you can watch on Apple TV in multiview and how to do so. Plus, some tips for non-Apple TV users too.
开源项目
🔥 leptos-rs / leptos - Build fast web applications with Rust.
GitHub热门项目 | Build fast web applications with Rust. | Stars: 20,899 | 6 stars today | 语言: Rust
开源项目
🔥 fabro-sh / fabro - ⚒️ The open source dark software factory for expert engineer
GitHub热门项目 | ⚒️ The open source dark software factory for expert engineers. | Stars: 1,189 | 54 stars today | 语言: Rust
开源项目
🔥 puppeteer / puppeteer - JavaScript API for Chrome and Firefox
GitHub热门项目 | JavaScript API for Chrome and Firefox | Stars: 94,572 | 13 stars today | 语言: TypeScript
开源项目
🔥 ghostfolio / ghostfolio - Open Source Wealth Management Software. Angular + NestJS + P
GitHub热门项目 | Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍 | Stars: 8,698 | 21 stars today | 语言: TypeScript
开源项目
🔥 hydralauncher / hydra - Hydra Launcher is an open-source gaming platform created to
GitHub热门项目 | Hydra Launcher is an open-source gaming platform created to be the single tool that you need | Stars: 15,930 | 32 stars today | 语言: TypeScript
开源项目
🔥 sindresorhus / type-fest - A collection of essential TypeScript types
GitHub热门项目 | A collection of essential TypeScript types | Stars: 17,197 | 4 stars today | 语言: TypeScript
开源项目
🔥 sigalor / whatsapp-web-reveng - Reverse engineering WhatsApp Web.
GitHub热门项目 | Reverse engineering WhatsApp Web. | Stars: 6,475 | 22 stars today | 语言: JavaScript
开源项目
🔥 technomancer702 / nodecast-tv - A self-hosted web application that lets you stream Live TV,
GitHub热门项目 | A self-hosted web application that lets you stream Live TV, Movies, and Series from your Xtream Codes or M3U provider directly in your browser. It's built with performance in mind and handles large libraries smoothly. | Stars: 1,333 | 49 stars today | 语言: JavaScript
开源项目
🔥 gorhill / uBlock - uBlock Origin - An efficient blocker for Chromium and Firefo
GitHub热门项目 | uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean. | Stars: 65,471 | 32 stars today | 语言: JavaScript
开源项目
🔥 openinterpreter / openinterpreter - A lightweight coding agent for open models like Deepseek, Ki
GitHub热门项目 | A lightweight coding agent for open models like Deepseek, Kimi, and Qwen | Stars: 63,947 | 45 stars today | 语言: Python
开源项目
🔥 skypilot-org / skypilot - Run, manage, and scale AI workloads on any AI infrastructure
GitHub热门项目 | Run, manage, and scale AI workloads on any AI infrastructure. Use one system to access & manage all AI compute (Kubernetes, Slurm, 20+ clouds, on-prem). | Stars: 10,141 | 46 stars today | 语言: Python
开源项目
🔥 home-assistant / core - 🏡 Open source home automation that puts local control and pr
GitHub热门项目 | 🏡 Open source home automation that puts local control and privacy first. | Stars: 87,712 | 32 stars today | 语言: Python
开源项目
🔥 meshery / meshery - Meshery, the cloud native manager
GitHub热门项目 | Meshery, the cloud native manager | Stars: 10,299 | 3 stars today | 语言: TypeScript
开源项目
🔥 GorvGoyl / Clone-Wars - 100+ open-source clones of popular sites like Airbnb, Amazon
GitHub热门项目 | 100+ open-source clones of popular sites like Airbnb, Amazon, Instagram, Netflix, Tiktok, Spotify, Whatsapp, Youtube etc. See source code, demo links, tech stack, github stars. | Stars: 35,103 | 337 stars today | 语言:
开源项目
🔥 Introduction-to-Autonomous-Robots / Introduction-to-Autonomous-Robots - Introduction to Autonomous Robots
GitHub热门项目 | Introduction to Autonomous Robots | Stars: 2,478 | 276 stars today | 语言: TeX