import { useEffect, useRef, useState } from 'react'; import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'; import { BookOpen, Clock, ArrowRight, Sparkles, Target, Lightbulb, TrendingUp } from 'lucide-react'; gsap.registerPlugin(ScrollTrigger); const articles = [ { id: 1, title: 'The Sub-Millisecond API: Architecture Patterns for Extreme Performance', excerpt: 'How we achieved 0.3ms p99 latency in a distributed system handling 10M RPS. Lessons from rethinking every layer of the stack.', readTime: '12 min', category: 'Architecture', featured: true, insights: ['Edge caching strategies', 'Protocol buffers optimization', 'Kernel bypass networking'], }, { id: 2, title: 'Quantum-Resistant Cryptography: A Practical Migration Guide', excerpt: 'NIST has finalized post-quantum algorithms. Here is how to migrate your existing PKI infrastructure without downtime.', readTime: '8 min', category: 'Security', featured: false, insights: ['CRYSTALS-Kyber implementation', 'Hybrid key exchange', 'Certificate lifecycle'], }, { id: 3, title: 'The Hidden Cost of JavaScript: Memory Profiling Deep Dive', excerpt: 'V8 internals exposed. Understanding hidden classes, shape transitions, and why your "simple" function allocates 2MB.', readTime: '15 min', category: 'Performance', featured: false, insights: ['V8 heap snapshots', 'Hidden class optimization', 'Memory leak patterns'], }, { id: 4, title: 'Building Unstoppable Systems: Chaos Engineering in Production', excerpt: 'Netflix taught us to embrace failure. Here is the playbook for designing systems that thrive under extreme conditions.', readTime: '10 min', category: 'Reliability', featured: false, insights: ['Game day exercises', 'Fault injection', 'Circuit breaker patterns'], }, { id: 5, title: 'The Compiler You Did Not Know You Had: SQL Query Planning', excerpt: 'PostgreSQL query planner demystified. How to read EXPLAIN ANALYZE output like a database engineer.', readTime: '11 min', category: 'Database', featured: false, insights: ['Cost-based optimization', 'Index selection', 'Join strategies'], }, { id: 6, title: 'WebAssembly at Scale: Lessons from Figma and Shopify', excerpt: 'When to WASM, when to stay native. Real-world performance data from production deployments.', readTime: '9 min', category: 'WebAssembly', featured: false, insights: ['WASM vs JS benchmarks', 'Module loading', 'Memory management'], }, ]; export default function LabNotes() { const sectionRef = useRef(null); const [activeFilter, setActiveFilter] = useState('All'); const [hoveredCard, setHoveredCard] = useState(null); const categories = ['All', ...new Set(articles.map(a => a.category))]; const filteredArticles = activeFilter === 'All' ? articles : articles.filter(a => a.category === activeFilter); useEffect(() => { const ctx = gsap.context(() => { gsap.from('.lab-note-card', { scrollTrigger: { trigger: '#lab-notes', start: 'top 80%', }, y: 50, opacity: 0, duration: 0.6, stagger: 0.1, ease: 'power2.out' }); }, sectionRef); return () => ctx.revert(); }, [filteredArticles]); return (
{/* Background Pattern */}
{/* Section Header */}
LAB NOTES // KNOWLEDGE_BASE

Deep Dives & Field Reports

Extended analysis from the trenches of production systems. Theory meets battle-tested implementation.

{/* Filter Tabs */}
{categories.map(cat => ( ))}
{/* Featured Article */} {filteredArticles.find(a => a.featured) && (
<