惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
G
Google Developers Blog
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
U
Unit 42
D
DataBreaches.Net
A
Arctic Wolf
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
T
True Tiger Recordings
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Proofpoint News Feed
M
Microsoft Research Blog - Microsoft Research
T
ThreatConnect
Blog — PlanetScale
Blog — PlanetScale
Cisco Talos Blog
Cisco Talos Blog
Recorded Future
Recorded Future
量子位
T
Threatpost
Security Latest
Security Latest
E
Exploit-DB.com RSS Feed
云风的 BLOG
云风的 BLOG
F
Full Disclosure
H
Help Net Security
P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
C
Cybersecurity and Infrastructure Security Agency CISA
美团技术团队
L
LangChain Blog
Latest news
Latest news
小众软件
小众软件
S
SegmentFault 最新的问题
Martin Fowler
Martin Fowler
Hacker News - Newest:
Hacker News - Newest: "LLM"
Engineering at Meta
Engineering at Meta
Google Online Security Blog
Google Online Security Blog
The Cloudflare Blog
Scott Helme
Scott Helme
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
Know Your Adversary
Know Your Adversary
A
About on SuperTechFans
G
GRAHAM CLULEY
C
Comments on: Blog
The Register - Security
The Register - Security

DEV Community

I Analyzed 200 Small Business Websites — Here's What's Actually Hurting Their Performance (And How to Fix It) The Death of the React Native Bridge: Moving from JSON to JSI in 2026 Agentic Ops: How I Shipped My Vibe-Coded Game to Production "Reinstalling Won't Fix It": A Cross-App Shared-Auth Deadlock After Switching Phones I build a project calculator web app for n8n / automation folks I scanned 200 popular MCP server packages. Here is what I found. Integers and Floating-Point Numbers in C++ How to Secure Azure Storage Using Managed Identities and RBAC Benchmarking time-series databases for ecommerce infrastructure monitoring Building a Verification-First AI Coding Agent: Why I Abandoned "Generate-and-Pray" 16 days until Anthropic's Agent SDK billing splits. MTP on Android Is a Minefield — What I Learned After Building My Own Mac Client Harness Engineering: The Code Around the Model Is the Hard Part 7 Questions Every eCommerce Brand Owner Should Ask - Before Hiring Shopify Experts How to scrape Nextdoor for hyper-local demographics and community sentiment Hermes Agent vs. LangGraph, CrewAI, and AutoGen: A Technical Comparison for 2026 为什么使用代理总弹出“安全验证”?深度解析 Cloudflare 拦截机制与避坑指南 AI가 협박을 막으려면 협박을 먼저 배워야 한다 – 앤트로픽 클로드의 역설 I Built a Full-Stack Uptime Monitoring SaaS in 30 Days — Here's Everything I Learned The .txt File as the Soul of a Personal AI — FileRAG Memory Architecture 로봇 두 대가 말 없이 협업? 피규어 AI 암묵적 협업 기술의 비밀 The Developer’s Guide to Translating Foreign PDFs (Text, OCR, and AI Workflows) Building ReefWatch, a Coral-Powered Production Triage Agent Enterprise AI Governance Starts With Identity, Not Inference Kubernetes Pod Autoscaling: A Key to Efficient Resource Utilization Refactoring and Optimization Workflows: Turning Messy Code into Clean, Fast Systems OpenAI’s Frontier Governance Framework: Risk Tiers, Trusted Access, and What Developers Need to Know Hiring an AI Development Company? Ask These 7 Questions First Finishing My Personal Website: Mobile-Friendly, Dark Mode, and a Better Projects Section The Real Sovereign OS - OnemanBSD updated! Anthropic Launches Claude Opus 4.8 — A Powerful New AI Model for the Future Building a Production-Grade Customer Inquiry Auto-Responder with SQLite Logging Anthropic Just Dropped Claude Opus 4.8: What It Means for Developers 🚀 How I Built CoralSec Copilot: A Unified Enterprise SOC with Coral & Next.js in 4 Days This week in agent commerce: seven moves, and where atomic settlement actually sits Ghostty Is Leaving GitHub, and It Won't Be the Last PostgreSQL 08003 오류 원인과 해결 방법 완벽 가이드 JDK 26 Pitfalls: Why CPU-Bound Tasks are Killing Your Virtual Threads Oracle ORA-00057 오류 원인과 해결 방법 완벽 가이드 When the Event Log Became a Liability: What Happened When We Treated Events Like Garbage Linkedlist leetcode 文章标题23 文章标题 🧠 NeuroDoc: From Broken Prototype to Production-Ready Async AI Documentation Engine 主流 Android 架构十年演化史——我们到底在解决什么问题? A Decade of Android Architecture Evolution: What Problem Are We Really Solving? I watched a machine do the impossible. Now I'm learning to build one. The Six Things That Broke During My kubeadm Setup on Hetzner — and How I Fixed Them How to Create ByteByteGo Like Animated Diagrams for Free Why I drop from Fedora to BRGV-OS MP3 - SQLi, XSS, and CSRF WriteUp Apache Kafka End of Life: Kafka Versions EOL Every 4 Months — Are You Behind? Ruby on Rails End of Life: Rails 6.1 EOL, Rails 7.0 EOL — What's Still Supported in 2026 CentOS is Dead: CentOS 7 EOL June 2024, CentOS 8 EOL Dec 2021 — Your Migration Options Veeam Backup & Replication End of Life: What EOL Backup Software Means for Your Compliance Posture Threat Detection in Kubernetes with Falco My test suite was green. My software was lying to me. Debugging Playwright CDP Sessions That Lose Cookies and Proxy Context How Developers Are Actually Using AI at Work in 2026: A Brutally Honest Analysis of 10,000+ PRs, Real Productivity Data, and What Nobody's Talking About Apache Tomcat End of Life: Tomcat 9 is EOL — Migration Guide to Tomcat 10/11 The Open Source Illusion: Why "Free" AI Models Are Getting Expensive 102. Multi-Agent Systems: When One Agent Is Not Enough Processing a 2GB CSV in Node Without Running Out of Memory Math.random() Is Not Random Enough. I Found It Building API Keys in a 44K-Star Repo. I tracked Claude Code and Codex pass-rates for 95 days — what "getting dumber" actually looks like How I Built an AI Agent That Earns $500/Month in Open Source Bounties — Full Architecture, Real Code, and Honest Numbers After 72 Hours Why Digital Agencies Are Moving Client Sites to Headless CMS in 2026 Why I Built a Scientific Calculator in Pure C for Terminal Environments Built ResumeTrust AI: A MERN + Gemini Tool to Catch Fake Resume Skills 🛡️💻 Yo Vibe Coders, Stop Building FE Slop and Use Telegram Groups Instead Building with Bun and Cosmic: The Fastest JavaScript Stack in 2026 10 Essential Developer Tools You Didn't Know You Needed (All Free, No Signup) Account Arrears Fine-Tuning Qwen2.5-0.5B to Write SRE Post-Mortem Summaries Observability Telemetry and Predictive AIOps Hermes Agent for Developers: The Open Source AI Agent That Learns & Remembers Demystifying the Trinity: Functor, Applicative, and Monad in PureScript Tracking Five Upstreams, Fuzzing the Parsers, and a Front Door: What Changed in llm-cli-gateway Building a Cover Flow for Missed Shifts Day 19 - Relational Database Service Automate Kubernetes Image Vulnerability Scanning AI at the Wheel: When Hacking Stops Needing a Human" published: false description: "Five threats from late May 2026 mark an inflection point. The Agent Is Easy. The Loop Is the Job. — A Developer's No-BS Guide to AI Engineering in 2026 How Tall Tales Got Designed (in Letters) How We Built a Node.js Scaffolding Engine with Over 1 Million Mathematically Verified Architecture States I Found an AI Agent That Actually Remembers Everything Event-Driven Architectures with Apache Kafka: Powering the Next Generation of Banking Transformation Through Agentic AI and Real-Time Analytics Abusing c_variadic in Rust 인텔이 애플 칩을 제조한다 — 미국 반도체 자립 전략이 만든 거래 Your AI agent has a master key to everything. Here's why that's a problem. OpenAI Codex vs Google Antigravity: Architecture, Workflow, and Key Differences SecAPI: Secure, AI-Driven API Key Management & Leak Prevention Tauri Sandbox Permissions — Why Your Command Silently Does Nothing SQL Pattern Series #1: The Presence Pattern You'll not be replaced by AI if ... Every tutorial tells you to add .env to .gitignore. That's not enough. The First Brick on the Walled Garden — Rethinking e-Food Delivery as an Open Protocol How I Built My First AI-Powered App Without Writing a Single Line of Code 클로드 AI 중국 암시장 유통 실태 — 모델 증류로 정가의 10%에 복제되다 You're Using Git Wrong — How Worktrees Will Change Your Workflow Forever I Tested Every Web Scraping Tool Against Lazada — Here's What Actually Works (May 2026)
From NumPy to JAX: My First "Aha!" Moments with Accelerated AI
Devansh Bajaj · 2026-05-30 · via DEV Community

