1
00:00:00,240 --> 00:00:02,840
Secure your Elixir apps with 
paraxial IO. 

2
00:00:03,000 --> 00:00:06,080
From code analysis and bot 
defense to dependency checks, 

3
00:00:06,080 --> 00:00:09,320
they've got you covered. 
Elixir first design with GitHub 

4
00:00:09,320 --> 00:00:11,720
integration. 
Elevate your security at 

5
00:00:11,720 --> 00:00:21,880
paraxial dot IO testing. 
What's up? 

6
00:00:21,920 --> 00:00:25,080
I'm Jacob Litzow, your Elixir 
mentor, and welcome to another 

7
00:00:25,080 --> 00:00:27,960
exciting episode of the Elixir 
Mentor Podcast. 

8
00:00:27,960 --> 00:00:30,720
This is where we discuss 
everything related to Elixir, 

9
00:00:30,720 --> 00:00:32,920
from interviews with 
enthusiasts, pioneers in the 

10
00:00:32,920 --> 00:00:35,840
community, to innovative 
projects in library shaping 

11
00:00:35,840 --> 00:00:38,120
Elixir's future. 
Today I'm welcome. 

12
00:00:38,720 --> 00:00:42,560
Today I'm welcoming Andrea 
Leopardi, he's an Elixir core 

13
00:00:42,560 --> 00:00:46,280
team member and the author of 
Network Programming in Elixir 

14
00:00:46,280 --> 00:00:48,920
and Erlang. 
It's currently in beta and he's 

15
00:00:48,920 --> 00:00:51,240
also written. 
I believe you've written at 

16
00:00:51,240 --> 00:00:53,080
least one other book. 
Do you have more than that? 

17
00:00:54,080 --> 00:00:57,720
No, no, those are. 
The ones so you have like a 

18
00:00:57,880 --> 00:01:02,520
testing testing book, correct? 
I call yes I Co wrote a testing 

19
00:01:02,520 --> 00:01:05,720
book, Testing Elixir, also from 
Prague, Brock together with 

20
00:01:05,960 --> 00:01:08,160
Jeffrey Mathias. 
OK, very cool. 

21
00:01:08,240 --> 00:01:11,400
Awesome. 
Do you want to introduce 

22
00:01:11,400 --> 00:01:14,720
yourself anymore or is there 
anything that you'd like to say?

23
00:01:16,720 --> 00:01:19,200
Yeah, nothing in particular, but
yeah, no, you said everything. 

24
00:01:19,200 --> 00:01:21,800
I mean, I'm in the Elixir core 
team. 

25
00:01:22,720 --> 00:01:25,040
That's my relation to Elixir, I 
guess. 

26
00:01:25,040 --> 00:01:29,400
And yeah, I'm based in central 
Italy near Rome. 

27
00:01:29,720 --> 00:01:32,800
And yeah, that's about it. 
Very cool. 

28
00:01:32,800 --> 00:01:37,960
Well, I'm excited to have you on
and to talk about your new book.

29
00:01:37,960 --> 00:01:41,240
Do you know how close is it to 
being published completely? 

30
00:01:41,520 --> 00:01:44,360
Oh, really, really close. 
Yes. 

31
00:01:45,240 --> 00:01:48,880
So it's content complete. 
It's just going through the the 

32
00:01:49,000 --> 00:01:54,680
final round of tech review and 
before like maybe, you know, 

33
00:01:54,760 --> 00:01:59,960
like a few more weeks to then 
get like typesetting and all 

34
00:01:59,960 --> 00:02:04,320
this stuff, right. 
So it's kind of like slotted for

35
00:02:04,360 --> 00:02:08,320
maybe before the end of the 
first half of this year kind of.

36
00:02:08,320 --> 00:02:12,080
OK, awesome. 
That last 1%, that feels like 

37
00:02:12,080 --> 00:02:15,800
another 100%, right? 
Kind of yeah, yeah, yes, yes. 

38
00:02:15,800 --> 00:02:18,000
But it's content complete. 
So the beta's out. 

39
00:02:18,000 --> 00:02:22,120
It's been a while out for like 
for for quite a bit and that 

40
00:02:22,120 --> 00:02:24,880
that's kind of now like yeah, 
content complete unless. 

41
00:02:24,920 --> 00:02:26,360
Yeah, that's awesome. 
Mistakes. 

42
00:02:27,160 --> 00:02:29,640
Yeah, I can't. 
The undertaking of writing a 

43
00:02:29,640 --> 00:02:32,160
book has to be crazy. 
I say that to every author that 

44
00:02:32,160 --> 00:02:35,560
I talk to because it's a big 
undertaking. 

45
00:02:36,840 --> 00:02:40,680
Yeah, very fun, but very 
definitely very challenging. 

46
00:02:40,760 --> 00:02:43,560
Very like long process. 
It's like a lot of stuff to 

47
00:02:43,560 --> 00:02:47,680
write and organize and think 
about, but yeah, it's fun. 

48
00:02:48,680 --> 00:02:53,040
Yeah, I always, every time I 
have an author on, I try to read

49
00:02:53,040 --> 00:02:55,760
the book before our 
conversation, obviously, because

50
00:02:55,760 --> 00:02:57,440
it just gives me a better 
understanding. 

51
00:02:57,800 --> 00:03:01,960
And I always like technical 
books, always like scan and read

52
00:03:01,960 --> 00:03:06,720
quickly first time through and 
then I'll go through like second

53
00:03:06,720 --> 00:03:08,920
and third time where, you know, 
you take your time and you 

54
00:03:08,920 --> 00:03:12,800
actually apply the concepts and 
do the, the tutorials or the 

55
00:03:12,800 --> 00:03:14,480
project that the book may 
follow. 

56
00:03:14,800 --> 00:03:17,720
So I am excited. 
I did, I, I scanned through your

57
00:03:17,720 --> 00:03:24,240
book and I'd like to kind of 
like start off with like, what 

58
00:03:24,240 --> 00:03:27,240
is network programming? 
If you had to like explain it to

59
00:03:27,240 --> 00:03:29,000
someone, what does that actually
mean? 

60
00:03:32,200 --> 00:03:35,640
Good question. 
Nowadays, like kind of like, I 

61
00:03:35,680 --> 00:03:38,840
don't know, like most. 
It's everything programming has 

62
00:03:38,840 --> 00:03:41,440
some. 
Networks in there, generally I 

63
00:03:41,440 --> 00:03:44,600
think about this is like, 
there's not, there's nothing for

64
00:03:44,600 --> 00:03:46,920
me that's like, oh, this is this
is network programming. 

65
00:03:47,120 --> 00:03:50,160
But in general, whenever you're 
anything that interacts with 

66
00:03:50,680 --> 00:03:54,160
network in some way, I would 
maybe put it under the umbrella 

67
00:03:54,160 --> 00:03:57,480
of network programming. 
But generally I try to focus a 

68
00:03:57,560 --> 00:04:00,760
little bit on like I try to 
think of or like at least I 

69
00:04:00,760 --> 00:04:03,880
think of network programming 
more as the, when you're 

70
00:04:03,880 --> 00:04:09,080
touching like lower protocol, 
lower layers in the kind of in 

71
00:04:09,080 --> 00:04:12,800
the LC model, right? 
So like you're talking about 

72
00:04:12,800 --> 00:04:17,760
TCPUTP, like transport protocols
generally rather than something 

73
00:04:17,760 --> 00:04:20,800
like HTP, even though HTP is 
definitely network programming 

74
00:04:21,519 --> 00:04:24,040
in, in its way, right? 
You're talking to something over

75
00:04:24,040 --> 00:04:27,360
a network, but it has like quite
of like a few different 

76
00:04:27,360 --> 00:04:29,960
challenges. 
You're, you're, if you're a user

77
00:04:29,960 --> 00:04:32,800
of, of HTTP, you're not really 
dealing with like for example, 

78
00:04:32,800 --> 00:04:35,240
the protocol itself. 
You're not dealing with like 

79
00:04:35,520 --> 00:04:37,920
serialization, deserialization. 
You're, you know, really you're 

80
00:04:37,920 --> 00:04:40,880
dealing with like the spec. 
You're not dealing with, you 

81
00:04:40,880 --> 00:04:44,480
know, knowing how to route 
requests if you're talking about

82
00:04:44,480 --> 00:04:47,600
HTTP 2 and stream IDs and all, 
like there's a ton of stuff. 

83
00:04:47,600 --> 00:04:50,040
So if you were doing that, I 
think that's kind of closer to 

84
00:04:50,040 --> 00:04:52,360
network programming. 
If you're just shooting HP 

85
00:04:52,360 --> 00:04:55,120
requests off on a website, I 
wouldn't kind of call it network

86
00:04:55,120 --> 00:04:57,840
programming because like it's 
really, really abstracted the 

87
00:04:57,840 --> 00:05:01,400
way like your application layer 
and above, maybe because like 

88
00:05:01,400 --> 00:05:03,960
there's libraries that are 
written for you that do the job 

89
00:05:03,960 --> 00:05:07,320
of like actually interfacing 
with the with the network. 

90
00:05:07,320 --> 00:05:10,600
So, so I'm kind of kind of 
trying to think about it as, you

91
00:05:10,600 --> 00:05:15,920
know, I need to be, maybe that's
like the very, very gist of it. 

92
00:05:16,440 --> 00:05:19,440
Yeah, yeah. 
Well, I was saying too before we

93
00:05:19,440 --> 00:05:23,880
went live, it's very easy to be 
a developer and forget about the

94
00:05:23,880 --> 00:05:26,840
low level networking stuff, 
right? 

95
00:05:26,880 --> 00:05:30,120
It's kind of, you can kind of 
put it in a magic box and be 

96
00:05:30,120 --> 00:05:33,200
thankful that there's libraries 
out there that other people have

97
00:05:33,200 --> 00:05:36,720
written. 
Well, yeah, I mean, absolutely, 

98
00:05:36,720 --> 00:05:40,400
yes. 
I think like in my experience, 

99
00:05:40,880 --> 00:05:43,360
the first of all, the more 
experience you got as an 

100
00:05:43,360 --> 00:05:46,400
engineer, the more you're 
expected to understand this 

101
00:05:46,400 --> 00:05:50,240
stuff from a standpoint not 
even, not even really from the 

102
00:05:50,240 --> 00:05:52,200
perspective of working with this
stuff. 

103
00:05:52,200 --> 00:05:55,240
And like you're, you're not 
supposed to like write ATCP 

104
00:05:55,920 --> 00:06:00,120
level like protocol abstraction,
like talk to other services you 

105
00:06:00,120 --> 00:06:03,920
own or your own, you know, 
serialization, network protocol 

106
00:06:03,920 --> 00:06:06,600
and stuff. 
But you're kind of expected to 

107
00:06:07,800 --> 00:06:11,560
understand, you know, this 
component to understand how 

108
00:06:11,560 --> 00:06:15,080
like, for example, a request 
travels through like, why is 

109
00:06:15,080 --> 00:06:17,480
this request being slow? 
You're kind of supposed to like,

110
00:06:17,560 --> 00:06:20,160
I think you're expected the more
you go on your career, the more 

111
00:06:20,160 --> 00:06:23,400
senior become you're expected to
understand, you know, that the 

112
00:06:23,680 --> 00:06:27,360
all the all the little things 
that happened for an HTTP 

113
00:06:27,360 --> 00:06:30,840
request, for example, to, you 
know, go through server and come

114
00:06:30,840 --> 00:06:33,240
back to the client. 
So, you know, talking about 

115
00:06:34,480 --> 00:06:37,960
handshakes and like SSL and or 
like all these components. 

116
00:06:38,240 --> 00:06:43,360
So for me, that's kind of like 
even where like the importance 

117
00:06:43,400 --> 00:06:46,960
of this stuff. 
So there's like good chances 

118
00:06:46,960 --> 00:06:48,920
that you're, you know, you're, 
you're not really going to 

119
00:06:49,400 --> 00:06:51,640
implement something that low 
level, right? 

120
00:06:51,640 --> 00:06:55,880
Like I haven't, for example, 
designed a, a network protocol, 

121
00:06:55,880 --> 00:06:59,480
you know, I've worked with like 
ones from from HP to Cassandra 

122
00:06:59,480 --> 00:07:02,120
to, to Reddis to like other, 
other stuff, but I never really 

123
00:07:02,120 --> 00:07:04,480
designed one. 
But like, I had to understand 

124
00:07:04,480 --> 00:07:07,480
all this stuff through and 
through over and over again to, 

125
00:07:07,840 --> 00:07:10,800
you know, to, to get to, to 
build the stuff that I had to 

126
00:07:10,800 --> 00:07:13,280
build. 
And so it's, yeah, I think it's,

127
00:07:13,520 --> 00:07:16,160
it's like really important to 
know even though you're not like

128
00:07:16,160 --> 00:07:21,560
you, you might not end up 
actually doing very, you know, 

129
00:07:21,560 --> 00:07:25,160
very like low level networking 
stuff. 

130
00:07:25,800 --> 00:07:27,520
Mm Hmm. 
Yeah. 

131
00:07:27,520 --> 00:07:31,240
And I like that. 
Like so like the beams process 

132
00:07:31,240 --> 00:07:33,160
model kind of seems perfect 
right? 

133
00:07:33,160 --> 00:07:37,440
For network programming like. 
One. 

134
00:07:37,520 --> 00:07:39,760
Yeah, so. 
Like how Erlang was designed 

135
00:07:39,760 --> 00:07:43,760
right for telecommunications. 
Yeah, yeah. 

136
00:07:43,760 --> 00:07:49,800
So I there's 100%. 
So there's two things. 

137
00:07:49,800 --> 00:07:52,160
One thing that I want to say 
about what I was, what I was 

138
00:07:52,160 --> 00:07:55,080
saying before is that like also 
the importance of this kind of 

139
00:07:55,080 --> 00:08:00,160
stuff is that you on the beam 
you, you like, we follow a lot 

140
00:08:00,160 --> 00:08:03,080
of this part, like this book is 
not about network programming, 

141
00:08:03,080 --> 00:08:07,360
because there are books about 
that from the perspective of the

142
00:08:07,360 --> 00:08:10,000
network. 
This is a book like about 

143
00:08:10,480 --> 00:08:14,760
interfacing with the networks 
through the beam with the right 

144
00:08:14,760 --> 00:08:17,880
like design patterns and the 
right approaches for what the 

145
00:08:17,880 --> 00:08:19,640
beam is like, right. 
So and understanding. 

146
00:08:20,200 --> 00:08:24,360
So you read the book, you get an
understanding of how you know, 

147
00:08:24,360 --> 00:08:27,440
like how these applications are 
designed on the beam to work 

148
00:08:27,440 --> 00:08:30,560
with networks, networks. 
And then you you know, you use 

149
00:08:30,560 --> 00:08:33,520
those application very likely 
like, you know, Phoenix or 

150
00:08:33,640 --> 00:08:36,039
blocker Cowboy or the servers, 
whatever. 

151
00:08:36,480 --> 00:08:41,400
So, and but to your question 
about, you know, the Beam, the 

152
00:08:41,400 --> 00:08:45,440
model, I think I always say that
like we are spoiled in this 

153
00:08:45,440 --> 00:08:49,160
space because we are used to 
thinking about the same problems

154
00:08:49,160 --> 00:08:53,680
that people kind of doing 
network, network programming 

155
00:08:53,680 --> 00:08:55,760
have to think about. 
Like even if you're just, you 

156
00:08:55,760 --> 00:08:58,440
know, talking to other services 
and other nodes and all this 

157
00:08:58,440 --> 00:09:01,600
stuff, we are used to having to 
do a lot of the same stuff 

158
00:09:02,360 --> 00:09:05,880
locally within a single running 
instance of the Beam, right? 

159
00:09:05,880 --> 00:09:08,960
Because like this process is 
that we have that talk to each 

160
00:09:08,960 --> 00:09:11,080
other and like the talk, the 
sounding is asynchronous, the 

161
00:09:11,080 --> 00:09:13,080
receiving is synchronous. 
You have to get acknowledgements

162
00:09:13,080 --> 00:09:14,560
and there's time outs. 
And there's like all these 

163
00:09:14,560 --> 00:09:18,120
concepts that like map really, 
really well to the things that 

164
00:09:18,240 --> 00:09:20,080
you have to do when you're 
talking to something over a 

165
00:09:20,080 --> 00:09:21,960
network, right? 
Where like a connection can 

166
00:09:21,960 --> 00:09:24,400
break, it can time out, you can 
not not get an answer. 

167
00:09:24,400 --> 00:09:26,160
You can like anything can happen
really. 

168
00:09:27,440 --> 00:09:30,400
So that's really, I think we're 
really spoiled and like, and 

169
00:09:30,400 --> 00:09:34,240
This is why also I think it's a 
great fit for to write like 

170
00:09:34,240 --> 00:09:38,600
network software, network heavy 
software with election Erlang 

171
00:09:38,600 --> 00:09:42,080
just because they they like 
you're used to writing it in the

172
00:09:42,080 --> 00:09:43,320
same way. 
And the whole language is 

173
00:09:43,320 --> 00:09:46,320
structured in a way that you 
would write idiomatic network 

174
00:09:46,320 --> 00:09:49,560
code and idiomatic Erlang Elixir
at the same time, right? 

175
00:09:49,560 --> 00:09:55,080
Like so I think the model is 
really perfect and we have this 

176
00:09:55,080 --> 00:09:58,320
construct and map really well to
network constructs the same way.

177
00:09:58,320 --> 00:10:01,520
Like for example, like a process
that maps to a socket, right? 

178
00:10:01,520 --> 00:10:04,680
It owns a socket. 
Like, you know, this message is 

179
00:10:04,680 --> 00:10:08,000
like this reactive way of 
programming where like a message

180
00:10:08,000 --> 00:10:11,960
come from the socket, kind of 
like if that message was another

181
00:10:11,960 --> 00:10:15,800
process and it's just sending 
you data or you have like TCP 

182
00:10:15,800 --> 00:10:19,120
closed message comes to your, 
you know, the process that owns 

183
00:10:19,120 --> 00:10:21,640
the socket, kind of like if the 
socket were another process. 

184
00:10:21,920 --> 00:10:24,640
So there's, there's a lot of 
this parallel and you write code

185
00:10:24,840 --> 00:10:28,480
that you're used to writing and 
instead, like in, in, you know, 

186
00:10:28,800 --> 00:10:32,080
in other environments, it can, 
it gets kind of harder because 

187
00:10:32,080 --> 00:10:35,720
like you have to do a lot of 
this stuff manually, right? 

188
00:10:35,720 --> 00:10:37,440
Like you have to implement a lot
of this stuff manually, but 

189
00:10:37,440 --> 00:10:42,840
like, checking for for 
different, like you're not doing

190
00:10:42,840 --> 00:10:45,000
it in the way, like in the way 
that feels natural to the 

191
00:10:45,000 --> 00:10:47,760
language as well, Yeah. 
I like the way that, yeah, you 

192
00:10:47,760 --> 00:10:52,240
kind of break that down because 
just being an Elixir developer 

193
00:10:53,000 --> 00:10:57,080
on the Beam, you're already used
to writing the way like networks

194
00:10:57,080 --> 00:11:00,560
kind of work, just with message 
passes and everything, like just

195
00:11:00,560 --> 00:11:02,680
communicating between processes.
I like that. 

196
00:11:03,280 --> 00:11:07,240
And then all you're doing is 
expanding it kind of to more 

197
00:11:07,240 --> 00:11:11,400
nodes, right. 
And it's not necessarily like 

198
00:11:11,440 --> 00:11:15,280
your book isn't necessarily how 
to like make a distributed 

199
00:11:15,280 --> 00:11:19,160
system like with other like Beam
VMS. 

200
00:11:19,160 --> 00:11:22,720
It's more about communicating 
between different services that 

201
00:11:22,720 --> 00:11:26,040
just use sockets, correct? 
Like it is that a? 

