Skip to content

Commit 819a7f0

Browse files
Update 487-building-rust-extensions-for-python.txt
1 parent f8f484f commit 819a7f0

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

transcripts/487-building-rust-extensions-for-python.txt

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
00:03:57 So I started Pydantic back in 2017 as a side project.
152152

153-
00:04:01 And I toodled along.
153+
00:04:01 And I doodled along.
154154

155155
00:04:02 And then 2021, it somehow, something happened.
156156

@@ -530,7 +530,7 @@
530530

531531
00:16:18 But also this iterative JSON parsing thing is exactly what you want when you want to allow people to query JSON in a way like JSONB in Postgres.
532532

533-
00:16:27 And so we went and used Jitter to implement JSON querying inside DataFusion when we moved our database to DataFusion.
533+
00:16:27 And so we went and used Jitter to implement JSON querying inside Data Fusion when we moved our database to Data Fusion.
534534

535535
00:16:34 And it was just like, very luckily, yeah, it happens to be exactly the right concept you need for like, for querying JSON, where you want to iterate over looking for the like string foo, and then stop as soon as you find it.
536536

@@ -614,7 +614,7 @@
614614

615615
00:19:32 I'm being surprised by how, like, the legs that this has had, which I wasn't expecting when we first started it.
616616

617-
00:19:37 But yeah, the nice bit is it's all the input, the actual JSON parsing is Rust, but then we have the logic to, yeah, basically access that from Python, both in this package and in PyLantic core.
617+
00:19:37 But yeah, the nice bit is it's all the input, the actual JSON parsing is Rust, but then we have the logic to, yeah, basically access that from Python, both in this package and in Pydantic core.
618618

619619
00:19:47 Well, you sent me over to this cargo section, or the crate section, rather.
620620

@@ -702,7 +702,7 @@
702702

703703
00:23:03 I'm not clever enough to write C.
704704

705-
00:23:04 That's a void pointer pointer.
705+
00:23:04 That's a void pointer.
706706

707707
00:23:08 What are we doing here?
708708

@@ -736,7 +736,7 @@
736736

737737
00:24:21 Another example is Jitter, which I showed you.
738738

739-
00:24:24 We released Jitter a year ago now.
739+
00:24:24 We released Jiter a year ago now.
740740

741741
00:24:27 It is the most downloaded JSON parser in Python other than the one in the standard library.
742742

@@ -774,7 +774,7 @@
774774

775775
00:26:02 Literally say this is the string itself and you don't have to copy.
776776

777-
00:26:04 But that means the type you get back for when you parse a string in jitter is what is called a cow in Rust.
777+
00:26:04 But that means the type you get back for when you parse a string in jiter is what is called a code in Rust.
778778

779779
00:26:11 And it is either an owned string, e.g. when you've copied it, or it's a reference to the underlying chunk of the array.
780780

@@ -804,7 +804,7 @@
804804

805805
00:27:25 We don't really think about compiling much in Python.
806806

807-
00:27:28 We don't think about it, but you can think of import time when you do different stuff or you think about static typing when you go and run PyWrite over your code.
807+
00:27:28 We don't think about it, but you can think of import time when you do different stuff or you think about static typing when you go and run Pyrite over your code.
808808

809809
00:27:37 And that is like very similar in some ways to compile time.
810810

@@ -826,7 +826,7 @@
826826

827827
00:28:25 If you were using most other, if you were using cargo, you would have to take care.
828828

829-
00:28:30 I mean, putting the controversy over Serti to one side for a minute, you would have to take care of compiling that code yourself every time you wanted to go and go and use it.
829+
00:28:30 I mean, putting the controversy over Serde to one side for a minute, you would have to take care of compiling that code yourself every time you wanted to go and go and use it.
830830

831831
00:28:38 Whereas actually PyPI does an amazing job of distributing compiled Rust for virtually every ecosystem, every architecture, and it just working when you install it.
832832

@@ -1044,7 +1044,7 @@
10441044

10451045
00:36:25 Because I presume we've...
10461046

1047-
00:36:27 We do do that.
1047+
00:36:27 We do that.
10481048

10491049
00:36:28 Perfect.
10501050

@@ -1064,7 +1064,7 @@
10641064

10651065
00:36:43 It's a little bit like what you did, Samuel, with Pydantic and Pydantic Core.
10661066

1067-
00:36:47 So ImportLintra is pure Python.
1067+
00:36:47 So Import-Linter is pure Python.
10681068

10691069
00:36:49 Yeah.
10701070

@@ -1304,7 +1304,7 @@
13041304

13051305
00:43:32 I don't know how long ago that was you were trying, but I think it's, yeah, reduced significantly.
13061306

1307-
00:43:37 So, I mean, I did quite a lot of the same work in PyNantic Core to avoid the overhead of calling into and out of it lots of times.
1307+
00:43:37 So, I mean, I did quite a lot of the same work in Pydantic Core to avoid the overhead of calling into and out of it lots of times.
13081308

13091309
00:43:43 And I think that's less of a thing now than it used to be.
13101310

@@ -1342,7 +1342,7 @@
13421342

13431343
00:44:46 I don't know if that's in here as well.
13441344

1345-
00:44:48 I maintain watch files, which is the file watching library used by UVicorn and some other things.
1345+
00:44:48 I maintain watch files, which is the file watching library used by UVcorn and some other things.
13461346

13471347
00:44:56 And that is, again, wrapping a Rust library for getting fast system notifications.
13481348

@@ -1893,18 +1893,3 @@
18931893
01:02:00 Now get out there and write some Python code.
18941894

18951895
01:02:02 Thank you.
1896-
1897-
01:02:02 Thank you.
1898-
1899-
01:02:03 Thank you.
1900-
1901-
01:02:06 Thank you.
1902-
1903-
01:02:06 Thank you.
1904-
1905-
01:02:07 Thank you.
1906-
1907-
01:02:07 Thank you.
1908-
1909-
01:02:19 you Thank you.
1910-

0 commit comments

Comments
 (0)