# Numerics.NET with Jeffrey Sax

An episode of [.NET Rocks!](https://invisiblenetwork.ai/podcast/130068596), 9 Sep 2026, 1 h 05 min.

Audio: https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/74930438/dotnetrocks_2019_numerics_dot_net.mp3

So what can numerics do for you? Carl and Richard talk to Jeffrey Sax about his work building Numerics.NET, a collection of general-purpose mathematical and statistical classes built for .NET. Jeffrey explains that numbers in a computer differ from real numbers in the world; for storage and computational efficiency, typical variable types in any programming language have limits on precision and size. How those variables are used can affect the outcome, with potentially disastrous consequences. Numerics.net provides exacting control of precision, as well as complex mathematical functions. It's far from free - but if you need it, you need it!

## Transcript

[0:01] Speaker 1: How'd you like to listen to. NET Rocks with no ads? Easy.
[0:05] Speaker 1: Become a patron. For just $ 5 a month, you get
[0:08] Speaker 1: access to a private RSS feed where all the shows
[0:11] Speaker 1: have no ads. $ 20 a month will get you that
[0:15] Speaker 1: and a special. NET Rocks patron mug. Sign up now
[0:18] Speaker 1: at patreon.dotnetrocks.com. Hey, and welcome back to. NET Rocks. I'm
[0:37] Speaker 1: Carl Franklin.
[0:38] Speaker 2: And I'm Richard Cavill.
[0:38] Speaker 1: We have been doing this stupid show for 2019 episodes.
[0:45] Speaker 1: What is wrong with us?
[0:47] Speaker 2: I don't know. It's a pattern. And this, you know, yeah,
[0:51] Speaker 2: can kind of anticipate that sometime next week might be
[0:53] Speaker 2: another one.
[0:54] Speaker 1: You know, I say it's a stupid show. I got
[0:55] Speaker 1: to admit, it got a lot smarter after episode 100.
[0:59] Speaker 2: I don't know why, but I don't know why. It
[1:02] Speaker 2: was really stupid. Before that. There was a period. I
[1:07] Speaker 2: remember drawing you out a Venn diagram. It's like, here
[1:10] Speaker 2: are the people who like a technical interview. Here are
[1:14] Speaker 2: the people that like music and comedy and so forth.
[1:18] Speaker 2: And the intersection between the two is small. Very small.
[1:22] Speaker 3: Yeah.
[1:22] Speaker 2: Okay. So, we made two shows.
[1:25] Speaker 1: Yeah. Spoiler alert. We are fixing to make a new Mondays.
[1:31] Speaker 2: Oh, don't give it away, man. I just did. It
[1:32] Speaker 2: might even be out by the time this thing publishes,
[1:34] Speaker 2: but who knows?
[1:35] Speaker 4: Maybe.
[1:36] Speaker 2: Maybe.
[1:36] Speaker 4: Who knows?
[1:37] Speaker 2: All right.
[1:37] Speaker 1: Well, this being episode 2019, we are going to talk
[1:42] Speaker 1: about what happened in 2019. And by the way, Jeffrey
[1:45] Speaker 1: Sachs is with us, and I just want to invite
[1:46] Speaker 1: Jeffrey to jump in if he wants to during this whole.
[1:49] Speaker 2: He probably remembers 2019, too. It was not that long ago.
[1:52] Speaker 2: It was not that long ago.
[1:54] Speaker 1: All right. So, believe it or not, I have a
[1:56] Speaker 1: few good news stories. For 2019. Nice.
[1:59] Speaker 2: You get tired of being the harbinger of doom, do you?
[2:03] Speaker 2: Not your style at all.
[2:04] Speaker 1: I am. Yeah, especially last 2018 was just dark.
[2:08] Speaker 2: Just depressing. Yeah.
[2:10] Speaker 1: So I will have some bad news too, but for
[2:12] Speaker 1: some good. The world's first malaria vaccine began rolling out
[2:16] Speaker 1: in Africa.
[2:17] Speaker 2: Exciting.
[2:18] Speaker 1: Malawi, Ghana, and Kenya began vaccinating children with RTSS, the
[2:22] Speaker 1: first malaria vaccine used in a large-scale public health program.
[2:26] Speaker 1: Our friend Bill Gates and Melinda Gates were behind that.
[2:30] Speaker 1: I don't know if they're actually our friends, but we've
[2:33] Speaker 1: seen them. Yeah, I met them. About 360,000 children per
[2:40] Speaker 1: year were expected to receive it during the pilot. So cool.
[2:44] Speaker 1: Ethiopia and Eritrea's peace efforts received the Nobel Peace Prize.
[2:50] Speaker 1: Very good.
[2:50] Speaker 2: Those two have been at loggerheads since their formations.
[2:53] Speaker 3: Yeah.
[2:54] Speaker 1: And see, it is possible. Nearly 100 captive whales and
[2:58] Speaker 1: orcas were returned to the wild. Russian authorities gradually released
[3:02] Speaker 1: animals from the notorious whale jail in the country's far east.
[3:07] Speaker 1: By November, the remaining 50 beluga whales had been freed,
[3:10] Speaker 1: completing the operation.
[3:12] Speaker 2: Wow.
[3:12] Speaker 1: Reminds me of Star Trek IV. Algeria and Argentina eliminated malaria.
[3:19] Speaker 2: Eliminated. How cool is that? Well, there's a bunch of
[3:21] Speaker 2: ways to tackle that, right? Like you can do it
[3:23] Speaker 2: by just controlling mosquitoes. Yeah. But also, you know, handing
[3:29] Speaker 2: out nets. Like there's all kinds of tools to try.
[3:31] Speaker 2: And it all works together. Ethiopia launched a massive tree
[3:36] Speaker 2: planting campaign. Millions participated in the country's green legacy reforestation effort.
[3:42] Speaker 2: The Ethiopian government reported that roughly 350 million seedlings were
[3:46] Speaker 2: planted in a single day in July, part of a
[3:49] Speaker 2: campaign aimed at planting billions of trees. The exact single-day
[3:54] Speaker 2: figure wasn't independently verified, but the enormous public participation was real. So,
[4:01] Speaker 2: now let's get to the depressing stuff. Well, maybe not depressing,
[4:04] Speaker 2: but you know. Donald Trump is impeached. For the first time.
[4:08] Speaker 1: Depressing? It's up to you, I think. Hong Kong pro-democracy protests.
[4:14] Speaker 2: Do not go well.
[4:14] Speaker 1: What began as... What's that?
[4:16] Speaker 2: Do not go well.
[4:17] Speaker 3: No.
[4:17] Speaker 1: What began as opposition to an extradition bill grew into
[4:21] Speaker 1: enormous demonstrations demanding democratic reforms and resistance to Beijing's increasing influence.
[4:27] Speaker 1: The protests continued for months and frequently resulted in violent
[4:30] Speaker 1: clashes with the police. Brexit crisis and Boris Johnson's rise. Richard,
[4:38] Speaker 1: do you remember we were sitting in a restaurant somewhere
[4:41] Speaker 1: and you looked over and you said, hey, that's Boris Johnson.
[4:45] Speaker 1: Do you remember that? It was in London.
[4:46] Speaker 3: Yeah.
[4:47] Speaker 1: We were at NDC London.
[4:48] Speaker 5: Yeah.
[4:48] Speaker 1: And you're like, that's Boris Johnson. And I said.
[4:51] Speaker 2: He was in the restaurant.
[4:52] Speaker 1: I said, who? Because I didn't know.
[4:56] Speaker 2: He was the mayor of London one point. And he
[4:58] Speaker 2: was kind of funny when he was the mayor of London.
[5:00] Speaker 2: The quirky guy.
[5:01] Speaker 1: I think this was before his further rise, so I
[5:05] Speaker 1: really didn't know who he was.
[5:06] Speaker 2: Before he was prime minister. Yeah.
[5:08] Speaker 1: But, you know, we did see him. Theresa May repeatedly
[5:11] Speaker 1: failed to get her Brexit agreement through parliament and resigned.
[5:14] Speaker 1: Boris Johnson became prime minister, negotiated a revised deal, and
[5:17] Speaker 1: then won a huge conservative majority in December. Christchurch mosque massacres.
[5:25] Speaker 1: Bad news. This was in New Zealand, your home country.
[5:30] Speaker 1: A white supremacist attacked two mosques in Christchurch on March 15th,
[5:34] Speaker 1: killing 51 people. But the massacre led New Zealand to
[5:38] Speaker 1: rapidly tighten its gun laws.
[5:39] Speaker 2: Yeah, what a concept.
[5:40] Speaker 1: Notre Dame Cathedral set ablaze on April 15th.
[5:44] Speaker 2: It was an accident.
[5:45] Speaker 4: Yeah.
[5:46] Speaker 1: On April 15th, the world watched as the 850-year-old cathedral
[5:50] Speaker 1: in Paris burned. Its famous spire collapsed and much of
[5:54] Speaker 1: the medieval roof was destroyed, although firefighters managed to save
[5:57] Speaker 1: the main structure. And many important artworks and relics. And
[6:01] Speaker 1: they rebuilt it. It is rebuilt now, yeah. I haven't
[6:03] Speaker 1: seen the new one, but it's on my list. And
[6:05] Speaker 1: you can still see the guy in the tower.
[6:08] Speaker 2: Going, yes, master.
[6:09] Speaker 1: Boeing 737 MAX crashes in worldwide grounding. Was this the
[6:19] Speaker 1: beginning of the end for Boeing?
[6:21] Speaker 2: Oh, no. This was towards the end of the end.
[6:24] Speaker 1: Towards the end of the end.
[6:26] Speaker 2: When you get to the point of actually building an
[6:27] Speaker 2: unsafe aircraft and ignoring the fact that your engineers are
[6:30] Speaker 2: telling you it's unsafe until it starts killing people, you
[6:32] Speaker 2: are very lost.
[6:34] Speaker 1: Yeah. Just a couple more. The U.S.-China trade war escalates.
[6:39] Speaker 1: ISIS leader Abu Bakr al-Baghdadi killed. Mass shootings in El
[6:46] Speaker 1: Paso and Dayton, Ohio. And worldwide protest movements erupt. Beyond
[6:53] Speaker 1: Hong Kong, 2019 saw enormous anti-government demonstrations in Chile, Lebanon, Iraq, Algeria, Sudan, Iran, Bolivia,
[7:02] Speaker 1: and Haiti, among others. So, people not happy.
[7:07] Speaker 3: No. Yeah.
[7:09] Speaker 2: You done? Yeah, I guess I'm done. Let me give
[7:11] Speaker 2: you one more grim one.
[7:12] Speaker 1: Okay.
[7:13] Speaker 2: Right at the end of December 2019, authorities in Wuhan,
[7:16] Speaker 2: China report an unusual pneumonia.
[7:18] Speaker 1: Interesting.
[7:19] Speaker 2: Yeah.
[7:19] Speaker 1: That might have been COVID.
[7:21] Speaker 2: Might have been. Yeah.
[7:22] Speaker 1: Yeah, because that's when.
[7:24] Speaker 2: It really started. All right. You ready for some space stuff? Sure.
[7:27] Speaker 2: Go for it. January, the New Horizons spacecraft, the one
[7:30] Speaker 2: that had gone to Pluto, still going, had its next
[7:34] Speaker 2: close flyby to a Kuiper belt object. Today, we call
[7:37] Speaker 2: that Kuiper belt object Arrokoth, although at the time they
[7:40] Speaker 2: called it Ultima Thule. So that's over a billion kilometers
[7:44] Speaker 2: beyond Pluto. That's how fast that thing was moving. And
[7:47] Speaker 2: was basically a primordial solar system object. It was literally
[7:51] Speaker 2: two blobs of rock and ice stuck together in a
[7:54] Speaker 2: very low gravitational space. But, you know, just an extraordinary
[7:58] Speaker 2: scene back to the early history of the solar system
[8:01] Speaker 2: that way. That's 2019. It's been seven more years. New
[8:05] Speaker 2: Horizons is still whizzing out at very high speed. Also
[8:09] Speaker 2: in January, China's Chang'e 4 lander lands on the far
[8:13] Speaker 2: side of the moon. First time ever in the Von
[8:15] Speaker 2: Karman crater. It has the U-2-2 rover on board. I
[8:21] Speaker 2: think that means little rabbit. It will start its exploration
[8:25] Speaker 2: in the previous year. China had also put up their
[8:29] Speaker 2: relay satellite so they could communicate to the far side
[8:31] Speaker 2: of the moon. In February, back on Mars, the Opportunity
[8:34] Speaker 2: Rover finally ends its mission after 15 years. Designed about
[8:38] Speaker 2: the size of a golf cart, designed for operations for
[8:40] Speaker 2: 90 days, ran for 15 years. Now, in 2019, it
[8:45] Speaker 2: was when it declared its mission over. Its last communication
[8:50] Speaker 2: was actually in 2018. There had been a major dust
[8:54] Speaker 2: storm in 2018 on Mars. And that was always the
[8:57] Speaker 2: challenge with these rovers is that there was spirit and opportunities.
[9:00] Speaker 2: They are all solar-based, and so the dust covers up
[9:03] Speaker 2: the solar panels. But the atmosphere of Mars occasionally would
[9:07] Speaker 2: create dust levels that would clean those solar panels off. Classically,
[9:13] Speaker 2: at that time, Opportunity had its own Twitter account, and
[9:16] Speaker 2: so the operators would take the telemetry data and turn
[9:18] Speaker 2: it into text as a tweet from Opportunity. And so
[9:22] Speaker 2: Opportunity's last tweet was, my battery's getting low, and it's
[9:26] Speaker 2: getting dark. Of course, the reality for a device like
[9:28] Speaker 2: that is that if it doesn't have enough power to
[9:31] Speaker 2: keep its electronics warm overnight, those will freeze and it
[9:34] Speaker 2: will not power back up. And that's what happened to Opportunity. Bummer.
[9:37] Speaker 2: In March, the Crew Dragon by SpaceX does its first
[9:41] Speaker 2: flight to the International Space Station. It's completely autonomous. It
[9:44] Speaker 2: actually does its own docking. There's nobody on board. It
[9:46] Speaker 2: works perfectly. It then leaves the station and de-orbits and
[9:51] Speaker 2: lands in the ocean and is recovered successfully. All good news.
[9:55] Speaker 2: Here's the bad news. The following month, that same capsule
[9:58] Speaker 2: is now having an abortion. system test. This was an
[10:01] Speaker 2: unmanned test tethered to the ground firing the Super Dracos
[10:05] Speaker 2: and something goes terribly wrong and the vehicle is destroyed
[10:08] Speaker 2: in the explosion. Bummer. There was a leak in the
[10:11] Speaker 2: helium system for the Super Dracos that created a mass detonation.
[10:17] Speaker 2: NASA actually considered it lucky. It was a huge gift.
[10:19] Speaker 2: You know, you'd hate to have that occur during an
[10:22] Speaker 2: actual flight. It'll delay things for the rest of the year.
[10:27] Speaker 2: They won't flag it until 2020, although that will actually
[10:29] Speaker 2: deliver crew successfully. They'll do a new abort system, use tests,
[10:33] Speaker 2: including an in-flight unmanned abort. Also in April, also on Mars,
[10:37] Speaker 2: the InSight lander will get its first telemetry by measuring
[10:40] Speaker 2: a Mars quake to start mapping the interior of Mars.
[10:43] Speaker 2: So opportunity's done, but the InSight lander's doing its thing. Uh,
[10:47] Speaker 2: also in April, the Israeli nonprofit, uh, company space IL
[10:52] Speaker 2: launched the bear sheet lander, the first commercial privately funded
[10:56] Speaker 2: lunar lander ever flies on a Falcon nine. It originally
[10:59] Speaker 2: been part of the lunar X prize, which started back
[11:02] Speaker 2: in 2017 and 2007 and had ended in 2018. So
[11:05] Speaker 2: it was actually over. It did make it to the moon,
[11:08] Speaker 2: but failed on its landing, which is not that unusual, uh,
[11:12] Speaker 2: because it's really hard to land on the moon. In fact,
[11:14] Speaker 2: Later in the year, in July, India will launch their
[11:16] Speaker 2: Chandran-2 to the moon, and their orbital will work perfectly,
[11:19] Speaker 2: but their Vikram lander will crash on its descent towards
[11:22] Speaker 2: the South Pole. Also in April, the Event Horizon Telescope
[11:28] Speaker 2: publishes the first image of a black hole in the
[11:31] Speaker 2: center of the galaxy, Messier 87. I remember. So this
[11:35] Speaker 2: is using a technology called very long baseline infrometry, where
[11:38] Speaker 2: they actually harness data from a dozen or so different
[11:41] Speaker 2: radio telescopes around the world. to create a sort of
[11:44] Speaker 2: super radio telescope. And then they composite the image into
[11:48] Speaker 2: what they, um, black hole look like. And it turned
[11:51] Speaker 2: out looked exactly like the one in interstellar, uh, which, which, uh,
[11:55] Speaker 2: there's a good reason for that. Uh, Christopher Nolan hired
[11:57] Speaker 2: a Caltech physicist named Kim Thorne, who actually figured out
[12:01] Speaker 2: what it should look like. And, uh, the, EHT actually
[12:04] Speaker 2: validated that.
[12:05] Speaker 1: And it was very low resolution, if I remember correctly.
[12:07] Speaker 2: Of course. But, you know, you're literally talking billions of
[12:10] Speaker 2: light years away. So it's a miracle it works at all.
[12:12] Speaker 2: But it's just, you know, we're getting new superpowers. In May,
[12:15] Speaker 2: SpaceX launches the very first batch of Starlink satellites, an
[12:19] Speaker 2: array of 60. Yeah. In August, SpaceX does their first
[12:23] Speaker 2: flight of Starhopper. This was a funny little looking can
[12:27] Speaker 2: of a thing with some legs on it. Flew just
[12:29] Speaker 2: a short distance and landed again. It's the beginning of Starship,
[12:33] Speaker 2: but the really important thing is this is their new
[12:35] Speaker 2: Raptor engine, a methane liquid oxygen engine. And it's also
[12:39] Speaker 2: full flow combustion. So that was the first time that
[12:41] Speaker 2: a full flow combustion stage combustion engine had ever flown.
[12:45] Speaker 2: And it'll get bigger for that. And one little piece
[12:47] Speaker 2: of additional Boeing news alongside killing people in their dangerous 737,
[12:51] Speaker 2: which admittedly is now fixed.
[12:53] Speaker 3: Yeah.
[12:53] Speaker 2: And I have flown on it. Uh, Boeing flies their
[12:56] Speaker 2: Starliner to the International Space Station for the first time,
[12:58] Speaker 2: except for that part where it never got to the
[13:00] Speaker 2: space station.
[13:01] Speaker 1: Right.
[13:02] Speaker 2: Software bugs in the system cause the vehicle to decide
[13:07] Speaker 2: that it's actually farther along the mission than it actually is.
[13:09] Speaker 2: And it tries to correct its orientation inappropriately. And before
[13:13] Speaker 2: they can send commands to get it to stop doing that,
[13:16] Speaker 2: it burns up so much of its maneuvering fuel. That
[13:19] Speaker 2: it's unable to make it to the space station. They
[13:20] Speaker 2: do get control of it, fix the problem with the
[13:23] Speaker 2: software and successfully de-orbit and recover the vehicle. But that
[13:27] Speaker 2: will only be the beginning of a whole series of
[13:29] Speaker 2: terrible problems for Starliner that are not resolved to this day.
[13:33] Speaker 1: Hey, when you mentioned Starlink, you were using Starlink, right?
[13:36] Speaker 1: Are you using it now?
[13:37] Speaker 2: I wasn't at that point. It would be later. I
[13:40] Speaker 2: would apply for the beta and get into the beta
[13:42] Speaker 2: in a couple of years after that. But are you
[13:43] Speaker 2: using it right now? I'm not right now, no. It's
[13:47] Speaker 2: my backup. I have fiber now to this house in
[13:49] Speaker 2: the middle of nowhere, which is ridiculous. It is ridiculous.
[13:52] Speaker 2: Starlink is the backup. Okay, onto the computing side of things.
[13:56] Speaker 2: A whole bunch of stories around OpenAI. So February of
[13:59] Speaker 2: 2019 is the release of GPT-2. And remember that the
[14:05] Speaker 2: mantra of OpenAI had been to do AI out in
[14:07] Speaker 2: the open, do it also open source, right? That's why
[14:09] Speaker 2: it's called OpenAI. But they come to the conclusion that
[14:13] Speaker 2: their largest model in GPT-2, which was a 1.5 billion
[14:16] Speaker 2: parameter model, oh, how quaint, is too powerful and that
[14:20] Speaker 2: it shouldn't be shared publicly. So they only release a
[14:22] Speaker 2: very tiny version of it just to show its potential.
[14:26] Speaker 2: And they are starting to reconsider what the company's all about.
[14:29] Speaker 2: Part of this is they're working on a paper, which
[14:31] Speaker 2: they'll publish in 2020, about... the scale necessary to build
[14:36] Speaker 2: these language models and that being a not-for-profit is just
[14:39] Speaker 2: not feasible. It's not the way they're going to be successful.
[14:42] Speaker 2: And so in March, they'll restructure OpenAI to become what
[14:44] Speaker 2: they call a capped profit company, which is funny because
[14:48] Speaker 2: this is all around the time that likely they're talking
[14:49] Speaker 2: to Microsoft because in June, Kevin Scott wrote an email
[14:54] Speaker 2: to Bill Gates and Satya Nadella called Thoughts on OpenAI.
[14:59] Speaker 2: where he talked about the fact that OpenAI and DeepMind
[15:02] Speaker 2: and Google Brain were well ahead of Microsoft and that
[15:05] Speaker 2: there was an opportunity to invest in OpenAI and put
[15:09] Speaker 2: them over onto Azure and maybe have a relationship. That,
[15:12] Speaker 2: of course, will happen in July. Sam Altman and Nadella
[15:15] Speaker 2: will be on stage together. We'll announce an exclusive cloud partnership.
[15:19] Speaker 1: I do remember that.
[15:20] Speaker 2: And finally, in December, Microsoft will put a billion dollars
[15:23] Speaker 2: into OpenAI, although how much of that they'll spend buying Azure,
[15:27] Speaker 2: we don't really know. Related to one of your stories
[15:31] Speaker 2: early on about China, in March, the UK publishes a
[15:35] Speaker 2: report about Huawei, concerns about Chinese security with kill switches
[15:41] Speaker 2: on 5G networking and things like that. The UK has
[15:45] Speaker 2: a group that's actually getting into the software that drives
[15:48] Speaker 2: all of those things, but they consider the software such
[15:50] Speaker 2: poor quality that they can't even verify its reliability or
[15:54] Speaker 2: security and consider it unsafe to use. That will result
[15:59] Speaker 2: in May, the Trump administration will literally say, you can't
[16:03] Speaker 2: use Huawei stuff, full stop. And it'll spread around all
[16:06] Speaker 2: of the Western world, really. That's around the time the
[16:09] Speaker 2: first 5G networks actually get deployed in the US, in April.
[16:13] Speaker 2: Also in April, but on April 2nd, not April 1st,
[16:16] Speaker 2: probably deliberately, Google shuts down, Google +. Can't do that
[16:21] Speaker 2: on April 2nd, it's not funny. Okay, September, Visual Studio 2019.
[16:26] Speaker 2: with Framework 4.8, but also. NET Core 3.0, which is
[16:31] Speaker 2: really the point where you kind of hit parity, so
[16:34] Speaker 2: the features, In the old framework that we wanted in
[16:37] Speaker 2: the open source cloud platform version, they were all there
[16:39] Speaker 2: now and more or less complete.
[16:41] Speaker 1: That's where I started using it.
[16:42] Speaker 4: Yeah.
[16:42] Speaker 1: I started using it at three.
[16:44] Speaker 2: Yeah, and it was the point where it's like, hey,
[16:46] Speaker 2: this is the end of the road. There won't be a.
[16:48] Speaker 2: NET Core 4. There won't be two versions of. NET
[16:50] Speaker 2: after this. There'll just be five, although you know the
[16:52] Speaker 2: old framework, 4.8 will never go anymore. And in December,
[16:56] Speaker 2: they'll put out 3.1, fixing some of the problems. Two
[16:59] Speaker 2: more stories. October. Google's Sycamore processor. So the first real
[17:04] Speaker 2: public demonstration of what we would call quantum supremacy. This
[17:09] Speaker 2: was one of those chandeliers soaked in liquid helium style
[17:12] Speaker 2: quantum computers, very fragile. It had 54 qubits, only 53
[17:15] Speaker 2: of them were functioning, did a 200 second run doing
[17:19] Speaker 2: a random number sampling task. Google argued that this would
[17:23] Speaker 2: take 10,000 years with a traditional computer and they finished
[17:25] Speaker 2: it in 200 seconds. IBM, of course, challenged the numbers
[17:28] Speaker 2: and then demonstrated various strata on quantum strategies to get
[17:32] Speaker 2: pretty good results. I think they're fastest when they got
[17:34] Speaker 2: it down to a couple of days, but whatever. But
[17:39] Speaker 2: it is in a wave of advancement in quantum computing.
[17:43] Speaker 2: And last but not least, because I do think it
[17:45] Speaker 2: impacts a lot of the conversations we're having today in
[17:47] Speaker 2: December at Amazon's reInvent conference, They talk about Graviton2, which
[17:54] Speaker 2: was custom ARM processors for workloads in EC2. They're promising
[17:59] Speaker 2: 40% better price performance. Up until this point, for the
[18:02] Speaker 2: most part, the cloud had been regular machines bought with
[18:07] Speaker 2: Intel and AMD chips and so forth, bought by the
[18:10] Speaker 2: big vendors, already pre-racked and so forth. But now the
[18:12] Speaker 2: cloud companies, Amazon being one, but also Microsoft and Google
[18:15] Speaker 2: as well. Google was already going into their TensorFlows and
[18:18] Speaker 2: things like that. Are starting to build their own hardware
[18:21] Speaker 2: to optimize for cloud workloads. And that's going to change
[18:24] Speaker 2: things going forward.
[18:25] Speaker 4: Yeah.
[18:25] Speaker 2: Those are my stories, friend.
[18:27] Speaker 1: All right. Well, that brings us to better know a framework.
[18:30] Speaker 2: Awesome.
[18:31] Speaker 1: Or something. Better Know Something, maybe we should call it.
[18:33] Speaker 1: Better Know Something.
[18:35] Speaker 2: That would have been a great title.
[18:37] Speaker 1: All right, man, what do you got? Okay, so for
[18:47] Speaker 1: those of you paying attention to my other shows, Rocky
[18:51] Speaker 1: Latka and I started with him as co-host on Code
[18:55] Speaker 1: It With AI, which is presented by DevExpress.
[19:00] Speaker 3: And we....
[19:02] Speaker 1: Just put Quen 3.8 local to the test. Quen 3.8
[19:08] Speaker 1: is a model, and I ran it on Ollama. And
[19:11] Speaker 1: we had done on episodes 29 and 30 with Jeff Fritz,
[19:15] Speaker 1: we had done comparisons between local models running in this
[19:20] Speaker 1: hardware that I have, right, in Ollama.
[19:22] Speaker 4: Yeah.
[19:23] Speaker 1: And Quen 3.6 was the winner by far. So I
[19:27] Speaker 1: was thinking Quen 3.8, going to be great.
[19:30] Speaker 2: Yeah.
[19:31] Speaker 1: Not so much. Interesting. because Alama allocates context depending on
[19:43] Speaker 1: the amount of VRAM you have.
[19:47] Speaker 2: So I got 30, 35 or 32, 32 K based
[19:52] Speaker 2: on the amount of VRAM that I had, but I
[19:54] Speaker 2: don't think it was enough because it was, it was
[19:57] Speaker 2: doing the confusing things that the other models had done earlier,
[20:01] Speaker 2: which is telling you that it, you know, couldn't reach
[20:04] Speaker 2: the API, giving you some weird nil error, and stopping.
[20:11] Speaker 2: So Rocky tells me about llama.cpp. And llama.cpp is an
[20:18] Speaker 2: alternative to Ollama that it allows you to host models.
[20:24] Speaker 1: But the cool thing about it is that it can
[20:27] Speaker 1: take the compute heavy stuff and run that in VRAM.
[20:31] Speaker 1: And then it can use your system RAM for the
[20:33] Speaker 1: rest of it. Now, I don't know if it swaps
[20:35] Speaker 1: things in and out, system RAM, VRAM, or it just
[20:39] Speaker 1: runs some things that don't require such a heavy load
[20:45] Speaker 1: in system RAM, but that's it. So then there are
[20:49] Speaker 1: only certain models that can run, but there's a QEN
[20:52] Speaker 1: model that runs that's bigger that I'm going to try
[20:57] Speaker 1: for next week's Code with AI. Well, I say next week.
[21:01] Speaker 1: We're recording this on August 21st. or 20th, rather.
[21:09] Speaker 2: I'm sorry.
[21:10] Speaker 1: We're recording this on August 21st, and it won't come
[21:15] Speaker 1: out until September 10th. So the episode would be 43,
[21:20] Speaker 1: and that would be on last week, September 2nd. So
[21:25] Speaker 1: if you want to see what that does, I'm going
[21:27] Speaker 1: to have a live demo of it. I'm going to
[21:29] Speaker 1: try it, but llama.cpp. Know it, learn it, love it.
[21:32] Speaker 1: Who's talking to us today, Richard?
[21:34] Speaker 2: I had to go back. We're doing mathematics today, so
[21:37] Speaker 2: I had to go back to a mathematics show. So,
[21:38] Speaker 2: I went way back. 1252, which is from 2016. Our
[21:42] Speaker 2: friend Seth Juarez talking about his library, NUML. Because secretly,
[21:49] Speaker 2: Seth Juarez, as charming and entertaining as he was on
[21:51] Speaker 2: Channel 9, actually a maths guy. Got a real, you know,
[21:54] Speaker 2: got a master's degree. Super smart, you know. Great at
[21:58] Speaker 2: explaining the whole.
[21:59] Speaker 1: Oh, yeah.
[22:00] Speaker 2: LLM wave too. We've done some cool shows with it.
[22:03] Speaker 2: So this is a comment from, uh, Kirian O'Neill, who
[22:06] Speaker 2: says another scheduling library along the lines of courts.net. We
[22:09] Speaker 2: were talking about that library as well. Worth mentioning is
[22:12] Speaker 2: hang fire. The advantage I've gained from using hang fires
[22:15] Speaker 2: that it runs in process. It doesn't require a separate
[22:18] Speaker 2: window service. And depending on your use cases can be
[22:20] Speaker 2: a big advantage. And it's one less thing to think
[22:23] Speaker 2: about when deploying because, yeah, pushing out stuff to count
[22:26] Speaker 2: on Windows services and stuff is ugly if you're going
[22:29] Speaker 2: to try and make things work properly for you. But,
[22:32] Speaker 2: you know, this was a whole conversation we had with
[22:34] Speaker 2: Seth about how you do these long compute workloads when
[22:36] Speaker 2: you're working out things like machine learning models and so
[22:39] Speaker 2: forth where they may run for a couple of days.
[22:41] Speaker 2: And you don't want to just tie up the whole machine.
[22:43] Speaker 2: You want to run them in the background. Yep. So, Kirian,
[22:45] Speaker 2: thank you so much for your comment. And a copy
[22:47] Speaker 2: of Music to Code By is on its way to you.
[22:48] Speaker 2: And if you'd like a copy of Music to Code By,
[22:50] Speaker 2: write a comment on the website at. netrocks. com or on
[22:53] Speaker 2: the Facebooks. We publish every show there. And if you
[22:55] Speaker 2: comment there and I read it in the show, we'll
[22:56] Speaker 2: send you a copy of Music to Code By.
[22:57] Speaker 1: And if you want to just go get Music to
[22:59] Speaker 1: Code By, it's at musictocodeby.net.
[23:01] Speaker 4: All right.
[23:02] Speaker 1: We've taken up so much time with this intro stuff.
[23:05] Speaker 1: I think we ought to take our break now so
[23:07] Speaker 1: we can have an uninterrupted talk with Jeffrey Sachs. So
[23:11] Speaker 1: we'll be right back after these very important messages. And
[23:17] Speaker 1: we're back. It's. NET Rocks. I'm Carl Franklin. That's Richard Campbell.
[23:21] Speaker 2: Hey.
[23:21] Speaker 1: And also here with us is Jeffrey Sachs.
[23:24] Speaker 3: Hi. Hi.
[23:26] Speaker 1: Jeffrey Sachs is the founder and sole developer of Numerics.net,
[23:30] Speaker 1: a set of numerical computing libraries for.
[23:33] Speaker 4: NET.
[23:34] Speaker 1: He has been building the library since 2005 when the
[23:37] Speaker 1: first version was released for. NET 1.1. Over the years, Numerics.net
[23:42] Speaker 1: has been used for applications ranging from calculating radiation doses
[23:46] Speaker 1: for cancer treatment and developing truck braking systems to building
[23:50] Speaker 1: support software for atomic force microscopes. Jeffrey's work on numerical
[23:56] Speaker 1: software predates.
[23:57] Speaker 2: NET.
[23:58] Speaker 1: Jeffrey, welcome.
[23:59] Speaker 4: Hi.
[24:00] Speaker 5: Thank you. Thanks for having me.
[24:02] Speaker 2: You're welcome.
[24:03] Speaker 1: Sorry about the long intro. If you're okay with it,
[24:07] Speaker 1: we can go a little longer today. But my first
[24:10] Speaker 1: question is, what is numerical computing?
[24:14] Speaker 5: I would say numerical computing is the task of computing
[24:19] Speaker 5: values to a requested accuracy with limited precision. And do
[24:28] Speaker 5: that as fast as possible.
[24:30] Speaker 1: So it's basically just math equations in code. Essentially, like
[24:36] Speaker 1: a MATLAB kind of thing?
[24:39] Speaker 4: Yeah, that's what it comes down to.
[24:41] Speaker 1: Simulink, yeah.
[24:43] Speaker 2: So this is outside the spectrum of what the built-in
[24:45] Speaker 2: mathematical functions in. NET could do?
[24:50] Speaker 4: Yes, way beyond, actually.
[24:52] Speaker 2: Right.
[24:54] Speaker 5: Vectors, matrices, probability, and statistics, all kinds of fun stuff.
[24:59] Speaker 1: So it's all based on the fundamental stuff that's in
[25:01] Speaker 1: the framework, but then you do these... abstractions on top
[25:05] Speaker 1: of it that give you the higher level.
[25:08] Speaker 4: That's right.
[25:09] Speaker 1: Yeah, constructs.
[25:10] Speaker 2: All right, let's dust off our math chop, see if
[25:13] Speaker 2: we remember any of this stuff from school. Holy man. So,
[25:19] Speaker 2: I mean, just in your comment alone, you were talking
[25:20] Speaker 2: about things like radiation doses. So, can you talk a
[25:23] Speaker 2: bit about what kind of math we need there? It's
[25:26] Speaker 2: a great thing to figure out.
[25:27] Speaker 4: Actually, I'm not sure.
[25:28] Speaker 1: I just.
[25:29] Speaker 5: hear a lot of stories from customers.
[25:31] Speaker 4: Oh, right.
[25:32] Speaker 2: Um, these are just your customers doing cool things with
[25:35] Speaker 2: your software.
[25:35] Speaker 4: Yeah.
[25:36] Speaker 5: So that's the most fun part of what I do.
[25:38] Speaker 5: I hear all sorts of things.
[25:40] Speaker 2: Yeah. Yeah.
[25:41] Speaker 4: Um, and you heard some variety of what I hear.
[25:43] Speaker 2: Your background is in mathematics then?
[25:45] Speaker 4: Yes, it is. I actually, right.
[25:48] Speaker 2: So you just take him what you've learned and said like,
[25:50] Speaker 2: how could I do these things in.net?
[25:52] Speaker 5: Yes. I, I've been doing this pretty much my whole
[25:55] Speaker 5: life ever since I got my hands on the computer.
[25:59] Speaker 4: Um, And then went to university.
[26:02] Speaker 5: Got a degree in computing science, so specializing in the
[26:06] Speaker 5: numerical stuff.
[26:07] Speaker 4: And then.
[26:09] Speaker 5: After some time of building things privately, like just for
[26:13] Speaker 5: my own enjoyment, I thought, well, why not turn this
[26:17] Speaker 5: into my job and do it professionally?
[26:21] Speaker 3: Wow.
[26:21] Speaker 5: And that's how Numerics.net got started.
[26:24] Speaker 2: Wow.
[26:24] Speaker 1: You remind me of a product that when I was
[26:28] Speaker 1: at Crescent Software, we sold. I didn't write it. I
[26:32] Speaker 1: just did tech support. But it was called QuickPack Scientific.
[26:36] Speaker 1: And so in that was a bunch of assembly language things,
[26:42] Speaker 1: calls that you could call from basic, from QuickBasic, Basic
[26:45] Speaker 1: 7 PDS, and even Visual Basic, that did all these
[26:50] Speaker 1: kinds of things. And I wondered even back then, why
[26:53] Speaker 1: do you need all this if you have the fundamentals?
[26:55] Speaker 1: And it's kind of like, you know, why do you
[26:56] Speaker 1: need a database if you can open and read and
[26:59] Speaker 1: write files?
[27:00] Speaker 2: Right?
[27:02] Speaker 1: These are layers of abstraction that help you as a non-programmer,
[27:06] Speaker 1: maybe a scientist that dabbles in programming, do stuff easily.
[27:11] Speaker 5: Well, it's not just about the layers of abstraction, although
[27:15] Speaker 5: that can be useful as well. It's also about the
[27:20] Speaker 5: limitations that you have doing math on a computer and
[27:25] Speaker 5: still doing things correctly.
[27:26] Speaker 1: Yeah.
[27:26] Speaker 2: So I said, it's, we got to dig into this
[27:29] Speaker 2: because I think it's fascinating. What, what are the, we never,
[27:32] Speaker 2: most of the time we don't bump into these limitations.
[27:34] Speaker 2: What are the limitations?
[27:35] Speaker 5: Well, the primary limitation is you can't represent every number
[27:41] Speaker 5: from real life in a computer system.
[27:43] Speaker 4: Right.
[27:44] Speaker 1: Right.
[27:44] Speaker 5: So we have, integers, and then we have what we
[27:48] Speaker 5: call real numbers. But those are really the double precision
[27:53] Speaker 5: floating point numbers is the official name. Right.
[27:55] Speaker 2: Yeah. And I think the floating point's a better term
[27:58] Speaker 2: just because it lets you know. This is only so accurate.
[28:01] Speaker 4: Yeah.
[28:01] Speaker 5: So the limitation is these numbers have a very specific format.
[28:09] Speaker 5: They're an integer times a power of two.
[28:12] Speaker 3: Right.
[28:12] Speaker 5: And you only have a certain range to work with.
[28:15] Speaker 5: So every calculation you do, you basically are able to
[28:21] Speaker 5: use only those numbers. Yeah.
[28:23] Speaker 4: And that's what makes it hard.
[28:24] Speaker 1: Right, right. So it's the precision. And you mentioned precision
[28:28] Speaker 1: in your definition of numerical computing, that you may want
[28:33] Speaker 1: less or more. But I get more. Why less? Yeah.
[28:38] Speaker 5: Well, in modern-day computing, there's a lot of talk about–
[28:45] Speaker 5: reducing the number of bits required for LLMs and so
[28:49] Speaker 5: forth to do their calculations and still have good results.
[28:54] Speaker 5: So they'll sample down from the original 16 or 32
[28:58] Speaker 5: bits down to sometimes as little as four or two
[29:02] Speaker 5: bits even.
[29:03] Speaker 2: Wow.
[29:03] Speaker 5: So that's why you would use less. In general, for calculations,
[29:09] Speaker 5: you would use the standard four or eight number formats.
[29:15] Speaker 5: because the resources aren't as tight and the computation isn't
[29:19] Speaker 5: as intense.
[29:20] Speaker 1: Yeah, okay.
[29:21] Speaker 2: And so the point being, when you use a higher precision,
[29:24] Speaker 2: it's just going to take longer for no value.
[29:27] Speaker 5: Yeah, but if you use too little precision, things can
[29:30] Speaker 5: go terribly long as well.
[29:32] Speaker 2: Right.
[29:32] Speaker 5: There's a famous example of um an arianne 5 rocket
[29:38] Speaker 5: in 96 i think.
[29:40] Speaker 2: It was oh yeah they lost the first one they.
[29:42] Speaker 5: Lost the first one because some value was um stored
[29:49] Speaker 5: as a 16-bit value for the arianne 4 rocket the
[29:54] Speaker 5: predecessor right and they converted down from 64 bits to
[29:58] Speaker 5: 16 got an overflow which sent their navigation system into
[30:02] Speaker 5: some kind of error state and they had to terminate
[30:06] Speaker 5: the launch.
[30:07] Speaker 2: Yeah, that's a very expensive boo-boo.
[30:10] Speaker 4: Yes, it is.
[30:10] Speaker 2: Like billion-dollar boo-boo.
[30:12] Speaker 5: Yeah, and so one of the things that makes it
[30:16] Speaker 5: hard is because you have that limited set of numbers,
[30:23] Speaker 5: whenever you do a calculation, you have to start by
[30:27] Speaker 5: approximating the number you get from real life by a
[30:32] Speaker 5: number that's in your set that you can work with.
[30:35] Speaker 5: So you have to round it off and that already
[30:38] Speaker 5: right off, right out of the gate, you start with
[30:42] Speaker 5: an error and then errors propagate. Like every calculation you do,
[30:48] Speaker 5: when you add two numbers, the sum of those two
[30:52] Speaker 5: numbers may not be a floating point number again. So
[30:58] Speaker 5: then you get additional errors And sometimes it can explode and, well,
[31:04] Speaker 5: lead to explosions.
[31:05] Speaker 2: Right. Quite literally.
[31:07] Speaker 4: Yeah.
[31:07] Speaker 2: Yeah, I remember watching that, actually. And it's like suddenly
[31:10] Speaker 2: the engines were trying to move the rocket in ways
[31:12] Speaker 2: it really wouldn't want to move. And then it just
[31:14] Speaker 2: sort of broke into pieces.
[31:15] Speaker 4: Yeah, that's right.
[31:16] Speaker 1: I had a friend. He's gone now. But he was
[31:19] Speaker 1: a professor of mathematics. And he called himself a philosopher
[31:27] Speaker 1: of math.
[31:28] Speaker 4: And I.
[31:30] Speaker 1: Was, I guess, into things that were so abstract that
[31:35] Speaker 1: nobody could understand them, and you had to just think
[31:38] Speaker 1: about them completely differently. One of those things that I
[31:42] Speaker 1: think of in that vein are imaginary numbers. What the
[31:47] Speaker 1: hell is an imaginary number?
[31:50] Speaker 4: Right?
[31:51] Speaker 5: Well, an imaginary number is a trick, basically, to.
[31:57] Speaker 4: Make... the math work. So there's.
[32:03] Speaker 5: A theory where when you compute the roots of a
[32:07] Speaker 5: quadratic equation, you always have two roots. If you have
[32:17] Speaker 5: real numbers as roots, that's not always the case. But
[32:21] Speaker 5: if you allow this extension by using the square root
[32:25] Speaker 5: of minus one as another dimension, then you can always
[32:32] Speaker 5: get two roots. And so there's all kinds of lovely,
[32:36] Speaker 5: beautiful math that just falls into place perfectly when you
[32:40] Speaker 5: do that.
[32:41] Speaker 1: I still don't get it.
[32:42] Speaker 2: I'm remembering enough of this stuff to realize, as soon
[32:44] Speaker 2: as you said imaginary numbers, like square root of negative two,
[32:47] Speaker 2: that shouldn't be possible, but there's a fix for it.
[32:50] Speaker 5: Yeah. So it's not purely mathematical. It's actually some, like
[32:55] Speaker 5: most of quantum physics is also expressed in quantum, in, uh,
[32:58] Speaker 5: in terms of complex numbers. So, how real that is
[33:02] Speaker 5: is also questionable, but that's a different discussion.
[33:06] Speaker 2: Well, you know, God doesn't play dice with the universe.
[33:10] Speaker 1: Would you consider yourself a philosopher of math?
[33:12] Speaker 4: A little bit, but not too much.
[33:14] Speaker 1: Not the philosopher king, just a philosopher. No.
[33:20] Speaker 5: The pure math and the computer math are actually very different.
[33:26] Speaker 5: It's a very different story.
[33:27] Speaker 2: Oh, sure, yeah.
[33:28] Speaker 5: You don't get into extreme abstractions that only a handful
[33:33] Speaker 5: of people understand.
[33:35] Speaker 2: But as I understand it, mathematics and computing in general
[33:38] Speaker 2: has been a series of compromises based on the limitations
[33:42] Speaker 2: of the hardware available at the time.
[33:44] Speaker 4: Yes, that's right.
[33:45] Speaker 1: And the language.
[33:46] Speaker 5: Language, too. There's actually funny stories about Fortran, the first
[33:52] Speaker 5: programming language, which has... Originally, it didn't have if statements.
[34:00] Speaker 5: It had a conditional jump. It didn't have.
[34:06] Speaker 5: The logical operators and the comparison operators are written out
[34:12] Speaker 5: with dots. Dot, L, T, dot is less than. The
[34:16] Speaker 5: reason they did that was because at the time... computers
[34:21] Speaker 5: didn't have less than signs.
[34:23] Speaker 2: Right. The ASCII set hadn't been done yet.
[34:26] Speaker 4: That's right.
[34:27] Speaker 3: Wow.
[34:27] Speaker 1: Was it EPSIDIC?
[34:29] Speaker 2: Even earlier.
[34:30] Speaker 5: Another interesting thing about Fortran, white space doesn't matter at all.
[34:36] Speaker 2: Right.
[34:36] Speaker 5: You can put spaces anywhere in the middle of a name,
[34:39] Speaker 5: of a variable, anywhere. The reason they did that is
[34:45] Speaker 5: because back in the day, people wrote their programs on
[34:52] Speaker 5: punch cards and there were punch card operators who translated
[34:57] Speaker 5: or like who entered the text in punch cards, did
[35:04] Speaker 5: the punching to then feed into the computers. And what
[35:11] Speaker 5: they found was that they were very sloppy with spaces
[35:15] Speaker 5: in the transcriptions. And so there were lots of errors
[35:19] Speaker 5: because spaces were at the time significant. And so they
[35:24] Speaker 5: did away with that so that their programs could actually run.
[35:27] Speaker 2: It's a workaround.
[35:28] Speaker 5: Yeah.
[35:29] Speaker 1: And speaking of languages, how does JavaScript hit you for
[35:32] Speaker 1: a math language?
[35:35] Speaker 4: JavaScript is kind of, it's not.
[35:38] Speaker 1: You can say it.
[35:39] Speaker 2: It's okay.
[35:40] Speaker 5: It's not the best language for computing.
[35:43] Speaker 2: Yeah, right.
[35:43] Speaker 5: The nice thing about it is that you have numbers
[35:46] Speaker 5: and they're all the same. But that's when you do
[35:49] Speaker 5: numerical stuff, that's also the, The problem.
[35:52] Speaker 2: Right. Yeah.
[35:53] Speaker 1: As we found out.
[35:54] Speaker 2: We've talked a little bit about complex numbers so far
[35:57] Speaker 2: in the library here. I don't know that I exactly
[36:01] Speaker 2: understand everything when we talk about space of complex numbers. Because,
[36:05] Speaker 2: I mean, I've always thought that not a number, you know,
[36:07] Speaker 2: speaking of JavaScript, was such a computer thing. But is
[36:11] Speaker 2: that something relevant in complex numbers as well?
[36:14] Speaker 5: It's relevant in all of numerical computing.
[36:18] Speaker 2: Oh, okay.
[36:19] Speaker 5: So a complex number just has a real part and
[36:21] Speaker 5: an imaginary part.
[36:22] Speaker 3: Right.
[36:23] Speaker 5: And once you work with those two, it's just real
[36:26] Speaker 5: math again. There's nothing complex about it. So the same
[36:31] Speaker 5: issues that you encounter in real numbers, you will encounter
[36:34] Speaker 5: in complex numbers again. Right.
[36:36] Speaker 2: And so problems like infinity and not a number, these
[36:40] Speaker 2: are just things you have to contend with.
[36:41] Speaker 4: Yeah.
[36:42] Speaker 5: And that's one of the weird things. Not a number
[36:46] Speaker 5: is a special thing. encoding in the binary floating point format.
[36:54] Speaker 5: And they compare false. So any operation, any logical operation
[36:59] Speaker 5: with not a number returns false, including itself.
[37:03] Speaker 2: So not a number is also not a number.
[37:06] Speaker 5: Well, yeah. So you have to special case all kinds
[37:10] Speaker 5: of code to work with that to trap it. One
[37:15] Speaker 5: of the Places where you can get not a number
[37:19] Speaker 5: is if you try to compute the square root of
[37:22] Speaker 5: a negative number.
[37:23] Speaker 4: Right.
[37:24] Speaker 2: Does that make an imaginary number?
[37:26] Speaker 5: That would make an imaginary number, but it's outside of
[37:29] Speaker 5: the number format. Right.
[37:31] Speaker 2: I'm starting to feel like in this context, not a
[37:34] Speaker 2: number is problematically like nulls are problematic, where you have
[37:39] Speaker 2: to test for them, and they're hard to test against themselves.
[37:43] Speaker 2: So they just have to build a set of exception
[37:45] Speaker 2: cases around it.
[37:47] Speaker 5: That's true, and it's more of an annoyance than anything.
[37:52] Speaker 5: If you're careful, you won't encounter them.
[37:54] Speaker 2: Right.
[37:55] Speaker 5: But the other challenge is of maintaining precision. If you
[38:02] Speaker 5: can do that, you're good. If you can't, then you
[38:05] Speaker 5: can get things like dividing zero by zero, which is
[38:08] Speaker 5: also not a number.
[38:10] Speaker 2: Not a number.
[38:10] Speaker 1: Yeah.
[38:12] Speaker 2: That's fair. So, I mean, on one hand, I'm losing
[38:15] Speaker 2: this library because I have a particular use case where
[38:18] Speaker 2: I have a particular requirement for precision that perhaps doesn't
[38:22] Speaker 2: fall into what's built into.
[38:24] Speaker 3: NET.
[38:24] Speaker 2: Does that make sense? Is that a reason to go
[38:26] Speaker 2: into using the library?
[38:29] Speaker 4: That's one possibility. We have.
[38:32] Speaker 5: Big floats that can Do enormous ranges of numbers to
[38:37] Speaker 5: whatever precision you want, basically.
[38:39] Speaker 2: How big is a big float there, Jeff? A Google?
[38:44] Speaker 5: I think the exponent is about 10 billion.
[38:48] Speaker 3: Oh.
[38:49] Speaker 5: And you can have like up to a couple of
[38:51] Speaker 5: billion digits, something like that.
[38:53] Speaker 2: So you could calculate with Googles.
[38:55] Speaker 5: Yeah.
[38:56] Speaker 2: Wow.
[38:56] Speaker 5: A Google actually fits in a normal double floating boy number.
[39:00] Speaker 2: Really?
[39:01] Speaker 3: Wow.
[39:01] Speaker 4: If it's 10 to the power 100. Right.
[39:04] Speaker 5: It's not exact. Because we don't have enough bits for that. But, yeah,
[39:09] Speaker 5: it is within the range.
[39:11] Speaker 2: Nice. Okay. But then now when I think about, you know,
[39:14] Speaker 2: why would I want a library like this, I immediately
[39:18] Speaker 2: head towards calculus. Because that's hard to do without a library.
[39:22] Speaker 1: That's right.
[39:23] Speaker 5: Well, more generally, the reason you would go to a
[39:29] Speaker 5: library like this, is that avoiding the loss of precision
[39:36] Speaker 5: is a challenge. Right? So we talked about every operation
[39:42] Speaker 5: introduces potentially another additional small error. Right. There's also something
[39:47] Speaker 5: called catastrophic cancellations. which is you have two numbers that
[39:53] Speaker 5: almost have the same magnitude, and you subtract them. So
[39:59] Speaker 5: the result is very small relative to those two numbers.
[40:02] Speaker 1: Oh, okay.
[40:02] Speaker 5: Well, your precision will plummet.
[40:05] Speaker 2: Yeah, and turn it to a zero when it shouldn't be.
[40:07] Speaker 5: Yeah.
[40:08] Speaker 2: Right, okay.
[40:09] Speaker 5: And then you get into other things like... One of
[40:15] Speaker 5: the biggest challenges for me that I have to be
[40:18] Speaker 5: always aware of is... Computer math is not quite like
[40:23] Speaker 5: regular math. So, for example, the order of operations matters.
[40:30] Speaker 5: In normal math, when you add three numbers, it doesn't
[40:32] Speaker 5: really matter which order you do it in.
[40:34] Speaker 4: No.
[40:34] Speaker 5: But say you have 1 plus 10 to the minus
[40:39] Speaker 5: 20 plus minus 1.
[40:41] Speaker 1: Oh, I see the problem already.
[40:42] Speaker 5: So, 1 plus 10 to the minus 20, you don't
[40:46] Speaker 5: have the precision to register that little thing you're adding,
[40:50] Speaker 5: so that remains one. And then if you subtract again,
[40:53] Speaker 5: it's zero. Whereas if you do one minus one and
[40:57] Speaker 5: then add, it's zero plus your small number and you
[41:01] Speaker 5: have a different result.
[41:02] Speaker 1: Because the first item in the list is what defines
[41:07] Speaker 1: the type that it's cast to, right?
[41:09] Speaker 4: That's right.
[41:09] Speaker 5: So the programming language defines the order and you have
[41:12] Speaker 5: to make sure that you do things in the right order.
[41:15] Speaker 5: And that can sneak up on you like A simple expression,
[41:19] Speaker 5: a plus k minus 1, where a is a real number,
[41:22] Speaker 5: k is an integer. That looks innocent, right?
[41:25] Speaker 3: Yeah.
[41:25] Speaker 5: Can't really go wrong with that. Well, what happens if
[41:30] Speaker 5: a is a small number and k equals 1? Then
[41:34] Speaker 5: you're going to have a plus 1. You're going to
[41:36] Speaker 5: lose tons of precision there. And then subtract 1 again.
[41:41] Speaker 5: So you've just lost lots of precision in that simple,
[41:45] Speaker 5: innocent-looking operation.
[41:47] Speaker 2: Yeah, you ended up at zero and it shouldn't have been.
[41:50] Speaker 3: Yeah, or.
[41:53] Speaker 5: Something close, but much less accurate than what you started
[41:57] Speaker 5: out with.
[41:58] Speaker 2: Right.
[41:58] Speaker 1: Is there such a thing as a specialized computer and
[42:03] Speaker 1: language that brings computer math closer to real math?
[42:09] Speaker 5: You could say that there are symbolic computer systems, but
[42:14] Speaker 5: that's really kind of cheating.
[42:15] Speaker 2: Uh-huh.
[42:16] Speaker 5: So I wouldn't say for practical use, not really.
[42:19] Speaker 2: Okay. I mean, wasn't that what Fortran was about, was
[42:22] Speaker 2: trying to get rid of these precision problems back in
[42:24] Speaker 2: the day?
[42:25] Speaker 5: Fortran was to make it easy to write out equations.
[42:31] Speaker 5: It's literally derived from formula translation.
[42:34] Speaker 3: Right.
[42:35] Speaker 5: So eliminating the floating point traps and so on is
[42:42] Speaker 5: really not practical to.
[42:45] Speaker 4: Do in a In a language, you have to sort
[42:49] Speaker 4: of choose your algorithm.
[42:51] Speaker 3: Right.
[42:52] Speaker 5: And so you have to, sometimes you get a formula
[42:57] Speaker 5: and there's something that can blow up or where you
[43:00] Speaker 5: can lose precision. And then you have to find a
[43:04] Speaker 5: different path of obtaining the same result that doesn't have
[43:11] Speaker 5: that problem. And that's the biggest challenge.
[43:14] Speaker 2: Yeah, and so you're no longer just working on the
[43:17] Speaker 2: math problem. You're working in the constraints of the computer.
[43:19] Speaker 4: That's right.
[43:19] Speaker 2: You have to adapt your math problem to what the
[43:21] Speaker 2: computer can do for you.
[43:22] Speaker 4: That's right. And that's why it's hard. That's why so
[43:29] Speaker 4: much time is spent on getting it right.
[43:32] Speaker 2: And the problem is if you're not aware of the problems,
[43:34] Speaker 2: you just write an expression. And in certain test cases,
[43:37] Speaker 2: it works fine. And in other cases, it ruins everything.
[43:41] Speaker 5: Yeah, and... Most cases you'll test are like mid-range, normal,
[43:47] Speaker 5: everyday things. And sure, it'll work fine with that. Like, yeah,
[43:52] Speaker 5: you might lose a digit or two, but nothing relevant.
[43:55] Speaker 5: But then extreme cases happen, and then, yeah, you might
[43:59] Speaker 5: run into trouble.
[44:00] Speaker 2: Disasters. Should we go down some of the paths of these?
[44:04] Speaker 2: different math sets you've done here, I'm just trying to
[44:06] Speaker 2: figure out what a Gauss Cronrod numerical integrator is. You're
[44:11] Speaker 2: making that up, Richard. I wish I was. I'm just
[44:15] Speaker 2: reading through the spec here and going, oh boy. If
[44:19] Speaker 2: you don't know what that is, you probably don't need one.
[44:22] Speaker 5: Yeah, Gauss is the famous mathematician who pioneered numerical integration,
[44:29] Speaker 5: so computing the area under a curve.
[44:32] Speaker 4: Using approximations.
[44:34] Speaker 1: You said Gauss, right?
[44:35] Speaker 4: And Gauss, yeah.
[44:36] Speaker 1: Is that what the Gaussian blur is based on?
[44:39] Speaker 4: That's also him.
[44:40] Speaker 5: Wow. Like anything Gauss, like the Gaussian distribution, Gaussian blur,
[44:48] Speaker 5: all those things are all the same person.
[44:50] Speaker 2: Wow. Right. Clever guy.
[44:53] Speaker 1: Yeah.
[44:53] Speaker 5: So one way to compute errors is you compute the
[44:58] Speaker 5: same result in two different ways, one more accurate than.
[45:00] Speaker 3: The other one.
[45:01] Speaker 4: And then you compare results.
[45:03] Speaker 3: Right.
[45:03] Speaker 5: And Gauss-Krohn wrote is a way of doing that with
[45:08] Speaker 5: reusing some of the calculations you've done so that you've,
[45:14] Speaker 5: so to minimize extra work. So that's what that is.
[45:18] Speaker 2: No, and I appreciate that. So now I'm thinking the
[45:21] Speaker 2: software engineer in me is like, okay. We measure this
[45:24] Speaker 2: particular problem space in two different ways and then use
[45:26] Speaker 2: an integrator to get what we think is the most
[45:28] Speaker 2: accurate possible answer.
[45:30] Speaker 4: That's right.
[45:30] Speaker 2: Yeah, smart. And it's good to have a tool. You
[45:32] Speaker 2: could try and code your way around that. You'd probably
[45:34] Speaker 2: screw it up. Use the tool.
[45:36] Speaker 4: That's right.
[45:36] Speaker 5: And so that particular one is used for what's called
[45:41] Speaker 5: adaptive integration, which means if you have a curve that's
[45:47] Speaker 5: really oscillating a lot, like changes very quickly, if you
[45:51] Speaker 5: try to approximate it with a few points, you're going
[45:54] Speaker 5: to be way off. And so by computing the error,
[45:59] Speaker 5: you can say, okay, we're good in this part of
[46:03] Speaker 5: the function, but here we need to dig deeper and
[46:06] Speaker 5: be more precise. So you do a recalculation there. What's
[46:11] Speaker 5: the error now? And you keep doing that until your
[46:14] Speaker 5: result is accurate enough.
[46:16] Speaker 2: Accurate enough.
[46:18] Speaker 1: I imagine FFTs, Fast Fourier transforms. I only know a
[46:23] Speaker 1: lot of this stuff because, you know, the Gaussian blur
[46:26] Speaker 1: you use in Photoshop and other things like that. And
[46:28] Speaker 1: the FFTs we use in noise reduction algorithms in Adobe Audition.
[46:34] Speaker 1: And I've been using them ever since I've been recording
[46:37] Speaker 1: with digital audio. But from what I understand about noise reduction,
[46:44] Speaker 1: it uses a fast Fourier transform and you select the
[46:48] Speaker 1: number of points. And what it does in the audio
[46:52] Speaker 1: world is it acts as, let's say it's 8,000 points.
[46:57] Speaker 1: It's an 8,000 band compressor, right? So you have a
[47:04] Speaker 1: compressor with three bands, high, low, and mid, or high, mid,
[47:09] Speaker 1: and low, whatever. But if you break that up into
[47:13] Speaker 1: the frequency spectrum into 8,000 bands, then it can compress
[47:19] Speaker 1: each band. band individually using a fast Fourier transform I
[47:23] Speaker 1: don't know how but I know it works.
[47:27] Speaker 5: Fourier transform basically turns a signal into its frequencies and
[47:35] Speaker 5: so then you can filter out high frequencies or mid
[47:38] Speaker 5: or low or like apply equalizers and then transform back
[47:45] Speaker 5: to get your new signal with the high frequencies filtered
[47:48] Speaker 5: out Right.
[47:48] Speaker 1: Makes a lot of sense, especially we use an 8K
[47:51] Speaker 1: FFT size for noise reduction. Always have. And it seemed
[47:55] Speaker 1: to be the sweet spot for audio, for speaking anyway.
[47:59] Speaker 2: Just one of those things.
[48:00] Speaker 5: Yeah.
[48:01] Speaker 2: Wow. Should we, some other areas to explore here, Jeff?
[48:04] Speaker 2: What do you want to, what would you like to
[48:05] Speaker 2: talk about? Maybe some Jebyshev polynomials?
[48:09] Speaker 4: Jebyshev is one of the luckiest people in the world.
[48:14] Speaker 2: This is a mathematician, I presume.
[48:16] Speaker 5: He's a mathematician. I'm not even sure which century he's from.
[48:22] Speaker 2: Right.
[48:22] Speaker 5: But he played with a certain type of polynomials that
[48:28] Speaker 5: looked interesting. And so they ended up being named after him.
[48:33] Speaker 5: And these days they're used all over the place. Right.
[48:38] Speaker 5: Because they're defining property. What makes them useful is that
[48:44] Speaker 5: They're very even. They oscillate, yes, but they oscillate within
[48:49] Speaker 5: a narrow band, and it's the narrowest possible band. Oh, interesting.
[48:55] Speaker 5: JPL uses that for their planetary models. They will give
[49:02] Speaker 5: out positions of planets and asteroids and everything as a
[49:08] Speaker 5: series of Cheverchev polynomials. because you can very accurately model
[49:19] Speaker 5: basically any curve using them. And what I was saying
[49:23] Speaker 5: about controlling the growth of your errors, they're extremely favorable
[49:32] Speaker 5: that way. So you will get minimal error propagation, which is, again, why.
[49:36] Speaker 2: They're so common. I looked him up. He was a
[49:39] Speaker 2: Russian from the 1800s.
[49:40] Speaker 1: Yeah.
[49:40] Speaker 2: Sounds right. That's a lot of mathematicians, actually, I think.
[49:45] Speaker 2: And he was at a time of defining all this stuff. So, again,
[49:49] Speaker 2: you've come back to this a few times, Jeff. It's
[49:51] Speaker 2: like you're trying to work through a set of data
[49:55] Speaker 2: and get an aggregate or some kind of valuation from
[49:58] Speaker 2: it without introducing a lot of error.
[50:00] Speaker 4: Yeah.
[50:00] Speaker 2: And these are the kinds of tools you use to
[50:02] Speaker 2: try and keep the errors.
[50:03] Speaker 5: And the problem is, too– As I said earlier, as
[50:06] Speaker 5: soon as you bring a real world number into your
[50:10] Speaker 5: computing system, you have some deviation from reality. And there's
[50:14] Speaker 5: another famous.
[50:15] Speaker 2: Because the computer does an approximation on it.
[50:17] Speaker 4: Yeah.
[50:19] Speaker 5: There's another famous and rather tragic example from the Gulf
[50:24] Speaker 5: War in 1991. There was a Scud missile heading towards
[50:28] Speaker 5: a U.S. base in Tehran in Saudi Arabia. And they
[50:34] Speaker 5: had a Patriot system. for air defense, but it failed,
[50:38] Speaker 5: it missed. And the reason it missed was round off error.
[50:45] Speaker 5: They were counting time by incrementing a counter every tenth
[50:50] Speaker 5: of a second. So after about four days, the counter
[50:54] Speaker 5: was at something like three and a half million. And
[50:57] Speaker 5: then they computed the current time by multiplying that counter
[51:03] Speaker 5: by by 0.1. 0.1 is not a floating point number,
[51:10] Speaker 5: not a binary floating point number. So there's this very
[51:13] Speaker 5: tiny error there of about 95 nanoseconds. But when you
[51:18] Speaker 5: multiply 9 to 5 nanoseconds by 3.5 million, you get
[51:24] Speaker 5: about three-tenths of a second. And missiles fly very fast
[51:28] Speaker 5: and cover a lot of ground in that time. And
[51:31] Speaker 5: so the interceptor missed And unfortunately, I think 28 people
[51:35] Speaker 5: died in that attack. So, it can have very serious consequences.
[51:41] Speaker 2: Yeah, no kidding.
[51:42] Speaker 1: We were talking about in the news stories, Boeing and
[51:45] Speaker 1: the problems that they had. And I wonder if, I mean,
[51:50] Speaker 1: it was obvious incompetence in a culture of, you know,
[51:57] Speaker 1: not reporting the truth and trying to appease the higher-ups
[52:00] Speaker 1: and all that stuff and sycophancy, but I wonder if
[52:04] Speaker 1: any of that stemmed from having bad algorithms or bad math.
[52:11] Speaker 2: Do you know?
[52:12] Speaker 5: I have no idea. There have been mistakes with the
[52:20] Speaker 5: Ariane rocket and the example you gave too earlier.
[52:24] Speaker 2: Sure, which I think is a really interesting one just
[52:26] Speaker 2: because they– changed the precision on the number and then
[52:30] Speaker 2: introduced it into a different rocket that behaved differently and
[52:32] Speaker 2: that number suddenly was a huge problem. And more importantly,
[52:35] Speaker 2: the software doesn't get an overflow and the software just
[52:39] Speaker 2: treats it as a number still, not acknowledging that, no,
[52:42] Speaker 2: that's not a valid number and you should stop what
[52:44] Speaker 2: you're doing. Whatever you do from here is going to
[52:46] Speaker 2: be worse, not better. The MCAS story, which was part
[52:52] Speaker 2: of that 737 MAX problem, is a complicated one and
[52:54] Speaker 2: probably none Appropriate here, but yeah, it was the decision
[52:59] Speaker 2: on hardware and software and how you communicated to the
[53:03] Speaker 2: pilots combined that creates that situation.
[53:07] Speaker 5: Speaking of radiation doses, there's also a story about a
[53:13] Speaker 5: system to administer the radiation where some people got bad
[53:20] Speaker 5: burns and it turned out They looked into it, maybe
[53:26] Speaker 5: as the operator not experienced. And no, the operator is
[53:28] Speaker 5: very experienced. And actually that turned out to be the
[53:32] Speaker 5: problem because they entered the information so quickly that the
[53:36] Speaker 5: system couldn't keep up and skipped an input. And that
[53:42] Speaker 5: led to overdoses. So there's all kinds of like the
[53:50] Speaker 5: numerical part is one thing, but there's also the good
[53:54] Speaker 5: software practices of making allowances for exceptions and treating exceptional
[54:01] Speaker 5: conditions adequately and correctly.
[54:05] Speaker 2: Yeah. Yeah. It's interesting to try and write software that
[54:11] Speaker 2: contends with that kind of thing because the consequence was
[54:13] Speaker 2: so serious. You know, they're just sort of recognizing that
[54:17] Speaker 2: the data doesn't make sense. What's reasonable. before it actually runs.
[54:24] Speaker 2: The Therac-25 issue, that was the radiation treatment where if
[54:30] Speaker 2: you entered the data too quickly, software went into a
[54:33] Speaker 2: race condition.
[54:35] Speaker 5: And one thing they did, I believe, in that instance
[54:38] Speaker 5: is the previous version of that equipment had hardware guards. Right.
[54:46] Speaker 5: So if the radiation was too high or voltage or
[54:50] Speaker 5: whichever way they measured it, it would refuse to do that.
[54:55] Speaker 5: But they took those off and they replaced them with
[54:57] Speaker 5: software tests. That obviously didn't work.
[55:01] Speaker 2: Yeah, obviously created other consequences, no question.
[55:04] Speaker 1: So your point is well taken. Math is kind of important.
[55:08] Speaker 2: To get right. Well, yeah, precision. I don't know that
[55:14] Speaker 2: we even now actually understand fully the compromises that were
[55:18] Speaker 2: made to store numbers in computers efficiently.
[55:22] Speaker 5: They did a pretty good job, actually, with the standard
[55:28] Speaker 5: IEEE 754 format. In some ways, it's quite ingenious. The numerical,
[55:37] Speaker 5: if you compare the bit value, if you look at
[55:40] Speaker 5: it as a 64-bit integer, it is in the correct
[55:46] Speaker 5: sort order. So you can compare the numbers as integers
[55:50] Speaker 5: and and have the correct sort order, except for.
[55:54] Speaker 4: The not a number cases, which are an annoyance.
[56:01] Speaker 5: And there's another problem that's not obvious at first sight.
[56:07] Speaker 5: Because of the format, you always have an integer times
[56:10] Speaker 5: a power of two. And so there are as many
[56:14] Speaker 5: floating point numbers between one and two as there are
[56:18] Speaker 5: between two and four, or four and eight. in 16,
[56:23] Speaker 5: so they've become scarcer and sparser, the more, the larger
[56:29] Speaker 5: your numbers get, and they get closer and closer together.
[56:31] Speaker 4: The smaller your numbers get.
[56:36] Speaker 5: And then the question is, well, what do you do
[56:38] Speaker 5: close to zero? And the solution they found was, well,
[56:44] Speaker 5: let's just switch from a floating point format into two
[56:49] Speaker 5: times a power of two. to a fixed point format.
[56:53] Speaker 5: And so all the numbers with exponent zero are called
[57:01] Speaker 5: subnormal numbers and they are a fixed point format. So
[57:07] Speaker 5: they are that number interpreted as an integer times, I
[57:11] Speaker 5: think it's two to.
[57:12] Speaker 4: The power minus 1,075.
[57:13] Speaker 5: So that when you get to zero, You have what
[57:19] Speaker 5: they call gradual underflow. You don't just cut to zero
[57:23] Speaker 5: straight away. You have like a little bit of breathing
[57:27] Speaker 5: room to get there.
[57:29] Speaker 2: Yeah, this is way more complicated than you think about.
[57:31] Speaker 2: Most of the time we just use numbers and don't
[57:33] Speaker 2: worry about it. Sometimes you want integers and sometimes you
[57:35] Speaker 2: want floating point and you're fine. But then this is here.
[57:41] Speaker 2: I've just looked at this huge roster of capabilities that
[57:43] Speaker 2: are in all these exception cases. All right. How do
[57:47] Speaker 2: people figure out they need your tool, Jeff?
[57:49] Speaker 5: Well, most people just need some kind of calculation where
[57:56] Speaker 5: they need the level of extraction that our library provides.
[58:02] Speaker 5: So if you have to solve a set of equations, okay,
[58:06] Speaker 5: you can do it all yourself and try to figure
[58:10] Speaker 5: out how to do it efficiently.
[58:11] Speaker 2: Mm-hmm.
[58:12] Speaker 4: Or you can use my library and just say, okay,
[58:15] Speaker 4: these are a number of delegates.
[58:17] Speaker 2: And to be clear, your library is not free.
[58:19] Speaker 4: No, it's not.
[58:20] Speaker 2: Yeah. And not that I have a problem with that.
[58:22] Speaker 2: It makes sense. It sounds like you've done a ton
[58:24] Speaker 2: of work. And it's worth it for the folks. If
[58:28] Speaker 2: you need it, you need it. And you should pay
[58:30] Speaker 2: for it.
[58:30] Speaker 1: If you need it, you need it. That's right.
[58:31] Speaker 4: That's right.
[58:33] Speaker 2: This is literally a tool to save lives and stop
[58:35] Speaker 2: spacecraft from exploding. Yeah.
[58:37] Speaker 1: Yeah. talk about performance a little bit. Uh, some of the,
[58:42] Speaker 1: I mean, the.net framework has gotten more and more performant
[58:45] Speaker 1: with every release. Was there ever a time when you considered,
[58:49] Speaker 1: you know, dropping to assembler to do stuff because it
[58:51] Speaker 1: wasn't fast enough?
[58:52] Speaker 5: Well, we've been doing this for 20 years and, um,
[58:58] Speaker 5: we've seen a few performance, uh, concepts come and go.
[59:05] Speaker 4: Uh, when, uh.
[59:07] Speaker 5: The uh, task parallel library was first introduced around 2010,
[59:14] Speaker 5: that seemed to be the thing to speed things up. Uh,
[59:18] Speaker 5: turned out there was so much overhead that it was
[59:21] Speaker 5: limited in what we could do with it. Um, so
[59:27] Speaker 5: one example of where I did, um, role my own,
[59:31] Speaker 5: so to speak, is big integer. The initial implementation that
[59:38] Speaker 5: shift with. NET 4.0 in 2010 was adequate for small sizes,
[59:46] Speaker 5: but as soon as your numbers got large, it got
[59:52] Speaker 5: slower and slower. And so we did some work there
[59:58] Speaker 5: to make a faster version of that, But I really
[1:00:03] Speaker 5: have to give it to the.
[1:00:04] Speaker 4: NET guys.
[1:00:05] Speaker 5: In recent years, they've done so much to bring their
[1:00:08] Speaker 5: numerical side of things forward into what's actually now to
[1:00:17] Speaker 5: the point where we're considering giving up our big integer
[1:00:21] Speaker 5: and just using the.
[1:00:22] Speaker 4: NET standard version.
[1:00:25] Speaker 1: Do you utilize span of t? I know that's a
[1:00:29] Speaker 1: huge win.
[1:00:29] Speaker 4: We use it all the time.
[1:00:31] Speaker 1: Yeah.
[1:00:31] Speaker 2: Oh, wow.
[1:00:32] Speaker 5: All the time because, well, one of the advantages, too,
[1:00:36] Speaker 5: is a span can be over managed memory, but it
[1:00:41] Speaker 5: can also be over unmanaged memory, like anything you get
[1:00:45] Speaker 5: from a third-party library or application. And so using span
[1:00:53] Speaker 5: allows us to use the same code for– Managed memory,
[1:00:59] Speaker 5: so vectors stored in managed memory or in native memory.
[1:01:03] Speaker 5: And then the performance, too, it's very compact. It lets you,
[1:01:08] Speaker 5: and it's very much optimized more and more. It's actually
[1:01:11] Speaker 5: interesting when we look at our test suite. You can
[1:01:16] Speaker 5: see we still support.
[1:01:18] Speaker 4: NET 4.6.2 and. NET standards.
[1:01:25] Speaker 5: And you can see in our execution times of the
[1:01:27] Speaker 5: test suite how long it takes for each edition.
[1:01:32] Speaker 4: To run.
[1:01:34] Speaker 5: And without even changing any code, you can see a
[1:01:39] Speaker 5: progression by like every edition is like 10% faster overall.
[1:01:46] Speaker 5: And it's just a runtime that does that.
[1:01:47] Speaker 1: Yep. And overhead, memory overhead has also gone way down.
[1:01:52] Speaker 4: Yeah.
[1:01:53] Speaker 1: Just wonderful. Well, it's good to see that you picked
[1:01:56] Speaker 1: the right horse.
[1:01:58] Speaker 2: Yeah, 20-plus year run.
[1:02:00] Speaker 1: Yeah.
[1:02:01] Speaker 5: I'm very impressed with the work they've been doing. And
[1:02:05] Speaker 5: also in the library itself, when, again, Complex Numbers first.
[1:02:12] Speaker 4: Came out, also in.
[1:02:13] Speaker 5: NET 4, it was really like you're– textbook or school
[1:02:20] Speaker 5: book implementation. It was just the formulas without really understanding
[1:02:26] Speaker 5: the intricacies of.
[1:02:30] Speaker 4: How to get precise results.
[1:02:32] Speaker 5: Even in there, when you computed the square root of
[1:02:36] Speaker 5: minus one, which should be purely imaginary I, because that's
[1:02:41] Speaker 5: the definition of the imaginary unit, it was off, it
[1:02:46] Speaker 5: wasn't correct. But in the last couple of years, and
[1:02:52] Speaker 5: now with. NET 11, they've done a ton of work
[1:02:56] Speaker 5: to clean that up. And we're not quite ready to
[1:03:01] Speaker 5: give up our complex number implementation, but we're seriously considering it. So, again,
[1:03:10] Speaker 5: great job,. NET team.
[1:03:12] Speaker 2: We should pass it along to Steve and Todd. Those
[1:03:14] Speaker 2: guys are freaking brilliant.
[1:03:15] Speaker 1: They are, yeah. Well, Jeffrey, thanks for hanging with us.
[1:03:19] Speaker 1: We went a little bit over, but that's only because
[1:03:22] Speaker 1: we had such a long intro. But it was great
[1:03:24] Speaker 1: just going through your interview without an interruption. And this
[1:03:29] Speaker 1: is awesome stuff. And I'm actually a little impressed with
[1:03:32] Speaker 1: both Richard and I for keeping up with you.
[1:03:35] Speaker 2: I think Jeff is a great explainer.
[1:03:37] Speaker 1: You are, yeah.
[1:03:38] Speaker 2: Which I really appreciate.
[1:03:40] Speaker 4: Thank you.
[1:03:41] Speaker 1: And good luck in the future. And thanks very much.
[1:03:43] Speaker 5: Thank you.
[1:03:44] Speaker 1: And we will talk to you dear listener next time on.
[1:03:47] Speaker 1: NET Rocks.
[1:04:10] Speaker 3: NET Rocks is brought to you by Franklin's Net and
[1:04:13] Speaker 3: produced by Plop Studios. a full-service audio, video, and post-production
[1:04:17] Speaker 3: facility located physically in New London, Connecticut, and, of course,
[1:04:21] Speaker 3: in the cloud, online at pwop.com. Visit our website at dotnetrocks.com
[1:04:30] Speaker 3: for RSS feeds, downloads, mobile apps, comments, and access to
[1:04:35] Speaker 3: the full archives going back to show number one, recorded
[1:04:38] Speaker 3: in September 2002. And make sure you check out our sponsors.
[1:04:42] Speaker 3: They keep us in business. Now go write some code.
[1:04:46] Speaker 1: See you next time.

Shows are listed from Apple Podcasts' charts and directory, and Podcast Index where it is used. Every show and episode belongs to its publisher and plays from the publisher's own feed; this site hosts none of them.