202
00:11:26,040 --> 00:11:30,560
Fair 100 100% it doesn't even, I
don't even know that it mentions

203
00:11:30,560 --> 00:11:32,480
distribution, Erlang 
distribution. 

204
00:11:32,760 --> 00:11:37,160
And the reason for that is that 
when you're so figure it this 

205
00:11:37,160 --> 00:11:39,760
way, when you're talking, when 
you have an Erlang cluster and 

206
00:11:39,760 --> 00:11:42,720
you're talking between nodes in 
an Erlang cluster and you are 

207
00:11:42,720 --> 00:11:46,000
talking over the network, right?
But like the Erlang VM, the 

208
00:11:46,000 --> 00:11:48,840
point is that it abstracts it 
away from you completely. 

209
00:11:49,160 --> 00:11:52,200
So it feels like you're talking 
to just processes on another 

210
00:11:52,200 --> 00:11:53,960
node. 
And then you just like, you 

211
00:11:53,960 --> 00:11:56,880
know, you monitor this process 
the same way you monitor a local

212
00:11:56,880 --> 00:11:58,920
process. 
Like everything is very seamless

213
00:11:58,920 --> 00:12:01,840
because you don't get to 
experience a network layer. 

214
00:12:02,160 --> 00:12:05,440
But like you are then in the 
walled garden of an early 

215
00:12:05,440 --> 00:12:08,440
distributed system, right? 
I don't know that like most 

216
00:12:08,440 --> 00:12:11,680
people are, you know, in just 
that walled garden, like we have

217
00:12:11,680 --> 00:12:14,480
databases, we have, you know, 
message queues, like we have all

218
00:12:14,480 --> 00:12:18,760
sorts of like other sources. 
You call out the HTTP, there's 

219
00:12:18,760 --> 00:12:22,080
like a ton of stuff like that. 
And in those when you talk to 

220
00:12:22,080 --> 00:12:25,120
those, you really have to talk 
about like you have to talk 

221
00:12:25,120 --> 00:12:26,920
through a network directly, 
right? 

222
00:12:27,160 --> 00:12:33,960
So, so, and this book is really 
about the process of talk like 

223
00:12:33,960 --> 00:12:35,440
of talking through the network, 
right? 

224
00:12:35,440 --> 00:12:38,480
Like how do I, it's not even 
about distributed systems in 

225
00:12:38,480 --> 00:12:40,640
general, because like the 
problems you have with 

226
00:12:40,640 --> 00:12:43,960
distributed systems are not 
related to the network, are 

227
00:12:43,960 --> 00:12:47,760
related to the fact that you 
have multiple brains, right, on 

228
00:12:47,760 --> 00:12:51,280
multiple machines executing code
at the same time. 

229
00:12:51,280 --> 00:12:55,120
And like, you know, sharing 
information in a, the opposite 

230
00:12:55,120 --> 00:12:58,080
of loss lesson, like a loss 
full, I don't know, a lossy, 

231
00:12:58,080 --> 00:13:00,400
lossy, that's the term in a 
lossy way, right? 

232
00:13:00,400 --> 00:13:03,720
So like so, and that's, but 
that's, we are used to that on 

233
00:13:03,720 --> 00:13:05,840
the beam. 
Cause like on the BEAM, the only

234
00:13:05,840 --> 00:13:08,800
guarantee that we get more is 
that if you send a message 

235
00:13:09,320 --> 00:13:12,200
locally on the same node, it 
it's eventually going to get to 

236
00:13:12,200 --> 00:13:14,360
the process. 
If the process is alive, like 

237
00:13:14,360 --> 00:13:17,040
it's a pretty like, it's a 
pretty like, it's not that 

238
00:13:17,520 --> 00:13:19,480
amazing of a guarantee. 
Cause like you don't know when 

239
00:13:19,480 --> 00:13:20,840
it will arrive. 
You don't know when it will be 

240
00:13:20,840 --> 00:13:22,160
processed. 
You don't know if the process 

241
00:13:22,160 --> 00:13:25,520
dies first before it arrives or 
if like if it dies after sending

242
00:13:25,520 --> 00:13:28,920
a response at this million, you 
know, there's all these things 

243
00:13:28,920 --> 00:13:31,040
that are the same. 
And so like you're designing 

244
00:13:31,040 --> 00:13:34,280
distributed systems already in a
single node on the beam, right? 

245
00:13:34,280 --> 00:13:37,320
So, and you're, you have to 
think about, you know, split 

246
00:13:37,320 --> 00:13:38,880
brains. 
And I call this distributed 

247
00:13:38,880 --> 00:13:40,840
system problems. 
And so the book is kind of, it's

248
00:13:40,840 --> 00:13:43,200
not really about that, but it's,
it's about like when you 

249
00:13:43,200 --> 00:13:46,120
actually do have to talk through
a network to another system, how

250
00:13:46,120 --> 00:13:47,480
do you do that? 
How do you design that in a 

251
00:13:47,480 --> 00:13:49,520
scalable way? 
How do you, you know, what are 

252
00:13:49,520 --> 00:13:50,600
the tools that you have at your 
disposal? 

253
00:13:50,600 --> 00:13:52,320
What are the patterns, this kind
of stuff? 

254
00:13:52,320 --> 00:13:55,320
And I think it's an important 
distinction because like there's

255
00:13:55,400 --> 00:13:59,200
a ton of books about distributed
like computing in general, 

256
00:13:59,240 --> 00:14:01,360
distributed systems also 
distributed Erlang. 

257
00:14:01,440 --> 00:14:03,920
You know, there's like this, 
there's a book about from from 

258
00:14:03,920 --> 00:14:09,480
Francesco Cicerini and someone 
else designing applications for 

259
00:14:09,480 --> 00:14:11,800
scale with Ramango TP something 
like this, which. 

260
00:14:11,840 --> 00:14:14,360
Is like, that sounds about 
right, yeah. 

261
00:14:14,360 --> 00:14:18,200
Which is like fantastic about 
like just distributed, you know,

262
00:14:18,240 --> 00:14:22,560
systems in general with Erlang. 
But this book goes really into 

263
00:14:22,560 --> 00:14:25,920
the, the integrity of like, I 
want to write like a performance

264
00:14:25,920 --> 00:14:29,480
TCP server in Elixir, right? 
I want to write a performance 

265
00:14:29,480 --> 00:14:32,040
TCP client in Elixir and stuff 
like that. 

266
00:14:32,040 --> 00:14:35,200
And so it's it's, it's really, 
really focused on that. 

267
00:14:36,120 --> 00:14:40,120
I think it's it's one of those 
topics too, like if you want to 

268
00:14:40,400 --> 00:14:44,320
kind of step up your game as a 
developer, this is this is one 

269
00:14:44,320 --> 00:14:45,840
of those books you should be 
reading. 

270
00:14:47,480 --> 00:14:50,800
It's definitely like, yes, I 
think it's like it's sort of 

271
00:14:50,800 --> 00:14:53,240
like not not advanced in a way 
that it's hard to understand, 

272
00:14:53,240 --> 00:14:57,400
but advanced in a way that like 
it really like you, you might 

273
00:14:57,400 --> 00:15:01,560
not need this book for like your
day job and you'll be right. 

274
00:15:01,800 --> 00:15:04,960
Well, like high level, high 
level, we can throw around, you 

275
00:15:04,960 --> 00:15:09,320
know, TCPUDP, you know, web 
sockets and all this, right? 

276
00:15:09,320 --> 00:15:13,160
And I think for the most part, 
we know what they are, but do we

277
00:15:13,160 --> 00:15:15,840
actually know how they work, 
right? 

278
00:15:15,840 --> 00:15:17,920
That's kind of this breaks that 
barrier, right? 

279
00:15:18,760 --> 00:15:21,120
I think so. 
I think so and like it also like

280
00:15:21,160 --> 00:15:26,760
I, I hope it teaches like real 
cool real world applications of 

281
00:15:26,760 --> 00:15:29,760
like a lecture and you know how 
to scale things up with Elixir 

282
00:15:29,760 --> 00:15:32,560
and like, you know, just use the
language for something really, 

283
00:15:32,560 --> 00:15:36,320
really real that like people 
people do and you know their 

284
00:15:36,640 --> 00:15:41,440
rights after. 
Yeah, I think, I think it's cool

285
00:15:41,920 --> 00:15:46,640
if we start like just let's 
start talking about things like 

286
00:15:47,200 --> 00:15:51,120
TCP. 
How would you explain what TCP 

287
00:15:51,120 --> 00:15:54,120
is like, OK, we know it's a 
protocol. 

288
00:15:54,520 --> 00:15:59,760
It's a protocol used by web 
sockets, but what what? 

289
00:16:00,320 --> 00:16:06,240
What does that mean for us? 
It's a good and hard, very hard 

290
00:16:06,240 --> 00:16:09,200
question, I think. 
Yeah. 

291
00:16:09,200 --> 00:16:12,960
So the first thing that like I 
would encourage anyone to get 

292
00:16:12,960 --> 00:16:16,600
familiar with is this thing 
called the OSI model, which kind

293
00:16:16,600 --> 00:16:18,840
of in in network is a very 
standard thing. 

294
00:16:18,840 --> 00:16:21,160
It's not really the girl I'm 
going to look for, but it gives 

295
00:16:21,160 --> 00:16:25,000
you like this pyramid of, you 
know, things that happen when 

296
00:16:25,000 --> 00:16:29,640
you talk to, like when 2 
computers need to talk to each 

297
00:16:29,640 --> 00:16:33,120
other essentially, right? 
Everything is nice and good when

298
00:16:33,120 --> 00:16:36,240
there's only one computer, but 
like it's not very powerful. 

299
00:16:36,520 --> 00:16:38,560
So you want 2 computers to talk 
to each other. 

300
00:16:38,560 --> 00:16:42,000
There's this model that tells 
you like with all these 7 little

301
00:16:42,000 --> 00:16:45,000
layers, right? 
That tell you like kind of like 

302
00:16:45,000 --> 00:16:47,320
growing levels of abstraction, 
right? 

303
00:16:47,640 --> 00:16:50,680
And like the lower layers are 
like physical stuff. 

304
00:16:50,680 --> 00:16:52,720
So like not, I don't know 
anything about that. 

305
00:16:53,280 --> 00:16:56,400
But like if once you start to 
get up and up, it starts to go 

306
00:16:56,440 --> 00:16:58,280
to things like, for example, 
routing. 

307
00:16:58,280 --> 00:17:01,960
So like you have a piece of data
you'll really, you literally 

308
00:17:01,960 --> 00:17:04,319
want to like the way you're like
you and I are talking right now 

309
00:17:04,319 --> 00:17:05,800
and I'm in Italy and you're 
somewhere else. 

310
00:17:05,800 --> 00:17:09,280
And like there's like little 
signals traveling through the, 

311
00:17:09,880 --> 00:17:12,400
the air and the ground and like 
cables and stuff. 

312
00:17:12,480 --> 00:17:15,119
You know how to get it's, it's 
nuts. 

313
00:17:15,119 --> 00:17:17,400
Like, I mean, like you better 
not start to think about it 

314
00:17:17,400 --> 00:17:19,319
because like it's nuts. 
I agree. 

315
00:17:19,319 --> 00:17:23,760
But but like all this data needs
to get routed correctly. 

316
00:17:23,760 --> 00:17:26,560
So there's like, you know, it 
needs to go from my home to your

317
00:17:26,560 --> 00:17:29,960
home, right? 
And this is not that it goes so 

318
00:17:29,960 --> 00:17:33,720
smoothly, but so there are these
routing layers and then there 

319
00:17:33,720 --> 00:17:37,120
are layers that kind of like so 
TCP. 

320
00:17:37,120 --> 00:17:41,960
So this TCP would be layer four,
I can't remember. 

321
00:17:41,960 --> 00:17:44,120
But like this is the transport 
transport layer. 

322
00:17:44,120 --> 00:17:48,240
So it means like it's what 
packages the data and moves it 

323
00:17:48,240 --> 00:17:51,040
around, right? 
And then above that you have 

324
00:17:51,040 --> 00:17:53,360
like application layers. 
And those are things where like,

325
00:17:53,760 --> 00:17:57,240
you know, you are, you're, 
you're not thinking about like 

326
00:17:57,280 --> 00:17:58,960
how to package the data or the 
stuff. 

327
00:17:58,960 --> 00:18:03,680
You're just thinking about. 
This is, you know, like what, 

328
00:18:03,680 --> 00:18:07,160
what, what the things you want 
to do, you know, So HTTP, for 

329
00:18:07,160 --> 00:18:09,760
example, abstracts like, OK, I 
want to get this resource, I 

330
00:18:09,760 --> 00:18:11,760
want to like update this 
resource, like stuff like that. 

331
00:18:11,760 --> 00:18:14,480
So application level stuff. 
You are correct, it's layer 4, 

332
00:18:14,480 --> 00:18:16,000
so good job. 
It's layer 4. 

333
00:18:16,160 --> 00:18:19,480
Great. 
I just like, no, I could have 

334
00:18:19,480 --> 00:18:22,840
been like 100% wrong. 
I, I, I, I was not confident at 

335
00:18:22,840 --> 00:18:25,840
all. 
But so, yeah, so this would be, 

336
00:18:25,840 --> 00:18:29,080
it's like the protocol that 
packages your data and sends it 

337
00:18:29,080 --> 00:18:31,440
around. 
It doesn't concern itself with 

338
00:18:31,440 --> 00:18:34,840
like, how does it get from my 
machine to your machine? 

339
00:18:34,840 --> 00:18:38,160
That's like layers below that or
it doesn't concern itself with 

340
00:18:38,160 --> 00:18:42,160
like is the router going to use 
the right like cable to send the

341
00:18:42,160 --> 00:18:44,640
right like the right signal 
through the right cable to get 

342
00:18:44,640 --> 00:18:46,840
to you? 
That's like below and that's the

343
00:18:46,840 --> 00:18:48,480
whole point of the of the 
pyramid, right? 

344
00:18:48,480 --> 00:18:50,360
Like they said, a layer doesn't 
really concern. 

345
00:18:50,520 --> 00:18:54,560
It usually takes advantage of 
what's below to provide features

346
00:18:54,800 --> 00:18:59,840
and support what's above. 
So like, for example, I will get

347
00:18:59,840 --> 00:19:02,400
there one SEC. 
I was saying that like so, so 

348
00:19:02,400 --> 00:19:05,440
this appears about like 
packaging this data and, and 

349
00:19:07,360 --> 00:19:10,520
welcome to this data. 
And in general, like providing 

350
00:19:10,520 --> 00:19:13,440
you with some guarantees. 
That's a big deal about TCP. 

351
00:19:13,440 --> 00:19:18,880
It's like guarantees. 
So for example, it, it provides 

352
00:19:18,880 --> 00:19:21,720
ordering guarantees it, it makes
sure that if I send like 2 

353
00:19:21,720 --> 00:19:24,080
pieces of data to you, they're 
going to get there in the right 

354
00:19:24,080 --> 00:19:29,200
order. 
So, and for example, they're 

355
00:19:29,200 --> 00:19:32,000
going to get there that if one 
gets lost, like they get resent 

356
00:19:32,040 --> 00:19:33,920
and all this stuff. 
So there's like a bunch of stuff

357
00:19:34,600 --> 00:19:38,720
related to transporting data 
that TCP concerns itself with. 

358
00:19:38,720 --> 00:19:42,760
Also packaging data in a way 
that like when if I send you 

359
00:19:43,000 --> 00:19:47,480
bytes like 1123, you're going to
get bytes 123. 

360
00:19:47,880 --> 00:19:51,720
And and it's going to package 
those in like a little frame 

361
00:19:51,720 --> 00:19:54,480
that has other information 
about, you know, like what frame

362
00:19:54,480 --> 00:19:56,640
number is this, you know, was it
acknowledged, blah, blah. 

363
00:19:57,000 --> 00:20:00,720
There's a bunch of stuff there. 
So that's that's TCP itself. 

364
00:20:00,800 --> 00:20:04,560
And like the thing that it does 
is that it enables to like it 

365
00:20:04,560 --> 00:20:08,320
enables to build applications on
top of this protocol that don't 

366
00:20:08,320 --> 00:20:12,200
have to be concerned with things
like if I send you a packet A 

367
00:20:12,200 --> 00:20:14,600
and packet B, are they going to 
arrive in the order that I sent 

368
00:20:14,600 --> 00:20:16,680
them? 
Because like what if one. 

369
00:20:17,160 --> 00:20:20,160
You know, goes on a cable on the
right and one goes on a cable on

370
00:20:20,160 --> 00:20:22,280
the left that's shorter and the 
one on the left is going to 

371
00:20:22,280 --> 00:20:25,720
arrive, you know, to you first 
and it's going to be out of 

372
00:20:25,720 --> 00:20:27,880
order. 
And so TCP concerns itself with 

373
00:20:27,880 --> 00:20:30,600
like at the destination, like it
puts them back together in 

374
00:20:30,640 --> 00:20:32,280
order. 
And so you don't have to concern

375
00:20:32,280 --> 00:20:34,000
yourself with like a lot of this
stuff. 

376
00:20:34,680 --> 00:20:37,640
That's what kind of TCP is. 
And you see this in action 

377
00:20:37,640 --> 00:20:40,680
already with something like 
HTTP, where like in HTTP you 

378
00:20:40,680 --> 00:20:44,160
don't really concern yourself. 
If I send two requests to the 

379
00:20:44,240 --> 00:20:47,040
same server, like are they going
to get there out of order? 

380
00:20:47,200 --> 00:20:50,560
Well, I mean, load balancing all
that, like multiple service. 

381
00:20:50,560 --> 00:20:54,200
But in general, a better example
is like if I send a request and 

382
00:20:54,200 --> 00:20:56,640
I send the headers and then I 
send the body, you don't really 

383
00:20:56,640 --> 00:20:59,200
think about, oh, this body's 
going to arrive there before the

384
00:20:59,200 --> 00:21:01,240
headers or like the headers are 
going to be scrambled. 

385
00:21:01,240 --> 00:21:04,800
Like, no, you send like a 
request with headers in like a 

386
00:21:04,800 --> 00:21:06,680
certain order and it all gets 
there. 

387
00:21:07,440 --> 00:21:09,120
Yeah, it all gets there in that 
order. 

388
00:21:09,120 --> 00:21:11,040
That's TCP at work. 
OK. 

389
00:21:13,200 --> 00:21:19,240
And then yeah. 
And then TCP is like guaranteed 

390
00:21:19,240 --> 00:21:21,920
or you know that it gets 
received as well, right? 

391
00:21:21,920 --> 00:21:26,840
You get a response back. 
So the TCP guarantees are that 

392
00:21:26,840 --> 00:21:29,920
the stuff that you send in a 
certain order gets delivered in 

393
00:21:29,920 --> 00:21:32,480
that order. 
If it gets delivered, you're 

394
00:21:32,480 --> 00:21:39,800
guaranteed that if you get a 
packet B that you send after 

395
00:21:39,800 --> 00:21:43,520
packet A, you got packet A as 
well at the destination. 

396
00:21:43,520 --> 00:21:45,880
So like if packet A goes 
missing, you're not going to get

397
00:21:45,880 --> 00:21:48,000
packet B either. 
So you're not you're never going

398
00:21:48,000 --> 00:21:50,800
to get a packet with like 
missing packets before that 

399
00:21:51,280 --> 00:21:54,200
essentially. 
And that's about it. 

400
00:21:54,240 --> 00:21:56,520
Like you don't really get much 
else. 

401
00:21:56,520 --> 00:22:00,080
So you like data ordering and 
like guaranteed delivery. 

402
00:22:00,360 --> 00:22:02,720
You don't get guarantees about 
response. 

403
00:22:02,720 --> 00:22:04,520
You don't like. 
The sender doesn't get 

404
00:22:04,520 --> 00:22:09,840
guaranteed that the the receiver
got the data that it sent 'cause

