Software Engineering

Insights on software development, engineering practices, architecture patterns, and the craft of building robust, scalable systems.

405 items · Page 5 of 9

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Creative Applications: Writing, Poetry, and Narrative AI

Jan 14, 2026·64 min read

Explains how language models power creative writing, poetry generation, storytelling, and the ethical questions of authorship and originality in generative AI.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

GPU Architecture: Memory Hierarchy, CUDA and Tensor Cores

Jan 14, 2026·53 min read

Covers GPU memory hierarchy, CUDA cores, Tensor Core throughput, and how to read GPU specs to optimize training workloads and debug performance bottlenecks.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

AWQ: Protecting Salient Weights for Efficient LLM Inference

Jan 14, 2026·44 min read

Explains how Activation-aware Weight Quantization protects salient weights to compress LLMs. Topics include the algorithm, scaling factors.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Jailbreaking LLMs: Techniques, Attacks, and Defenses

Jan 13, 2026·61 min read

Explains how adversarial prompts bypass LLM safety training, covering roleplay attacks, GCG gradient-based suffixes, PAIR automation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Feature Interpretation: SAE Features, Naming, and Circuits

Jan 13, 2026·57 min read

Interpret sparse autoencoder features through activation patterns, automated naming, monosemanticity measurement, and causal feature circuit analysis.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

GPTQ: Optimizing 4-Bit Weight Quantization for LLMs

Jan 13, 2026·49 min read

Explains how GPTQ optimizes weight quantization using Hessian-based error compensation to compress LLMs to 4 bits while maintaining near-FP16 accuracy.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Synthetic Data: Generation, Quality, Diversity, Distillation

Jan 13, 2026·65 min read

Explains how LLMs are trained on synthetic data, from Self-Instruct and Evol-Instruct to quality verification, diversity control, and knowledge distillation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Data Mixing: Domain Proportions, Quality Weighting

Jan 11, 2026·59 min read

Construct effective pretraining data recipes by setting domain proportions, applying quality weighting, running proxy experiments.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

PII Removal: Detection, Redaction, and Privacy Preservation

Jan 10, 2026·53 min read

Detect and remove personal information from LLM training data with regex, named entity recognition, and hybrid privacy pipelines.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Toxicity Filtering: Classifiers, Thresholds

Jan 10, 2026·49 min read

Explains how toxicity classifiers work, how to calibrate thresholds for pretraining data.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Quality Filtering: Heuristics, Perplexity, and Classifiers

Jan 10, 2026·50 min read

Filter low-quality text from web corpora using heuristic rules, perplexity scoring, and classifier-based methods with tunable thresholds.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

MinHash: Jaccard Similarity, LSH, Near-Duplicate Detection

Jan 10, 2026·47 min read

Explains how MinHash compresses documents into compact signatures that estimate Jaccard similarity, enabling near-duplicate detection.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Language Identification: Models, Multilingual Handling

Jan 10, 2026·52 min read

Explains how language identification works in NLP pipelines. Topics include n-gram models, FastText LID, code-switching, confidence thresholds.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Document Extraction with Trafilatura and HTML Parsing

Jan 9, 2026·55 min read

Extract clean text from HTML and PDFs for LLM training data. Topics include boilerplate removal, text density algorithms, Trafilatura.

Open notebook
Machine LearningLanguage AI HandbookSoftware EngineeringData, Analytics & AI

KV Cache Compression: Eviction, Quantization & H2O Algorithm

Jan 9, 2026·56 min read

Covers KV cache compression techniques including eviction strategies, attention sinks, the H2O algorithm, and INT8 quantization for efficient LLM inference.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Web Crawling: Common Crawl, Robots.txt, and Freshness

Jan 8, 2026·52 min read

Explains how web crawlers discover and download internet content at scale, covering Common Crawl architecture, robots.txt compliance, politeness policies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Evaluation Challenges: Contamination, Brittleness, Gaming

Jan 8, 2026·49 min read

