Search a title or topic

Over 20 million podcasts, powered by 

Player FM logo
Artwork

Content provided by Pragmatic AI Labs and Noah Gift. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Pragmatic AI Labs and Noah Gift or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.
Player FM - Podcast App
Go offline with the Player FM app!

60,000 Times Slower Python

10:14
 
Share
 

Manage episode 468099614 series 3610932
Content provided by Pragmatic AI Labs and Noah Gift. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Pragmatic AI Labs and Noah Gift or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.

The End of Moore's Law and the Future of Computing Performance

The Automobile Industry Parallel

  • 1960s: Focus on power over efficiency (muscle cars, gas guzzlers)
  • Evolution through Japanese efficiency, turbocharging, to electric vehicles
  • Similar pattern now happening in computing

The Python Performance Crisis

  • Matrix multiplication example: 7 hours vs 0.5 seconds
  • 60,000x performance difference through optimization
  • Demonstrates massive inefficiencies in modern languages
  • Industry was misled by Moore's Law into deprioritizing performance

Performance Improvement Hierarchy

  1. Language Choice Improvements:

    • Java: 11x faster than Python
    • C: 50x faster than Python
    • Why stop at C-level performance?
  2. Additional Optimization Layers:

    • Parallel loops: 366x speedup
    • Parallel divide and conquer
    • Vectorization
    • Chip-specific features

The New Reality in 2025

  • Moore's Law's automatic performance gains are gone
  • LLMs make code generation easier but not necessarily better
  • Need experts who understand performance optimization
  • Pushing for "faster than C" as the new standard

Future Directions

  • Modern compiled languages gaining attention (Rust, Go, Zig)
  • Example: 16KB Zig web server in Docker
  • Rethinking architectures:
    • Microservices with tiny containers
    • WebAssembly over JavaScript
    • Performance-first design

Key Paradigm Shifts

  • Developer time no longer prioritized over runtime
  • Production code should never be slower than C
  • Single-stack ownership enables optimization
  • Need for coordinated improvement across:
    • Language design
    • Algorithms
    • Hardware architecture

Looking Forward

  • Shift from interpreted to modern compiled languages
  • Performance engineering becoming critical skill
  • Domain-specific hardware acceleration
  • Integrated approach to performance optimization

🔥 Hot Course Offers:

🚀 Level Up Your Career:

Learn end-to-end ML engineering from industry veterans at PAIML.COM

  continue reading

213 episodes

Artwork
iconShare
 
Manage episode 468099614 series 3610932
Content provided by Pragmatic AI Labs and Noah Gift. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Pragmatic AI Labs and Noah Gift or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.

The End of Moore's Law and the Future of Computing Performance

The Automobile Industry Parallel

  • 1960s: Focus on power over efficiency (muscle cars, gas guzzlers)
  • Evolution through Japanese efficiency, turbocharging, to electric vehicles
  • Similar pattern now happening in computing

The Python Performance Crisis

  • Matrix multiplication example: 7 hours vs 0.5 seconds
  • 60,000x performance difference through optimization
  • Demonstrates massive inefficiencies in modern languages
  • Industry was misled by Moore's Law into deprioritizing performance

Performance Improvement Hierarchy

  1. Language Choice Improvements:

    • Java: 11x faster than Python
    • C: 50x faster than Python
    • Why stop at C-level performance?
  2. Additional Optimization Layers:

    • Parallel loops: 366x speedup
    • Parallel divide and conquer
    • Vectorization
    • Chip-specific features

The New Reality in 2025

  • Moore's Law's automatic performance gains are gone
  • LLMs make code generation easier but not necessarily better
  • Need experts who understand performance optimization
  • Pushing for "faster than C" as the new standard

Future Directions

  • Modern compiled languages gaining attention (Rust, Go, Zig)
  • Example: 16KB Zig web server in Docker
  • Rethinking architectures:
    • Microservices with tiny containers
    • WebAssembly over JavaScript
    • Performance-first design

Key Paradigm Shifts

  • Developer time no longer prioritized over runtime
  • Production code should never be slower than C
  • Single-stack ownership enables optimization
  • Need for coordinated improvement across:
    • Language design
    • Algorithms
    • Hardware architecture

Looking Forward

  • Shift from interpreted to modern compiled languages
  • Performance engineering becoming critical skill
  • Domain-specific hardware acceleration
  • Integrated approach to performance optimization

🔥 Hot Course Offers:

🚀 Level Up Your Career:

Learn end-to-end ML engineering from industry veterans at PAIML.COM

  continue reading

213 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Listen to this show while you explore
Play