405
00:22:09,840 --> 00:22:13,040
it could like, but if you. 
Guarantee that everything you 

406
00:22:13,040 --> 00:22:16,160
send either gets there or 
doesn't that. 

407
00:22:16,360 --> 00:22:18,400
In yes and in the right order 
yeah. 

408
00:22:18,400 --> 00:22:19,680
Gotcha. 
So for example if you send 

409
00:22:19,680 --> 00:22:23,680
packet AB and C, you're 
guaranteed that like I mean 

410
00:22:23,760 --> 00:22:27,400
you're guaranteed that if the 
destination gets them it gets AB

411
00:22:27,400 --> 00:22:30,720
and C&C gotcha. 
But you're not guaranteed, for 

412
00:22:30,720 --> 00:22:32,440
example, that it gets them. 
You're not guaranteed that it 

413
00:22:32,440 --> 00:22:34,400
gets all three of them. 
It could get A&B and then a 

414
00:22:34,400 --> 00:22:37,240
connection drops. 
But you know, that's, that's 

415
00:22:38,560 --> 00:22:41,000
that's about it. 
It's a lot like it seems like a 

416
00:22:41,080 --> 00:22:44,040
little the little things, but 
there's the same guarantees that

417
00:22:44,400 --> 00:22:46,320
Elixir process keep with 
messages. 

418
00:22:46,480 --> 00:22:49,320
Like if I send you a message 
again, maybe on the note, you 

419
00:22:49,320 --> 00:22:51,600
also have the guarantee that the
data actually gets there. 

420
00:22:51,760 --> 00:22:53,520
But the process could die, for 
example, right? 

421
00:22:53,640 --> 00:22:55,000
So like it might not get there 
but. 

422
00:22:55,160 --> 00:22:57,560
So you could be broadcast into 
space. 

423
00:22:57,960 --> 00:23:01,120
And yeah, if the process doesn't
exist, yes. 

424
00:23:01,120 --> 00:23:03,920
Which is just kind of the same 
of like, yeah, yeah, sending 

425
00:23:03,920 --> 00:23:08,000
data on a, on a socket that is 
on an interrupted connection. 

426
00:23:08,000 --> 00:23:10,280
And you don't know this yet. 
So you keep sending the data 

427
00:23:10,280 --> 00:23:12,520
because like these things didn't
propagate to you yet. 

428
00:23:14,160 --> 00:23:20,960
Yeah, it's kind of like it's 
kind of mind blowing, but 

429
00:23:20,960 --> 00:23:24,360
everything works so well when 
you start like digging into the 

430
00:23:24,360 --> 00:23:29,400
nitty gritty. 
Yes, like 100% And like yes, I 

431
00:23:29,400 --> 00:23:32,760
mean yes, it's like a magical 
world we live in. 

432
00:23:32,800 --> 00:23:37,360
It's like crazy stuff that all 
this works just like and we get 

433
00:23:37,360 --> 00:23:41,120
so upset that like Internet goes
away for like 5 minutes and 

434
00:23:41,120 --> 00:23:42,800
you're like what the hell? 
I like why is this going? 

435
00:23:43,120 --> 00:23:45,440
What is going gauntlet? 
And it's like it's a miracle 

436
00:23:45,440 --> 00:23:48,760
that works the rest of the time.
It's not like it's not supposed 

437
00:23:48,760 --> 00:23:51,480
to work this well. 
And it's pretty stable for the 

438
00:23:51,480 --> 00:23:54,840
most part, right? 
I mean, yes. 

439
00:23:56,000 --> 00:24:00,360
What do you do you mind jumping 
into any like kind of like 

440
00:24:00,360 --> 00:24:04,160
spoilers of your book or are you
cool with just because I kind of

441
00:24:04,160 --> 00:24:07,000
like, I like your examples and 
your projects that you work 

442
00:24:07,000 --> 00:24:08,480
through. 
I don't think it's really 

443
00:24:08,520 --> 00:24:12,200
spoilers, but it might intrigue 
people to to jump into the and 

444
00:24:12,200 --> 00:24:15,560
buy the book because you you 
kind of build. 

445
00:24:15,560 --> 00:24:20,960
So you build a really cool like 
chat server essentially where 

446
00:24:20,960 --> 00:24:27,040
you connect, you authenticate 
and well you, you sign things 

447
00:24:27,040 --> 00:24:29,000
with like SSL and stuff like 
that. 

448
00:24:30,720 --> 00:24:34,080
Now that is all TCP protocol, 
right? 

449
00:24:34,880 --> 00:24:42,120
Yes, yes. 
So SSL or TLS is not a layer in 

450
00:24:42,120 --> 00:24:49,360
the OCOSI model because it's 
essentially serialization layer 

451
00:24:49,360 --> 00:24:52,960
on top of TCP. 
So like you can like it's built 

452
00:24:52,960 --> 00:24:57,600
literally on top of TCP so much 
so that like you can go see this

453
00:24:57,600 --> 00:25:01,000
in Erlang's segmentation in the 
SSL module, you have functions 

454
00:25:01,000 --> 00:25:04,880
that upgrade the TCP socket to A
to ATLS socket. 

455
00:25:05,680 --> 00:25:09,920
That's just, that's just it's 
way of saying like you have, you

456
00:25:09,920 --> 00:25:12,200
know, you have TCP socket, you 
can exchange data. 

457
00:25:12,400 --> 00:25:17,280
Now let's start encrypting this 
data and like telling each 

458
00:25:17,280 --> 00:25:21,240
other, I'm, I'm you, you're, you
encrypt this data and we're 

459
00:25:21,240 --> 00:25:24,400
going to trust each other. 
And if other listen, if others 

460
00:25:24,400 --> 00:25:26,800
listen to this traffic, they're 
not going to be able to decrypt 

461
00:25:26,800 --> 00:25:31,440
it, but it still disappear. 
A good example, which is very 

462
00:25:31,440 --> 00:25:34,600
akin to this is Websockets. 
So Websockets are just an 

463
00:25:34,600 --> 00:25:38,000
encryption like, sorry, an 
encoding and decoding like a 

464
00:25:38,000 --> 00:25:41,040
serialization layer on top of 
HTP, you know. 

465
00:25:41,040 --> 00:25:43,440
So like you do the same, you 
start an HTTP connection and you

466
00:25:43,440 --> 00:25:45,800
upgrade to a Websocket, meaning 
that you use the same 

467
00:25:45,800 --> 00:25:48,200
connection, which is ACP 
connection under the hood. 

468
00:25:48,600 --> 00:25:52,120
And then you just start talking 
web, start talking Websocket 

469
00:25:52,120 --> 00:25:55,880
instead of of talking HTTP. 
But it's kind of the same thing.

470
00:25:56,200 --> 00:26:01,160
Yeah, you start, you start the 
the handshake and basically like

471
00:26:01,160 --> 00:26:06,080
the signed token or whatever you
would call it over HTTP, right? 

472
00:26:06,760 --> 00:26:09,280
Yeah, yes, yes, exactly. 
You tell the server like I want 

473
00:26:09,280 --> 00:26:12,400
to open a websocket connection. 
You do this through an HTTP 

474
00:26:12,400 --> 00:26:15,600
request with the right headers 
and right stuff and you just 

475
00:26:15,600 --> 00:26:17,640
find some stuff and they say 
like, OK, yeah, yeah, you can, 

476
00:26:17,640 --> 00:26:20,040
you can use Websocket. 
They're going to reply with an 

477
00:26:20,040 --> 00:26:23,000
HTP connection and then from 
then on this connection, it's 

478
00:26:23,000 --> 00:26:26,120
just ATCP connection that talks 
a protocol that is the 

479
00:26:26,120 --> 00:26:28,120
Websocket. 
Like this realization protocol 

480
00:26:28,120 --> 00:26:30,680
is not HTTP anymore. 
It's Websockets, but started out

481
00:26:30,680 --> 00:26:33,920
as HTTP and SSL is like, you 
know, pretty similar in that 

482
00:26:33,920 --> 00:26:35,200
way. 
Like the the socket is still a 

483
00:26:35,200 --> 00:26:37,840
TCP socket, understood. 
The network doesn't have a 

484
00:26:37,840 --> 00:26:42,080
concept of SSSLSSL is kind of an
application like a business 

485
00:26:42,080 --> 00:26:47,360
logic concern over TCP where 
it's just like security data 

486
00:26:47,360 --> 00:26:50,400
mangling on top of TCP. 
Yeah, a little like a little add

487
00:26:50,400 --> 00:26:58,760
on a pipe operator in the TCP. 
Yes, exactly when. 

488
00:26:58,920 --> 00:27:01,880
So let's see, I wanna talk. 
Let me just pull up. 

489
00:27:02,120 --> 00:27:06,720
I wanna look at your your. 
And while you look at that, the 

490
00:27:06,720 --> 00:27:09,200
chat, the thing that you 
mentioned, it's, yes, it's like 

491
00:27:10,600 --> 00:27:14,280
a really basic use case to show 
like a server and a client 

492
00:27:14,280 --> 00:27:17,400
talking to each other in real 
time over TCP, which is a 

493
00:27:17,400 --> 00:27:19,920
concept that we're quite 
familiar with, I think because 

494
00:27:19,920 --> 00:27:21,760
of web sockets, right? 
Because like, this is what we're

495
00:27:21,760 --> 00:27:24,880
used to, like a chat over a web 
socket with a browser and 

496
00:27:24,880 --> 00:27:26,560
everything. 
But like, this is done straight 

497
00:27:26,560 --> 00:27:29,560
out of TCP, meaning that they 
could work on, you know, between

498
00:27:29,560 --> 00:27:33,760
any 2 computers, not just a 
browser or not just like a web 

499
00:27:33,760 --> 00:27:38,000
socket client or anything. 
Now, like when you're building 

500
00:27:38,000 --> 00:27:41,880
like a TCP server for like in 
this example, when you're like, 

501
00:27:41,880 --> 00:27:44,920
what are some like challenges 
that you're going to run into 

502
00:27:44,920 --> 00:27:47,760
when you have to like support 
and handle like thousands and 

503
00:27:47,760 --> 00:27:52,560
thousands of connections? 
Cuz you're creating a new socket

504
00:27:52,560 --> 00:27:56,000
for every connection, correct? 
Like with with your server at 

505
00:27:56,000 --> 00:27:58,880
that point. 
Yeah, that's no, you're not 

506
00:27:58,880 --> 00:28:02,040
going to get away with not doing
that because like people 

507
00:28:02,040 --> 00:28:04,760
connected to the server are 
using different machines. 

508
00:28:04,760 --> 00:28:08,200
So like the way you talk with 
machine to machine is through 

509
00:28:08,200 --> 00:28:10,920
socket. 
So in my experience, the 

510
00:28:10,920 --> 00:28:14,960
challenges generally come from 
the system operating system and 

511
00:28:14,960 --> 00:28:17,200
like the resource limits and all
the stuff like that, because 

512
00:28:17,200 --> 00:28:21,400
Proline is like pretty wild that
like, you know, just spinning up

513
00:28:21,400 --> 00:28:22,760
processes. 
It doesn't really care. 

514
00:28:22,760 --> 00:28:26,400
Like it's not. 
We're we have a lot 

515
00:28:26,480 --> 00:28:29,840
out-of-the-box just using the 
BMVM, don't we like? 

516
00:28:30,040 --> 00:28:33,080
Yeah. 
It kind of saves us because if 

517
00:28:33,080 --> 00:28:36,200
you had to build the same thing 
or similar in like node JS, it 

518
00:28:36,200 --> 00:28:39,640
would be a very different 
situation, yeah. 

519
00:28:39,640 --> 00:28:42,840
Because like other languages 
that don't have essentially 

520
00:28:42,960 --> 00:28:45,880
other run times, that don't have
lightweight threads, which is 

521
00:28:45,880 --> 00:28:49,080
like what we have that it's 
really awesome. 

522
00:28:49,280 --> 00:28:53,120
It's just like lightweight, 
lightweight threads. 

523
00:28:53,120 --> 00:28:56,120
Then if you like the process, 
right, if you don't have those 

524
00:28:56,760 --> 00:29:00,880
you like under the hood, you 
would have to implement what the

525
00:29:01,080 --> 00:29:03,120
beam is doing, right? 
So you have to implement like 

526
00:29:03,120 --> 00:29:04,880
scheduling and like, OK, open a 
thread. 

527
00:29:04,880 --> 00:29:07,360
And like it's kind of hard to 
open a thread for each 

528
00:29:07,560 --> 00:29:10,600
connection like socket, you 
know, or like connection you 

529
00:29:10,600 --> 00:29:13,200
have because like threads are 
like less lightweight than 

530
00:29:13,720 --> 00:29:15,520
processes. 
And so with processes this 

531
00:29:15,520 --> 00:29:17,240
becomes becomes really easy to 
implement. 

532
00:29:17,240 --> 00:29:19,720
Like you can really you don't 
usually the problem is not 

533
00:29:19,720 --> 00:29:22,200
spinning up like, you know, 
hundreds of thousands of 

534
00:29:22,280 --> 00:29:25,520
processes early on processes 
because like you can do that 

535
00:29:25,520 --> 00:29:27,240
just fine. 
The problem might be that you 

536
00:29:27,240 --> 00:29:31,200
are spinning up also hundreds of
thousands of sockets, which is 

537
00:29:31,200 --> 00:29:34,800
like more resource intense and 
stuff like that. 

538
00:29:36,680 --> 00:29:40,760
So the challenges are generally 
with resource usage I think. 

539
00:29:42,120 --> 00:29:44,240
Right. 
And then so when to scale your 

540
00:29:44,240 --> 00:29:47,840
resources and? 
Yeah, yeah, yeah. 

541
00:29:47,840 --> 00:29:50,080
Like how to scale your sources, 
like how to scale, you know, 

542
00:29:50,120 --> 00:29:53,600
machines and like they move away
from the single machine and 

543
00:29:53,600 --> 00:29:57,240
might go to problems like, OK, 
how do I make this support 

544
00:29:57,240 --> 00:29:59,680
multiple machines, right? 
So that you have like load 

545
00:29:59,680 --> 00:30:02,160
balancing across machines and 
all these problems that aren't 

546
00:30:02,160 --> 00:30:05,240
really not network problems or 
like distributed problems, like 

547
00:30:05,520 --> 00:30:10,480
scaling up distributed systems. 
But, and the only other thing 

548
00:30:10,480 --> 00:30:14,400
that maybe is I think, think 
about when when working on this 

549
00:30:14,400 --> 00:30:18,840
stuff is like making sure that 
your Erlang or Elixir server 

550
00:30:18,840 --> 00:30:23,760
system that you're writing does 
actually scale to many, many 

551
00:30:23,760 --> 00:30:26,600
processes without having 
bottlenecks. 

552
00:30:26,600 --> 00:30:29,080
Because like that can happen 
with things like, you know, you 

553
00:30:29,080 --> 00:30:31,800
have resources that are shared 
across all these processes 

554
00:30:31,800 --> 00:30:35,000
Because like if you have a 
process per socket, it doesn't 

555
00:30:35,000 --> 00:30:39,040
mean that every resource in your
system it's in that process. 

556
00:30:39,040 --> 00:30:41,240
So for example, you want to talk
to database, usually what you 

557
00:30:41,240 --> 00:30:43,920
have is that you have a pool of 
connections to the database, 

558
00:30:43,920 --> 00:30:46,120
right? 
So for example, if you have 

559
00:30:46,520 --> 00:30:50,080
100,000 processes serving 
requests in real time and every 

560
00:30:50,080 --> 00:30:53,880
request hits a database and you 
have a pool of like 5 database 

561
00:30:53,880 --> 00:30:56,600
connections, they're going to 
contend really hard for those 

562
00:30:56,600 --> 00:30:59,040
resources, right? 
So like that only becomes a 

563
00:30:59,040 --> 00:31:01,360
matter of like scaling things 
appropriately. 

564
00:31:01,640 --> 00:31:03,960
So it's like if you want to 
scale too many, many processes, 

565
00:31:03,960 --> 00:31:06,440
you also scale the resources 
that they're, if those processes

566
00:31:06,440 --> 00:31:09,440
use external resources, scale up
the resources that those 

567
00:31:09,440 --> 00:31:12,280
processes use. 
Try to avoid single tons like 

568
00:31:12,360 --> 00:31:16,040
bottlenecks for for like single 
process that every other process

569
00:31:16,040 --> 00:31:19,120
talks to and stuff like that. 
But those you get to learn, I 

570
00:31:19,120 --> 00:31:25,560
think, pretty pretty quickly. 
I feel like yeah, the database 

571
00:31:25,560 --> 00:31:29,760
is always going to be your 
slowest link to, especially with

572
00:31:29,760 --> 00:31:32,760
Beam VM. 
You can scale and do your node 

573
00:31:32,760 --> 00:31:36,200
clustering and all of that in a 
distributed system, and your 

574
00:31:36,200 --> 00:31:39,520
bottleneck is probably always 
going to be with your database. 

575
00:31:40,320 --> 00:31:42,680
Yeah, you're still gonna have 
like yes, to talk to database. 

576
00:31:42,680 --> 00:31:45,040
And if the database grows, 
you're, you're like you'll have 

577
00:31:45,040 --> 00:31:46,720
other problems. 
You're not gonna we're not gonna

578
00:31:46,720 --> 00:31:49,560
want to think about sharpening 
like all a whole other class of 

579
00:31:49,560 --> 00:31:51,480
problems that are not related to
the beam in any way. 

580
00:31:51,480 --> 00:31:54,200
Like no, it's just the the 
nature of storing data 

581
00:31:54,200 --> 00:31:56,920
persistently. 
Yeah, growing pens. 

582
00:31:57,120 --> 00:32:00,120
And like, yeah, it's a whole 
different ball game, too, once 

583
00:32:00,120 --> 00:32:02,600
you start having, you know, 
hundreds of thousands of 

584
00:32:02,600 --> 00:32:06,400
connections all needing data. 
100% yes. 

585
00:32:06,520 --> 00:32:11,920
Yes, exactly. 
We have Owen in the chat. 

586
00:32:11,920 --> 00:32:18,840
He wants to talk about HTTP 3. 
You can't talk about HTTP 3I. 

587
00:32:19,000 --> 00:32:20,960
Mean. 
So yeah, go ahead. 

588
00:32:21,600 --> 00:32:23,840
No, I mean like, what do you 
want to know about HTP? 

589
00:32:24,040 --> 00:32:27,240
I don't know very much but like.
I don't know anything about it. 

590
00:32:27,640 --> 00:32:30,160
I think we should we should 
bring Owen on and make him talk 

591
00:32:30,160 --> 00:32:34,400
about it so. 
I can give a quick overview of 

592
00:32:34,480 --> 00:32:39,320
at least what HTTP 3 is about. 
And the idea is that like you 

593
00:32:39,320 --> 00:32:42,160
kind of have to be really 
familiar with HTP 2 and like the

594
00:32:42,160 --> 00:32:45,000
evolution of HP 1 to HTP 2 to 
HTP 3. 

595
00:32:45,320 --> 00:32:50,720
So it kind of goes like this. 
Like HTP 2, HP 1 has like a big 

596
00:32:50,720 --> 00:32:56,400
class of problems related to 
scaling out, essentially scaling

597
00:32:56,400 --> 00:32:59,720
out requests. 
So in HTTP One, it's like 

598
00:32:59,720 --> 00:33:03,520
requests are pipeline like 
they're they're they follow one 

599
00:33:03,520 --> 00:33:05,480
another. 
So they weight up browsers, for 

600
00:33:05,480 --> 00:33:08,560
example, historically requested 
multiple resources concurrently,

601
00:33:08,560 --> 00:33:11,320
which is what you want to do is 
open multiple connections, 

602
00:33:11,320 --> 00:33:13,600
right? 
But if you open multiple 

