Writing Go: A HTTP/2 client
-
Hacking with Andrew and Brad: an HTTP/2 client – 1:46:10
— The Go Programming LanguageAt 42:20 they finally turn on syntax highlighting for Vim.
-
Awww, lovers on the couch. So romantic.
-
1:00:30
So, uh, HTTP2 is flow-controlled, so they're giving us some tokens so we're 'allowed' to write.
Okay. What?
(laughter)
-
At
4220:20 they finally turn on syntax highlighting for VimActually, I think they're just switching presenters, not actually turning on syntax highlighting. Seems like one of the guys just doesn't like syntax highlighting for some reason that DEMSYR
-
Yeah, that's the other guy typing in emacs.
-
Have to return int instead of nil
return 0
literally
-
return 0
literally
Yeah, I think it would be a better idea to return
len(bytes)
so that the bufio.Writer doesn't busy loop.
I will rearrange this struct later to make sense
-
I will rearrange this struct later to make sense
We have all written that comment before, significantly less people have actually done so.
-
s/written/spoken/
Where's our data?
[The server is] Google FrontEnd...
Bad request!
<html><title>Error 400 (Bad Request)!!1</title></html>
(nervous laughter)
Why is it a bad request?
Followed shortly by:
-
I guess I am going to have to watch the video. It sounds like monkeys throwing feces at a keyboard and hoping working code comes out the other end.
-
Hey, maybe we should just be implementing QUIC
What's QUIC?
It's the crazy protocol for UDP that, like, merges SPDY and TLS and replaces TCP and everything.
Whaaa
No, it'll be a lot of work. (laughter)
-
Which might be fine for a PoC, but if this is actually going to be a library
-
protocol for UDP that... replaces TCP
TDEMSYR!
-
-
Now, after seeing this video, realice that most of the NodeJS library developers are like this two, except with Sublime Text.
-
Ship it.
clap
It works.
So, we have a client that works against some servers.
Servers that, coincidentally, you wrote.
So now we have to track down the GFE people to figure out what we're doing wrong.
Now, after seeing this video, realice that most of the NodeJS library developers are like this two, except with Sublime Text.
But node.js can't segfault because it's webscale
-