Benchmark scores can mislead when test data leaks, metrics saturate, or systems game proxies. Covers contamination, brittleness, Goodhart's Law, and mitigation.

Open notebook
Machine LearningSoftware EngineeringLanguage AI Handbook

PagedAttention: Solving LLM KV Cache Memory Fragmentation

Jan 8, 2026·68 min read

Explains how PagedAttention uses virtual memory paging to eliminate KV cache fragmentation, enabling 5x better memory utilization in LLM serving systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Benchmark Design: Construction, Annotation, Validity in NLP

Jan 7, 2026·56 min read

Build rigorous NLP benchmarks: task definition, dataset collection, annotation guidelines, inter-annotator agreement, contamination detection.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

KV Cache Memory for LLM Inference

Jan 7, 2026·52 min read

Calculate KV cache memory requirements for transformer models. Topics include batch size, context length, GQA optimization, and GPU deployment planning.

Open notebook
Quantitative FinanceData, Analytics & AISoftware Engineering

Backtesting & Simulation: Frameworks for Strategy Validation

Jan 7, 2026·48 min read

Covers backtesting frameworks to validate trading strategies. Avoid look-ahead bias, measure risk-adjusted returns.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Multimodal Applications: Documents, Medical, Video

Jan 5, 2026·61 min read

Explains how multimodal AI powers document understanding, medical imaging diagnostics, video analysis, and complex reasoning tasks across real-world domains.

Open notebook
Quantitative FinanceData, Analytics & AISoftware Engineering

Crypto Quant Trading: Market Structure & Strategy

Jan 5, 2026·56 min read

Examines cryptocurrency market structure, quantitative strategies for extreme volatility, and risk management in 24/7 decentralized trading.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Image Generation: Diffusion Models, Text-to-Image, Editing

Jan 5, 2026·55 min read

Covers diffusion models from the DDPM objective to latent diffusion, classifier-free guidance, image editing techniques, ControlNet, and FID evaluation metrics.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Image Understanding: VQA, Captioning and Visual Grounding

Jan 4, 2026·53 min read

Covers four core image understanding tasks: visual question answering, image captioning, visual grounding, and scene understanding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Attention Analysis Limitations: When Weights Mislead

Jan 4, 2026·47 min read

Why attention weights fail as explanations, how manipulation studies expose their limits, and what gradient-based methods offer as more faithful alternatives.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Agent Safety: Alignment, Sandboxing, and Monitoring

Jan 3, 2026·55 min read

Build safe autonomous agents using action constraints, sandboxing, real-time monitoring, prompt injection defenses, and human-in-the-loop intervention patterns.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Multi-Agent Systems: Coordination and Communication

Jan 3, 2026·55 min read

Explains how multi-agent AI systems coordinate through topologies, communication protocols, role assignment.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

DPO Implementation: PyTorch Training for LLM Alignment

Jan 2, 2026·56 min read

Implement Direct Preference Optimization in PyTorch. Topics include preference data formatting, loss computation, training loops.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Planning: Task Decomposition and Goal-Directed LLM Agents

Jan 1, 2026·61 min read

Explains how LLM agents plan, decompose tasks, execute multi-step goals, and recover from failures using architectures like ReWOO, Tree-of-Thought.

Open notebook
Quantitative FinanceSoftware Engineering

High-Frequency Trading: Latency Arbitrage & Market Making

Jan 1, 2026·60 min read

Explains HFT strategies, including cross-market arbitrage, latency exploitation, electronic market making, and the systems behind microsecond trading.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

KL Divergence Penalty in RLHF: Theory & Implementation

Dec 30, 2025·69 min read

Explains how KL divergence prevents reward hacking in RLHF by keeping policies close to reference models.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Trend Following & Momentum: Trading Strategy Implementation

Dec 28, 2025·43 min read

Covers time-series and cross-sectional momentum strategies. Implement moving average crossovers, breakout systems, and CTA approaches with Python code.

Open notebook
Quantitative FinanceSoftware Engineering