603
00:33:13,600 --> 00:33:16,520
connections and there's like a 
lot of resources and then some 

604
00:33:16,520 --> 00:33:20,160
of those connections are just 
waiting like for, for data that 

605
00:33:20,160 --> 00:33:22,960
like, you know, takes a while to
come and like all this class of 

606
00:33:22,960 --> 00:33:26,320
problems. 
So HTP 2 also the protocol is 

607
00:33:26,320 --> 00:33:30,240
textual textual, which is like 
bad for performance generally 

608
00:33:30,240 --> 00:33:32,560
and like inflates size because 
like you have to represent 

609
00:33:32,560 --> 00:33:35,200
everything, not with the minimum
amount of data that you can, but

610
00:33:35,200 --> 00:33:37,520
like with data that's readable. 
So like asking characters. 

611
00:33:38,320 --> 00:33:43,400
So enter HTP 2, which aims at 
solving like, I think Google 

612
00:33:43,400 --> 00:33:47,400
like brought it up initially, 
like invented it and it was 

613
00:33:47,400 --> 00:33:50,040
called something else for sure. 
But the idea is that, OK, we 

614
00:33:50,040 --> 00:33:52,840
have HTP 2 now and it tries to 
solve those challenges. 

615
00:33:52,840 --> 00:33:54,200
So the big things are OK. 
It's not. 

616
00:33:54,200 --> 00:33:56,400
It's a binary protocol, so it's 
not text anymore. 

617
00:33:56,400 --> 00:33:59,360
It's just like bytes. 
So it can be compressed more 

618
00:33:59,360 --> 00:34:02,840
efficiently, like uses bits and 
bytes more efficiently and all 

619
00:34:02,840 --> 00:34:05,280
that. 
And it has this concept of 

620
00:34:05,640 --> 00:34:10,159
persistent connections and, and 
streams and streams are 

621
00:34:10,159 --> 00:34:16,320
essentially, it's similar to how
you have multiple like for, for 

622
00:34:16,320 --> 00:34:18,520
an Elixir audiences, like it 
would be similar to how you have

623
00:34:18,520 --> 00:34:22,040
multiple channels on the same 
same web socket connection, same

624
00:34:22,280 --> 00:34:25,000
Phoenix socket, right? 
So you have like these streams 

625
00:34:25,000 --> 00:34:28,159
are like when you send some 
data, you send it on a stream. 

626
00:34:28,320 --> 00:34:30,440
And when you receive data, you 
receive it on a stream. 

627
00:34:30,480 --> 00:34:33,480
And like, so you can have 
multiple streams in parallel 

628
00:34:33,480 --> 00:34:37,159
exchanging data on the same 
physical TCP connection. 

629
00:34:37,520 --> 00:34:40,239
That's a big deal about like 
always one of the big deals 

630
00:34:40,239 --> 00:34:45,320
about HTTP too. 
So this way, what does the 

631
00:34:45,320 --> 00:34:47,960
server, what does a client like?
And this is all HP is all 

632
00:34:47,960 --> 00:34:51,880
thought for browser stocking to 
servers and requesting websites 

633
00:34:51,880 --> 00:34:53,560
in particular, right? 
So you, if you think about in 

634
00:34:53,560 --> 00:34:56,400
this framing, it makes sense 
because now, now what a browser 

635
00:34:56,400 --> 00:35:00,720
can do is that it opens a single
HP2 connection to a website and 

636
00:35:00,760 --> 00:35:02,960
it essentially opens multiple 
streams. 

637
00:35:03,120 --> 00:35:07,000
And in one stream it says like 
get me the HTML, you know, like 

638
00:35:07,000 --> 00:35:08,840
for this page. 
And in another stream is like 

639
00:35:08,840 --> 00:35:13,080
now get me this image resource, 
now get me the CSS for this, you

640
00:35:13,080 --> 00:35:15,080
know, get me like scripts for 
this, right? 

641
00:35:15,280 --> 00:35:20,160
And in fact so much so that like
in Http://2generallyyouand. 

642
00:35:20,760 --> 00:35:22,960
That that's all happening in 
parallel, right? 

643
00:35:23,600 --> 00:35:27,440
That's happening technically 
sequentially because like your 

644
00:35:27,800 --> 00:35:30,400
data still going through one 
connection, but it's the same 

645
00:35:30,400 --> 00:35:32,880
deal like the same as when we 
say like concurrent versus 

646
00:35:32,880 --> 00:35:34,920
parallel. 
Like if two tasks are inter 

647
00:35:34,920 --> 00:35:40,080
lived with each other, they're 
generally faster or like faster 

648
00:35:40,080 --> 00:35:44,880
than to the two tasks executing 
sequentially because there are 

649
00:35:44,960 --> 00:35:48,680
slow parts of some tasks that 
like are going to just wait. 

650
00:35:48,680 --> 00:35:51,200
And if in the meantime you can 
execute another task. 

651
00:35:51,480 --> 00:35:52,920
And this is kind of exactly the 
same thing. 

652
00:35:52,920 --> 00:35:55,560
Like you are like, you know, the
browser is sending multiple 

653
00:35:55,560 --> 00:35:58,520
things on the same connection 
and it's filling up. 

654
00:35:58,520 --> 00:36:02,120
So if an image is big, if you 
have single requests on a 

655
00:36:02,360 --> 00:36:05,520
single, on a single connection 
with like HTTP one, if the 

656
00:36:05,520 --> 00:36:08,440
browser sends you an image, you 
have to wait for the whole image

657
00:36:08,440 --> 00:36:10,840
to come before the next thing 
that comes. 

658
00:36:11,080 --> 00:36:14,080
And HP2 instead is like, you can
interleave a little bit of image

659
00:36:14,080 --> 00:36:16,360
with like a little bit of CSS, 
but the CSS is gonna be really 

660
00:36:16,360 --> 00:36:17,960
fast. 
So you're gonna get the CSS 

661
00:36:17,960 --> 00:36:20,080
right like much sooner probably 
right? 

662
00:36:20,080 --> 00:36:22,320
And you can display. 
Let's say you're like, you can 

663
00:36:22,320 --> 00:36:23,880
kind of juggle the data that 
you're. 

664
00:36:23,880 --> 00:36:25,600
Getting you can kind of juggle 
the data yes. 

665
00:36:26,160 --> 00:36:29,760
So that's that's what HP 2 is 
for. 

666
00:36:29,760 --> 00:36:32,960
So you still might want to like 
open multiple connections. 

667
00:36:32,960 --> 00:36:36,360
But like the idea with this was 
to introduce like this sort of 

668
00:36:37,000 --> 00:36:40,440
persistent state full 
connections compared to the 

669
00:36:40,440 --> 00:36:43,280
persistent state that the non 
persistent state less 

670
00:36:43,280 --> 00:36:46,200
connections of HTP 1. 
So this is HTP 2. 

671
00:36:47,080 --> 00:36:50,600
And then they're like and it's 
built on TCP, right? 

672
00:36:51,480 --> 00:36:54,640
But then they're like, actually 
a bunch of these problems are 

673
00:36:54,640 --> 00:36:57,360
TCP problems are not HTP 2 
problems, now that we think 

674
00:36:57,360 --> 00:37:00,520
about it. 
Because for example, in TCP, I 

675
00:37:00,520 --> 00:37:03,840
said before that like if you 
send packet AB and C and you 

676
00:37:03,840 --> 00:37:09,200
lose B, even if A and C make it 
to the end, you have to resend C

677
00:37:09,200 --> 00:37:12,640
because like you don't like you 
have to resend B&C because like 

678
00:37:12,640 --> 00:37:15,120
you don't, you know, you don't, 
can't keep track of like what 

679
00:37:15,120 --> 00:37:17,400
you like, fill in the blanks or 
stuff. 

680
00:37:17,680 --> 00:37:20,520
And the problem with this is 
that putting now in the 

681
00:37:20,520 --> 00:37:26,200
perspective of HTTP too, if you 
lose some data on a particular 

682
00:37:26,200 --> 00:37:30,320
stream, like in a particular 
request, TCP forces you to 

683
00:37:30,320 --> 00:37:33,840
resend a lot of data for other 
requests that like you're not 

684
00:37:33,840 --> 00:37:36,120
interested in because like you 
lost some data for this request 

685
00:37:36,160 --> 00:37:38,240
like you want to retry parts of 
this particular. 

686
00:37:38,240 --> 00:37:41,800
So then everything in front of 
it in order has to be resent. 

687
00:37:42,560 --> 00:37:45,880
Yes, even though even if that's 
interleaved and if that juggled 

688
00:37:45,880 --> 00:37:48,840
because HP2 allows you to, TCP 
doesn't. 

689
00:37:48,840 --> 00:37:52,240
TCP still says like OK, still 
like a street, a single stream 

690
00:37:52,480 --> 00:37:54,800
of data. 
And we don't know what this data

691
00:37:54,800 --> 00:37:58,680
belongs, like the level, the 
layer above TCP has to organize 

692
00:37:58,680 --> 00:38:02,040
this data into obstructions like
streams, right? 

693
00:38:02,120 --> 00:38:05,800
So that's what HP2 does. 
So, and so they were like, OK, 

694
00:38:05,800 --> 00:38:07,760
this is a problem with TCP. 
Actually, what we're going to do

695
00:38:07,760 --> 00:38:10,240
is we're going to design A 
protocol that kind of replaces 

696
00:38:10,240 --> 00:38:13,400
TCP. 
And they came up with this thing

697
00:38:13,400 --> 00:38:19,200
called Quick QIQUIC doesn't 
stand for anything. 

698
00:38:19,200 --> 00:38:23,040
It's just the name, Quick. 
I made sure because I have. 

699
00:38:23,040 --> 00:38:25,080
I have. 
AI was just about to go in. 

700
00:38:25,120 --> 00:38:27,600
The book too. 
Yeah, no, I, I wrote it in the 

701
00:38:27,600 --> 00:38:29,760
book and I was like quick, which
like kind of doesn't stand for 

702
00:38:29,760 --> 00:38:32,800
anything as far as I know. 
But like, so this, this quick 

703
00:38:32,800 --> 00:38:38,400
protocol is like, let's make 
this streams feature essentially

704
00:38:38,400 --> 00:38:42,280
available to the to the 
transport protocol instead of to

705
00:38:42,280 --> 00:38:45,080
the application, instead of like
to the application protocol like

706
00:38:45,200 --> 00:38:48,640
HTTP. 
So now quick is like TCP, but 

707
00:38:48,640 --> 00:38:52,520
you have streams of, of data, 
whatever, like the product that 

708
00:38:52,520 --> 00:38:54,200
you know, this organization 
that's on top of it. 

709
00:38:54,440 --> 00:38:56,240
You have these streams of data 
and they didn't know. 

710
00:38:56,240 --> 00:38:59,840
It's like, so you feel like his 
hands data on stream A, stream B

711
00:38:59,840 --> 00:39:02,120
and stream C stream B loses some
data. 

712
00:39:02,120 --> 00:39:04,600
You only have to retry data from
for stream B. 

713
00:39:04,920 --> 00:39:08,760
And so it has all these little 
touches from HTTP 2, affirmative

714
00:39:08,800 --> 00:39:10,880
ideas from HTTP 2 that go into 
quick. 

715
00:39:11,240 --> 00:39:17,840
Now quick is built on top of UDP
because because they're like you

716
00:39:17,840 --> 00:39:20,960
like you can imagine pretty 
easily the number of computers 

717
00:39:20,960 --> 00:39:23,360
that are out there in the wild 
talking to each other, right? 

718
00:39:23,800 --> 00:39:26,240
And they all talk UDP and they 
all. 

719
00:39:28,040 --> 00:39:30,000
That's a nice one. 
The missing K in quick 

720
00:39:30,000 --> 00:39:35,200
represents a dropped packet. 
Maybe there's a comment in the 

721
00:39:35,240 --> 00:39:36,840
chat. 
Anyway, I was saying that. 

722
00:39:38,440 --> 00:39:41,440
Oh, that's funny. 
Yeah, I would say that quick, 

723
00:39:41,680 --> 00:39:45,520
quick is it's built on UDP 
because all the computers in the

724
00:39:45,520 --> 00:39:48,560
world kind of talk TCP and talk 
UDP. 

725
00:39:49,160 --> 00:39:52,360
So you don't do and like 
firewalls do and like, you know,

726
00:39:52,480 --> 00:39:54,480
the routing is built for these 
protocols. 

727
00:39:54,480 --> 00:39:57,920
ISPs know these protocols. 
They're kind of like the two 

728
00:39:57,920 --> 00:40:00,360
protocols. 
You know, there's not like a lot

729
00:40:00,360 --> 00:40:04,440
more going on at that layer. 
So they're like, OK, if we come 

730
00:40:04,440 --> 00:40:07,280
up with a new protocol at the 
layer and we just call it quick,

731
00:40:07,520 --> 00:40:10,640
how long before everybody starts
to implement it, right? 

732
00:40:10,680 --> 00:40:13,520
It might be quite a while. 
So that what they're what 

733
00:40:13,520 --> 00:40:16,440
they're doing is like, OK, let's
just build it on top of UDP for 

734
00:40:16,440 --> 00:40:17,640
context. 
UDP is just. 

735
00:40:17,960 --> 00:40:21,320
TCP, but like without any 
guarantee, you just like send 

736
00:40:21,320 --> 00:40:23,720
data and you don't know if like 
if it arrives in order, if it 

737
00:40:23,720 --> 00:40:26,040
arrives and everything. 
So they built all this stuff in 

738
00:40:26,040 --> 00:40:28,360
the quick protocol as well as 
streams. 

739
00:40:28,360 --> 00:40:32,960
So this kind of like TCP on 
steroids built on UDP to tie the

740
00:40:32,960 --> 00:40:35,280
loop. 
Now they're like, OK, we have 

741
00:40:35,280 --> 00:40:39,120
HTP 2 on TCP, right? 
And, and this is kind of 

742
00:40:39,120 --> 00:40:41,720
working, but we want some of 
these features at the protocol 

743
00:40:41,720 --> 00:40:44,520
level. 
So we built Quick on UDP. 

744
00:40:44,960 --> 00:40:49,000
Now, can we use HTP 2 with Quick
and they're like, of course we 

745
00:40:49,000 --> 00:40:51,720
can, but it's duplicating a lot 
of logic. 

746
00:40:51,720 --> 00:40:54,080
It's duplicating a lot of 
features that Quick now has, 

747
00:40:54,080 --> 00:40:55,960
right? 
So what we're going to do is 

748
00:40:55,960 --> 00:40:58,200
we're just going to make 
Http://3which. 

749
00:40:58,200 --> 00:41:01,440
Is like take away stuff. 
Take away stuff from HTTP 2 

750
00:41:01,440 --> 00:41:05,560
because now because HTTP 3 
essentially it's HTP on quick. 

751
00:41:06,480 --> 00:41:09,840
OK. 
So and like so it's really hard 

752
00:41:09,840 --> 00:41:13,640
to not do this whole ramble 
about it and explain what HTTP 3

753
00:41:13,640 --> 00:41:16,000
is because otherwise it doesn't 
make sense like. 

754
00:41:16,520 --> 00:41:20,280
I've enjoyed the ramble. 
OK, I'm very I'm very happy, but

755
00:41:20,600 --> 00:41:23,880
this ramble's in the book as 
well, but like probably less 

756
00:41:24,000 --> 00:41:28,880
more polished than what I what I
could do now, but there's not a 

757
00:41:28,880 --> 00:41:32,120
lot of info. 
Oh, and like a spoiler if you 

758
00:41:32,120 --> 00:41:35,000
want to like, if you want to 
learn more about HTP 3, do not 

759
00:41:35,000 --> 00:41:37,560
buy this book. 
It's not going to talk about HTP

760
00:41:37,760 --> 00:41:43,520
3 because HTP 3 is really young.
There's like really there's no 

761
00:41:43,520 --> 00:41:45,400
good support for quick in 
Erlang. 

762
00:41:45,400 --> 00:41:46,960
There's like external libraries 
you have to use. 

763
00:41:46,960 --> 00:41:50,800
There's like, whereas with TCP 
and SSL and UDP you have all 

764
00:41:50,800 --> 00:41:52,880
this stuff built in into the 
core. 

765
00:41:52,880 --> 00:41:56,160
You have to, if we're quick, you
have to use names written in 

766
00:41:56,160 --> 00:41:59,240
like Roster C++ that I remember.
But like you have to use 

767
00:41:59,240 --> 00:42:01,960
external libraries. 
I don't know that there's, I 

768
00:42:01,960 --> 00:42:05,120
don't even remember if there's 
official support for HP 3 on top

769
00:42:05,120 --> 00:42:07,000
of quick anywhere, if there are 
libraries for that. 

770
00:42:07,000 --> 00:42:12,280
So it's kind of like a really 
like a hard thing to use in 

771
00:42:12,280 --> 00:42:16,800
general, I believe. 
But in kind of like in, it's 

772
00:42:16,840 --> 00:42:19,800
really weird. 
It's really hard to use it use 

773
00:42:19,800 --> 00:42:23,800
it as a user in Erlang and in 
general. 

774
00:42:23,800 --> 00:42:28,200
Like yeah. 
I feel like those kind of 

775
00:42:28,200 --> 00:42:31,400
changes that they're, they have 
to be very hard to start 

776
00:42:31,400 --> 00:42:34,440
integrating and actually being 
used in the real world. 

777
00:42:35,560 --> 00:42:38,680
Yep. 
And like if you think about how 

778
00:42:38,680 --> 00:42:47,800
much real world traffic goes 
through proxies or ISPs or big 

779
00:42:47,800 --> 00:42:52,240
companies like Google or like 
you know, this tech giants, they

780
00:42:52,240 --> 00:42:54,040
are the ones who want to do 
this. 

781
00:42:54,040 --> 00:42:58,040
Like it's not me with my own 
personal static website, with my

782
00:42:58,040 --> 00:43:00,400
blog. 
I don't care about serving HTTP 

783
00:43:00,400 --> 00:43:02,840
3 because like I'm not 
optimizing for anything. 

784
00:43:02,840 --> 00:43:06,480
I don't have traffic like 
nothing the the things that 

785
00:43:06,480 --> 00:43:09,680
they're like Google is using 
like HTTP 3 is in production 

786
00:43:09,680 --> 00:43:12,280
already. 
Like for sure Google and like at

787
00:43:12,280 --> 00:43:15,120
other places, like, you know, 
browsers kind of support it here

788
00:43:15,120 --> 00:43:16,880
and there. 
Like it's not the like it's a 

789
00:43:16,880 --> 00:43:19,520
real world thing. 
It's just that like it's not 

790
00:43:19,520 --> 00:43:24,800
very, you know, it's not 
something that like I think most

791
00:43:24,800 --> 00:43:28,560
people would care about. 
It's like for this really heavy,

792
00:43:28,560 --> 00:43:32,120
like for Google shaving off, you
know, for whoever, like Amazon, 

793
00:43:32,120 --> 00:43:35,640
whatever, whatever, like shaving
off 4 bytes for every request 

794
00:43:35,760 --> 00:43:39,960
translates to an unimaginable 
amount of bytes for like yes, 

795
00:43:40,000 --> 00:43:42,280
for normal people it doesn't 
matter. 

796
00:43:42,280 --> 00:43:44,960
I would say so. 
And also it's a very young 

797
00:43:44,960 --> 00:43:47,040
technology. 
So like it's it's like it's not 

798
00:43:47,040 --> 00:43:49,560
really certain where like we're 
talking about. 

799
00:43:49,560 --> 00:43:54,000
I think quick or quick either 
quick quick might be older, but 

800
00:43:54,000 --> 00:43:56,040
HP three I think is in the 20 
twenties. 

801
00:43:56,640 --> 00:43:59,720
It's like, it might be like even
a post pandemic protocol. 

802
00:43:59,720 --> 00:44:04,800
So. 
So yeah, that's really that's 

