2min chapter

Signals and Threads cover image

Python, OCaml, and Machine Learning with Laurent Mazare

Signals and Threads

CHAPTER

Is Swift Better for Machine Learning Than Python?

Swift is closer as we said before to a camel and to something functional. Swift actually uses reference counting rather than a GC. That's turned out to be pretty important because when you're training a big machine learning model, one of the challenges is to freeze the memory as soon as possible. PyTorch lets you annotate Python functions with just in time information that tells PyTorch framework to try to compile the function and compile it backward pass from the syntax tree.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode