رونوشت 🔗
WEBVTT
00:00:00.000 --> 00:00:18.000
Welcome to another episode of Runtime Arguments, the podcast where we talk about all kinds of neat tech stuff and… I don't know what else. Just… we do this all the time. Um, my name is Jim McQuillan, and with me today, as always, is my friend Wolf. Say hello, Wolf.
00:00:19.000 --> 00:00:26.000
Hey everybody and hey Jim. I'm so glad to be here with you, especially after a long day of work.
00:00:27.000 --> 00:00:30.000
At the end of a long week, right?
00:00:30.000 --> 00:00:37.000
At the end of a long week? At the start of a new month? After a long month?
00:00:32.000 --> 00:00:35.000
Yeah, yeah.
00:00:37.000 --> 00:00:41.000
Oh gosh, yeah, the the beginning of the 4th quarter.
00:00:41.000 --> 00:00:57.000
This is when the pedal hits the metal and we get stuff done, right? So today we're gonna be talking about Claude Shannon. The name of the episode is, I think it's gonna say this, the Claude Shannon episode, surprise.
00:00:57.000 --> 00:01:20.000
entropy and bits, and Wolf is gonna… Wolf is gonna delight us, uh, with everything to do with that, and I'm really looking forward to this one. Uh, before we get into that, though, let's, um… let's… let's cover the… the overhead that we do every time we do one of these things. This is our 39th episode, episode number 38.
00:01:20.000 --> 00:01:24.000
Um… Feedback.
00:01:24.000 --> 00:01:39.000
We love feedback. We got a little bit this time. We want feedback every episode. So please, if you have thoughts, have ideas, if we said something incorrect, if you just like what we're doing, send us some feedback. There's several channels to do that.
00:01:39.000 --> 00:01:55.000
You can find them in the show notes at the bottom of this episode in your player. You can go to our website. We'll remind you all this stuff at the end. Some of the feedback we got, the last episode we did was on the Unix year.
00:01:55.000 --> 00:02:04.000
2038 problem. That was a fun episode, and I failed to mention that the whole idea for that episode came to us from our good friend Ron.
00:02:04.000 --> 00:02:20.000
He gave me that idea, gosh, probably nine months ago, and it turned out to be a lot of fun. We talked about not only the year 238 problem, but a little bit about Y2K and several other similar problems.
00:02:20.000 --> 00:02:32.000
issues, design issues, bugs, whatever you want to call it. Um, we also got some feedback from Marlin. Marlin is our genius friend that works at Meta.
00:02:32.000 --> 00:02:35.000
Um, whatever he…
00:02:32.000 --> 00:02:35.000
I'm jealous every time you say that.
00:02:35.000 --> 00:02:58.000
Yeah. Well… That's the, uh, that's the adjective that I think of when I think of Marlon. Um, he, uh, when he gives me feedback, first of all, I'm always nervous when he listens to the episode, because I know he's gonna, he's gonna find things, because he works at a whole different level than we do. And, uh, and he wanted to point out that, uh, while I said during the episode.
00:02:58.000 --> 00:03:17.000
that, um, uh… We don't worry so much about things like block sizes on disk and sector sizes, where I used to have to worry about it all the time, back when I was sort of coming up in the mid '80s. Boy, we had to be very careful about how we laid data out on disk.
00:03:17.000 --> 00:03:35.000
And I don't worry about that anymore. And that's what I said. But Marlon was very quick to point out that yes, that's still very, very important. The work he does at Meta, they're focusing on that all the time. And it's very important to make sure your data aligns on blocks.
00:03:35.000 --> 00:03:56.000
Now, I think the point that I was trying to make was, I don't have to worry about it anymore. I use a database. I don't have any control over that anyway. But the people that are designing the databases, those guys at Postgres and MySQL and all the others, they… take sector sizes and block sizes very, very seriously. Uh, you know, they're trying to…
00:03:54.000 --> 00:03:59.000
There is always somebody right on the medal.
00:03:56.000 --> 00:04:09.000
They're trying to be as if… Yeah, they're working with the metal. They wanna be as efficient as they can because if they're not.
00:04:09.000 --> 00:04:25.000
careful, they end up wasting disk space, wasting time, all those things. So yeah, block sizes are really important. And then you get into things like memory and how you lay out your structures and stuff. And you know, I work in a higher level language.
00:04:25.000 --> 00:04:34.000
I don't have to worry about structure layout, but the guys that are working in the lower level stuff, they focus on that stuff all the time.
00:04:34.000 --> 00:04:39.000
And the important thing is, any time, space.
00:04:39.000 --> 00:04:43.000
Storage speed that they waste?
00:04:43.000 --> 00:04:45.000
You waste.
00:04:45.000 --> 00:04:46.000
Yes.
00:04:45.000 --> 00:04:50.000
Everything they do is the limits of what you can do.
00:04:51.000 --> 00:04:58.000
Yeah, you can't do any better than they can do it.
00:04:56.000 --> 00:04:58.000
Right.
00:04:58.000 --> 00:05:13.000
It's some great stuff. So yeah, if you had feedback, please send it to us. We love hearing from people. That's how we know you're out there listening. You know, we get the statistics, and they always look good, the download stats and stuff, but knowing that you're actually listening.
00:05:13.000 --> 00:05:20.000
That helps us out quite a bit. So Wolf, how was your week?
00:05:20.000 --> 00:05:35.000
Uh, oh, there were lots of ups and downs. Uh, first of all, everybody knows, who's been listening, that I have been studying and practicing and preparing and learning for WEEKS to get ready for this big.
00:05:35.000 --> 00:05:39.000
match the Michigan sectionals, uh, that I shot at.
00:05:39.000 --> 00:05:51.000
And, um… my number one goal was to be safe, and my number two goal was not to DQ, and then after that, there was stuff about, you know, improving.
Load full transcript
00:05:51.000 --> 00:05:54.000
And I did not even make it to number two.
00:05:54.000 --> 00:05:59.000
I DQ'd. And it was early. It was…
00:05:57.000 --> 00:06:00.000
DQ'd, you disqualified.
00:06:00.000 --> 00:06:09.000
I disqualified. And when you are at a USPSA match, and you disqualify, when you DQ, here's what happens.
00:06:09.000 --> 00:06:14.000
Um, you IMMEDIATELY stop shooting.
00:06:14.000 --> 00:06:25.000
Uh, you don't get to shoot anymore, at all, that day. There's no more. Uh, you pack up, and if you're a super good sport, uh, you stay.
00:06:25.000 --> 00:06:52.000
with no firearms, and you walk the stage with everybody else, and paste up holes, um, and, you know, do your share, because it's a volunteer sport. Um… And I'm, uh, ashamed to say that I did not even stay to paste, because I was exhausted, it was 2 hours from home, I hadn't had any… anyway. Uh, the important thing is, I did an unsafe thing, and I didn't.
00:06:52.000 --> 00:07:02.000
even know I was doing it. The reason it happened is because W, Wolf, uh, I'm, I'm last, usually, on the list, or close to last.
00:07:02.000 --> 00:07:07.000
And I spent most of the stage sitting next to an expert.
00:07:07.000 --> 00:07:18.000
And I had a plan, and my plan was safe. I'd gone through it, I'd gone over it, but the expert said, oh yeah, you don't want to do that.
00:07:18.000 --> 00:07:26.000
Uh, because that just wastes time. What you want to do is don't put anything back on your belt. This was an unloaded start.
00:07:26.000 --> 00:07:27.000
Just shh.
00:07:27.000 --> 00:07:33.000
Shoot some stuff, and then grab the other magazine and reload as you go left.
00:07:34.000 --> 00:07:47.000
His plan was better. It was an improvement over mine. Except… I never stopped to consider it. Is this a thing I can do?
00:07:47.000 --> 00:08:02.000
I had never practiced this reloading from right to left. I'm a right-handed shooter. It's unsafe if you haven't practiced it, because you turn in a way that makes you point your gun.
00:08:02.000 --> 00:08:05.000
towards human beings.
00:08:05.000 --> 00:08:12.000
Uh, so I started my reload, I'm like… Six seconds into the stage.
00:08:12.000 --> 00:08:22.000
Um, I'm starting to run to the left, and as loud as you can imagine, uh, one of the ROs shouts.
00:08:22.000 --> 00:08:23.000
Stop.
00:08:24.000 --> 00:08:33.000
Um… That's the word. When they say that, that's the end of your day. And you know, like they're…
00:08:31.000 --> 00:08:35.000
And an RO is what?
00:08:35.000 --> 00:08:51.000
An RO is a range officer. I'm actually a certified RO myself, but every stage there's three. There's a guy running the timer, there's a guy who's taking the score, and there's another guy who's standing in a third position just to see what's going on.
00:08:51.000 --> 00:09:03.000
And, um… I immediately froze in place, like freeze tag, and waited for the first RO to come up and give me instructions, which involved.
00:09:03.000 --> 00:09:25.000
unload and show
clear, and if clear, holster, uh, hammer down and holster. I did those things. And then the RO who stopped me said, yeah, I was looking right down your barrel. And I had no idea. Um… I did this bad thing, it was wrong, it was unsafe, and he said, do you want to contest it?
00:09:25.000 --> 00:09:45.000
And I said, absolutely not! I'm… so happy that you stopped me because now I know better. Next time I'm going to come back and I'm not going to do this. If somehow I had gotten away with it, I might have done it again. Way more important to me.
00:09:45.000 --> 00:09:56.000
to be safe than it was to keep shooting for the rest of the day. And then he was very kind to me. He said this. He said, uh, you should know, it wasn't egregious.
00:09:56.000 --> 00:10:08.000
Um, so I felt good about that. But yeah, I did a bad thing, and the bad thing wasn't me pointing in the wrong direction, it was not thinking about advice. So…
00:10:08.000 --> 00:10:09.000
Sure.
00:10:08.000 --> 00:10:12.000
That was unfortunate. A lot of practice wasted.
00:10:09.000 --> 00:10:14.000
Well, so the bottom… the bottom line, did you learn something?
00:10:14.000 --> 00:10:16.000
I absolutely did.
00:10:15.000 --> 00:10:17.000
That it wasn't a waste.
00:10:16.000 --> 00:10:21.000
And I'm, I'm… Super glad about that. Okay, number two.
00:10:19.000 --> 00:10:21.000
Yeah.
00:10:21.000 --> 00:10:31.000
Um, I have been informed by many people over many years, uh, that the thing that sucks about talking to me, or at least asking me a question.
00:10:31.000 --> 00:10:35.000
is that I don't answer fast enough.
00:10:35.000 --> 00:10:43.000
And so I have a plan to answer faster. It's sort of based on the Equalizer movies.
00:10:43.000 --> 00:10:44.000
Um, okay.
00:10:44.000 --> 00:10:46.000
I'm going to start my stopwatch.
00:10:46.000 --> 00:10:56.000
And if I get to, like, 20 seconds or something, and I haven't told you the answer yet, it's time to reconsider my direction.
00:10:55.000 --> 00:11:09.000
To be clear, it's not that he's slow at answering. He starts the answer very quickly. It's just that there's an awful lot of words that come out of his mouth.
00:11:09.000 --> 00:11:15.000
Before he gets to the answer that I want to hear, so.
00:11:14.000 --> 00:11:15.000
Yeah.
00:11:15.000 --> 00:11:22.000
He's, uh, he's… Wolf is taking steps to, uh, to improve, and man, I appreciate that.
00:11:15.000 --> 00:11:17.000
Uh, yeah.
00:11:22.000 --> 00:11:23.000
Yeah, okay.
00:11:23.000 --> 00:11:30.000
Uh, number three is, uh, I published my personal ethics, at least.
00:11:30.000 --> 00:11:39.000
I started them. They're up there on GitHub. My GitHub account is github.com slash wolf.
00:11:39.000 --> 00:11:52.000
And, uh, that repo is called Ethics. And, um… It's sort of about if you see me say something or do something or why did I do that? Why did I say that?
00:11:52.000 --> 00:12:00.000
Maybe these ethics will tell you. They're not… Uh, perfect yet? I'm working towards it.
00:12:00.000 --> 00:12:01.000
Umm.
00:12:02.000 --> 00:12:04.000
1Password.
00:12:05.000 --> 00:12:21.000
They contributed money towards fascism by supporting O'Markey and DHH, who I don't think describes himself as a Nazi, but a lot of people do, and I'm kind of.
00:12:21.000 --> 00:12:30.000
Indiana Jones in this situation. I hate these guys. So… Uh, the fact that 1Password did not… Take it back.
00:12:30.000 --> 00:12:35.000
They didn't rescind their funding. In fact, they kind of doubled down.
00:12:36.000 --> 00:12:48.000
I love 1Password, it might be my favorite piece of software, but… It does not agree with my values. And therefore, Bitwarden, here I come.
00:12:48.000 --> 00:12:57.000
And finally… I got some really great email from a young software engineer.
00:12:57.000 --> 00:12:59.000
Uh, by the name of Rama.
00:12:59.000 --> 00:13:05.000
Uh, I… Rama did not mention ever having heard our podcast.
00:13:05.000 --> 00:13:15.000
What he said was, he was on YouTube and saw, like, a… 8 or 12 second clip of me talking.
00:13:15.000 --> 00:13:32.000
Uh… having to do with General Magic. Um, this was an interview that happened at General Magic. Most of the clip was about Megan Smith, who was a hardware person, brilliant, ended up, uh, like.
00:13:32.000 --> 00:13:43.000
an important person in Washington, D.C, I think, in the Obama administration. She… I have to say, of the people at General Magic.
00:13:43.000 --> 00:13:58.000
There were so many who were so wonderful to work with. But Rama said nice things and he found value in some of the things I had said. I pointed him at our podcast.
00:13:58.000 --> 00:14:01.000
Uh, but, uh, yeah.
00:14:01.000 --> 00:14:16.000
he really gave me the feels. He said things that made me feel good about the work that I've done and we've done, and I really liked that. And that brings me around to the very final thing I want to say.
00:14:11.000 --> 00:14:13.000
That's nice.
00:14:16.000 --> 00:14:32.000
Which is, um… you mentioned Ron, we've talked about, uh, Marlon, uh, we have, uh, Jim Peterson, uh, our friend, uh, Robbie J. Dave, so many people.
00:14:27.000 --> 00:14:30.000
Now we got Dave, we got Jay.
00:14:32.000 --> 00:14:36.000
And I feel like I'm in trouble.
00:14:36.000 --> 00:14:37.000
Oh.
00:14:37.000 --> 00:14:45.000
When people give their Oscar speeches… And they say this thing, they say.
00:14:45.000 --> 00:14:57.000
you know, it is an honor just to be mentioned in the same breath as these people, and what they mean are the other nominees for that particular Oscar.
00:14:58.000 --> 00:15:02.000
I am 100% honored.
00:15:02.000 --> 00:15:17.000
just to be considered in the same breath as this group of people. Every one of this group of friends, they're all smart, they're all driven, they're all curious, they're all inventive.
00:15:17.000 --> 00:15:24.000
They're all doing fantastic stuff, and to be put in the same group with them?
00:15:24.000 --> 00:15:27.000
It's a privilege.
00:15:27.000 -->
00:15:39.000
And this group, what he's referring to is, you know, this whole podcast was born out of the fact that Wilf and I would have lunch every Saturday at a sushi place down just south of Ann Arbor.
00:15:39.000 --> 00:16:05.000
And we did this for years, and then we started inviting people, and they started showing up. And every week now, um, it's, uh, I think last week there was 5 of us, sometimes there's 8, sometimes it's just 2 of us. But we're there pretty much every Saturday, uh, 11 o'clock in a… in a place in Saline, Michigan, which is just south of Ann Arbor if you're in the area.
00:16:05.000 --> 00:16:12.000
Uh, the place is called Biwako. It's a… what do you call it? A sushi fusion…
00:16:12.000 --> 00:16:21.000
It's Korean-Japanese fusion and it's named Miwako Sushi and every single person there is nice.
00:16:12.000 --> 00:16:14.000
I don't know what your call is.
00:16:15.000 --> 00:16:17.000
Yes.
00:16:21.000 --> 00:16:42.000
Yes, so, this is our open invitation. Uh, if you are within driving distance, and you're available on a Saturday at 11 o'clock in the morning, come see us. Uh, just walk in, and uh, it'll be the table with a bunch of guys probably talking loudly, and uh… In fact, at any given moment, it's probably wolf talking, but come on in.
00:16:42.000 --> 00:16:46.000
That's sort of the sad part. I feel bad about that.
00:16:42.000 --> 00:16:45.000
We would love to see you.
00:16:45.000 --> 00:16:47.000
It's not sad.
00:16:47.000 --> 00:16:52.000
You've always got interesting stuff to talk about. So yeah, come.
00:16:50.000 --> 00:16:57.000
You know, a cool thing is about to happen. One of our good friends, Ron, and Ron's wife, Lynn.
00:16:57.000 --> 00:16:59.000
Umm.
00:16:59.000 --> 00:17:08.000
they are going to go with me to a Stop the Bleed class, uh, to be able to handle.
00:17:05.000 --> 00:17:08.000
Explain what that is.
00:17:08.000 --> 00:17:16.000
Stop the Bleed is, uh, it's a whole association, and they give these free classes everywhere. Um…
00:17:16.000 --> 00:17:18.000
Oh, what?
00:17:16.000 --> 00:17:18.000
where you are taught.
00:17:18.000 --> 00:17:21.000
I thought you were talking about stop the greed. Okay.
00:17:21.000 --> 00:17:23.000
I've never heard of that.
00:17:23.000 --> 00:17:26.000
Certainly not these days.
00:17:24.000 --> 00:17:30.000
It's something we all have to make happen in early November.
00:17:27.000 --> 00:17:28.000
Yah.
00:17:30.000 --> 00:17:40.000
Yeah, these are classes, um, that they give for free all over the place, and the idea is to teach the people who come.
00:17:37.000 --> 00:17:38.000
Yes.
00:17:40.000 --> 00:17:42.000
Umm.
00:17:42.000 --> 00:17:45.000
How to keep you alive.
00:17:45.000 --> 00:17:51.000
For the time it takes for emergency, uh, medical personnel to get there.
00:17:51.000 --> 00:18:03.000
Um, you know, something bad just happened. You fell on a piece of rebar, and it went through you. Or you got a terrible slash in your… whatever, it doesn't matter. Whatever bad thing happened.
00:18:03.000 --> 00:18:09.000
Can I keep you alive long enough for the ambulance to get here?
00:18:09.000 --> 00:18:13.000
Maybe I can do a little better than that.
00:18:13.000 --> 00:18:24.000
Maybe that's all I can do, but the steps to do to make somebody stay alive, I think this is vital, and it's a thing.
00:18:24.000 --> 00:18:33.000
I think everybody should know. Um… You ought to be able to keep somebody alive for 15 minutes.
00:18:32.000 --> 00:18:34.000
Sure.
00:18:34.000 --> 00:18:40.000
Uh, and he and his wife are gonna meet me there, and we're gonna do it together. I'm super excited.
00:18:35.000 --> 00:18:36.000
Sure.
00:18:40.000 --> 00:18:41.000
Umm.
00:18:42.000 --> 00:18:44.000
So that that's my week.
00:18:44.000 --> 00:18:46.000
That's good, that's that's a lot.
00:18:44.000 --> 00:18:51.000
surgery coming up, they're gonna operate on my wrist, I don't want that. But I do want it, but I… don't want it.
00:18:48.000 --> 00:19:05.000
Yeah, yeah. Now, this is not about last week. This is about next week. I'm going to Rochester, New York to deploy that software I've been working on since June. I mentioned it a few times. It's this big monster of a project.
00:19:05.000 --> 00:19:20.000
A lot of TypeScript, Node, database stuff. I'm gonna talk a lot more about it in our next episode after I've deployed it, after I have a story to tell, because it's a real fun project and I've been kind of vague on the details.
00:19:20.000 --> 00:19:24.000
But we'll talk about it in our next episode.
00:19:24.000 --> 00:19:27.000
Why don't we get on to the meat? Well.
00:19:27.000 --> 00:19:29.000
Are you ready?
00:19:28.000 --> 00:19:30.000
I am.
00:19:30.000 --> 00:19:45.000
Um… first, I want to remind everybody of my little pantheon of heroes, um, and I'm gonna give them in order. As far as I'm concerned, Richard Feynman, uh, that guy.
00:19:45.000 --> 00:20:02.000
rocks the world. Maybe the best teacher who ever lived, he discovered amazing things, he was curious, he learns… If I could go back in time and meet one person and have dinner with them and just ask questions non-stop.
00:20:02.000 --> 00:20:18.000
It would be him. Number two on my list is Claude Shannon. He's a contemporary. He did die in the 2000s, I think, if I've got that right. He is the father of what he called communication theory.
00:20:18.000 --> 00:20:35.000
but what we today call information theory. It's the core of everything we know. It's how we compress, it's how we encrypt, it's how we transmit, especially over noisy channels, that's a thing. It's how AI works underneath.
00:20:35.000 --> 00:20:48.000
Um, it's how you, uh, talk to your wife, believe it or not. It's everything. Information theory. Um, third on my list is Kurt Kernel, who, at 21 years old.
00:20:48.000 --> 00:20:54.000
Proved that you can't prove everything.
00:20:54.000 --> 00:20:58.000
Godel's incompleteness theorem.
00:20:58.000 --> 00:21:07.000
astounding. And
finally, the latest addition to my little pantheon, Pierre Simon Laplace.
00:21:07.000 --> 00:21:11.000
who did the heavy lifting behind Bayes' theorem.
00:21:11.000 --> 00:21:22.000
Uh, these four guys. Today is the Claude Shannon episode. We're gonna talk about communication, and I am gonna promise you up front, no math.
00:21:22.000 --> 00:21:23.000
Umm.
00:21:23.000 --> 00:21:29.000
I'm my goal is I want to a.
00:21:29.000 --> 00:21:44.000
tell you the stuff that's the most interesting about it, and B not say any of the stuff that's boring. Uh, and if I can do that, maybe, uh, you'll come out with something new and interesting to you.
00:21:44.000 --> 00:21:46.000
So that's my plan.
00:21:46.000 --> 00:21:49.000
Does that sound like a reasonable plan to you, Jim?
00:21:48.000 --> 00:21:55.000
That is a great plan. I'm looking forward to this. I wanna learn about information.
00:21:58.000 --> 00:22:02.000
So I'm going to start with some.
00:22:02.000 --> 00:22:04.000
Curious.
00:22:04.000 --> 00:22:07.000
concepts, and then I'll dive into the real meat.
00:22:07.000 --> 00:22:14.000
Um… One thing that I'm not going to explain right this minute.
00:22:14.000 --> 00:22:18.000
But I am going to say to pique your interest.
00:22:18.000 --> 00:22:20.000
is… vet.
00:22:20.000 --> 00:22:23.000
Information?
00:22:23.000 --> 00:22:25.000
And meaning.
00:22:25.000 --> 00:22:28.000
are almost unrelated.
00:22:28.000 --> 00:22:34.000
Uh, if you turn the radio to a station that has only static.
00:22:34.000 --> 00:22:35.000
Guess what?
00:22:35.000 --> 00:22:42.000
That is a lot of information. It's surprise. It's brand new to you.
00:22:42.000 --> 00:22:48.000
Uhm… But also, it… Almost certainly has zero meaning.
00:22:48.000 --> 00:22:55.000
Um… And… How much information and meaning are in something?
00:22:55.000 --> 00:23:01.000
Uh, is very strongly related to who's watching.
00:23:01.000 --> 00:23:07.000
So, I've got two throwaway phrases.
00:23:07.000 --> 00:23:11.000
The sun rose today.
00:23:13.000 --> 00:23:20.000
does not contain very much information, or surprise, or noise, or anything. In fact.
00:23:21.000 --> 00:23:26.000
Is there a time you could have… NOT said that?
00:23:27.000 --> 00:23:31.000
It's been true every day so far.
00:23:31.000 --> 00:23:34.000
So it's not news.
00:23:34.000 --> 00:23:35.000
Umm.
00:23:34.000 --> 00:23:37.000
But that doesn't mean it's going to be true tomorrow.
00:23:35.000 --> 00:23:44.000
But! That is correct. So it's not 100% certain. That's something important.
00:23:44.000 --> 00:23:47.000
Here's another interesting statement.
00:23:48.000 --> 00:23:51.000
It snowed in Miami.
00:23:52.000 --> 00:24:00.000
Now that's very different than the first statement, because this one contains a lot of surprise.
00:24:00.000 --> 00:24:05.000
And the soul of information theory?
00:24:05.000 --> 00:24:09.000
is that a SUPER CERTAIN.
00:24:09.000 --> 00:24:15.000
Very high probability statement. Like that first one, the
sun rose today?
00:24:15.000 --> 00:24:20.000
You can express in a very tiny number of bits.
00:24:20.000 --> 00:24:22.000
Maybe less than one.
00:24:22.000 --> 00:24:27.000
And a very surprising statement, like that second one.
00:24:28.000 --> 00:24:31.000
Takes a lot of bits to say.
00:24:31.000 --> 00:24:43.000
So… of everything in information theory, which for sure every one of you deals with in one way or another sooner or later.
00:24:43.000 --> 00:24:56.000
If I can help in any way at all, it's by… Teaching you the exact meaning and relationship between a couple of words you already know.
00:24:56.000 --> 00:24:59.000
But maybe don't know what they mean.
00:24:59.000 --> 00:25:05.000
Uh, and the first and most important one is the word surprise.
00:25:05.000 --> 00:25:16.000
Um, surprise is the thing we actually care about. That first statement about, uh, the sun rose today?
00:25:16.000 --> 00:25:18.000
That doesn't have very much surprise.
00:25:19.000 --> 00:25:22.000
And the second statement… Does.
00:25:23.000 --> 00:25:33.000
Surprise is a thing, uh, that we actually put numbers on, but I'm not gonna talk about the number. But we usually talk about it.
00:25:33.000 --> 00:25:34.000
per message.
00:25:35.000 --> 00:25:39.000
So, if you're listening to the Weather Channel.
00:25:39.000 --> 00:25:51.000
A message from the Weather Channel is "it snowed in Miami" or "the sun rose today". Each one of those is one message and we talk about the surprise in that message.
00:25:52.000 --> 00:26:07.000
There's another word that you've heard all the time and you can never, I know I can never, remember which direction this number goes and how it's related to surprise and that number is.
00:26:07.000 --> 00:26:10.000
That name is entropy.
00:26:10.000 --> 00:26:12.000
What is entropy?
00:26:12.000 --> 00:26:17.000
Well, entropy is exactly like surprise.
00:26:17.000 --> 00:26:23.000
Except, it's not surprise about… It snowed in Miami.
00:26:23.000 --> 00:26:27.000
It's surprise about everything you ever hear on the Weather Channel.
00:26:27.000 --> 00:26:36.000
Either, um, it's a high or low entropy source. The Weather Channel, um.
00:26:36.000 --> 00:26:45.000
has entropy that is like you calculating the average surprise across all the messages that you get.
00:26:46.000 --> 00:26:53.000
If it's low entropy, it's a TV station you don't want to listen to because it's not really telling you anything.
00:26:53.000 --> 00:26:56.000
If it's high entropy.
00:26:56.000 --> 00:27:03.000
and meaningful, uh, you do want to listen, because it's interesting to learn that it snowed in Miami.
00:27:03.000 --> 00:27:04.000
Umm.
00:27:04.000 --> 00:27:07.000
As long as you can extract meaning.
00:27:08.000 --> 00:27:20.000
News is sort of the everyday English word for the same idea. Dog bites man.
00:27:20.000 --> 00:27:24.000
Uh, not very surprising. Happens a lot.
00:27:24.000 --> 00:27:26.000
Man Bites Dog.
00:27:27.000 --> 00:27:29.000
Very surprising.
00:27:29.000 --> 00:27:32.000
One of those has a lot of news in it.
00:27:32.000 --> 00:27:37.000
So, news and surprise are almost the same thing.
00:27:37.000 --> 00:27:39.000
noise.
00:27:39.000 --> 00:27:46.000
Here's a brand new word, and super important for later when we start talking about noisy channels.
00:27:46.000 --> 00:27:58.000
Noise is the word that resolves this contradiction that you had in your mind. Um, noise has real entropy.
00:27:58.000 --> 00:28:14.000
Surprise! When you're listening to static, every new piece of static is genuinely surprising to you. You didn't know whether it was gonna be a one or a zero, so it's a surprise.
00:28:14.000 --> 00:28:25.000
But the fact that it's noise… Implies you aren't able to extract meaning.
00:28:26.000 --> 00:28:29.000
And, uh, finally.
00:28:27.000 --> 00:28:31.000
Or you're not interested in the meaning?
00:28:33.000 --> 00:28:37.000
Uh, actually, no. You can't extract the meaning.
00:28:37.000 --> 00:28:39.000
Okay.
00:28:37.000 --> 00:28:42.000
Like, interest doesn't play a role in this system.
00:28:44.000 --> 00:28:55.000
But being able to extract the meaning does, uh, because it turns out entropy is in the eye of the beholder. I'll give you an example.
00:28:48.000 --> 00:28:50.000
Okay.
00:28:56.000 --> 00:28:59.000
An encrypted message.
00:28:59.000 --> 00:29:07.000
You and me are both looking at this message in transit, so what we see is encrypted.
00:29:04.000 --> 00:29:05.000
Mmhm.
00:29:08.000 --> 00:29:15.000
I am the intended recipient. I have the key to this message.
00:29:15.000 --> 00:29:20.000
You are uninvolved in the transaction. You don't have the key.
00:29:21.000 --> 00:29:32.000
For you, looking at this message, the entropy is high! It's noise! You can't even tell what it is, because you don't have the key.
00:29:32.000 --> 00:29:35.000
I do have the key.
00:29:35.000 --> 00:29:41.000
So it's much lower entropy to me than it looks like to you.
00:29:41.000 --> 00:29:44.000
And the difference isn't interest.
00:29:44.000 --> 00:29:47.000
It can you extract the meaning?
00:29:47.000 --> 00:29:50.000
Okay, I…
00:29:47.000 --> 00:29:51.000
I have the key that lets me extract the meaning.
00:29:51.000 --> 00:29:59.000
Okay, you and I go to a party. There's 30 people at this party. There's 6 different conversations going on.
00:29:59.000 --> 00:30:11.000
Each one of those conversations, we can understand what they're talking about. We can find meaning in what they're talking about. But we don't care about 5 of those conversations. Those conversations are just noise to us.
00:30:11.000 --> 00:30:20.000
Um, I hear your words, I hear what you're saying, and the words you're saying are true in English.
00:30:20.000 --> 00:30:26.000
Um, we're basically ignoring them because they don't contain anything we care about.
00:30:25.000 --> 00:30:27.000
Right.
00:30:26.000 --> 00:30:33.000
And then you gave that the word noise. And that's a perfectly valid way to use the word
noise.
00:30:33.000 --> 00:30:37.000
But it's not the way I'm using the word noise.
00:30:35.000 --> 00:30:39.000
That's not the noise we're talking about.
00:30:39.000 --> 00:30:40.000
Exactly.
00:30:40.000 --> 00:30:43.000
These are not the noise, yeah.
00:30:40.000 --> 00:30:48.000
Uh, but for sure, the thing you said is true, uh, but it's not related to this stuff.
00:30:47.000 --> 00:30:51.000
Right. These are not the noise we're looking for.
00:30:48.000 --> 00:31:19.000
Um… Right. So, those five words… surprise, entropy, news, noise, information… Just knowing which direction those things go, and what they mean, um… that more entropy means more surprise, except that entropy is measured across the entire source, the whole Weather Channel.
00:31:19.000 --> 00:31:26.000
And surprise is like this message and that information.
00:31:22.000 --> 00:31:24.000
Okay.
00:31:26.000 --> 00:31:31.000
Is a thing very strongly related to news?
00:31:31.000 --> 00:31:35.000
And noise has entropy, has surprise.
00:31:35.000 --> 00:31:39.000
But isn't necessarily information.
00:31:39.000 --> 00:31:44.000
That's the… that set of 5 words, that's the most valuable thing I can tell you.
00:31:46.000 --> 00:31:48.000
Okay.
00:31:47.000 --> 00:31:48.000
on.
00:31:48.000 --> 00:31:50.000
Does that all make sense?
00:31:50.000 --> 00:31:51.000
Yeah.
00:31:51.000 --> 00:31:54.000
Yeah, let's keep going.
00:31:53.000 --> 00:31:55.000
All right.
00:31:55.000 --> 00:32:02.000
In the old days, um… Before we invented the special magic.
00:32:02.000 --> 00:32:06.000
Um, we did stuff.
00:32:06.000 --> 00:32:16.000
Uh, this whole… another whole way to talk about what… Shannon called communication theory is you've got.
00:32:16.000 --> 00:32:21.000
Symbols, input symbols, your message, whatever it is.
00:32:21.000 --> 00:32:27.000
And you're going to transform it in some way to send it through a channel.
00:32:27.000 --> 00:32:32.000
And it's gonna come out the other side in this other set of symbols.
00:32:33.000 --> 00:32:35.000
I'll give you some examples.
00:32:35.000 --> 00:32:38.000
Morse code.
00:32:38.000 --> 00:32:40.000
Okay.
00:32:40.000 --> 00:32:42.000
Huffman coding.
00:32:42.000 --> 00:32:43.000
Umm.
00:32:43.000 --> 00:32:47.000
Both of these are really interesting.
00:32:47.000 --> 00:32:50.000
For a reason.
00:32:50.000 --> 00:33:00.000
Um… The oldest thing in the world with this communication stuff was when we used substitution ciphers.
00:33:01.000 --> 00:33:07.000
So you would have 7 symbols that you wanted to communicate to someone?
00:33:07.000 --> 00:33:11.000
You would apply your transformation cipher.
00:33:11.000 --> 00:33:15.000
And you'd send them seven brand new symbols.
00:33:16.000 --> 00:33:22.000
The interesting thing about, um, simple substitution ciphers is.
00:33:22.000 --> 00:33:29.000
Uh, in English, E… or maybe space, is the most common character.
00:33:29.000 --> 00:33:33.000
And you made a one-to-one transformation.
00:33:33.000 --> 00:33:40.000
that did not change the probability of seeing the thing that means E, or space, or whatever.
00:33:41.000 --> 00:33:51.000
And that's how we break substitution ciphers. You look at a giant block of ciphertext, and you notice, hey, I see Q.
00:33:51.000 --> 00:33:57.000
Four times more than I see anything else. I'll bet when they say Hugh, what they mean is E.
00:33:58.000 --> 00:34:07.000
And it turns out, a couple of hundred years later, um, after somebody had, you know, started breaking those ciphers that way.
00:34:08.000 --> 00:34:12.000
Claude Shannon showed. Here's why that works.
00:34:12.000 --> 00:34:14.000
Umm.
00:34:15.000 --> 00:34:20.000
But Huffman Codes and Morse Code?
00:34:20.000 --> 00:34:23.000
Already know something.
00:34:23.000 --> 00:34:28.000
They know E is super, super common.
00:34:28.000 --> 00:34:31.000
And Q is not.
00:34:31.000 --> 00:34:36.000
In Morse code, do you know what you send when you mean E?
00:34:37.000 --> 00:34:39.000
No.
00:34:39.000 --> 00:34:44.000
In Morse code, E is a single dot.
00:34:45.000 --> 00:34:52.000
And the Q is, I'm not sure I've got this exactly right, but I think it's dash dash dot dash.
00:34:52.000 --> 00:34:57.000
It's long! It's long because you don't have to say it very much.
00:34:57.000 --> 00:35:03.000
And that's a total reflection of the interesting thing I started with.
00:35:04.000 --> 00:35:15.000
Q is surprising, in a way that E is not. You expect to see a lot of E's, so you don't need as many bits to say it.
00:35:15.000 --> 00:35:17.000
Q.
00:35:17.000 --> 00:35:19.000
is surprising.
00:35:19.000 --> 00:35:23.000
So if you're efficient, you'll use more bits to say it.
00:35:24.000 --> 00:35:29.000
So, Morse code and Huffman codes, in exactly the same way.
00:35:29.000 --> 00:35:33.000
are not a one-to-one encoding.
00:35:34.000 --> 00:35:41.000
You start with some number of English alphabetic characters.
00:35:41.000 --> 00:35:46.000
And you transform into some other alphabet.
00:35:46.000 --> 00:35:50.000
And the number of symbols doesn't line up.
00:35:50.000 --> 00:35:55.000
Messages that have E's get one output symbol.
00:35:55.000 --> 00:35:59.000
Uh, messages that have queues get four.
00:35:59.000 --> 00:36:03.000
So the length of the output is different than the length of the input.
00:36:04.000 --> 00:36:15.000
If… Instead of, um… calculating from some just base text. Morse code.
00:36:15.000 --> 00:36:27.000
worked because Morse looked around and decided, from everything that he knew, E was the most popular, and so he just assigned dot means E.
00:36:27.000 --> 00:36:34.000
In other words, our underlying model of what's expected.
00:36:34.000 --> 00:36:36.000
And what's a surprise?
00:36:36.000 --> 00:36:39.000
is fixed in time.
00:36:39.000 --> 00:36:46.000
We expect E. E is a dot. Nobody ever argues about it. That's that.
00:36:48.000 --> 00:37:02.000
If you are looking at some specific corpus, a particular play by Shakespeare, or whatever, and
you decide that you can analyze that text first.
00:37:02.000 --> 00:37:11.000
before you try to compress it by sending the minimum number of symbols, just like we did with Morse and Huffman.
00:37:11.000 --> 00:37:13.000
Umm.
00:37:13.000 --> 00:37:24.000
You can start by first figuring out what's the most common, and maybe you're even smarter than that, and you know about trigrams and digrams, whatever, it doesn't matter.
00:37:24.000 --> 00:37:30.000
You figure out the probabilities in advance, you turn that into a tiny little dictionary.
00:37:30.000 --> 00:37:35.000
And your message starts with the dictionary?
00:37:35.000 --> 00:37:39.000
And then you send symbols from the dictionary.
00:37:39.000 --> 00:37:44.000
It's not encryption. Anybody can look at your dictionary and do the right thing.
00:37:44.000 --> 00:37:45.000
Right.
00:37:44.000 --> 00:37:48.000
But now your probabilities aren't fixed.
00:37:48.000 --> 00:37:55.000
And because of those probabilities, your transformation makes the whole thing shorter.
00:37:55.000 --> 00:37:57.000
That's compression.
00:37:57.000 --> 00:38:00.000
In a nutshell. Not the best compression.
00:37:57.000 --> 00:37:58.000
Hmm.
00:38:00.000 --> 00:38:02.000
Pretty good compression.
00:38:02.000 --> 00:38:07.000
What if you don't send the dictionary?
00:38:07.000 --> 00:38:14.000
And what if the probabilities have nothing to do with the actual text? You just make it up.
00:38:14.000 --> 00:38:17.000
And you just send the message.
00:38:17.000 --> 00:38:20.000
With the same transformation.
00:38:20.000 --> 00:38:21.000
Guess what?
00:38:21.000 --> 00:38:28.000
That might not be compression, because you're not tying it to actually what's expected.
00:38:28.000 --> 00:38:31.000
But it is encryption.
00:38:31.000 --> 00:38:38.000
It's encryption because outside observers don't know what your model was.
00:38:38.000 --> 00:38:42.000
And it's unrelated to probability and length.
00:38:42.000 --> 00:38:45.000
And they can't tell. All they see is noise.
00:38:46.000 --> 00:38:51.000
But it's the same job underneath.
00:38:52.000 --> 00:38:56.000
Now, the thing that is exciting to me.
00:38:56.000 --> 00:39:01.000
Um… This is the whole reason.
00:39:01.000 --> 00:39:04.000
that I love information theory.
00:39:05.000 --> 00:39:13.000
Everything I've talked about so far is… Some integral number of symbols go into the pipe.
00:39:13.000 --> 00:39:18.000
And some integral number of symbols come out of the pipe.
00:39:18.000 --> 00:39:35.000
Maybe they're related, maybe they're not related, maybe they're different sizes, maybe… all that doesn't matter. What matters is… It's integral symbols to integral symbols, starting from the original one-to-one.
00:39:36.000 --> 00:39:39.000
But let me give you a new thing.
00:39:39.000 --> 00:39:47.000
What if… You built a model as you're looking at the message you're going to send.
00:39:48.000 --> 00:40:01.000
Uh, or you have one, or whatever. And that model, the particular
model I'm thinking of in this case, is a Markov model. Um… But that model is nodes and edges.
00:40:01.000 --> 00:40:09.000
And a node is a place in time where… You've already covered some part of the message.
00:40:09.000 --> 00:40:13.000
And you're going to move forward with the rest of the message.
00:40:13.000 --> 00:40:18.000
And there are edges coming out of that node that you've traveled before.
00:40:18.000 --> 00:40:33.000
Those edges are weights. If you've been at this node and seen E five times before, the edge out of this node labeled E has a weight of five.
00:40:33.000 --> 00:40:38.000
Or maybe you only have edges for 0 and 1.
00:40:40.000 --> 00:40:47.000
But this gives you a brand new way to think about probability.
00:40:47.000 --> 00:40:55.000
Instead of saying, oh, it's 15% that I'll see an E, or whatever, because that's the statistics in English.
00:40:55.000 --> 00:41:02.000
Instead, I'm at this node, and at this node, having seen what I've seen.
00:41:02.000 --> 00:41:08.000
I've crossed the one edge 80 times.
00:41:08.000 --> 00:41:12.000
and the zero edge six times.
00:41:12.000 --> 00:41:17.000
And now you have a real number. A real number.
00:41:17.000 --> 00:41:20.000
Um… Fraction.
00:41:20.000 --> 00:41:22.000
of.
00:41:22.000 --> 00:41:24.000
At this point in time.
00:41:24.000 --> 00:41:32.000
What can I expect? Based on probability that you've shared, or not shared, or it could be secret, it doesn't matter.
00:41:33.000 --> 00:41:41.000
The point is… If you are looking at the number line from 0 to 1.
00:41:41.000 --> 00:41:46.000
And you can see, based on the transition edges out of your node.
00:41:46.000 --> 00:41:48.000
That.
00:41:48.000 --> 00:41:55.000
With 70% probability, the next thing you need to say is a 1?
00:41:55.000 --> 00:42:02.000
Instead of shipping off a 1 or a 1, it doesn't matter, forget that.
00:42:02.000 --> 00:42:03.000
Instead of doing that.
00:42:04.000 --> 00:42:09.000
Take the part of that number line that you're looking at.
00:42:09.000 --> 00:42:12.000
That represents the 70%.
00:42:12.000 --> 00:42:14.000
Because that's the symbol.
00:42:14.000 --> 00:42:17.000
Uh, that it turns out that you wanted to send.
00:42:18.000 --> 00:42:20.000
Shrink the edges.
00:42:20.000 --> 00:42:22.000
of that number line.
00:42:22.000 --> 00:42:25.000
to just highlight.
00:42:25.000 --> 00:42:28.000
That 70% that matters.
00:42:28.000 --> 00:42:31.000
Um, you know.
00:42:31.000 --> 00:42:36.000
If this was English… And you were saying cat.
00:42:36.000 --> 00:42:41.000
Your number line is divided up into 26 possible.
00:42:41.000 --> 00:42:56.000
slots of different widths, where E is really wide and… or whatever, but it turns out C is super, super, uh, probable based on where you are, you're gonna shrink that number line just down to C.
00:42:44.000 --> 00:42:45.000
Mmhm.
00:42:57.000 --> 00:43:02.000
Every time you see a new symbol, you shrink. You shrink, you shrink, you shrink.
00:43:03.000 --> 00:43:06.000
While you are doing that.
00:43:06.000 --> 00:43:08.000
Sooner or later.
00:43:08.000 --> 00:43:13.000
The edges of that shrinked area.
00:43:13.000 --> 00:43:15.000
Would that contain your message?
00:43:15.000 --> 00:43:17.000
are gonna stop moving.
00:43:17.000 --> 00:43:19.000
Moving.
00:43:19.000 --> 00:43:25.000
in terms of how you would represent them, what bits you would chip off.
00:43:25.000 --> 00:43:30.000
As soon as your precision fails.
00:43:30.000 --> 00:43:32.000
becomes higher.
00:43:32.000 --> 00:43:41.000
then those ends, suddenly those ends are, like, you don't care about them. You can ship them off now. They're done. They're never going to change.
00:43:41.000 --> 00:43:51.000
Um… No matter how much further you go, your message is absolutely starting with 0.4.
00:43:51.000 --> 00:43:57.000
You can send 0.4, and since you sent 0.4 already.
00:43:58.000 --> 00:44:02.000
You can now take that window you're looking at.
00:44:02.000 --> 00:44:03.000
and bit shifted.
00:44:03.000 --> 00:44:07.000
to get the 0.4 off the top.
00:44:07.000 --> 00:44:10.000
And now you're just focused on the part that's still changing.
00:44:11.000 --> 00:44:14.000
That… that sounds complicated.
00:44:14.000 --> 00:44:17.000
But the interesting thing is this.
00:44:18.000 --> 00:44:21.000
The Sea of Cat.
00:44:21.000 --> 00:44:23.000
was so probable.
00:44:23.000 --> 00:44:28.000
You didn't even need an entire bit.
00:44:29.000 --> 00:44:31.000
to represent it.
00:44:31.000 --> 00:44:35.000
Instead of sending a whole symbol.
00:44:35.000 --> 00:44:40.000
You sent a tenth of a bit, a hundredth of a bit.
00:44:41.000 --> 00:44:44.000
Or maybe it's Q and you needed 5 bits.
00:44:45.000 --> 00:44:49.000
The thing you are assembling with arithmetic coding.
00:44:49.000 --> 00:44:54.000
is not a brand new sequence of symbols.
00:44:54.000 --> 00:44:58.000
You are picking a single.
00:44:58.000 --> 00:45:02.000
Infinite Precision Floating Point Number.
00:45:03.000 --> 00:45:06.000
It is your message.
00:45:06.000 --> 00:45:14.000
You're not gonna send 10 new numbers, 10 new symbols, 10 new letters. You're going to send somebody one symbol.
00:45:14.000 --> 00:45:17.000
single floating point number.
00:45:18.000 --> 00:45:25.000
That is arithmetic encoding. And arithmetic encoding IS the magic.
00:45:25.000 --> 00:45:30.000
You can actually hit the entropy floor.
00:45:30.000 --> 00:45:37.000
for the message you want to send. You can send the minimum number of bits.
00:45:37.000 --> 00:45:47.000
Hussman Coding, Morse Code, they hinted. Yeah, look, you can send way less than you thought you could send. Arithmetic Coding says.
00:45:47.000 --> 00:45:52.000
This didn't even take an entire bit to express.
00:45:52.000 --> 00:45:54.000
You can do that.
00:45:55.000 --> 00:46:02.000
To me, that's a miracle. When I first read and understood.
00:46:02.000 --> 00:46:08.000
That you could send just a part of a bit to communicate your meaning?
00:46:08.000
--> 00:46:09.000
I ACTUAL.
00:46:09.000 --> 00:46:12.000
I actually laughed out loud.
00:46:12.000 --> 00:46:14.000
You LOL'd?
00:46:14.000 --> 00:46:20.000
I did this was I learned this from a book called.
00:46:21.000 --> 00:46:32.000
Text Compression by Bell, Cleary, and Witten, and this was in Chapter 5, which was named From Probability to Bits.
00:46:32.000 --> 00:46:34.000
I laughed out loud.
00:46:34.000 --> 00:46:44.000
To this day, I will re-read that chapter because of how amazing this idea and algorithm is.
00:46:44.000 --> 00:46:51.000
They have a way to use the minimum amount of.
00:46:51.000 --> 00:46:54.000
bits to express the message.
00:46:54.000 --> 00:46:57.000
And that minimum might be smaller than one.
00:46:57.000 --> 00:46:59.000
Hmm. Okay.
00:46:57.000 --> 00:47:01.000
To me, that is a miracle.
00:47:01.000 --> 00:47:03.000
So.
00:47:03.000 --> 00:47:04.000
Umm.
00:47:06.000 --> 00:47:17.000
I think those are the important things. There's other stuff that you care about, like… And is the model that is underneath it public?
00:47:17.000 --> 00:47:21.000
Does the model change as you're looking at the message?
00:47:21.000 --> 00:47:32.000
Um… Now, there's a ton of things that you might care about, and what your transformation does.
00:47:32.000 --> 00:47:42.000
is based on that model. If that model is secret and invisible and not related to actual probability, this is an encryption algorithm.
00:47:42.000 --> 00:47:46.000
If it's based on probability in some way.
00:47:46.000 --> 00:47:50.000
a good way, then it's a compression model.
00:47:50.000 --> 00:47:53.000
If you're going to do encryption.
00:47:53.000 --> 00:48:01.000
Almost certainly, except there are some hiccups I'm not going to talk about, you want to compress first.
00:48:01.000 --> 00:48:04.000
Um, so that what you have.
00:48:04.000 --> 00:48:11.000
is already as high entropy as possible, and then encrypt what's left.
00:48:11.000 --> 00:48:16.000
It should already look like noise. To anybody?
00:48:14.000 --> 00:48:27.000
Now, okay, okay, let's stop there for a second. You said compressing it will make it high entropy. Is that because uncompressed, you might have a long string of.
00:48:27.000 --> 00:48:36.000
the same character or a long string of zeros or something, and by compressing it, you…
00:48:34.000 --> 00:48:41.000
That's an example of why, but the why itself is.
00:48:41.000 --> 00:48:45.000
that uncompressed, um, information.
00:48:45.000 --> 00:48:56.000
is full of, uh, redundancy. It's got lots of very predictable stuff that you could just throw away and reconstruct.
00:48:49.000 --> 00:48:50.000
Yeah.
00:48:56.000 --> 00:48:57.000
Mmhm.
00:48:56.000 --> 00:49:05.000
For instance, the classic experiment, um, is that you and I have two.
00:49:05.000 --> 00:49:11.000
multi-megapixel images. One's a dog, one's a cat.
00:49:11.000 --> 00:49:13.000
Um, and we both have them.
00:49:13.000 --> 00:49:14.000
Mm-hmm.
00:49:13.000 --> 00:49:18.000
And, uh, it… we get to a point where you need to tell me.
00:49:18.000 --> 00:49:21.000
which image I should be using next.
00:49:22.000 --> 00:49:27.000
The naive thing is, you could send me the image of the dog.
00:49:27.000 --> 00:49:30.000
And that's 5 megapixels, or whatever.
00:49:30.000 --> 00:49:37.000
The smart way is to discard everything that's not actually real.
00:49:37.000 --> 00:49:39.000
Surprising.
00:49:39.000 --> 00:49:42.000
Because there's only two images.
00:49:42.000 --> 00:49:50.000
you could send me 0 and mean use the cat one, and a 1 to use… to mean use the dog one. And in fact.
00:49:50.000 --> 00:50:05.000
This is the exact example that Shannon used when he was describing this problem. Um… That's compression, because… All that information is now redundant.
00:50:05.000 --> 00:50:13.000
From our point of view, you and me, because we have the images, and we know what the pixels are.
00:50:13.000 --> 00:50:15.000
So.
00:50:13.000 --> 00:50:17.000
To some third party, a zero or a one?
00:50:15.000 --> 00:50:21.000
So we both… we both have the dictionary. We both agree on the dictionary.
00:50:21.000 --> 00:50:23.000
Our dictionary is two images, right?
00:50:23.000 --> 00:50:28.000
Exactly. That is 100% the right way to say it.
00:50:27.000 --> 00:50:32.000
Right, so now we can… Passed by reference.
00:50:32.000 --> 00:50:36.000
That is also right, a zero or a one.
00:50:33.000 --> 00:50:35.000
Yeah.
00:50:35.000 --> 00:50:39.000
See, I'm… I'm not asleep yet.
00:50:36.000 --> 00:50:38.000
End.
00:50:38.000 --> 00:50:51.000
Ha! And that also expresses, uh, the idea that entropy is relative to the observer. Um, the fact that you and I both have the two images.
00:50:52.000 --> 00:50:55.000
Some person who doesn't have the images.
00:50:55.000 --> 00:51:02.000
Uh, they don't get it. They don't know what we're communicating. To them, that 0 or 1 is just noise.
00:50:58.000 --> 00:50:59.000
Right.
00:51:02.000 --> 00:51:03.000
Right.
00:51:03.000 --> 00:51:08.000
We talked about compressing and then encrypting.
00:51:08.000 --> 00:51:12.000
Um… And I think there's almost.
00:51:12.000 --> 00:51:22.000
only one thing left that I want to talk about, and that is, the whole thing behind this was a thing people used to think.
00:51:22.000 --> 00:51:38.000
Uh, they use, there's, we talk about noisy channels and we have noisy channels everywhere. Wifi, um, the radio, um, everything, everything is a noisy channel. There's some amount of crap on it.
00:51:38.000 --> 00:51:40.000
that interferes.
00:51:40.000 --> 00:51:43.000
And before Shannon.
00:51:43.000 --> 00:51:49.000
Our idea was that the fact that a channel was noisy.
00:51:49.000 --> 00:51:56.000
Put a limit on how much information we can communicate across it.
00:51:56.000 --> 00:51:59.000
um… Certainly.
00:51:59.000 --> 00:52:00.000
Up.
00:52:00.000 --> 00:52:03.000
that we could get a message across.
00:52:04.000 --> 00:52:07.000
And Shannon proved.
00:52:07.000 --> 00:52:18.000
that, nope, you're wrong! Turns out, if you're willing to say it the right way, it almost doesn't matter how noisy your channel is.
00:52:19.000 --> 00:52:25.000
For me to actually prove this would require me to say math, and it's not important. What's important is.
00:52:26.000 --> 00:52:30.000
Shannon proved everybody was wrong.
00:52:30.000 --> 00:52:37.000
The channel doesn't limit how much you can say, almost entirely.
00:52:37.000 --> 00:52:44.000
Um, there's papers about this, uh, that talk about every single thing I said.
00:52:44.000 --> 00:52:50.000
Um… You can go find those papers, I'll reference some of them.
00:52:50.000 --> 00:52:54.000
But Claude Shannon himself?
00:52:54.000 --> 00:53:03.000
What an incredibly fascinating person. Uh, he was born in 1916 in Petoskey, Michigan.
00:53:03.000 --> 00:53:19.000
Um… He, uh… This stuff where he talked about switching circuits and stuff, that was from his 1937 MIT master's thesis.
00:53:19.000 --> 00:53:30.000
Uh, he went to work at Bell Labs, and in 1948, that's when he wrote the document that this whole… everything I've just said is about.
00:53:30.000 --> 00:53:34.000
And he called it a mathematical theory of communication.
00:53:34.000 --> 00:53:37.000
During World War II.
00:53:37.000 --> 00:53:44.000
He did a whole bunch of stuff he couldn't talk about for decades. He worked on cryptography at Bell Labs.
00:53:44.000 --> 00:53:47.000
Um, but… But he.
00:53:47.000 --> 00:53:53.000
He was riding around the hallways of Bell Labs.
00:53:53.000 --> 00:53:57.000
On a on a unicycle juggling.
00:53:57.000 --> 00:54:06.000
Um, he actually… knew some of these other people that mattered.
00:54:06.000 --> 00:54:10.000
Like they talked to each other and it was fascinating and interesting and.
00:54:11.000 --> 00:54:14.000
This is a thing, a person I would want to know.
00:54:14.000 --> 00:54:20.000
Um… But I absolutely love.
00:54:20.000 --> 00:54:26.000
When somebody says, oh, that's impossible, and the other person says, you know what?
00:54:26.000 --> 00:54:32.000
It's not. And I'll show you. And then they do.
00:54:31.000 --> 00:54:32.000
Yep.
00:54:32.000 --> 00:54:36.000
I think that's great. I think that is greatness.
00:54:36.000 --> 00:54:44.000
Right there in front of you. When someone proves your… The thing you thought was impossible isn't?
00:54:45.000 --> 00:54:55.000
That person's a hero for me. And that is why Shannon is in my pantheon of heroes.
00:54:55.000 --> 00:54:56.000
Um…
00:54:55.000 --> 00:54:56.000
Hmm. Okay.
00:54:56.000 --> 00:54:57.000
So.
00:54:58.000 --> 00:55:04.000
I guess let me close this out and then I'll let you close this out.
00:55:03.000 --> 00:55:05.000
Okay.
00:55:04.000 --> 00:55:17.000
But… The real thesis of this is that information was actually never about meaning, at least the way we use the word.
00:55:17.000 --> 00:55:21.000
It has always been about surprise.
00:55:21.000 --> 00:55:30.000
And surprise is always relative to the observer. What you know, what you believe.
00:55:30.000 --> 00:55:35.000
Um, just like probability, um, it's about.
00:55:35.000 --> 00:55:39.000
What you know, it has nothing to do with what will be.
00:55:39.000 --> 00:55:45.000
Um, a thing that almost nobody actually understands about probability.
00:55:45.000 --> 00:55:46.000
So.
00:55:46.000 --> 00:55:47.000
Umm.
00:55:47.000 --> 00:55:50.000
From your background.
00:55:50.000 --> 00:55:51.000
In.
00:55:51.000 --> 00:55:57.000
Uh, networking and infrastructure, everything you've done that does communication.
00:55:57.000 --> 00:56:00.000
Have you personally.
00:56:00.000 --> 00:56:04.000
Felt the noisy channel trade-off directly?
00:56:04.000 --> 00:56:26.000
Um, have you… seen stuff degrade gracefully? Have you increased the, um… redundancy in the encoding of something to give it the power to survive a noisy channel. Has this ever affected you?
00:56:26.000 --> 00:56:36.000
Well, the, you know, the thing I can think of is, uh, you know, back when, uh, you and I have been doing this for a long time, uh, back in the days of the dial-up modem.
00:56:26.000 --> 00:56:29.000
Did you ever have a noise problem?
00:56:36.000 --> 00:56:48.000
Right? There's some… there's some noise. And we used to have to fight that all the time, remember? And the way we started to do that was, uh, error correcting, uh, code.
00:56:40.000 --> 00:56:41.000
Mmhm.
00:56:48.000 --> 00:56:50.000
got put in place.
00:56:50.000 --> 00:56:55.000
Which falls right out of Shannon's, uh…
00:56:50.000 --> 00:56:53.000
Uh, to… Right.
00:56:54.000 --> 00:56:55.000
Yeah. Okay.
00:56:55.000 --> 00:57:03.000
work. Error-correcting codes, fascinating on their own. I love them. They are a direct.
00:57:03.000 --> 00:57:10.000
Um… piece of this, an error correcting code, adds specific.
00:57:10.000 --> 00:57:16.000
Uh, mathematically provable, deducible, and replicable.
00:57:16.000 --> 00:57:18.000
Redundancy.
00:57:18.000 --> 00:57:26.000
To make… Uh, otherwise sparse signals survive noisy channels.
00:57:25.000 --> 00:57:40.000
Yeah, you know, before that, just detecting that there was a problem, like parity bits, you know, it couldn't fix the problem, but it could point out that there's a problem, and then maybe a whole packet will get retransmitted or something.
00:57:40.000 --> 00:57:56.000
Yeah, you can ask you can ask for it again, but just noticing and it turns out the actual complexity of the ECC error correcting code influences how big a problem you can detect.
00:57:56.000 --> 00:58:05.000
detect. If you write a simple one, it might be you can notice a bit was flipped, but your code is fast.
00:58:04.000 --> 00:58:05.000
Sure.
00:58:05.000 --> 00:58:20.000
But if you raise the polynomial higher, you can see that up to three bits were flipped, even though those added up to something that would trick the lower polynomial. You can see it and ask for it.
00:58:15.000 --> 00:58:16.000
Right.
00:58:16.000 --> 00:58:18.000
Right.
00:58:20.000 -->
00:58:33.000
for it again. Uh, at 3, you know, using the right one, you could fix it. At 4, maybe you'd see it, and you could ask for it again, but at 6, you'd be like, oh shit, I should've used a better one.
00:58:33.000 --> 00:58:42.000
Um… So, here's your chance, push back, whatever, close us up, tell us what to do.
00:58:37.000 --> 00:58:39.000
Yeah.
00:58:39.000 --> 00:58:50.000
Yeah, this is… you know, as you were talking about Markov models and edges and stuff, it just had me thinking about.
00:58:50.000 --> 00:58:53.000
the conversations we've had recently about LLMs.
00:58:53.000 --> 00:59:03.000
And and, you know, you're. Yeah. Yeah. I don't understand how they work, but I.
00:58:54.000 --> 00:58:56.000
It is the same thing.
00:58:59.000 --> 00:59:14.000
Tokens are an input stream and states in the internal model are often represented as nodes where a node actually conforms to.
00:59:14.000 --> 00:59:27.000
uh, many tokens, and the edges out of a node, the same. And, you know, the thing, uh, silly people call the LLM thinking.
00:59:27.000 --> 00:59:38.000
is, uh, moving among the states according to probability. But what we have today isn't AGI, it's not close to anything like that. It's.
00:59:36.000 --> 00:59:37.000
Sure.
00:59:38.000 --> 00:59:48.000
It's prediction. It's walking around that network. It's autocomplete. It's super, super good autocomplete. I love it, and I don't want to live without it, but…
00:59:45.000 --> 00:59:51.000
And it's… but it's… it's super, super related to what we've been talking about today.
00:59:51.000 --> 00:59:52.000
Yep.
00:59:52.000 --> 00:59:54.000
Yeah, great.
00:59:54.000 --> 00:59:59.000
Great. So that was great, Wolf.
00:59:59.000 --> 01:00:04.000
I've been looking forward to this one. We have…
01:00:02.000 --> 01:00:05.000
Did I manage to skip the boring stuff?
01:00:06.000 --> 01:00:10.000
Well, or I slept through it.
01:00:11.000 --> 01:00:27.000
I don't remember it. There's a lot of information here. As always, we have show notes in our, you can find it in your podcast player or you can find them on the website. Within the show notes, Wolf's got a bunch of links and some.
01:00:27.000 --> 01:00:34.000
Some other information, uh, that you might want to take a look at, because he just couldn't go into everything today during the episode.
01:00:34.000 --> 01:00:51.000
If you want to find those show notes other than your podcast player, our website is runtimearguments.fm. If you go to that page, you'll see the list of episodes. Click on this episode.
01:00:49.000 --> 01:00:53.000
And remember, H-T-T-P, no S.
01:00:52.000 --> 01:01:07.000
It just doesn't have an SSL cert, yeah. Yeah. Um… and also in the show notes will be, uh, uh, information on how you can contact us, send us feedback, ask us questions, whatever. Um…
01:01:07.000 --> 01:01:09.000
Tell us what to talk about.
01:01:07.000 --> 01:01:09.000
And again.
01:01:09.000 --> 01:01:26.000
Yeah, tell us what you'd like to hear. And again, runtimearguments.fm. Wolf and I are both on Mastodon. Our Mastodon addresses are listed there. Our email address is listed there. So yeah, check out the show notes. Along with the show notes is a transcript.
01:01:26.000 --> 01:01:35.000
of this episode, like always. So yeah, check it out. Anything else you wanna say, Wolf, before we say bye-bye?
01:01:34.000 --> 01:01:49.000
I do. I want to thank all our listeners, of course, and our friends who give us so much feedback and ideas, and especially my brand new friend, Rama.
01:01:49.000 --> 01:01:50.000
Damn.
01:01:49.000 --> 01:02:09.000
I hope he is listening to this episode, or some episode, and um… I just appreciate his, um… uh, input on us and the stuff we've done. It was… hearing from him genu… genuinely, uh, was enchanting.
01:02:10.000 --> 01:02:25.000
It's, it's, uh, it sort of lifts your day, doesn't it? You know, I had, uh, I should have mentioned it earlier, I had a, um, I had a doctor's visit a couple of days ago, and, uh, my doctor told me she was proud of me, and boy, did that change my day!
01:02:14.000 --> 01:02:16.000
It really does.
01:02:25.000 --> 01:02:34.000
I had lost a little bit of weight, and boy, I… I was… I was walking on clouds for a couple of days. It's… it's nice to get a compliment like that.
01:02:31.000 --> 01:02:33.000
I love them.
01:02:34.000 --> 01:02:39.000
But yeah, I mean, she gives me feedback every time. Sometimes it's like that.
01:02:40.000 --> 01:02:58.000
I… I hate it when my doctor tells me stuff I can't do. Like, uh… I don't eat all that much, and my day is… in terms of food, um, I drink a protein shake in the morning, and I showed my doctor what I drink, and she's like, absolutely do not drink that.
01:02:58.000 --> 01:03:07.000
Um, that is a nightmare. Uh, you are drinking, like, I don't know why they don't just name it sugar.
01:03:07.000 --> 01:03:13.000
Because that's what you're having. It is not good for you, and your life is terrible because you're drinking this.
01:03:08.000 --> 01:03:11.000
Or poison, yeah.
01:03:12.000 --> 01:03:21.000
Yeah. All right. Hey, Wolf, as always, thanks for podcasting with me. It's always a pleasure.
01:03:21.000 --> 01:03:24.000
And goodbye, everybody.
01:03:22.000 --> 01:03:24.000
Right back at you, buddy.
01:03:24.000 --> 01:03:25.000
Bye.