803
00:44:04,800 --> 00:44:09,000
very new. 
Owen has another question. 

804
00:44:09,000 --> 00:44:11,560
He said he's been using Gen. 
TCP lately. 

805
00:44:11,560 --> 00:44:13,640
Can you talk about the 
difference between that and 

806
00:44:13,640 --> 00:44:17,240
Mint? 
Yes, of course. 

807
00:44:17,920 --> 00:44:21,480
So Gen. 
TCP is for context is the Erlang

808
00:44:22,240 --> 00:44:26,280
standard library module for 
interfacing with TCP both on the

809
00:44:26,280 --> 00:44:29,440
server aside and as well on the 
client side. 

810
00:44:29,840 --> 00:44:37,640
And Mint is an HTTP client only 
that I wrote together with Eric 

811
00:44:37,640 --> 00:44:43,720
from the Alex Record team, which
has some similarities but Mint 

812
00:44:43,720 --> 00:44:45,400
is like. 
The first big difference is the 

813
00:44:45,560 --> 00:44:50,400
chant TCP is like anything on 
TCP and Mint is instead HTTP 

814
00:44:51,880 --> 00:44:53,680
Mint so much so that Mint uses 
Gen. 

815
00:44:53,680 --> 00:44:58,560
TCP to actually, you know talk 
HTP with server. 

816
00:45:00,080 --> 00:45:03,320
And the idea with Mint was that 
we we built a client that 

817
00:45:04,440 --> 00:45:10,640
essentially wraps Gen. 
TCP with awareness of HTTP. 

818
00:45:11,000 --> 00:45:15,640
So it does so the the same way 
that you have disappear layer 4 

819
00:45:15,640 --> 00:45:19,240
of this also OSI model and then 
HP layer 5. 

820
00:45:20,440 --> 00:45:23,560
So which which is HTP 
essentially is data 

821
00:45:23,680 --> 00:45:27,680
serialization and semantics on 
top of the data transport that 

822
00:45:27,680 --> 00:45:35,040
is TCP. 
Mint is the embodiment of of 

823
00:45:35,040 --> 00:45:37,960
that. 
So it's like it it wraps ATCP 

824
00:45:37,960 --> 00:45:42,600
socket and it understands HTTP. 
So the data that comes in, it 

825
00:45:42,600 --> 00:45:46,360
parses it as HTTP and it can 
like build it into requests, 

826
00:45:46,360 --> 00:45:51,320
responses, all this stuff and. 
So is that it's more session 

827
00:45:51,320 --> 00:45:56,560
layer than mint or not quite? 
Than it is genter CP yes, yes, 

828
00:45:57,760 --> 00:46:00,640
yes, yes, exactly. 
So it's kind of like a wrapper, 

829
00:46:00,640 --> 00:46:04,600
I think like if you imagine like
a genter CP socket as you know, 

830
00:46:04,600 --> 00:46:10,280
like this this thing that can 
send and receive raw data and 

831
00:46:10,280 --> 00:46:12,360
doesn't understand much much 
else. 

832
00:46:13,560 --> 00:46:17,320
Mint is like this shell around 
it that also understands 

833
00:46:19,200 --> 00:46:23,640
understands data in the form of 
HTP and can like do you know, 

834
00:46:23,640 --> 00:46:27,240
semantic of like, OK, this is an
HTP request instead of just a 

835
00:46:27,240 --> 00:46:30,480
bunch of bytes, there's an HTP 
request with headers and status 

836
00:46:30,480 --> 00:46:33,080
and all the HTP semantics that 
we care about. 

837
00:46:35,080 --> 00:46:39,400
It's sort of like in in in an 
analogous way, you could think 

838
00:46:39,400 --> 00:46:44,960
of main as SSL in the in, in the
sense that like SSL is sort of 

839
00:46:44,960 --> 00:46:47,240
the same. 
Like it's a shell around ATCP 

840
00:46:47,280 --> 00:46:52,640
socket, like an SSL socket is in
a shell around ATCP socket that 

841
00:46:52,640 --> 00:46:54,800
when data goes out, it encrypts 
it. 

842
00:46:55,080 --> 00:46:57,040
When data comes in, it decrypts 
it, right? 

843
00:46:57,040 --> 00:47:00,360
So you still manage just bytes, 
but like there's something that 

844
00:47:00,360 --> 00:47:02,560
it does, you don't see the 
encrypted bytes, you don't see 

845
00:47:02,560 --> 00:47:05,600
the decrypted, you don't see the
encrypted bytes going in or out.

846
00:47:05,600 --> 00:47:08,200
You just see the decrypted ones.
With Mint, it's kind of the 

847
00:47:08,200 --> 00:47:09,840
same. 
You don't see the bytes that 

848
00:47:09,840 --> 00:47:12,760
make up HTTP, You see HTP 
concepts. 

849
00:47:12,760 --> 00:47:17,320
So you, you don't send bytes, 
you send a request with status 

850
00:47:17,320 --> 00:47:21,080
header, I'm sorry, with like 
method headers and the body and 

851
00:47:21,080 --> 00:47:24,960
then you don't get back bytes. 
You get back, you know, a status

852
00:47:25,040 --> 00:47:27,320
response headers, response body 
and stuff like that. 

853
00:47:28,360 --> 00:47:31,760
But it's still just a socket. 
So there's no process involved. 

854
00:47:31,760 --> 00:47:34,480
You're just sending data 
straight through the wire and 

855
00:47:34,480 --> 00:47:37,680
getting data back from the wire,
which is a big difference with 

856
00:47:37,760 --> 00:47:44,360
other HP clients historically, 
which are very focused on like 

857
00:47:44,360 --> 00:47:48,240
they're very process based. 
So if you look at clients like 

858
00:47:48,520 --> 00:47:53,360
acne or if you look at clients 
like gun or even clients built 

859
00:47:53,360 --> 00:47:58,080
on top of mint, like Finch or 
Wreck, which is built on top of 

860
00:47:58,080 --> 00:48:01,480
that, they are, they are very 
process based. 

861
00:48:01,480 --> 00:48:04,440
Like they take care of the 
pulling, pulling connect HP 

862
00:48:04,440 --> 00:48:08,480
connections and like, you know, 
doing some stuff on like 

863
00:48:08,480 --> 00:48:11,280
aggregating parts of the 
response coming back and 

864
00:48:11,280 --> 00:48:13,520
streaming requests, like all 
this sort of stuff. 

865
00:48:14,320 --> 00:48:16,520
It's very low level. 
It's just the abstraction 

866
00:48:16,520 --> 00:48:18,880
around. 
It's like a PCP socket that's 

867
00:48:18,880 --> 00:48:20,640
aware of the HP protocol 
basically. 

868
00:48:21,320 --> 00:48:25,280
OK, cool. 
And that you use your library in

869
00:48:25,280 --> 00:48:28,040
this book, right? 
I think you use it. 

870
00:48:28,040 --> 00:48:32,320
Do you use it? 
Now you want to explain like 

871
00:48:32,320 --> 00:48:38,680
what the acceptor like pool 
pattern is and like how you use 

872
00:48:38,680 --> 00:48:40,760
it. 
Yeah, yeah. 

873
00:48:40,760 --> 00:48:43,040
So yeah, to answer the question,
the first question is yes, like 

874
00:48:43,080 --> 00:48:45,320
this, this. 
There's an HTTP chapter in the 

875
00:48:45,320 --> 00:48:49,360
book and it uses main because I 
believe that's the most like the

876
00:48:49,360 --> 00:48:52,200
closest you can get to network 
programming is like, you know, 

877
00:48:52,200 --> 00:48:57,760
to use the lowest level tool. 
I like that you like bring very 

878
00:48:57,760 --> 00:49:00,360
useful tools without like going 
over the top. 

879
00:49:00,560 --> 00:49:04,160
Like you kind of introduce tools
that just help your day-to-day. 

880
00:49:04,440 --> 00:49:07,720
And I also like that you bring 
in like using like Wireshark to 

881
00:49:07,720 --> 00:49:11,800
actually observe the difference,
like when things are signed and 

882
00:49:11,800 --> 00:49:15,680
encrypted versus yeah, or not. 
And I think those are just very 

883
00:49:15,680 --> 00:49:19,600
important things that like you 
have to start understanding and 

884
00:49:19,600 --> 00:49:22,920
seeing the difference in data 
transmission, right? 

885
00:49:23,800 --> 00:49:25,120
Yeah, yeah, yeah, yeah. 
It's not. 

886
00:49:25,600 --> 00:49:28,560
This is not. 
So like all most all the data 

887
00:49:28,560 --> 00:49:29,760
flows in and out of your 
computer. 

888
00:49:29,760 --> 00:49:32,520
You can look at. 
Yeah, yeah, it's engraved that 

889
00:49:32,520 --> 00:49:36,200
like, you know, bad luck, but 
like a lot of it, if it's 

890
00:49:36,200 --> 00:49:39,360
encrypted by you, you can look 
at the actual data going in and 

891
00:49:39,360 --> 00:49:40,480
out. 
It's really fun. 

892
00:49:41,360 --> 00:49:44,280
The acceptor pattern pool. 
This is a server side thing for 

893
00:49:44,280 --> 00:49:49,120
TCP, and the idea is that the 
way that TCP works is that you 

894
00:49:49,120 --> 00:49:50,640
have a server side and a client 
side. 

895
00:49:50,640 --> 00:49:53,120
And they're different in that a 
server is listening for a 

896
00:49:53,120 --> 00:49:55,800
connection. 
A client is opening connections 

897
00:49:55,800 --> 00:49:58,000
to a server. 
So it's like the connection is 

898
00:49:58,080 --> 00:50:00,960
always one directional, right? 
You have to have something that 

899
00:50:00,960 --> 00:50:04,360
initiates the connection knowing
where the receiver of the 

900
00:50:04,360 --> 00:50:06,320
connection is, which is the 
server, right? 

901
00:50:06,800 --> 00:50:10,760
And the way it works is that to,
to listen for connections, a 

902
00:50:10,760 --> 00:50:16,520
server opens this thing called 
an, a listen socket that this 

903
00:50:16,520 --> 00:50:18,720
would be a listen socket. 
And this is a socket that like 

904
00:50:18,720 --> 00:50:22,720
binds to an address like, you 
know, an IP address or whatever,

905
00:50:22,720 --> 00:50:25,280
and like to an interface to port
and everything. 

906
00:50:25,640 --> 00:50:27,200
And like listens for 
connections. 

907
00:50:27,200 --> 00:50:29,360
And the way you do that is that 
you start with this listing 

908
00:50:29,360 --> 00:50:33,040
socket and then you call this 
accept function on the listing 

909
00:50:33,040 --> 00:50:35,600
socket and accept to gently P 
dot accept. 

910
00:50:35,600 --> 00:50:38,560
That's what it's called. 
And this function just blocks 

911
00:50:38,760 --> 00:50:42,480
and waits until a client 
connects to the server. 

912
00:50:43,160 --> 00:50:45,320
As soon as a client connects to 
the server, this function 

913
00:50:45,320 --> 00:50:49,080
returns a new socket, which 
represent the connection between

914
00:50:49,360 --> 00:50:52,240
the client and the server, 
right? 

915
00:50:52,720 --> 00:50:55,720
But you still have the original 
list in socket and now you can 

916
00:50:55,720 --> 00:50:58,680
accept a new connection, right? 
And so basically what what a 

917
00:50:58,680 --> 00:51:01,720
server essentially does is this 
accept loop, right? 

918
00:51:01,720 --> 00:51:04,080
Where like it has starts with 
the list in socket and then it 

919
00:51:04,080 --> 00:51:06,240
calls accept. 
And then as soon as the client 

920
00:51:06,240 --> 00:51:10,800
connects, it spawns off of like 
it returns socket to CP socket. 

921
00:51:10,800 --> 00:51:13,960
It spawns off a process where 
the client and the server socket

922
00:51:13,960 --> 00:51:15,640
can talk to each other and do 
their own thing. 

923
00:51:15,880 --> 00:51:18,600
And then it right away goes back
into accept for the next 

924
00:51:18,600 --> 00:51:22,080
connection, right? 
So that's kind of like the TCP 

925
00:51:22,080 --> 00:51:25,000
accept accept loop. 
The problem arises when like 

926
00:51:25,080 --> 00:51:27,640
what if you have like 1000 
clients connecting at once? 

927
00:51:28,440 --> 00:51:32,320
The the thousandth client is 
going to have to wait for the 

928
00:51:32,320 --> 00:51:35,680
99999. 
Because you got to queue up 

929
00:51:35,680 --> 00:51:36,840
right? 
Yeah. 

930
00:51:36,840 --> 00:51:40,280
So before it before like the 
server actually has time to get 

931
00:51:40,280 --> 00:51:44,440
to that one. 
And like, you know, return like 

932
00:51:44,440 --> 00:51:47,400
to that accept call that then 
returns the socket and spins 

933
00:51:47,400 --> 00:51:52,280
out, spins out the process. 
So at some point, maybe I don't 

934
00:51:52,280 --> 00:51:57,000
know Erlang like 13 like very 
pretty early on for Elixir 

935
00:51:57,000 --> 00:52:01,160
standards, but at some point 
Erlang introduced the ability to

936
00:52:01,160 --> 00:52:05,120
call this a chance to be accept 
function from multiple 

937
00:52:05,120 --> 00:52:07,240
processes. 
Meaning that you have this one 

938
00:52:07,240 --> 00:52:10,800
listen socket, but multiple 
processes can be listening for 

939
00:52:10,800 --> 00:52:14,680
connections at the same time so 
that all of this process can go 

940
00:52:14,680 --> 00:52:17,000
into this loop. 
But you can parallelize this 

941
00:52:17,000 --> 00:52:19,800
this this loop basically. 
So now you can have like 

942
00:52:19,800 --> 00:52:22,840
something like 50 processes so 
that if you have 1000 clients 

943
00:52:22,840 --> 00:52:28,680
connecting, you know, they can 
queue up distributed over 5050 

944
00:52:28,680 --> 00:52:30,960
acceptor processes rather than 
just one. 

945
00:52:31,560 --> 00:52:34,080
So it kind of scales up. 
One of the things that like you 

946
00:52:34,080 --> 00:52:35,840
have, you don't want to have 
single. 

947
00:52:35,840 --> 00:52:37,880
One of the things I talked about
at the beginning, how do you how

948
00:52:37,880 --> 00:52:39,160
do you write performance 
servers? 

949
00:52:39,160 --> 00:52:41,480
What are the challenges? 
What are the things that you're 

950
00:52:41,480 --> 00:52:43,800
going to encounter? 
One of them is bottlenecks. 

951
00:52:44,000 --> 00:52:46,880
And this like accept loop was a 
bottleneck, right? 

952
00:52:46,880 --> 00:52:50,480
So they fix it by like just 
pulling things up and saying 

953
00:52:50,480 --> 00:52:52,520
like, OK, you can call it for 
multiple processes and I can 

954
00:52:52,520 --> 00:52:54,800
cool pull these acceptors and 
all of these are you? 

955
00:52:54,800 --> 00:52:57,480
Control how large your pool is 
at that point, right? 

956
00:52:57,520 --> 00:53:00,280
Depending on what you're what 
you need, yeah. 

957
00:53:00,560 --> 00:53:03,800
Yeah, yeah, yeah. 
So you can go the server, the HP

958
00:53:03,800 --> 00:53:07,400
server that you're using uses 
this pattern 100%, like couple 

959
00:53:07,400 --> 00:53:09,480
uses it, Bandit uses it and all 
this. 

960
00:53:09,600 --> 00:53:13,240
You can go look at how many 
acceptors they run and you can 

961
00:53:13,240 --> 00:53:15,920
configure that in all of them, 
yeah. 

962
00:53:16,480 --> 00:53:18,120
No. 
It's good, though, to actually 

963
00:53:18,120 --> 00:53:19,560
understand what they're doing 
right. 

964
00:53:21,280 --> 00:53:24,080
I yes I agree. 
That's why I wrote the book. 

965
00:53:24,360 --> 00:53:27,160
Yeah, no, I think it's great 
because like so much of this 

966
00:53:27,160 --> 00:53:29,400
stuff is like Magic Box stuff to
me. 

967
00:53:29,400 --> 00:53:32,160
And it it makes you actually 
think about what you're doing. 

968
00:53:32,280 --> 00:53:33,760
Yeah. 
Because when it comes down to 

969
00:53:33,760 --> 00:53:37,760
performance, a lot of times just
relying on a framework of 

970
00:53:37,760 --> 00:53:40,560
library isn't going to solve 
your problems right if you don't

971
00:53:40,560 --> 00:53:43,960
know how they're working. 
That's exactly my point from the

972
00:53:43,960 --> 00:53:46,760
beginning of this chat that we 
had, which was that like, this 

973
00:53:46,760 --> 00:53:48,640
stuff is really important. 
The more you advance in your 

974
00:53:48,640 --> 00:53:51,840
career because you're gonna be 
expected the like, if something 

975
00:53:51,840 --> 00:53:54,320
like if, like, you're going to 
be expected to understand what 

976
00:53:54,320 --> 00:53:58,520
happens in order to debug 
performance issues and like just

977
00:53:58,520 --> 00:54:01,400
errors. 
Like anything like to debug this

978
00:54:01,400 --> 00:54:04,240
kind of stuff. 
Like you don't want to like you 

979
00:54:04,640 --> 00:54:07,800
kind of really want to know what
happens when I send an HTTP 

980
00:54:07,800 --> 00:54:09,440
request. 
You don't want to say like, oh, 

981
00:54:09,440 --> 00:54:12,120
I send it, but like, Oh no, it's
like it didn't get there for 

982
00:54:12,120 --> 00:54:13,720
example. 
But like, you know, there's like

983
00:54:13,880 --> 00:54:15,720
a like a bunch of layers 
underneath. 

984
00:54:15,720 --> 00:54:19,520
There's like, oh, like, why is 
my like I have many short lived 

985
00:54:19,520 --> 00:54:21,360
requests from many, many, many 
clients. 

986
00:54:21,360 --> 00:54:24,240
Why is my server slow? 
Maybe like you just have to bump

987
00:54:24,240 --> 00:54:26,640
the acceptor pool. 
But if you don't understand what

988
00:54:26,640 --> 00:54:29,440
the acceptor pool is, you're 
just like playing, you know, 

989
00:54:29,480 --> 00:54:32,760
roulette with the numbers that 
like the server lets you 

990
00:54:32,760 --> 00:54:35,000
configure, for example, right. 
So like, it's yes, I, I think 

991
00:54:35,000 --> 00:54:37,680
it's, it's good. 
And like, even though you're not

992
00:54:37,680 --> 00:54:40,800
going to maybe write an acceptor
pool yourself to understand how 

993
00:54:40,800 --> 00:54:45,240
it works, enables you to like 
actually, for example, operate 

994
00:54:45,240 --> 00:54:47,720
it with, with, you know, like 
intent. 

995
00:54:48,600 --> 00:54:51,040
Yeah, just knowing that it's 
there, right? 

996
00:54:51,760 --> 00:54:53,800
Like knowing it's there, what it
was like, what the, what the 

997
00:54:53,800 --> 00:54:57,600
idea is like you know and and 
like being able to like tweak it

998
00:54:57,600 --> 00:54:59,200
with intent, like knowing what 
you're doing. 

999
00:55:00,120 --> 00:55:03,640
Yeah, no, I love that. 
Like, it's it's important. 

1000
00:55:03,640 --> 00:55:07,960
Like I can't say this enough. 
Like this book is one of those 

1001
00:55:07,960 --> 00:55:11,320
books that I'm probably going to
have to reread a few times just 

1002
00:55:11,320 --> 00:55:13,520
because there's a lot of 
information in it. 

1003
00:55:13,520 --> 00:55:18,240
And I wouldn't even say it's 
overly long, but it's just like 

1004
00:55:18,240 --> 00:55:21,680
so packed full of like a lot, 
right? 

