
Sign up to save your podcasts
Or


Audio source: https://swyx.io/podcast/learn-in-podcast/rss.xml
Do you have a question you'd like me to address? Email me (sound files welcome!) swyx @ hey dot com!
Warmup questions:
- Do you have any pets at home? Why? If X were a person, what would he be?
- What would be your last meal on Earth? If you had to choose between two, which do you pick: pizza or ice-cream?
Leaving:
- Say something profound, and leave.
Source: Jay Acunzo — Podcasts, Storytelling, and How To Make Your Audience's Favorite Show
Sources (both podcasts are fully transcripted)
- Serverless Properties with Johann Schleier-Smith: https://softwareengineeringdaily.com/2021/02/11/serverless-properties-with-johann-schleier-smith/
- Azure Functions with Jeff Hollan: https://www.serverlesschats.com/88/
- This is all you need to know about Lambda cold starts by Yan Cui: https://lumigo.io/blog/this-is-all-you-need-to-know-about-lambda-cold-starts/
---
Serverless Properties with Johann Schleier-Smith: https://softwareengineeringdaily.com/2021/02/11/serverless-properties-with-johann-schleier-smith/
"The cold start problem got a lot of attention early on. And I'm happy to say that I think that for a lot of practical purposes is something that people can either consider resolved or worked around sufficiently that they don't need to worry about it so much. But let me go intoAnd so booting a VM traditionally means booting and operating system. Operating systems just simply aren't designed to boot up super-fast. It's not something that really matters. You're usually happy, or traditionally you'd be okay if a server booted up within a few minutes,
because it's going to run for days. So what does it matter? And traditionally also the things that happen during boot up time involve things like probing for devices and figuring out whether you've upgraded the hardware and other things that have just no role in a serverless
environment. You know what the hardware is and you want to get going as quickly as possible because you want to be able to have that ability to expand elastically. And similarly in order to keep costs low you want to have that ability to just shut things off and effectively power down.
And so what the cold start is really about is it's about that time that it takes. And to be clear, also, what's important about a cold start versus a warm start is that when you have a – Once you start it up, what you can do is you can just leave that function instance you. Can just leave it running so that it can do more than one request so you get to amortize your startup cost over many, many requests. So sort of two reasons why this startup time is becoming less of an issue, and they're actually both related to the technology that's in Firecracker.
So Firecracker makes it much, much faster to boot up the VMs in part because it sort of strips down that kernel so that it has just simply has a much faster boot time. And so the boot times are, instead of seconds, they come down to something like 100 milliseconds or so. And there are a number of other techniques. Some of these are in Firecrackers. Some of these are in research papers that are about making these boot up processes much faster. For example, one thing that you can do is once you have booted an image of a virtual machine, what you can actually do is you could just save those pages essentially, save a state of the memory. And then when you need another one, you can simply clone that and you can use sort of copy and write semantics for that as well so that really you're just creating a new set of page tables to reference that underlying image."
---
This is all you need to know about Lambda cold starts by Yan Cui: https://lumigo.io/blog/this-is-all-you-need-to-know-about-lambda-cold-starts/
---
Azure Functions with Jeff Hollan: https://www.serverlesschats.com/88/
In the last six months, we actually have been rolling out some machine learning, too. So we've got some folks in Microsoft Research who worked at looking at a bunch of historical data for functions. It's actually all open source. It's anonymized. But if you go to GitHub, you can actually see a bunch of Azure Functions anonymized data.And they trained a bunch of models. So that hopefully, Jeremy, if you were using Azure Functions and it's Monday at 8:00 AM, that our model, hopefully, would get smart enough over time to say, "Oh, there's a 70% chance that at Monday at 8:00 AM. Jeremy's about to hit this thing. We're actually just going to warm it up before he even executes it." So that's something that we've been rolling with for a while. But even then the ... And then just trying to make progress on the underlying technology, the underlying platform. There's a lot of components to building a multi-tenant secured service that all add a little bit of a national latency.
So something we're aware of. And then I guess to the second part of that question is, we do have some options to fully mitigate it or partially mitigate it. The one is the fateful pinger. We have folks, I mentioned, you can create this Function app concept. You can have multiple functions in there. One thing that even I have done, and I would say don't quote me on this, but I'm on a podcast. Now, my name's right there. You can create another function in that same app that triggers on a timer. So a timer is a first-class concept in Functions. Just have that thing trigger once every 10 minutes, and your whole app is going to get poked every 10 minutes by us. You don't even have to poke it. We'll poke it ourselves on that interval and keep it warm.
If you're a fan of The Princess Bride, you can watch the star-studded 2020 Quibi home video remake here: https://www.youtube.com/watch?t=1494&v=lR8pA_WV9QI&feature=youtu.be (cast guide: https://screenrant.com/princess-bride-remake-cast-guide-who-plays-each-character-in-quibis-movie/)
If you haven't seen The Princess Bride before, I recommend starting with the original first, it is a classic.
From Business Wars, which is very good for historical narratives..
Audio source: https://www.listennotes.com/podcasts/business-wars/est%C3%A9e-lauder-vs-lor%C3%A9al-do-or-zqlYDhenOJA/
More on Estée Lauder: https://en.wikipedia.org/wiki/Est%C3%A9e_Lauder_(businesswoman)
In 2011, Beyoncé visited the child cancer ward at the National University Hospital in Singapore and performed three songs. Her ridiculous talent shines through here, and she looks even better on video.
Audio source: https://www.youtube.com/watch?v=e5rKKL37kHQ
Intro and context: https://www.youtube.com/watch?v=0ItX3_mh0e8
Alternative Capture: https://www.youtube.com/watch?v=8-NZB-riaQo
Irreplaceable: https://www.youtube.com/watch?v=6Tib3l7vJX4
Radio: https://www.youtube.com/watch?v=3eBoAlHnttY
Maggie and swyx hosted a Clubhouse chat this weekend on Digital Gardens. Here are show notes for ongoing conversations so you can dig in further!
Comments and extra questions welcome!
## Recording
YouTube Recording Here and Commentable Transcript is Here!
This podcast audio was automatically edited for pauses and filler words via Descript. It gets a little choppy about 45mins in, but otherwise seems ok?
## Things we talked about
Audio source with transcript: Jeremy Grantham on the Meb Faber Podcast
Read the full paper: (which is investment focused) The Race of Our Lives Revisited
Clip 1:
The point is that we are not winning what we call the rest of our lives. The amount of carbon dioxide extra in the air last year was the highest ever increment. And we don’t start winning until A, that gets to 0. And then we have to backtrack and we have to find a way of pulling it out of the air to take it over the following several decades back down to 280 parts per million. We’re currently at 415 and we’re surely heading for 550, 600, and I hope not 700, 750 but something like that. And we’re going to have to take it out of the air by direct air capture or by biological means by planting trees and by growing seaweed and doing many exotic things, and hopefully, getting paid a carbon credit for doing it, and hopefully, having technological breakthroughs so that the credit we need is only $25 a ton and not $250 a ton because we can afford $25 a ton to get the job done. But we are going to have a lot of pain from the damage we’ve done to the environment, mainly in terms of greenhouse gases. And it’s going to be very expensive and very difficult and highly probably a big chunk of the world, something like 15% will basically become uninhabitable that currently is habitable, which a lot of it is the kind of Saudi peninsula and parts of the Sahara and so on, sub-Sahara, which are bad enough. But the really bad news is that it’s most of the Indian subcontinent, which will in 50 years when the really bad news occurs, will have 2 billion people on it. And a big chunk of the world’s population, which will probably be about nine by there. And then parts of Indonesia, that just unlivable, that the combination of humidity and heat will mean you can’t go out and do your farming, and how much that will stress out the rest of the Indian subcontinent where they still can’t function, I don’t know, but it won’t be pleasant. And Africa is already being stressed, has the worst soil and the worse governance and so on.
Clip 2:
Clip Source:
- Jordan Harbinger Show: jack Schafer | Getting People to Reveal the Truth
- Raise Your Glass Official Music Video
- There You Go Official Music Video
- Just Give Me A Reason ft. Nate Ruess but do me a favor and MAKE SURE to check out the live version
From the publisher's feed

227,534 Listeners

6,553 Listeners

12,500 Listeners

4,389 Listeners

475 Listeners

1,749 Listeners