Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

Programming Languages
Inside the Zig Compiler: How the Self-Hosted Toolchain Turns Source Into Machine Code

Inside the Zig Compiler: How the Self-Hosted Toolchain Turns Source Into Mach...

You type zig build-exe hello.zig, and in well under a second you have a native binary — with cross-compilation, libc detection, and output caching included in that second. If you come from Python, where CPython spends its time interpreting bytecode...

AI Inference
Inside the TypeScript Compiler: How tsc Really Works, From Scanner to Emit

Inside the TypeScript Compiler: How tsc Really Works, From Scanner to Emit

Every TypeScript developer has hit the narrowing puzzle: if (typeof x === "string") happily refines a union type, but move that same check into a helper function and the refinement evaporates. The explanation is not in the docs; it is...

AI Inference
Inside rustc: How the Borrow Checker Actually Sees Your Code

Inside rustc: How the Borrow Checker Actually Sees Your Code

Every Rust developer eventually hits the same wall. You write a function that returns a reference to something computed inside it, the pattern works fine in C, and rustc refuses to compile it with an error about a value not...

AI Inference
Inside ruby/ruby: How YARV Actually Runs Your Code

Inside ruby/ruby: How YARV Actually Runs Your Code

Every Rails developer eventually meets the same mystery: the first request after boot is slow, and every request after that is fine. Part of that warm-up is Ruby quietly filling method call caches. When foo.bar executes, the interpreter records which...

AI Inference
Inside php-src: How PHP Actually Runs Your Code, from SAPI to the Zend VM

Inside php-src: How PHP Actually Runs Your Code, from SAPI to the Zend VM

Every PHP developer eventually meets the same mystery: you edit a file, refresh, and the change is live — yet the code runs fast enough to serve thousands of requests per second. That only makes sense once you realize PHP...

AI Inference
How Node.js Actually Runs Your Code: Bootstrap, the Event Loop, and the Thread Pool in the Source

How Node.js Actually Runs Your Code: Bootstrap, the Event Loop, and the Threa...

Every Node.js developer eventually meets the same wall: one synchronous call — a tight JSON parse, a CPU-bound transform, a blocking hash — and the whole server freezes. Requests queue, timers slip, health checks fail. The usual explanation, “JavaScript is...

AI Inference
Inside the Go Runtime: How G/M/P, Channels, and the Tricolor GC Actually Run Your Code

Inside the Go Runtime: How G/M/P, Channels, and the Tricolor GC Actually Run ...

Every Go developer has felt the gap. You write go handler(conn) and the function starts running on a stack measured in kilobytes — tens of thousands of them per process, on the same machine where a Python program threads awkwardly...

AI Inference
Inside Deno: How a Rust Core Hosts V8 and Guards Every Op

Inside Deno: How a Rust Core Hosts V8 and Guards Every Op

You write await fetch("https://api.openai.com/v1/models") in TypeScript and a response comes back. But between that one line and the network card there is a boundary most JavaScript developers never see: the call leaves V8’s world of heap objects and hidden classes...

AI Inference
What Actually Happens When You Run python script.py: A CPython Source Tour

What Actually Happens When You Run python script.py: A CPython Source Tour

Your data-processing loop takes forty seconds while a NumPy rewrite of the same math takes four hundred milliseconds. You profile it, and the answer is not a missing library — it is the interpreter itself. Every attribute lookup, every integer...

AI Inference
Inside Bun's Runtime: How One Binary Turns Your TypeScript into Running Code

Inside Bun's Runtime: How One Binary Turns Your TypeScript into Running Code

You run bun run index.tsx and a file full of TypeScript annotations just executes — no tsconfig.json, no watcher, no compile step you ever invoked. That convenience hides an interesting relay: the type stripping happens inside the import path itself,...

AI Inference
Inside the Rails Request: From a Rack env Hash to Your Controller Action

Inside the Rails Request: From a Rack env Hash to Your Controller Action

You know the story starts in config.ru: it calls run Rails.application, and a moment later your PostsController#show runs. But between those two lines sits everything you never had to think about — roughly twenty middlewares, a router that compiles your...

AI Inference
Phoenix From the Inside: How One Request Becomes Compiled Code

Phoenix From the Inside: How One Request Becomes Compiled Code

Every few months a benchmark resurfaces where Elixir’s Phoenix holds millions of concurrent WebSocket connections on a single box while ordinary HTTP responses still return in microseconds, and every time the same skepticism follows: developers raised on thread-per-request cannot see...