1005
00:55:21,680 --> 00:55:24,440
It's hard to kind of take it all
in, but. 

1006
00:55:25,320 --> 00:55:28,320
I think it's also the 
consequence of the fact that 

1007
00:55:28,320 --> 00:55:31,880
this stuff is usually we don't 
really think about it. 

1008
00:55:31,880 --> 00:55:35,560
So it feels very dense and like 
very packed with information 

1009
00:55:35,560 --> 00:55:38,520
because this is not information 
you tend to generally like have 

1010
00:55:38,520 --> 00:55:41,400
to read through, like have to 
learn, unless you're like going 

1011
00:55:41,400 --> 00:55:47,360
out of your way to do it right. 
And it's, it's a, it's a packed 

1012
00:55:48,120 --> 00:55:51,800
book. 
I, I hope, I hope it's good and 

1013
00:55:52,080 --> 00:55:54,080
it's. 
It's well written and you do a 

1014
00:55:54,080 --> 00:55:55,760
really good job explaining 
everything. 

1015
00:55:55,760 --> 00:55:59,160
I think it's, it's well done 
because I know like you're kind 

1016
00:55:59,160 --> 00:56:01,560
of in the weeds of this. 
Like you're writing libraries 

1017
00:56:01,560 --> 00:56:05,200
and you're always dealing at 
like the lower network. 

1018
00:56:06,360 --> 00:56:11,600
Now I have to look at my OSI 
tree, but you're, you're, you're

1019
00:56:11,600 --> 00:56:14,800
like sitting in the transport 
layer and the session layer a 

1020
00:56:14,800 --> 00:56:16,840
lot more than a lot of other 
developers are. 

1021
00:56:16,840 --> 00:56:19,600
Yes. 
And I think like when you're 

1022
00:56:19,680 --> 00:56:23,080
like really close to complicated
things, it's sometimes hard to 

1023
00:56:23,080 --> 00:56:27,600
communicate the to like someone 
that might not know them, but 

1024
00:56:27,600 --> 00:56:29,640
you do a really good job at 
doing that. 

1025
00:56:29,640 --> 00:56:32,520
Like you breakdown the processes
very well. 

1026
00:56:33,560 --> 00:56:34,480
I appreciate it. 
Thank you. 

1027
00:56:34,680 --> 00:56:37,440
That was kind of like goal 
number one for the book because 

1028
00:56:37,880 --> 00:56:40,720
the reason I wrote this book is 
that I like all this 

1029
00:56:40,720 --> 00:56:42,080
information. 
All the information is in there 

1030
00:56:42,080 --> 00:56:45,520
in the book is out there. 
It's in a lot of it is in 

1031
00:56:45,520 --> 00:56:48,800
documentation for learning an 
Elixir especially. 

1032
00:56:50,280 --> 00:56:53,720
And there's like source code for
all this service that are open 

1033
00:56:53,720 --> 00:56:56,520
source that you can go read. 
But like, the problem for me was

1034
00:56:56,520 --> 00:57:00,320
that like I had to learn this 
stuff really in the in the 

1035
00:57:00,320 --> 00:57:02,400
trenches, right? 
Like I had to like learn this 

1036
00:57:02,400 --> 00:57:05,920
stuff in in the widths of like 
writing clients or like I had 

1037
00:57:05,920 --> 00:57:10,680
to, you know, scour source code 
and I had to read the 

1038
00:57:10,680 --> 00:57:14,320
documentation and documentation 
is not like this is hard ways to

1039
00:57:14,320 --> 00:57:16,760
learn. 
I think for me they're hard ways

1040
00:57:16,760 --> 00:57:20,160
to learn well. 
Depending on the documentation 

1041
00:57:20,160 --> 00:57:21,400
too, right? 
But depending. 

1042
00:57:21,520 --> 00:57:25,200
On the documentation, but even 
like the I feel like the best 

1043
00:57:25,200 --> 00:57:28,280
kind of documentation can be 
hard to read for someone who 

1044
00:57:28,280 --> 00:57:32,280
like doesn't know much about the
subject because like it's not 

1045
00:57:32,280 --> 00:57:35,160
guided generally like if you 
like if I had to learn about 

1046
00:57:35,160 --> 00:57:38,400
Elixir, like Elixir has a 
getting started guide, right? 

1047
00:57:38,400 --> 00:57:40,640
You don't go read the 
documentation just because like,

1048
00:57:40,960 --> 00:57:43,760
where do you start? 
The documentation is there for 

1049
00:57:43,760 --> 00:57:45,240
like reference. 
So really reference for 

1050
00:57:45,240 --> 00:57:50,360
integral, right? 
And so I like put like I 

1051
00:57:50,360 --> 00:57:53,120
assembled together all this 
knowledge throughout my career 

1052
00:57:53,120 --> 00:57:56,560
about this concepts and like 
this patterns and everything, 

1053
00:57:56,840 --> 00:57:59,600
like all this natural stuff. 
And the reason I wanted to write

1054
00:57:59,600 --> 00:58:02,880
this book was that like I would 
have enjoyed something like 

1055
00:58:02,880 --> 00:58:04,800
this. 
I'm a book learner. 

1056
00:58:04,800 --> 00:58:07,520
Like I I learned a lot better 
through books and like through 

1057
00:58:07,520 --> 00:58:11,480
just poking around random places
because like I like someone 

1058
00:58:11,480 --> 00:58:14,800
structuring things for me 
because like I feel like it 

1059
00:58:14,800 --> 00:58:19,200
takes away the toll of that into
understand what the curriculum 

1060
00:58:19,200 --> 00:58:21,680
you want is in order to learn 
something. 

1061
00:58:21,680 --> 00:58:24,240
Like I have to do this first and
this and this to understand 

1062
00:58:24,240 --> 00:58:25,360
this. 
I really like when someone does 

1063
00:58:25,360 --> 00:58:26,720
that job for me. 
I agree. 

1064
00:58:26,800 --> 00:58:31,240
I agree completely for someone. 
And that's that's why I started 

1065
00:58:31,240 --> 00:58:34,720
my YouTube channel because like 
Elixir was my first like 

1066
00:58:34,720 --> 00:58:37,960
functional immutable language. 
I came from like JavaScript and 

1067
00:58:37,960 --> 00:58:43,320
Swift and object oriented stuff.
And I had a, a hard learning 

1068
00:58:43,320 --> 00:58:45,120
curve. 
Like I read all the books, I did

1069
00:58:45,120 --> 00:58:47,440
all that. 
But like you still like revert 

1070
00:58:47,440 --> 00:58:51,280
to your object oriented ways and
you try to force old patterns. 

1071
00:58:51,560 --> 00:58:56,320
And so like I rewrote like a lot
of code over and over because I 

1072
00:58:56,320 --> 00:58:59,200
would be like, oh, this isn't 
the Elixir way, but I wrote it 

1073
00:58:59,200 --> 00:59:02,080
to work right because it was for
just a side project that I was 

1074
00:59:02,080 --> 00:59:04,080
working on. 
But then I would keep coming 

1075
00:59:04,080 --> 00:59:06,200
back to it and fix it and fix 
it. 

1076
00:59:06,200 --> 00:59:09,160
And so like, I feel like I had a
lot of growing pains and I was 

1077
00:59:09,160 --> 00:59:11,600
like, I'm going to just like 
create a lot of good, like 

1078
00:59:11,600 --> 00:59:14,440
beginner content that just gets 
you going. 

1079
00:59:14,560 --> 00:59:17,680
And so you know you're on the 
right, on the right path at 

1080
00:59:17,680 --> 00:59:23,280
least. 
Yeah, yes, 100% the goal with 

1081
00:59:23,640 --> 00:59:26,200
for me to. 
Yeah, no, I like that. 

1082
00:59:26,200 --> 00:59:30,680
And I, I feel like the Elixir 
community, we're incredibly 

1083
00:59:30,680 --> 00:59:34,000
lucky. 
We've we have a lot of really 

1084
00:59:34,040 --> 00:59:38,040
good books and I feel like a lot
coming out recently too, like in

1085
00:59:38,040 --> 00:59:42,840
the last years we've been 
getting even more and it's cool 

1086
00:59:42,840 --> 00:59:45,600
to see. 
We have a disproportionate 

1087
00:59:45,600 --> 00:59:49,400
amount compared to, I think the 
user base for Elixir because 

1088
00:59:49,400 --> 00:59:52,560
like they have a comparable 
amount of languages that are 

1089
00:59:52,560 --> 00:59:55,320
probably many orders of 
magnitude. 

1090
00:59:56,360 --> 00:59:58,600
I agree. 
I use it based on us, but like 

1091
00:59:58,600 --> 01:00:00,760
we have a ton of learning 
material, which is which is 

1092
01:00:00,760 --> 01:00:03,280
fantastic. 
I read a lot of those books too.

1093
01:00:03,280 --> 01:00:07,280
Like it's just, you know, like 
you always discover stuff and 

1094
01:00:07,280 --> 01:00:09,600
learning stuff. 
And like, yeah, there's quite a 

1095
01:00:09,600 --> 01:00:13,880
few books coming out at least 
from Prop from Prague. 

1096
01:00:13,880 --> 01:00:16,480
Prague, which is the publisher 
from my book, which is the one 

1097
01:00:16,480 --> 01:00:18,440
that I follow more because I got
to work with them. 

1098
01:00:19,280 --> 01:00:21,120
There's a lot of stuff, but I 
know that there's other stuff 

1099
01:00:21,120 --> 01:00:22,800
coming out for from other 
publishers as well. 

1100
01:00:22,880 --> 01:00:25,400
They need a subscription. 
They need a subscription model 

1101
01:00:25,400 --> 01:00:27,000
because I buy so many books from
them. 

1102
01:00:29,800 --> 01:00:31,840
Yeah, yeah, I don't know. 
I can't. 

1103
01:00:31,960 --> 01:00:35,280
I can't judge. 
But yeah, they have a ton of 

1104
01:00:35,280 --> 01:00:40,400
books now, so they do. 
Well, I feel like almost like 

1105
01:00:40,400 --> 01:00:43,240
they definitely have the market 
cornered in Elixir, because I 

1106
01:00:43,240 --> 01:00:46,960
feel like if Elixir authors 
aren't self-publishing, it's 

1107
01:00:46,960 --> 01:00:50,080
Prag prog. 
At least it kind of seems that 

1108
01:00:50,080 --> 01:00:52,520
way. 
Yeah, yeah, I think so. 

1109
01:00:52,640 --> 01:00:56,000
Like I mean, I mean they I think
they objectively have the the 

1110
01:00:56,000 --> 01:00:59,000
majority of Elixir book. 
Like they have a really wide 

1111
01:00:59,000 --> 01:01:02,160
selection of Elixir book. 
There are fantastic books that 

1112
01:01:02,160 --> 01:01:06,160
are not published by Prague 
broader like Elixir Inaction, 

1113
01:01:06,320 --> 01:01:10,560
which is Manning, I believe the 
one that I mentioned earlier 

1114
01:01:11,280 --> 01:01:16,600
from Francesca Cesariani that 
like designing with OTP for for 

1115
01:01:16,600 --> 01:01:21,440
scale with OTP that that one, 
that one's O'Reilly so like 

1116
01:01:21,440 --> 01:01:24,080
that. 
There's, I think there's like 

1117
01:01:24,080 --> 01:01:29,040
excellent, fantastic book, even 
like Erland, like the one that 

1118
01:01:29,040 --> 01:01:31,880
Joe Armstrong wrote for Erland. 
Was O'Reilly? 

1119
01:01:31,880 --> 01:01:34,240
Is that O'Reilly as well? 
I think it's O'Reilly, but 

1120
01:01:34,240 --> 01:01:39,120
either way, like there's like a 
bunch of fantastic books that 

1121
01:01:39,120 --> 01:01:40,600
are not Prague, Prague, but 
Prague, Prague. 

1122
01:01:41,200 --> 01:01:45,200
Like I mean Object has like the 
biggest selection of. 

1123
01:01:45,440 --> 01:01:47,600
Looks at least as of lately, 
right? 

1124
01:01:48,560 --> 01:01:50,680
Definitely, Yeah, yeah, yeah. 
They have like they they really 

1125
01:01:50,680 --> 01:01:52,400
have a ton. 
They have a ton about Phoenix 

1126
01:01:52,400 --> 01:01:56,480
and, you know, live view and 
they have about, you know, Annex

1127
01:01:56,480 --> 01:01:57,920
machine learning and stuff like 
that. 

1128
01:01:58,560 --> 01:02:01,920
They have nerves books. 
They have, you know, like active

1129
01:02:01,920 --> 01:02:05,360
book, like there's quite a quite
a quite a few out there. 

1130
01:02:06,080 --> 01:02:09,480
That's pretty cool. 
Do you have any plans for more 

1131
01:02:09,480 --> 01:02:10,880
books after this? 
Or do you? 

1132
01:02:10,880 --> 01:02:13,800
Can you not think about it 
because you're just barely 

1133
01:02:13,800 --> 01:02:17,400
getting through the finish line?
I, I can't say it because like 

1134
01:02:17,600 --> 01:02:22,480
last time we finished the book, 
I told like both me and my 

1135
01:02:22,480 --> 01:02:26,400
co-author told to ourselves that
we were never going to write 

1136
01:02:26,400 --> 01:02:29,600
another. 
I think this is probably normal 

1137
01:02:29,960 --> 01:02:32,880
from the rite of passage for 
people who wrote a book, 

1138
01:02:33,520 --> 01:02:36,640
especially earlier on when like 
you only wrote a book. 

1139
01:02:36,640 --> 01:02:39,920
Maybe at when you're on your 
15th book, you're like, OK, you 

1140
01:02:39,920 --> 01:02:42,320
know, you nailed it down, but 
like you finished the first. 

1141
01:02:42,320 --> 01:02:45,400
You're like, Oh my God, this was
like, it's so hard to put 

1142
01:02:45,400 --> 01:02:47,760
together, you know, and like, 
there's so much work. 

1143
01:02:49,080 --> 01:02:52,000
But then I wrote another one. 
So like, I can say like now I 

1144
01:02:52,040 --> 01:02:53,960
would say like, no, this is, 
this is good. 

1145
01:02:54,360 --> 01:02:58,360
But like, I don't know, I might.
I just, I really like the appeal

1146
01:02:58,360 --> 01:03:00,120
of like, I, I tried to write on 
my blog. 

1147
01:03:00,400 --> 01:03:03,080
I really like to write. 
I try to, to, to put out 

1148
01:03:03,080 --> 01:03:06,840
content. 
I try to do talks and stuff like

1149
01:03:06,840 --> 01:03:08,800
that. 
Like to for education stuff. 

1150
01:03:08,800 --> 01:03:10,760
I tried a little bit with 
YouTube as well. 

1151
01:03:11,080 --> 01:03:17,000
It's just that I really, I think
first of all, I, I, I, I, I am 

1152
01:03:17,000 --> 01:03:21,040
better as a writer than as a 
like speaker or like I just 

1153
01:03:21,040 --> 01:03:23,720
enjoy the forum and more because
I like to go really into depth 

1154
01:03:23,920 --> 01:03:27,520
about topics And like even blog 
posts, like they're nice because

1155
01:03:27,520 --> 01:03:30,640
they let you go into depth on a 
very small topic, right. 

1156
01:03:30,640 --> 01:03:35,040
But like it's hard to just write
a lot about like a wide, like a 

1157
01:03:35,040 --> 01:03:37,200
big thing, like just network 
programming the looks right. 

1158
01:03:37,520 --> 01:03:41,200
So for those things like I 
don't, I don't see it like you 

1159
01:03:41,200 --> 01:03:44,880
could do a book, like a blog 
post series, you could do a, a 

1160
01:03:45,280 --> 01:03:46,720
video series on YouTube or 
something. 

1161
01:03:46,720 --> 01:03:52,360
But I personally just, I, I feel
very comfortable and good with 

1162
01:03:52,360 --> 01:03:55,160
writing. 
So that's why I, I, I went for a

1163
01:03:55,160 --> 01:03:56,680
second one and I might go for 
more. 

1164
01:03:56,680 --> 01:03:59,440
I don't know, like we'll see 
that I would tell you like I 

1165
01:03:59,440 --> 01:04:00,760
would definitely need a break. 
That's. 

1166
01:04:01,280 --> 01:04:05,840
Yeah, yeah, I think breaks are 
good, like I planned, because 

1167
01:04:05,840 --> 01:04:08,120
like, I enjoy making video 
content. 

1168
01:04:08,120 --> 01:04:11,160
I could not. 
I'm not a good writer, but I 

1169
01:04:11,160 --> 01:04:14,080
don't mind just kind of like 
verbalizing what I'm doing kind 

1170
01:04:14,080 --> 01:04:17,960
of thing, like write the code 
and then discuss your code. 

1171
01:04:17,960 --> 01:04:20,840
You know, I enjoy that because I
feel like it's easy. 

1172
01:04:20,840 --> 01:04:25,640
And like you when we first, 
right before we went live, 

1173
01:04:25,640 --> 01:04:27,120
you're like, I didn't know this 
was live. 

1174
01:04:27,160 --> 01:04:30,400
I was like, well, it's just so 
much easier because I don't have

1175
01:04:30,400 --> 01:04:34,160
to edit anything. 
And so, yeah, but like making 

1176
01:04:34,160 --> 01:04:38,320
like video tutorials when you 
edit, like if I make a 30 minute

1177
01:04:38,320 --> 01:04:40,880
video, it takes me an hour to 
edit. 

1178
01:04:40,880 --> 01:04:43,680
Like it just is, it's so much 
time. 

1179
01:04:44,120 --> 01:04:47,800
So like I try to, I mean, you 
come up with little tricks like 

1180
01:04:47,800 --> 01:04:49,280
I'll try to like record it 
through. 

1181
01:04:49,280 --> 01:04:52,320
And if I screw up, I'll like 
clap, you know? 

1182
01:04:52,480 --> 01:04:55,040
So there I have like an audio, 
an audio spike. 

1183
01:04:55,040 --> 01:04:57,760
And I can just, I know that I 
have to go to that spot of the 

1184
01:04:57,760 --> 01:05:00,400
video, cut it out because I, I 
said something dumb. 

1185
01:05:01,720 --> 01:05:04,760
And then but you learn these 
tricks, but editing still takes 

1186
01:05:04,760 --> 01:05:07,840
a really long time and but I get
it. 

1187
01:05:07,840 --> 01:05:12,200
I get burned out and like I, I 
made a really long like elixir 

1188
01:05:12,240 --> 01:05:15,400
beginner course. 
That's like, I don't 1010 to 12 

1189
01:05:15,400 --> 01:05:18,200
hours and I haven't made any 
content since. 

1190
01:05:18,200 --> 01:05:20,400
I'm just like trickle releasing 
it at the moment. 

1191
01:05:20,640 --> 01:05:25,720
But that's like my like I'm 
recovering for the next the next

1192
01:05:25,720 --> 01:05:27,680
set of tutorials that I make, 
you know? 

1193
01:05:27,720 --> 01:05:30,960
Yes, yeah, yeah. 
It's very akin to how the book 

1194
01:05:30,960 --> 01:05:33,480
works for like, you're right for
like 2 years kind of in a 

1195
01:05:33,480 --> 01:05:36,320
bubble. 
And then you start like you, you

1196
01:05:36,320 --> 01:05:39,880
enjoy the, you know, the, the 
fruits of your labor. 

1197
01:05:39,880 --> 01:05:42,800
You just, like, you sell the 
book without, without being able

1198
01:05:42,800 --> 01:05:44,600
to write anymore because like 
it's printed now, right? 

1199
01:05:45,760 --> 01:05:48,280
And also the editing stuff is 
pretty similar because like a 

1200
01:05:48,280 --> 01:05:51,440
lot of the time writing the book
is spent editing it, right? 