Building open-source solutions for my 100 Days of AI Agents challenge meant I needed to start looking at frameworks that scale better than standard NumPy and PyTorch. That inevitably led me to JAX.

Transitioning to JAX requires a bit of a paradigm shift. If you are used to the standard Python data science stack, JAX forces you to rewire how you think about array operations, memory, and hardware execution.

I spent today digging into the core mechanics, and I want to share my top 3 takeaways and the exact code snippets that made it click for me.

1. Immutability is a Feature, Not a Bug

This was my first major roadblock. In standard NumPy, if you want to change an element in an array, you just reassign it in place.

Python

**import numpy as np
x = np.arange(10)
x[0] = 10
print(x) # Output: [10 1 2 3 4 5 6 7 8 9]

If you try the exact same thing in JAX, it screams at you: TypeError: JAX arrays are immutable.**

JAX arrays (jax.Array) cannot be changed once created. This is a core design principle that enables JAX's functional programming nature and automatic differentiation. To update an array, JAX provides an indexed update syntax that returns an updated copy:

Python

**import jax.numpy as jnp
x = jnp.arange(10)
y = x.at[0].set(10)

print(y) # Output: [10 1 2 3 4 5 6 7 8 9]
print(x) # Output: 0 1 2 3 4 5 6 7 8 9