AI Inference
What Really Happens Between index.php and Your Controller: Laravel's Request Path From the Source

What Really Happens Between index.php and Your Controller: Laravel's Request ...

You push a route that looks perfect, and production answers with a TokenMismatchException you cannot reproduce locally. Or you reorder two middleware classes to “clean up” the array, and suddenly sessions stop working for half your users. The stack trace...

AI Inference
Hono From the Inside: One fetch(), Three Routers, and the Onion That Runs on Every Runtime

Hono From the Inside: One fetch(), Three Routers, and the Onion That Runs on ...

You ship an API to Cloudflare Workers on Friday. Monday, a teammate wants the same service on a company VM running Node, and another team deploys it to Deno Deploy before lunch. On most stacks that means three bootstrap codebases,...

AI Inference
Inside Gin's Request Path: Context Pooling, the Radix Tree, and the abortIndex Trick

Inside Gin's Request Path: Context Pooling, the Radix Tree, and the abortInde...

Every Go developer has recited the claim: Gin is fast, up to forty times faster than the frameworks it replaced, with a “zero allocation router” — that is literally how the README advertises it. But when your p99 spikes or...

AI Inference
Inside Flask's Request Machine: wsgi_app, the Merged Context, and Blueprint Dispatch

Inside Flask's Request Machine: wsgi_app, the Merged Context, and Blueprint D...

Every Flask developer eventually meets the same wall: a function that works perfectly inside a view blows up with RuntimeError: Working outside of application context the moment you call it from a background thread, a Celery task, or a plain...

AI Inference
Inside FastAPI's Request Machine: ASGI Handoff, the Dependency Solver, and Pydantic's Fast Path

Inside FastAPI's Request Machine: ASGI Handoff, the Dependency Solver, and Py...

Every FastAPI developer eventually hits the same two moments of confusion. The first: a dependency with a database session seems to run twice for a single request, or not at all when a validation error fires. The second: the endpoint...

AI Inference
Express From the Inside: What Actually Happens Between http.createServer and Your Handler

Express From the Inside: What Actually Happens Between http.createServer and ...

Every Express developer eventually collides with the same three mysteries. A middleware that never runs. A 404 that arrives despite a route that looks obviously correct. An error handler that fires from somewhere you cannot trace. All three are one...

AI Inference
Inside Django's Request Path: From WSGI Environ to SQL Cursor

Inside Django's Request Path: From WSGI Environ to SQL Cursor

Every Django developer has met the same mystery at 2 a.m.: a view that works locally hangs in production, or runserver logs two quiet lines while an endpoint burns 300 milliseconds, and you have no idea which layer is responsible....

AI Inference
Inside actix-web: How a Request Really Travels Through Rust's Fastest Web Framework

Inside actix-web: How a Request Really Travels Through Rust's Fastest Web Fra...

Every few years the same benchmark thread resurfaces: a new TechEmpower round drops, Rust frameworks cluster at the top, and actix-web sits near the peak. Most developers accept the number and move on. Far fewer ask the interesting question: what...

AI Inference
PydanticAI Under the Hood: A Source Tour of Type-Safe Agents

PydanticAI Under the Hood: A Source Tour of Type-Safe Agents

Ask a typical agent framework to extract a structured record and it hands you a dictionary — whatever the model happened to emit, passed straight through. That is convenient right up until it is not: a missing field becomes a...

AI Inference
Mem0 Under the Hood: A Source Tour of the Memory Layer for AI Agents

Mem0 Under the Hood: A Source Tour of the Memory Layer for AI Agents

Ask your coding agent next Monday what it learned about you last Monday, and watch it blink. Most agents are goldfish: every session restarts from a blank context, and the standard workaround — replaying the whole transcript into the prompt...

AI Inference
LlamaIndex Under the Hood: A Source Tour of the RAG Engine Powering Data-Aware LLM Apps

LlamaIndex Under the Hood: A Source Tour of the RAG Engine Powering Data-Awar...

Ask an LLM about your internal wiki, your support tickets, or last quarter’s contracts and it will answer fluently — and wrong, because it has never seen any of them. The obvious fix is to dump your documents into a...

AI Inference
LangGraph Under the Hood: A Source Tour of the State Machine Running Modern AI Agents

LangGraph Under the Hood: A Source Tour of the State Machine Running Modern A...

Almost every demo agent works, and almost every production agent eventually does not. The model calls the same tool in a loop until the context window fills, a crash at step fourteen throws away the previous thirteen, and there is...

Watch PyShine on YouTube