1201
01:05:51,440 --> 01:05:55,360
Like, and I mean like reordering
stuff and like reordering 

1202
01:05:55,360 --> 01:05:57,240
content. 
And you know, like not, not, I 

1203
01:05:57,240 --> 01:06:01,200
don't mean like sentence editing
or like phrasing or anything, 

1204
01:06:01,200 --> 01:06:03,560
but like just structurally 
editing the book is like, it 

1205
01:06:03,560 --> 01:06:06,520
takes a lot or like coming up 
with the right content, coming 

1206
01:06:06,520 --> 01:06:09,800
right with the right examples. 
Like writing stuff is like what 

1207
01:06:09,800 --> 01:06:11,480
takes the least amount of time 
because like. 

1208
01:06:11,480 --> 01:06:13,360
Your examples are the hard part,
right? 

1209
01:06:13,360 --> 01:06:15,000
Because you have to make them 
really hard. 

1210
01:06:15,120 --> 01:06:19,680
Yes, you have to make them, you 
know, have enough, enough, 

1211
01:06:20,160 --> 01:06:25,760
enough depth to like, you know, 
show what you're teaching. 

1212
01:06:26,200 --> 01:06:29,440
But then like also it needs to 
be relatable to like the real 

1213
01:06:29,440 --> 01:06:31,960
world so people can apply apply 
it better. 

1214
01:06:32,640 --> 01:06:36,840
Yeah, it's like horrible. 
I, I, I that that's part of like

1215
01:06:37,080 --> 01:06:39,440
the least maybe like coming up 
with examples really. 

1216
01:06:39,440 --> 01:06:41,760
It is hard. 
Like coming up with like 

1217
01:06:41,760 --> 01:06:45,560
tutorial series for video stuff 
is very difficult too. 

1218
01:06:45,560 --> 01:06:49,760
And yeah, I can relate. 
So how many times have you read 

1219
01:06:49,760 --> 01:06:55,800
your book? 
Read my book like I mean front 

1220
01:06:55,800 --> 01:06:58,640
to front to back. 
Never like for. 

1221
01:06:58,640 --> 01:07:02,280
Sure, never, but probably like 
what do you is it kind of edited

1222
01:07:02,280 --> 01:07:04,160
chapter by chapter so you just 
like. 

1223
01:07:04,480 --> 01:07:07,760
Chapter by chapter. 
So like I, I, I I've probably 

1224
01:07:07,760 --> 01:07:12,040
gone to the book, I don't know, 
an estimated 6 or 7 times at 

1225
01:07:12,040 --> 01:07:13,840
least. 
Oh, I was expecting a higher 

1226
01:07:13,840 --> 01:07:16,920
number. 
I mean, like it depends on like,

1227
01:07:17,080 --> 01:07:24,600
'cause you're rereading like you
kind of like do it mostly, I 

1228
01:07:24,600 --> 01:07:26,600
don't know, you kind of did 
mostly based on like the 

1229
01:07:26,600 --> 01:07:29,240
feedback you got from your 
editor and like, you know, just 

1230
01:07:29,240 --> 01:07:32,560
like rereading for like flow and
stuff like that. 

1231
01:07:32,560 --> 01:07:35,880
But like you start to get like 
the hard part for me. 

1232
01:07:35,960 --> 01:07:39,200
Like how many if you tell me how
many times I read my, my 

1233
01:07:39,200 --> 01:07:44,040
detailed table of contents, like
200, that's where I like just 

1234
01:07:44,080 --> 01:07:45,960
found a lot of cuz once you're 
nailed. 

1235
01:07:45,960 --> 01:07:49,800
OK, I'm gonna talk about this 
first because and you have to go

1236
01:07:49,800 --> 01:07:51,080
through the thought process, 
things like that. 

1237
01:07:51,080 --> 01:07:54,440
I'm gonna talk about this first 
because then it's gonna make it 

1238
01:07:54,440 --> 01:07:58,000
easier to understand the next 
thing, that part where you like 

1239
01:07:58,000 --> 01:08:00,400
sequence things and everything, 
that takes a lot of time for me.

1240
01:08:00,400 --> 01:08:03,400
And like, it's really hard and 
it's really like that's a lot of

1241
01:08:03,400 --> 01:08:05,200
work. 
And that's like where I spent a 

1242
01:08:05,200 --> 01:08:07,160
lot of time. 
Once you nail that part down, 

1243
01:08:07,440 --> 01:08:10,720
then reading like writing it 
might because like, I don't 

1244
01:08:10,720 --> 01:08:14,320
know, I write in a way that like
for me sounds good. 

1245
01:08:14,320 --> 01:08:17,479
So I don't go at like ahead and 
rewrite it many, many times, 

1246
01:08:17,479 --> 01:08:20,800
right. 
And my editor doesn't yell at me

1247
01:08:20,800 --> 01:08:22,840
either. 
So so you must. 

1248
01:08:22,840 --> 01:08:25,800
Be pretty good at it. 
I don't know, like I have no 

1249
01:08:25,800 --> 01:08:27,439
clue. 
I don't, I don't know, I have no

1250
01:08:27,520 --> 01:08:29,240
like I have no way of measuring 
that. 

1251
01:08:29,240 --> 01:08:34,640
But I like I'm very used to 
writing so and I like I kind of,

1252
01:08:35,640 --> 01:08:41,000
I used to think in a way that 
comes out OK as writing, I 

1253
01:08:41,000 --> 01:08:44,399
think, if that makes sense. 
So like maybe that's that's like

1254
01:08:45,240 --> 01:08:48,040
why it doesn't like it doesn't 
necessarily take me a long time 

1255
01:08:48,040 --> 01:08:51,439
to rewrite and rewrite over and 
over again parts of the book, 

1256
01:08:51,439 --> 01:08:54,000
but like organizing the content 
would like definitely not coming

1257
01:08:54,000 --> 01:08:55,920
up with examples. 
As we said, yeah, the structure 

1258
01:08:55,920 --> 01:08:58,359
and flow has to be really hard. 
Yeah. 

1259
01:08:58,359 --> 01:08:59,680
So it's really, really hard, 
Yes. 

1260
01:09:00,240 --> 01:09:04,880
When the content is so long as a
book especially, or like as a 12

1261
01:09:04,880 --> 01:09:06,960
hour course, I think it's kind 
of like the same thing. 

1262
01:09:07,439 --> 01:09:11,000
Yeah, yeah, no, I get it. 
What? 

1263
01:09:11,439 --> 01:09:14,640
We didn't really talk about 
this, but I usually try to open 

1264
01:09:14,640 --> 01:09:16,840
things up this way. 
But like, where did you come 

1265
01:09:16,840 --> 01:09:20,000
from before? 
Like Elixir, like before you 

1266
01:09:20,000 --> 01:09:21,600
were on the core team and 
everything. 

1267
01:09:21,600 --> 01:09:26,560
Like what is your background? 
This is a very small window of 

1268
01:09:26,560 --> 01:09:33,560
time because like I, like, I did
very few things here and there 

1269
01:09:33,560 --> 01:09:36,080
before Elixir. 
I worked a little bit with Ruby.

1270
01:09:36,399 --> 01:09:39,240
I came to Elixir, I mean, I 
guess from Ruby, but like, I 

1271
01:09:39,240 --> 01:09:42,040
didn't have enough experience 
from Ruby to say like, oh, I 

1272
01:09:42,040 --> 01:09:44,200
come from Ruby. 
Like I worked with Ruby for 

1273
01:09:44,200 --> 01:09:47,240
maybe like, I don't know, a year
in a hall for two years. 

1274
01:09:49,000 --> 01:09:54,760
And I worked with a little bit 
of Python And PHP, like 

1275
01:09:54,760 --> 01:09:57,840
WordPress stuff when I was 
starting out doing Glass and 

1276
01:09:57,840 --> 01:10:00,960
stuff. 
So I'm like a computer science 

1277
01:10:01,000 --> 01:10:05,960
graduate, but I didn't write 
code before doing computer 

1278
01:10:05,960 --> 01:10:08,280
science at university. 
So I started writing kind of 

1279
01:10:08,280 --> 01:10:14,240
like 20 years old ish. 
So it's not like I'm not one of 

1280
01:10:14,240 --> 01:10:18,760
those like I've always been 
programming just Cal Basic kids.

1281
01:10:18,880 --> 01:10:21,320
Yeah, that's very it's a very 
adult thing for me. 

1282
01:10:22,200 --> 01:10:24,160
I. 
Mean, I, I'm kind of similar, 

1283
01:10:24,160 --> 01:10:27,720
like I didn't really start 
programming until I was 30. 

1284
01:10:28,200 --> 01:10:32,280
Like I went to school as a for 
structural engineering and then 

1285
01:10:32,280 --> 01:10:35,760
I kind of taught myself 
programming right as like Swift 

1286
01:10:35,760 --> 01:10:38,080
was coming out. 
So I was doing iOS development, 

1287
01:10:38,640 --> 01:10:42,480
iOS development and then yeah, 
so kind of same thing. 

1288
01:10:42,480 --> 01:10:46,520
Like I didn't, I wasn't like 
hacking in my parents basement. 

1289
01:10:47,560 --> 01:10:49,120
Yeah. 
So that's that's kind of where I

1290
01:10:49,120 --> 01:10:51,360
come from. 
But Elixir, so Elixir's been 

1291
01:10:51,360 --> 01:10:54,360
constant for the past like 
10:00-ish years now. 

1292
01:10:55,520 --> 01:10:58,480
And the core team has been like 
nine of those. 

1293
01:10:58,600 --> 01:11:00,040
I think yeah, yeah, that's 
really cool. 

1294
01:11:00,040 --> 01:11:02,400
It's. 
Been very close to to the core 

1295
01:11:02,400 --> 01:11:04,760
Elixir and the open source and 
like the development of the 

1296
01:11:04,760 --> 01:11:07,680
language all itself. 
And I've used Elixir 

1297
01:11:07,680 --> 01:11:10,520
professionally in kind of every 
job I've gotten. 

1298
01:11:10,560 --> 01:11:15,240
And I think that's kind of like 
chicken and egg problem sort 

1299
01:11:15,240 --> 01:11:18,480
type of thing. 
Like I use Elixir in every job 

1300
01:11:18,480 --> 01:11:21,320
because I, because I use Elixir 
in every job in every previous 

1301
01:11:21,320 --> 01:11:22,560
job at least. 
Yeah, yeah. 

1302
01:11:22,720 --> 01:11:25,360
So like now my experience and 
like the core theme and 

1303
01:11:25,360 --> 01:11:27,800
everything, like they definitely
route you to to Elixir heavy 

1304
01:11:28,480 --> 01:11:30,560
jobs. 
But like I've done like I've 

1305
01:11:30,560 --> 01:11:35,360
kind of like expanded my like 
the things that I've used way 

1306
01:11:35,360 --> 01:11:38,960
more after Elixir, right. 
Like, so, you know, I've worked 

1307
01:11:38,960 --> 01:11:44,000
with like Go or Rast or like 
bunch of other like Python And 

1308
01:11:44,000 --> 01:11:48,040
then and bunch of other like 
stuff after. 

1309
01:11:48,040 --> 01:11:50,520
But like Elixir's been kind of 
there all along. 

1310
01:11:50,600 --> 01:11:55,120
So there's a lot more like after
Elixir than I have done before 

1311
01:11:55,120 --> 01:11:56,800
Elixir. 
Before Elixir was like a pretty 

1312
01:11:57,000 --> 01:12:00,320
junior career. 
So like you haven't had to like 

1313
01:12:00,360 --> 01:12:04,320
endure many pans of like a 
JavaScript or like no jazz 

1314
01:12:04,360 --> 01:12:08,960
world. 
Not really like I, I think I 

1315
01:12:08,960 --> 01:12:11,520
gravitated to where the lecture 
specifically because it kind of 

1316
01:12:11,520 --> 01:12:16,680
really made sense to me possibly
having a mind that like was not 

1317
01:12:16,680 --> 01:12:20,560
so heavily shaped by like object
oriented programming or like 

1318
01:12:20,560 --> 01:12:23,320
imperative programming, 'cause 
like that's what I started with.

1319
01:12:23,320 --> 01:12:25,800
I started with like, I don't 
know, in university with like I 

1320
01:12:25,800 --> 01:12:27,960
was doing physics at the time 
before computer science and I 

1321
01:12:27,960 --> 01:12:34,160
started with like Fortran. 
So like really different stuff 

1322
01:12:34,160 --> 01:12:37,680
and then see and then like a 
little bit of Java and a little 

1323
01:12:37,680 --> 01:12:42,240
bit of Python And a little bit 
of of JavaScript as well. 

1324
01:12:42,240 --> 01:12:46,280
Like so I did like all of these 
things, but not like they were 

1325
01:12:46,280 --> 01:12:50,400
all like, OK, you know, like a 
few months of days, a year of 

1326
01:12:50,400 --> 01:12:54,240
death like So it never really 
got the time to get ingrained in

1327
01:12:54,240 --> 01:12:57,000
my hand as much. 
So even when I started to learn 

1328
01:12:57,000 --> 01:13:01,880
about Closure or Haskell, which 
like a really alien when all you

1329
01:13:01,880 --> 01:13:05,680
know, it's like procedural 
object oriented languages, they 

1330
01:13:05,680 --> 01:13:09,440
kind of like made sense because 
like I didn't have this like so 

1331
01:13:09,440 --> 01:13:11,680
ingrained in my hand. 
This patterns from. 

1332
01:13:11,760 --> 01:13:16,280
From I remember having such a 
hard time wrapping my head 

1333
01:13:16,280 --> 01:13:20,200
around like object oriented 
stuff and I think if I would 

1334
01:13:20,200 --> 01:13:23,040
have went straight into like an 
immutable like functional 

1335
01:13:23,040 --> 01:13:26,400
language they would have been 
like so much faster. 

1336
01:13:27,320 --> 01:13:29,440
I can give you like a nice 
example. 

1337
01:13:29,440 --> 01:13:34,600
I think of like how now my mind 
is shaped from Elixir and now 

1338
01:13:34,600 --> 01:13:38,680
it's hard to go away. 
So because I, I worked with like

1339
01:13:39,560 --> 01:13:42,880
so I have like enough object, 
granted background that I can 

1340
01:13:42,880 --> 01:13:44,680
work with object and the 
languages like, you know, 

1341
01:13:44,680 --> 01:13:47,040
Python, they make sense to me. 
Like, you know, inheritance, all

1342
01:13:47,040 --> 01:13:49,480
the other stuff like the objects
and like classics and all this 

1343
01:13:49,480 --> 01:13:53,040
stuff makes sense to me. 
Picking up something like roster

1344
01:13:53,040 --> 01:13:56,120
Go was pretty easy because like 
they had to like, except for 

1345
01:13:56,120 --> 01:13:58,640
the, I mean the borrow tracker 
and rust and everything. 

1346
01:13:58,640 --> 01:14:02,200
But like Go, for example, pretty
easy because like a very low 

1347
01:14:02,200 --> 01:14:05,080
level languages like structs 
makes sense, you know, like it's

1348
01:14:05,320 --> 01:14:10,000
all very, like the concepts are 
like, I don't know, smaller and 

1349
01:14:10,000 --> 01:14:12,320
like simpler. 
But like now, since you 

1350
01:14:12,320 --> 01:14:15,120
mentioned it and now I like, 
it's been maybe like 6 months 

1351
01:14:15,120 --> 01:14:20,040
that I've been learning Swift 
just because I like, I would 

1352
01:14:20,040 --> 01:14:24,120
like to make some apps for 
myself that I just like as, as, 

1353
01:14:24,320 --> 01:14:28,480
as stupid like little stuff to 
do and like, it's fun. 

1354
01:14:28,480 --> 01:14:31,360
So I started to learn Swift and 
that was like challenging 

1355
01:14:31,360 --> 01:14:35,040
because like there's, they have 
like, it's a very wide language.

1356
01:14:35,040 --> 01:14:38,440
It was like quite a lot of 
especially Swift and Swift UI, 

1357
01:14:38,440 --> 01:14:40,760
right? 
They have like a lot of patterns

1358
01:14:40,760 --> 01:14:44,640
and I was not used at all, for 
example, to UI programming, 

1359
01:14:44,680 --> 01:14:46,560
right? 
So there's a lot of things that 

1360
01:14:46,560 --> 01:14:50,520
I'm not really like that are 
shaped by the fact that I've 

1361
01:14:50,520 --> 01:14:54,040
worked in like have back end 
heavy systems in Elixir for a 

1362
01:14:54,040 --> 01:14:56,840
long time. 
So there are like things that I,

1363
01:14:56,880 --> 01:15:00,320
you know, that I just kind of, 
you know, like it takes a while 

1364
01:15:00,320 --> 01:15:03,720
to just, you know, ramp up on 
those and like it. 

1365
01:15:03,880 --> 01:15:05,960
It's like a little bit mind 
bending but. 

1366
01:15:05,960 --> 01:15:07,960
Yeah, it's a really. 
Cool way around. 

1367
01:15:08,400 --> 01:15:10,240
Yeah, it's a really cool skill 
set though. 

1368
01:15:10,240 --> 01:15:13,760
When you can take, you can when 
you can build everything right. 

1369
01:15:13,760 --> 01:15:18,000
Like if you can do the front end
app and the back end work, I'm 

1370
01:15:18,000 --> 01:15:21,040
like, I prefer being a back end 
dev for sure. 

1371
01:15:21,320 --> 01:15:27,160
But I started in iOS and like I 
feel like it's good to start on 

1372
01:15:27,160 --> 01:15:31,040
the front end because I don't 
want to say it's easier, it's 

1373
01:15:31,040 --> 01:15:34,280
easier, it's easier. 
But like I feel like you slowly 

1374
01:15:34,280 --> 01:15:38,440
like work your way into more 
complex problems and then like 

1375
01:15:38,440 --> 01:15:41,720
going the other way. 
I think it's hard because like 

1376
01:15:41,720 --> 01:15:45,240
so I can kind of relate with 
like CSS and like front end web,

1377
01:15:46,080 --> 01:15:48,840
I struggle. 
It's like a foreign language. 

1378
01:15:48,920 --> 01:15:55,760
I struggle through that so hard.
And I could write some sorting 

1379
01:15:55,760 --> 01:16:00,840
algorithm way easier than I can 
center a division and. 

1380
01:16:00,880 --> 01:16:03,360
Yeah, no, yeah, I get what you 
mean. 

1381
01:16:03,360 --> 01:16:06,360
I don't know if it's easier, but
it's definitely, I think at 

1382
01:16:06,360 --> 01:16:09,120
least for concepts, I don't 
know, I just think that the 

1383
01:16:09,120 --> 01:16:13,240
concepts that you that you put 
into practice are closer to 

1384
01:16:13,240 --> 01:16:15,360
things that you can touch. 
Like when you say standard dev, 

1385
01:16:15,360 --> 01:16:18,360
you're already at least saying 
something with my eyes. 

1386
01:16:18,360 --> 01:16:21,160
I can see when you're saying 
like, oh, I need to like, you 

1387
01:16:21,160 --> 01:16:25,080
know, replicate this like 
database and ever read replica. 

1388
01:16:25,280 --> 01:16:26,320
Then you're talking about like, 
what? 

1389
01:16:26,320 --> 01:16:28,080
Like what are you talking about?
Like, you know, it's like it 

1390
01:16:28,080 --> 01:16:29,640
doesn't make sense in the real 
world, right? 

1391
01:16:29,640 --> 01:16:32,400
So I think it's just further 
away from the real world, which,

1392
01:16:32,400 --> 01:16:37,320
so to start to like front end 
might be a little bit more 

1393
01:16:37,320 --> 01:16:39,600
understandable, like easier to 
grasp at the beginning, 

1394
01:16:39,600 --> 01:16:41,760
especially of like a software 
career, right? 

1395
01:16:42,040 --> 01:16:44,520
But like, for example, I, I'm 
pretty like, I mean, I'm, I'm 

