Skip to main content
ŁL

Łukasz Langa

1episode
1podcast

We have 1 summarized appearance for Łukasz Langa so far. Browse all podcasts to discover more episodes.

Featured On 1 Podcast

All Appearances

1 episode
Software Engineering Daily

Python 3.14 with Łukasz Langa

Software Engineering Daily
47 minCPython Developer in Residence at the Python Software Foundation

AI Summary

→ WHAT IT COVERS Python 3.14 release introduces formal support for free-threaded no-GIL mode via Python 3.14t, template string literals for efficient templating, and deferred evaluation of type annotations through PEP 749. Łukasz Langa, CPython developer in residence and former release manager, explains performance improvements, debugging tools, and backward compatibility strategies. → KEY INSIGHTS - **Free Threading Architecture:** Python 3.14t provides production-ready GIL-optional mode that enables true parallel computation across multiple cores without serialization overhead. Applications with existing thread pools see immediate performance gains, while single-threaded performance matches traditional GIL-enabled builds. This contrasts with subinterpreters, which provide process-level isolation for containerized environments where subprocess spawning is restricted, like iOS applications or Mac App Store sandboxed apps. - **Template String Literals:** T-strings create template objects at compile time rather than runtime strings, enabling efficient HTML and SQL composition without repeated parsing. Libraries receive structured Python objects instead of raw strings requiring validation. For SQL queries, developers can safely interpolate user arguments directly in t-string notation while maintaining injection protection, as the library distinguishes query structure from user data at the object level. - **Type Annotation Evaluation:** PEP 749 replaces string-based annotations with lambda-based deferred evaluation, preserving local scope context for runtime introspection. This solves Pydantic's requirement to reference locally-defined classes by maintaining frame references even after function execution completes. Forward references work automatically without future imports, and the implementation maintains backward compatibility with existing string-based annotation code through optional future import retention. - **Remote Debugging Capability:** Python 3.14 enables PDB debugging of running processes across containers and network boundaries without restart requirements. Developers can execute commands and inspect state on remote production processes experiencing memory leaks or CPU bottlenecks. Combined with asyncio task tree visualization through asyncio ps command, this provides causal chain analysis showing which coroutines await others, solving the single-thread visibility limitation of traditional profilers. - **Deprecation Timeline Policy:** Python maintains five-year minimum deprecation windows, recently introducing soft deprecations that update documentation without runtime warnings. The global interpreter lock and future import annotations remain indefinitely despite new defaults, as maintenance cost stays minimal and removal provides no user benefit. Library maintainers typically support Python versions until five years post-release, meaning Python 3.14 features become baseline requirements around Python 3.18-3.19 timeframe. → NOTABLE MOMENT Langa reveals that async IO test suites showed performance improvements with free threading before any async IO optimization work began, simply because thread pool executor tests automatically utilized multiple cores. This demonstrates how existing threaded code gains immediate scaling benefits from GIL removal without requiring application-level changes or threading introduction. 💼 SPONSORS [{"name": "GuardSquare", "url": "https://www.guardsquare.com"}, {"name": "Recall.ai", "url": "https://recall.ai/software"}] 🏷️ Python 3.14, Free Threading, Type Annotations, Remote Debugging, Template Strings

Never miss Łukasz Langa's insights

Subscribe to get AI-powered summaries of Łukasz Langa's podcast appearances delivered to your inbox weekly.

Start Free Today

No credit card required • Free tier available