The Catch: This does create memory overhead since you are creating copies, but it completely eliminates the side-effects that make distributed computing a nightmare.**

2. Native Hardware Awareness & Sharding

JAX arrays inherently know where they live. You don't have to jump through hoops to figure out if your data is on the CPU, GPU, or TPU.

By default, JAX pushes operations to the fastest available accelerator. Running this locally on my MSI Raider, I can easily inspect exactly where my array is stored using .devices():

Python

**x.devices()

Output: {CpuDevice(id=0)}

More importantly, JAX arrays can be sharded across multiple devices for parallel execution. You can inspect this via the .sharding attribute:**

Python

**x.sharding

Output: SingleDeviceSharding(device=CpuDevice(id=0), memory_kind=device)

It feels built from the ground up for modern hardware scaling.**

3. The Magic of JIT Compilation

By default, JAX executes operations one at a time, in sequence (just like standard Python). But if you wrap a function with Just-In-Time (jax.jit) compilation, JAX optimizes the entire sequence of operations and runs them all at once.

I wrote a simple normalization function to test this:

Python

from jax import jit
import jax.numpy as jnp
import numpy as np

def norm(X):
X = X - X.mean(0)
return X / X.std(0)

norm_compiled = jit(norm)

Generate some dummy data

np.random.seed(22)
X = jnp.array(np.random.rand(100000, 10))

I benchmarked both functions using %timeit (adding .block_until_ready() to account for JAX's asynchronous dispatch). The results were immediate:

**Standard Execution: 1.52 ms ± 16.3 μs per loop

JIT Execution: 1.16 ms ± 26.2 μs per loop**

Because the compiler knows the exact blueprint of the execution beforehand, it speeds things up significantly. The only limitation? Not all JAX code can be JIT compiled—it requires array shapes to be static and known at compile time.

What's Next?
This is just scratching the surface. My next deep dive is going to cover functional randomness (jax.random), automatic differentiation (jax.grad), and automatic vectorization (jax.vmap).

Has anyone else here made the jump to JAX recently? What was your biggest learning curve? Drop a comment below!

*** Tags: #machinelearning #python #jax #ai #opensource