1396
01:16:44,520 --> 01:16:48,160
definitely familiar with like 
front end development on the 

1397
01:16:48,160 --> 01:16:54,920
web, you know, so JavaScript and
the visual like HTML and CSS and

1398
01:16:54,920 --> 01:16:57,640
all of that. 
But Swift is quite different. 

1399
01:16:57,640 --> 01:17:00,440
And that like, since I don't 
have like, I don't have a ton of

1400
01:17:00,440 --> 01:17:03,280
experience with like front end. 
So like I'm, I'm definitely 

1401
01:17:03,280 --> 01:17:07,120
dangerous in the sense that I 
can do stuff for myself with, 

1402
01:17:07,240 --> 01:17:10,720
you know, on the web. 
And I wanted to get to the same 

1403
01:17:10,720 --> 01:17:12,840
level as iOS and like, it's 
quite, it's quite different. 

1404
01:17:12,840 --> 01:17:15,360
It's quite different, Pranam. 
It's quite different frameworks.

1405
01:17:15,360 --> 01:17:21,440
And yeah, I have a lot to say 
about Swift because like, I as a

1406
01:17:21,440 --> 01:17:23,520
beginner, but this is not, this 
is not the right podcast. 

1407
01:17:23,680 --> 01:17:26,880
I. 
Well, what's funny is like I I 

1408
01:17:27,280 --> 01:17:31,440
did Swift full time before I 
started writing an Elixir, I was

1409
01:17:31,440 --> 01:17:35,280
an iOS dev. 
I mean like I majority of my 

1410
01:17:35,280 --> 01:17:38,920
time was iOS developer and then 
I would like jump on like node 

1411
01:17:38,920 --> 01:17:43,840
JS apps and stuff and you know, 
do simple Restful API stuff. 

1412
01:17:45,000 --> 01:17:48,440
But yeah, but I haven't touched 
Swift. 

1413
01:17:49,720 --> 01:17:53,800
Swift UI was like just starting 
to come out, but like it wasn't 

1414
01:17:53,800 --> 01:17:58,320
usable because no one has had 
the newer, newer devices and it 

1415
01:17:58,320 --> 01:18:01,720
wasn't supported. 
And so like, I didn't really get

1416
01:18:01,720 --> 01:18:05,080
to use Swift UI. 
So I would be learning a lot of 

1417
01:18:05,080 --> 01:18:08,120
new stuff if I jumped back into 
Xcode these days. 

1418
01:18:10,080 --> 01:18:13,720
So, yeah, so the funny part is 
that I come to this in a similar

1419
01:18:13,720 --> 01:18:18,120
way as I came to a lecture where
like all of the all of the 

1420
01:18:18,120 --> 01:18:20,280
people that I talked to are like
most of the people that I talked

1421
01:18:20,280 --> 01:18:23,760
to are like, oh, I had a long 
career before a lecture. 

1422
01:18:23,760 --> 01:18:27,400
So a lecture is like, you know, 
it's so cool because it's like 

1423
01:18:27,400 --> 01:18:31,560
the new, like it's so ergonomic 
and like it's functional, you 

1424
01:18:31,560 --> 01:18:33,560
know, immutable. 
It's a kind that's so cool. 

1425
01:18:33,760 --> 01:18:38,640
And for me, that's kind of like 
the base, you know, that the how

1426
01:18:38,640 --> 01:18:43,520
to say it's like the the space 
benchmark, right? 

1427
01:18:43,520 --> 01:18:46,360
Like that's where I start from. 
Like, you know, like for me, 

1428
01:18:46,360 --> 01:18:49,040
Alex are being immutable. 
It's not like that cool a 

1429
01:18:49,040 --> 01:18:51,640
feature like I expected. 
You know, now when I, when I do 

1430
01:18:51,640 --> 01:18:53,800
stuff or like made mutable to 
remember, but like passing 

1431
01:18:53,800 --> 01:18:57,320
around functions like, I can't 
conceive of something that like 

1432
01:18:57,320 --> 01:18:58,400
wouldn't pass around functions, 
right? 

1433
01:18:58,400 --> 01:19:01,000
Like being functionally that way
because like this is just and 

1434
01:19:01,000 --> 01:19:03,840
with Swift, the same way where 
like now I'm learning Swift and 

1435
01:19:03,840 --> 01:19:07,400
like I don't I can't read 
objective CI don't know anything

1436
01:19:07,400 --> 01:19:09,600
about UI gate or like all this. 
I don't even. 

1437
01:19:09,600 --> 01:19:13,440
Know Objective C is a very hard 
language to read in my life. 

1438
01:19:13,480 --> 01:19:16,280
Right. 
So yes, but but like lucky 

1439
01:19:16,280 --> 01:19:20,400
enough that I started Swift in 
an era where like like Swift 

1440
01:19:20,400 --> 01:19:22,240
guy's pretty much her at this 
point, I think. 

1441
01:19:22,240 --> 01:19:23,920
And so it's just like pretty 
much her. 

1442
01:19:24,080 --> 01:19:26,680
And like, the nice thing about 
building stuff for me is I don't

1443
01:19:26,680 --> 01:19:30,400
have to care whether this is 
like supporting older, like I 

1444
01:19:30,400 --> 01:19:33,360
just like I know, like I'm doing
stuff for my literally my phone.

1445
01:19:33,920 --> 01:19:37,880
And I feel like Swift UI was a 
good move because before that 

1446
01:19:38,080 --> 01:19:41,240
you had like they had libraries 
that were similar to Swift UII 

1447
01:19:41,240 --> 01:19:43,120
can't remember the name off the 
top of my head. 

1448
01:19:43,880 --> 01:19:47,320
But before that, like you were 
using storyboards and that was 

1449
01:19:47,320 --> 01:19:49,960
horrible. 
It was all drag and drop and 

1450
01:19:49,960 --> 01:19:53,120
nothing like when you ran it in 
the simulator. 

1451
01:19:53,200 --> 01:19:56,280
It would never look the same as 
it does on the storyboard. 

1452
01:19:56,280 --> 01:20:02,040
And it was such a nightmare. 
Drag and drop sensors. 

1453
01:20:02,040 --> 01:20:04,440
I'd much rather just be able to 
like, you know? 

1454
01:20:04,840 --> 01:20:07,840
Have some sort of like markdown 
format for. 

1455
01:20:07,920 --> 01:20:10,960
Yeah, which is kind of what they
did with Swiss VI like. 

1456
01:20:11,040 --> 01:20:13,640
Yeah, exactly. 
In a pretty nice way, I think. 

1457
01:20:15,120 --> 01:20:18,400
Yeah, well, that's cool. 
Well, if you have any Swift 

1458
01:20:18,400 --> 01:20:20,360
questions ever, maybe I can help
you. 

1459
01:20:20,360 --> 01:20:25,840
And I I'm also, by the way, I'm 
very likely to learn swift in 

1460
01:20:25,840 --> 01:20:29,280
the air, like to learn a new 
thing in the era of the lens, 

1461
01:20:29,280 --> 01:20:30,880
right? 
So like I've been able to really

1462
01:20:30,880 --> 01:20:33,600
like. 
Like are you, are you vibe 

1463
01:20:33,600 --> 01:20:38,480
coding any iOS apps these days? 
I tried like it doesn't doesn't 

1464
01:20:38,480 --> 01:20:43,680
really work for me cuz like when
things break and LLM can't fix 

1465
01:20:43,680 --> 01:20:46,040
it on like the first or second 
try, I want to throw the 

1466
01:20:46,040 --> 01:20:49,360
computer out the window cuz like
it's so frustrating. 

1467
01:20:49,360 --> 01:20:54,160
So I'm I like, I feel better, 
especially for learning, like 

1468
01:20:54,160 --> 01:20:57,960
writing my own stuff and but 
with the very, very heavy 

1469
01:20:58,520 --> 01:21:03,040
tutoring of another lamp, right.
Like this poor machines. 

1470
01:21:03,040 --> 01:21:05,120
I've been asking them a lot of 
questions. 

1471
01:21:07,800 --> 01:21:09,680
Yeah, but they didn't write that
much good. 

1472
01:21:10,600 --> 01:21:13,880
We have Ben vomit emoji next to 
vibe coding. 

1473
01:21:14,000 --> 01:21:17,120
Hey Ben, don't act like you 
don't vibe code. 

1474
01:21:19,920 --> 01:21:23,840
I, I feel like I get like I'll 
use it for very small things, 

1475
01:21:23,840 --> 01:21:26,400
but I end up getting frustrated.
Like you're arguing with a 

1476
01:21:26,400 --> 01:21:29,600
machine, Like no, you're you're 
doing this wrong. 

1477
01:21:30,600 --> 01:21:33,280
But yeah, I think it's like, but
but like, I also don't want to 

1478
01:21:33,280 --> 01:21:36,680
be like the old, old guy. 
It was like. 

1479
01:21:37,040 --> 01:21:41,760
Like anti the anti the tool like
I think there is a lot of good 

1480
01:21:42,000 --> 01:21:43,440
in it as. 
Yeah. 

1481
01:21:43,480 --> 01:21:46,880
And like, I'm trying my best to 
like, use it as much as I can 

1482
01:21:46,880 --> 01:21:50,320
just to basically, yeah, I 
agree. 

1483
01:21:50,360 --> 01:21:54,560
Vibe coding as a like, as in 
like, I don't really write the 

1484
01:21:54,560 --> 01:21:57,080
code. 
I just tell the AI to do stuff. 

1485
01:21:57,120 --> 01:22:00,920
It's scary as someone who has 
been in this industry for like 

1486
01:22:00,920 --> 01:22:04,720
enough time and and like wrote 
enough code to know that like 

1487
01:22:05,040 --> 01:22:08,800
writing code is really hard and 
like writing clean, you know, 

1488
01:22:08,800 --> 01:22:12,560
like all these properties of 
good code is really hard. 

1489
01:22:12,560 --> 01:22:16,480
And a lot of the code that I've 
seen written by LLMS is not that

1490
01:22:16,920 --> 01:22:19,160
right so. 
And that's the problem like. 

1491
01:22:20,520 --> 01:22:22,880
But it doesn't work right? 
Like just wait. 

1492
01:22:22,880 --> 01:22:25,680
Like if it works, it works. 
And that's like maybe the point 

1493
01:22:25,680 --> 01:22:28,400
number one of like writing 
software is like make it work. 

1494
01:22:28,800 --> 01:22:31,160
Right, that's true. 
I mean, like, I think it's good 

1495
01:22:31,160 --> 01:22:36,520
for like MVPS, prototypes, 
concepts, but like if you don't 

1496
01:22:36,520 --> 01:22:39,880
have like good code smell and 
you're just like depending on 

1497
01:22:39,880 --> 01:22:43,120
what it outputs, I think you're 
going to be in a really 

1498
01:22:43,120 --> 01:22:45,520
dangerous spot. 
Maybe. 

1499
01:22:45,600 --> 01:22:48,480
And for now, maybe like one year
from now, they're going to get 

1500
01:22:48,480 --> 01:22:50,040
so good. 
But like it could be completely 

1501
01:22:50,040 --> 01:22:52,320
different. 
So like, This is why I'm trying 

1502
01:22:52,320 --> 01:22:55,240
to keep up because like that's 
scary but. 

1503
01:22:55,320 --> 01:22:59,400
Yeah, I like, I try like I've, 
I've been like using cursor and 

1504
01:22:59,400 --> 01:23:02,480
I like try to integrate it into 
my daily work process. 

1505
01:23:03,000 --> 01:23:06,560
But I do get frustrated an awful
lot and then usually just start 

1506
01:23:06,560 --> 01:23:11,560
writing my own code because I 
have a hard time like keeping 

1507
01:23:11,560 --> 01:23:14,320
focus if all I'm doing is 
reviewing code. 

1508
01:23:14,480 --> 01:23:17,360
It's really hard for me. 
Like I have to be in a special 

1509
01:23:17,360 --> 01:23:20,880
mood to do like PRS and all that
stuff where you're just like 

1510
01:23:21,240 --> 01:23:24,600
reading through code constantly 
to make sure it's what you want.

1511
01:23:25,320 --> 01:23:25,960
Yeah. 
Yeah, yeah. 

1512
01:23:25,960 --> 01:23:28,920
Especially code that you really 
have little trust in because 

1513
01:23:28,920 --> 01:23:32,400
like if a human wrote it, like I
know the humans have wrote it. 

1514
01:23:32,400 --> 01:23:35,280
And so like, I kind of like know
how to think a little bit. 

1515
01:23:35,280 --> 01:23:38,240
And like this is really a black 
box system where like it could 

1516
01:23:38,240 --> 01:23:41,920
hallucinate on the most 
insidious things. 

1517
01:23:41,960 --> 01:23:44,640
And like if a human made an 
insidious bug, you know that 

1518
01:23:44,640 --> 01:23:48,480
they didn't like they, you know,
you kind of like suspect where 

1519
01:23:48,480 --> 01:23:50,640
they could make it, you know, 
like there's like a bunch of 

1520
01:23:50,640 --> 01:23:52,720
things that you look out for and
with all the lamps, it's like 

1521
01:23:53,160 --> 01:23:55,200
kind of like it's statistics, 
right? 

1522
01:23:55,200 --> 01:23:57,000
Like it's probability. 
So like there's a tiny 

1523
01:23:57,000 --> 01:23:58,400
probability there because crap 
anywhere. 

1524
01:23:58,800 --> 01:24:02,840
So it's like, and it's very hard
for someone who like I think who

1525
01:24:02,840 --> 01:24:06,040
knows, like, but at the same 
time like I don't want to poop 

1526
01:24:06,040 --> 01:24:09,880
on this because like vibe coding
like make it work is a step 

1527
01:24:09,880 --> 01:24:12,400
number on truly so like if. 
It is, I agree. 

1528
01:24:12,880 --> 01:24:16,120
And like, if, if someone who has
no coding experience can just go

1529
01:24:16,120 --> 01:24:19,320
there and tell the LLM to do 
stuff and it does it like it, 

1530
01:24:19,400 --> 01:24:20,760
first of all, they must feel 
incredible. 

1531
01:24:21,000 --> 01:24:24,680
And second of all, it like it's 
if it enables us to build 

1532
01:24:24,680 --> 01:24:27,160
things. 
And I think, like, I hope that 

1533
01:24:27,160 --> 01:24:29,600
we're going to have this 
revolution of building software 

1534
01:24:29,600 --> 01:24:31,720
for you, right? 
Like, because like personal 

1535
01:24:31,720 --> 01:24:34,960
software, which the LLMS really 
enabled because like a lot of 

1536
01:24:34,960 --> 01:24:37,880
the challenges with like this 
vibe coded stuff and like LLM 

1537
01:24:37,880 --> 01:24:40,880
generated stuff is, for example,
is scalability in the sense of 

1538
01:24:40,880 --> 01:24:43,400
like, OK, you're writing me a 
piece of code, but I need to 

1539
01:24:43,400 --> 01:24:45,360
hook it up. 
Like, you know, you can write me

1540
01:24:45,520 --> 01:24:48,080
a video player and that emulates
YouTube. 

1541
01:24:48,080 --> 01:24:51,400
But like YouTube serves how many
like terabytes of content a 

1542
01:24:51,400 --> 01:24:53,720
second or something, right? 
Like, so that's the hard part of

1543
01:24:53,720 --> 01:24:55,240
YouTube. 
It's not the video player on the

1544
01:24:55,240 --> 01:24:58,520
web, right? 
So that's the hard part for me. 

1545
01:24:58,520 --> 01:25:02,640
And that's the part that doesn't
exist with personal software. 

1546
01:25:02,960 --> 01:25:07,120
Like if I write my own Obsidian 
or my own, you know, like my own

1547
01:25:09,920 --> 01:25:12,400
code editor or whatever, like. 
My own Well, like if you're 

1548
01:25:12,400 --> 01:25:16,200
writing, if you write tools to 
simplify your daily life, that's

1549
01:25:16,200 --> 01:25:17,200
really cool. 
That's a win. 

1550
01:25:17,200 --> 01:25:19,440
Right. 
And I think LLM's already excel 

1551
01:25:19,440 --> 01:25:20,360
at that. 
So yeah. 

1552
01:25:20,440 --> 01:25:21,760
Yeah. 
And like being able to use 

1553
01:25:21,800 --> 01:25:25,560
someone who doesn't know how to 
write code that's not. 

1554
01:25:25,600 --> 01:25:27,480
That's so cool. 
Yeah, I'm jealous. 

1555
01:25:27,600 --> 01:25:33,200
I agree completely. 
Yeah, but yeah, it's. 

1556
01:25:33,280 --> 01:25:35,640
Scalable large projects? 
It's not there yet. 

1557
01:25:36,320 --> 01:25:38,560
It's not there yet, but like it 
might be, I mean. 

1558
01:25:38,920 --> 01:25:41,160
It might be very fast. 
So it is. 

1559
01:25:42,000 --> 01:25:43,120
Yeah. 
It'll be interesting. 

1560
01:25:44,520 --> 01:25:48,160
Well, on that note though, I 
think like thank you so much for

1561
01:25:48,160 --> 01:25:49,320
joining me off. 
Topic. 

1562
01:25:50,120 --> 01:25:51,840
Yeah, a little off topic. 
We always like. 

1563
01:25:51,840 --> 01:25:54,400
We can call it a day like we 
always imagine last time, like 

1564
01:25:54,400 --> 01:25:55,960
I. 
Think the ramps are the best 

1565
01:25:55,960 --> 01:26:02,000
part personally, but so in the 
description below I have a link 

1566
01:26:02,000 --> 01:26:09,560
to your book and to your website
and highly recommend following 

1567
01:26:10,280 --> 01:26:12,280
Andrea and everything that he 
does. 

1568
01:26:12,280 --> 01:26:15,400
He's involved in a lot of very 
cool projects. 

1569
01:26:15,440 --> 01:26:20,360
And yeah, I'll make sure to like
when I clean up this description

1570
01:26:20,440 --> 01:26:23,160
and everything, I take the 
transcripts that YouTube gives 

1571
01:26:23,160 --> 01:26:25,960
me and then I have it write me a
better description. 

1572
01:26:25,960 --> 01:26:28,760
So it actually entails what we 
talked about. 

1573
01:26:29,000 --> 01:26:32,600
But I'll make sure I tag you. 
You have a YouTube channel or do

1574
01:26:32,600 --> 01:26:33,600
you not? 
I do, really. 

1575
01:26:33,600 --> 01:26:36,240
It's kind of like, yeah, not a 
lot of content, but I did a 

1576
01:26:36,240 --> 01:26:37,960
serious hunt of networking stuff
as well. 

1577
01:26:37,960 --> 01:26:40,040
OK, nice. 
So I'm sure there's lots of 

1578
01:26:40,040 --> 01:26:42,760
useful content there still 
that's pretty relevant. 

1579
01:26:43,240 --> 01:26:48,400
So everyone go check out all of 
Andrea's stuff and thank you so 

1580
01:26:48,400 --> 01:26:49,960
much. 
It was awesome meeting you. 

1581
01:26:50,080 --> 01:26:53,360
And if you ever want to come 
back on, just reach out. 

1582
01:26:53,360 --> 01:26:56,200
You're always welcome. 
Likewise, thank you so much for 

1583
01:26:56,200 --> 01:26:57,480
having me. 
It was a, it was a, it was a 

1584
01:26:57,480 --> 01:26:59,440
really fun chat. 
It was. 

1585
01:26:59,600 --> 01:27:02,000
Thanks to everyone who went 
alive as well that was. 

1586
01:27:02,000 --> 01:27:05,400
Yeah, I love like when the chat 
gets busy, it makes it a lot 

1587
01:27:05,400 --> 01:27:09,160
more fun. 
But all right guys, everyone 

1588
01:27:09,160 --> 01:27:12,400
have a good weekend and I will 
see you guys next week.

