3min chapter

The Array Cast cover image

PyTorch and Dex with Adam Paszke

The Array Cast

CHAPTER

Type Classes and Conformability

type classes are a restricted form of ad hoc polymorphism. They still have to be like uniform. It's not, you know, the sort of, I don't know, let's say holy grail of ad hoc,. Ad hoc polymorphism would be closer to like templates in C++. So can you still do broadcasting or what we'd call an array language is, well, conformability or leading access agreement with plus? If you have arrays of different ranks, can it add them together according to some rule? Yeah, that is a very good question. And the answer is no. You have to because the plus is always takes two As and returns something. Both sides have to

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