Interest Rate Derivatives: Pricing Caps, Floors & Swaptions

Dec 8, 2025·55 min read

Covers Black's model for pricing interest rate options. Value caps, floors, and swaptions with Python implementations and risk measures.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Prefix Tuning: Steering LLMs with Learnable Virtual Tokens

Dec 7, 2025·64 min read

Explains how prefix tuning adapts transformers by prepending learnable virtual tokens to attention keys and values. A parameter-efficient fine-tuning method.

Open notebook
Quantitative FinanceMachine LearningSoftware Engineering

Advanced Interest Rate Models: HJM and LMM

Dec 7, 2025·62 min read

Covers Heath-Jarrow-Morton framework and LIBOR Market Model for pricing caps, floors, and swaptions. Implement forward rate dynamics in Python.

Open notebook
Quantitative FinanceSoftware Engineering

Finite Difference Methods for Option Pricing: PDE Solutions

Dec 4, 2025·51 min read

Covers finite difference methods for option pricing. Topics include explicit, implicit, and Crank-Nicolson schemes to solve the Black-Scholes PDE numerically.

Open notebook
Machine LearningSoftware EngineeringLanguage AI Handbook

LoRA Implementation: PyTorch Code & PEFT Integration

Dec 2, 2025·55 min read

Implement LoRA adapters in PyTorch from scratch. Build modules, inject into transformers, merge weights, and use HuggingFace PEFT for production.

Open notebook
Quantitative FinanceData, Analytics & AISoftware Engineering

Monte Carlo Simulation for Derivative Pricing in Python

Dec 2, 2025·43 min read

Covers Monte Carlo simulation for derivative pricing. Topics include risk-neutral valuation, path-dependent options like Asian and barrier options.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Binomial Tree Option Pricing: American Options & CRR Model

Dec 1, 2025·53 min read

Covers binomial tree option pricing with the Cox-Ross-Rubinstein model. Price American and European options using backward induction and risk-neutral valuation.

Open notebook
Quantitative FinanceSoftware Engineering

Implied Volatility and Volatility Smile

Nov 30, 2025·54 min read

Compute implied volatility using Newton-Raphson and bisection methods. Examines volatility smile, skew patterns, and the VIX index with Python code.

Open notebook
Quantitative FinanceSoftware Engineering

Black-Scholes Formula: European Option Pricing & Greeks

Nov 28, 2025·58 min read

Covers the Black-Scholes formula for European options with Python implementation. Topics include derivation, the Greeks, put-call parity.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Expert Networks: MoE Architecture & FFN Implementation

Nov 13, 2025·57 min read

Explains how expert networks power Mixture of Experts models. Examines FFN-based experts, capacity factors, expert counts, and transformer placement strategies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Sparse Models: Conditional Computation & Efficiency

Nov 12, 2025·43 min read

Explains how sparse models decouple capacity from compute using conditional computation and mixture of experts to achieve efficient scaling.

Open notebook
Data, Analytics & AISoftware EngineeringQuantitative Finance

Data Handling & Visualization: Python for Quant Finance

Nov 7, 2025·41 min read

Covers financial data handling with pandas, NumPy, and Numba. Topics include time series operations, return calculations, and visualization for quant finance.

Open notebook
Quantitative FinanceSoftware EngineeringData, Analytics & AI

Numerical Methods in Finance: Algorithms for Pricing & Risk

Nov 1, 2025·63 min read

Covers root-finding, interpolation, and numerical integration for finance. Compute implied volatility, build yield curves, and price derivatives.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

Structured Outputs: Schema-Validated Data Extraction

Sep 17, 2025·18 min read

Covers structured outputs introduced in language models during 2024. Explains how structured outputs enable reliable data extraction.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningHistory of Language AI

PEFT Beyond LoRA: Advanced Parameter-Efficient Fine-Tuning

Sep 13, 2025·15 min read

Covers advanced parameter-efficient fine-tuning methods introduced in 2024, including AdaLoRA, DoRA, VeRA, and other innovations.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12