Kris Nova joined the show to talk about developer empathy, running K8s on Azure, Kops, Draft, editors, containerizing odd things…and what it’s like to play a keytar.
Linode – Our cloud server of choice. Get one of the fastest, most efficient SSD cloud servers for only $5/mo. Use the code
changelog2017 to get 4 months free!
Fastly – Our bandwidth partner. Fastly powers fast, secure, and scalable digital experiences. Move beyond your content delivery network to their powerful edge cloud platform.
Interesting Go Projects and News
- Gotham Go CFP Open
- GopherCon China videos (most in Chinese)
- Go-vim 1.13
- goplay.space - Go playground frontend written in gopherjs/vecty - super cool!
Free Software Friday!
Each week on the show we give a shout out to an open source project or community (or maintainer) that’s made an impact in our day to day developer lives.
Play the audio to listen along while you enjoy the transcript. 🎧
Welcome back everybody to another episode of GoTime. Today’s episode is actually number 50, so I think that makes us officially over the hill.
When do we get a senior citizens’ discount?
55, when we belong to AARP.
So another five episodes.
On the show today we have myself, Erik St. Martin, Carlisia Pinto is also here…
Hi! You so mispronounced my name, but I love you, it’s okay. [laughter]
Yeah, we’re moving fast here, sorry.
At least he didn’t do the trained monkey thing where he says “Say hello, Carlisia. Say hello, Brian.” Yes, Erik, we’re trained monkeys.
In that case, say hello, Brian.
Oh… You’re going to hell. [laughs] Hi, Erik!
And our guest for today is actually Kris Nova. Hi, Kris.
Do you wanna give everybody a little bit of a background of who you are and some of the stuff that you’re working on?
Sure, yeah. So I am really into Go, the Go programming language. I work a lot in Kubernetes and in the container space. I’m constantly coming up with little open source projects in my spare time, and I work on the Azure team at Microsoft, and we’re working on bringing Kubernetes to Azure and making that awesome.
I say Azure because I’m really into mineral collecting and my favorite mineral is azurite, so it just kind of like was a no-brainer for me. But I’ve heard Azure in the wild quite a bit.
I would say Azure.
Yeah, I actually have the same problem trying to figure that out, and I think Adam Stacoviak the producer might have corrected me during a conversation we had… And I think it’s actually based on Eastern countries versus Western countries. I think in the U.K. they say Azure, or something like that.
I’ve definitely heard both, but I just go with Azure… And that’s what I think most people on my team say.
I would always use the “juh” sound; the question is whether we would accent the first syllable or the second one. You say Azure (accent on the first syllable) and you work at Microsoft, so we’re rolling with that. It’s done.
Sorry, I cannot change it.
I’m gonna call Scott Guthrie and let him know that that’s how this is from now on. [laughter]
You’ve got him on speed dial.
Done and done! You’re right, I should send him a text. Calling is rude.
[laughs] So let’s talk about a couple of the projects, too. The most recent that came out was Draft; we talked about that either last episode or the one before, and that’s ridiculously cool. Did you happen to work on that specific project?
We’ve been working on it for a while before we sort of announced it, and I’ve been involved with the team; I work fairly closely with them. I’m actually on like a neighboring team, but the way we do things is everybody – all the individual contributors kind of work together. So I’ve contributed to the project and helped along the way…
[04:04] So that’s a no? [laughter] I’m just messing with you, Kris. I’m feisty today… Could you tell?
Okay, good. It’s gonna be a good show, I feel it. You were mostly behind Kops though, right?
Kris, have you finished your sentence? You were just suddenly interrupted…
No, it’s fine. So I worked out a lot in Kops; I helped to bring the private topology in Amazon to Kops… That was something I coded a lot end of last year, and now I’m one of the maintainers. My involvement now is pretty much I do a lot of code reviews and I help manage the project on sort of a high level.
I’m not contributing every day, like I used to be several months ago… But hopefully, I would like to change that, as I’ve been going through the process of getting Kubernetes up and running on Azure. I’m kind of missing a lot of these old paradigms that we had when I was working on Amazon, and I really would like in my spare time to dedicate some effort into getting an Azure implementation coded into Kops so that I can get some of those bells and whistles that I’m used to having in a certain way.
So that’s something that I’m gonna start coding here as soon as I get some free time, probably in the next couple of weeks or so… So I’m excited about it.
Here’s a question - for those of us who don’t have a ton of Azure experience, how does Azure compare feature-wise to AWS? Are you finding that you couldn’t still get everything you need done? Is it roughly analogous?
I would say so. Actually, I kind of like it more, because of the way that we handle our resource groups. What a resource group is is it allows you to give an ID to a set of arbitrary resources in Azure, and you can group on them that way. You just tag everything with a unique name and it doesn’t matter if it’s a public IP, a VM, a VNet… Anything. They all help me tie together with one string, and I think that’s pretty handy, especially if you plan on running multiple clusters out of the same account, which is something I did in Amazon all the time and struggled with. But I think ultimately at the end of the day it’s almost one-to-one.
I can get a cluster up and running with acs-engine in one or two commands, and it’s exactly what I need and I’m working fine.
Oh, that’s awesome.
Yeah, it’s one of those things that I keep meaning to play with as well. In the past five years it’s just been kind of like an explosion of different cloud providers, and it’s just so hard to get time… You don’t really wanna move your infrastructure too often; that’s painful. But it’s cool though, because a lot of tools now make it a lot easier to bootstrap a cluster, too… Especially in the Kubernetes world.
Yeah, I was gonna say that’s in my mind one of the big wins for Kubernetes, which is once you get all your infrastructure and all your applications bundled up into the Kubernetes way of doing things, you kind of don’t really care about the cloud anymore, or at least that’s the idea.
There might be subtle nuances, but I’ve had a ton of personal apps and a ton of projects that I used to run on Amazon that as soon as I had [unintelligible 00:07:17.03] up and running in Azure it’s like “Now I’m just rocking it in Azure, and life’s good!”
Are you self-hosting? Like a Kubernetes inside Kubernetes?
That’s something that I think we’re gonna see in the near future probably.
That’s one of those things that keeps getting on my list, since I’ve seen it on – I know Tectonic does that too, but since I’ve seen it done, it’s like “Oh, man… I really wanna do that…”, just manage the Kubernetes components inside Kubernetes, too.
Yeah, and that’s what’s beautiful about it - in order to get a control plane up and running you just need to have these bare minimum set of components that are already running in containers. It’s a good model.
[08:02] So do you wanna talk maybe a little bit about what Kops is, for anybody who’s not familiar with the project?
Sure. I guess there’s a lot of – I don’t wanna say controversy, but a lot of people kind of put Kops mentally into different spaces, so I’ll kind of answer what it is for me. Basically, it’s sort of what is the layer below Kubernetes. It’ll solve “I have no resources in the cloud, whether that be Azure or AWS, and I want those resources in place, and then after those are in place, we need to bootstrap a Kubernetes cluster.” So Kops sort of makes one amalgamation of all those steps going together.
It’s a deployment tool, but more importantly, it’s also an after-market management tool. When you do go through the exercise of creating resources - again, whether these are IP addresses, network interfaces, VNets, VMs - you can store a concept of them, and then if you need to scale them or change them or update them or modify them later, you can.
I think it’s sort of introduces this new paradigm of “I need infrastructure and I’m gonna probably wanna change it later as my use cases grow and evolve and expand”, and with Kops I can do that through one friendly command line tool which ultimately becomes an API that you can trust.
So how does
kops differ in scope from
kubeadm is sort of the second half of what
kubeadm says “The infrastructure is in place and now I wanna bootstrap a Kubernetes cluster”, where
kops goes “I’ll manage the infrastructure, create it if you don’t already have it, and bootstrap a Kubernetes cluster as well.”
So you’re actually speaking about your development or the history of the development of Kops, and lessons learned and all that stuff. Without giving away the secret sauce of our talk, do you wanna give maybe like a little background of what that entails, and maybe some of the struggle that you had to make you realize and learn from these observations?
Absolutely. Yeah, again, I don’t wanna give too much away here, but basically I came into Kops and the community was moving very fast, and obviously, if you’ve ever watched the Kubernetes community, the whole Kubernetes community moves very fast. We’ve started working and developing, and as I started going through this iteration cycle as a developer, I started to kind of notice that things were getting noisy, for a lack of a better term, and I started to kind of re-evaluate the code, and then me and the rest of the Kops maintainer team kind of got together and started to go through this exercise of evaluating the code and figuring out what could be better and what was really going on here.
I really think it was like a classic taste of – we went through and we coded it with like… I believe you were saying something about best intentions, right? We were going through and trying to create an environment that would be easy for us to scale and change later. So we had abstraction, we had interfaces in place, we had put a lot of work into making this thing scalable, and actually in the long run a lot of that stuff kind of came in and ended up getting in our way. We slimmed it down and became much more expressive with our code, and that ultimately made a much quicker developer cycle.
To kind of go into the developer empathy side of things here, it actually got other maintainers and other contributors excited and involved in the project.
And what was that effort like? How long did it take to refactor this codebase from this crazy unwieldy thing that you were alluding to, into something that you’re more proud of now?
The timeline was super quick… It was about three weeks. We were trying to make a release - I think I wanna say 1.54; I have it in my deck. And the thing is in the Kops community we usually try to do a release right after Kubernetes. So a Kubernetes is N, and 1-2 weeks later we wanna have supporting Kops for version N as well.
[12:09] So as we were sort of scrambling to get this done, we started to go through it, look at the code and realize “Oh, maybe this is a lot of effort and a lot of code here to dissolve one simple problem. Maybe we can take this whole giant bundle of Go code out and replace it with a handful of really expressive functions.”
[alarm sound noise]
What is the…?
It sounds like a weather warning.
I think we just got an AMBER alert here in Colorado, and that was my Okay Google box on the shelf behind me.
That would actually make sense, because you can’t mute those things.
So Kops - we understand now. Can we talk about Draft? Because I think Draft has probably more impact on your day-to-day Go developer than Kops does. What’s the story with Draft? There’s so much hype, like “Draft is gonna change everything”, but I haven’t sat down and tried it yet. What’s Draft gonna do to make my life easier?
Again, I think this is moving into the developer empathy and operational empathy space. Draft makes it really easy as a developer to get an application that you’re working on locally running in your Kubernetes cluster with relatively low overhead.
I guess the story behind it would be you have a Draft daemon that’s running and it’s watching a directory for deltas; as it detects a delta, you make a change, like add a new line and save the file, or something.
It’ll detect that and it will go through this rebuilding and redeployment cycle where it’ll bundle up your application into a container, push it to a registry and then use Helm - that’s sort of like behind the scenes of what’s going on in Draft - to actually make a deployment in Kubernetes and run that in Kubernetes.
I used to work on Scala, and this tool reminds me of
sbt quite a bit, with this sort of “You run it and it sits there, and as soon as you make a change, it’ll sort of recompile” what it did in Scala. For Draft, for recompiling it’s actually a build stage where it will actually compile your code if you’re writing Go. Or if you’re writing an interpreted language, it’ll just stick it in a container and then push that out to the cluster… Which is pretty handy, because if you’ve ever developed for Kubernetes, you know there’s like – I have this alias in my Bash profile that I’m certainly not proud of, where it would do all this stuff that I’ve just talked about, and it was kind of hacky… This is a much more elegant way of doing that.
Yeah, everybody has that same nasty Bash script if they’re working in Kubernetes. It almost sounds like a “Heroku for Kubernetes” sort of thing; simplifying the whole development workflow. That sounds cool. Does it use a concept of buildpacks or something similar to determine how to containerize the application, or do you still have to provide guidance on the containerization of your app?
So there is buildpacks. I think right now we support six or seven languages, and those are built into the codebase. I know we plan on growing those over time.
That’s really cool. I’m looking through the docs now to see what the list of those six is… I don’t see it yet, but I’m sure it’s there somewhere. That’s really awesome. I’m a Draft-sold person; I’m gonna have to go play with it.
I think there was an article - I forget who posted the article from the Microsoft team when Draft was released… But that listed the languages, I think – I was trying to look it up real quick.
[15:54] And in addition to that, how does this work as far as like – what’s the word I’m looking for here…? Sharing the cluster with production systems for like multitenancy, multiple developers leveraging the same Kubernetes cluster… Does your application as it’s being built out in Draft - is that in its own namespace, or are you kind of sharing the cluster with the rest of the world? How does that work?
So there’s a command
draft in it; you specify the namespace you wanna run in, and as long as two people are using different namespaces, they’re not gonna conflict.
Nice, that’s really cool.
So is this type of stuff mostly what you’re working on at Microsoft? What other things are you responsible for? you said you’re working on the Azure team, right?
Right. So right now I’m working on some internal projects that are sort of like behind the scenes that we’re gonna announce later once they’re a little more fleshed out… But basically I’m on the ACS team, and building out bigger, badder, more awesome Kubernetes functionality for Azure users.
So is there a particular part of Kubernetes that you prefer to work on or that you find yourself mostly working on? Because I think the thing we all find is there’s so many components that it’s really hard to be aware of all of them - the scheduler, the networking components and storage… There’s just a lot of moving parts, and as you said earlier, it moves so fast.
It does. To put it into perspective, when I first started on the Deis (now Microsoft) team, I had never really even interacted with a cluster past the API. My entire Kubernetes career up until January of this year was bootstrapping and digging through kubelet logs, and understanding how the components of the control plane fit together… And once the API was up and running and I could send an HTTPS request to it, that was sort of where I stopped.
I think I still kind of naturally go into that space - underlying bootstrapping and how does the system work even behind the scenes and what is it the system needs look like, and making sure that’s all happy and healthy. And then of course, how does the infrastructure underneath that fit into that whole orchestration bit.
Kind of like the provisioning aspect and kind of how all the components communicate between themselves, and not so much the application layer - am I understanding that right?
So if you had plenty of free time, is there an area that you would love to dig into deeper?
I think I really would like to get into building out new applications in Kubernetes. I’ve kind of always gone through this exercise of getting Kubernetes up and running, dealing with the infrastructure, solving those networking and network overlay problems… I’ve never actually had the joy of “I’m gonna write an app, I’m gonna stick it in a container and I’m gonna go run it in production in Kubernetes.” I’ve always watched other people do that and it’s always so fun and exciting…
So I’ve secretly been kind of like, “One of these days I’m gonna move my blog over, on a weekend, or something like that…”
But indirectly, you’ve helped everybody launch their stuff, right?
So yeah, there’s a lot of value in that, but I think it’s always fun, looking at stuff… I look at Jessie Frazelle too, and it’s like “She put what in a container…?!” [laughter]
Yeah, we actually did a Helm hack night in San Francisco last week, and I might have had one too many beers, but I thought it would be a good idea to try to run IE6 in a container, just because some of this stuff we’re dealing with here at Microsoft requires IE. So I was like “Hey, if I have a Docker file for that, that’ll make it much easier.”
[19:46] So I started going through the exercise, and it’s actually pretty fun containerizing odd things. I had a good time. And once it’s done, it’s kind of done forever and you don’t really have to deal with it anymore. It’s kind of like you give yourself these neat little LEGO blocks.
We’ve gotta know how deep was that rabbit hole for IE6.
It really wasn’t that bad at all. It was really no different than getting IE6 running in Wine on Linux.
So you did in Wine and Docker?
That makes sense.
Actually, that sparks some ideas, too. One of the programs that I always like using on my Mac is Navicat. I like having a consistent UI for database stuff… So I naturally thought on my Linux machine they have Navicat for Linux, except it’s just the Windows version in Wine… So you’ve gotta have all the 32-bit libraries and all that junk, so running that in a container would be awesome.
My contribution to the world… [laughs]
I think it was cool for me because containers always were kind of like this mystery, and then you kind of realize, there’s a lot going on, but at the end of the day we’re head in your kernel… So whatever we would be setting to the kernel “in real life” you’re gonna get pretty close to the same functionality coming from a container, and it was like “Oh, this is sort of not this black mystery face anymore. I kind of get it now.” And I think actually seeing the Xserver get started and actually bring something up on my screen was kind of like that a-ha moment.
I think there’s difficulty in adoption of containers though, because explaining the differences – I forget who it was, whether it was Brendan Gregg or somebody… I was reading kind of like a performance article where it basically said that most of his day is spent exonerating the container, that most people wanna “Oh, this isn’t performing right… It’s gotta be because it’s in a container” and things like that, and you start to realize there’s not a lot of magic there; it’s all operating system things being called; it’s not the container, it’s the configuration the container’s getting, right?
But I guess the natural assumption is that it’s a lot closer to a virtual machine, and that there’s a bigger layer of abstraction there.
But it’s really not… It’s just a container, at the end of the day; [unintelligible 00:22:14.22] something, and that’s that.
Yeah, that’s basically what I tell people - it’s a lot closer to just a highly configured process than it is a VM.
So you guys were just acquired - “you guys” being Deis - by Microsoft… Tell us about the culture change there. Deis was a nice startup in the Boulder - Denver area, and then you went off to Engine Yard, and now Microsoft… So that’s two big changes in two years; what’s the culture like at Microsoft? How do microsofties think about Go and containers in general? What does that feel like?
I was so impressed and fell in love so quickly… Because I was kind of worried, like “Am I gonna still be able to write Go? What is this gonna look like?” and I think after the first day of exploring Azure on GitHub and going through the code, like – Microsoft loves Linux. We love Go, and the culture is great. I still feel like I work at a startup, I go to work with my best friends every day, we go out to eat lunch… Life’s good.
It’s really interesting to see the love for Linux coming out of Microsoft in recent years, and making Bash run on Windows, too…
I love it. And it’s so cool… I feel almost a sense of pride to be a part of that, because coming from a world where Microsoft is always sort of different, and Windows is always sort of different to be like “Hey, we’re gonna build out these really awesome products in this really great cloud, using Unix, using Linux, using Go, and making these awesome technical decisions…” It’s really exciting.
That’s so awesome. So how about free time? What do you like to do in your free time? We know some stuff from the band thing… You’ve got quite a collection of instruments.
[24:06] I do. I play a lot of music; I have a whole basement filled with instruments. Actually, we’re moving next week, so they’re all in boxes right now, so I’m having a guitar withdrawal…
Yeah, I think my guitar withdrawal has passed… Now it’s just a decoration for my office. [laughter]
It’s like one of those Ghost paints? I’ve just put my whole band room back together, because I had put hardwood in it over the last month… Now all the hardwood’s done and I put the whole band back together last night, and plugged in my amp for the first time at 10 PM, and went a little bit crazy on channel three, and it was really – it was awesome. It felt so good.
Carlisia, do you play any instruments?
No, I don’t. I played piano for a couple years when I was – I can’t even remember; maybe I was nine. But I don’t remember a thing. I remember how to position the fingers. That’s it.
I think in order for me to say that I played the guitar, we would have to clearly define what the definition of “play” is… [laughter]
Oh, ukulele is so much fun.
Yeah, that’s such a cool instrument.
I don’t know, I think the keytar is a pretty cool instrument though, too. It’s one of those things… To see somebody who knows how to play it is awesome.
I played synth in a band for a number of years, and that sort of went anywhere from weighted key piano, to playing organ, to actually having this super teeny-tiny microKORG with little itty-bitty keys on it… And keytar - it’s such a unique instrument, because you have to kind of have one hand that’s doing piano things, and then your left hand is on that flybar where you can get the modulation and the pitch bend and everything.
It took a while to get into this – like, I’m holding it like a guitar, playing it like a piano, and my other hand is doing guitar things. But I bought it, and then the first thing I had to learn how to play was Frankenstein by the Edgar Winters Group. [laughter] I played that for like six months straight. I’m pretty sure the neighbors were like “If I hear that riff one more time…” [laughter]
…somebody’s gonna have to die.
I just pasted a YouTube search result for Jordan Rudess’ keytar solos into the Slack. I’ve seen him live several times, but one of them he did like this nine-minute epic keytar thing, and it just changed my idea of keytars forever. Very awesome.
I will check that out.
So I think by the time this episode is released, we will be in our 30-day window to the conference. Are you well prepared? Are you sitting back, relaxing, rehearsing, or still racing and doing last-minute changes?
I’ve had my deck done for a while… I gave the talk about a month ago – I gave the short and condensed version of it for an internal thing at a company… So I think I’m ready. Probably as we get closer to the conference I’m gonna get a little more like “Oh, man… I wanna make sure that this thing is perfect and on point”, but I’m just excited. This will be my first GopherCon, and I’m speaking there, so that’s pretty rad.
Oh, you haven’t attended yet?
It’s gonna be awesome. Brian, we found the one person who doesn’t procrastinate.
Right, I was just thinking “Wow, this person has their talk done ahead of time?”
That’s unheard of…
Usually we spend the night before each next day, moving between hotel rooms, helping people finish their talks. Last year I don’t even know if we got to sleep the night before each day, because it was just moving from one hotel room to the next, listening to people’s talks, fixing their slides… It was lots of procrastination, so we’re very proud of you, Kris.
[28:11] Thanks. It does keep changing, I will say that. The story – it’s like a fish story, it gets more dramatic every time I tell it, but as Kubernetes grows and as I learned more, and as I kind of go deeper into the rabbit hole, I’m like “Oh, this might be another interesting tidbit to throw in there…” So I think I’m probably on my fifth or sixth revision of it.
Evolution is okay, but not having it done the day you show up to the conference - not so okay.
There are those beautiful people who can just get up on stage and totally wing something, though… And I can only be in awe.
Do you know who’s really good at that? This is totally random, but Charlie Nutter, the guy who does most of the JRuby stuff… He can show up at any conference and you just give him a topic and he’ll riff an entire hour-long talk flawlessly with live code.
Wow. That’s like rock climbing without a rope.
Yeah, that’s pretty much what I say - wow. If you’ve ever seen it, it’s impressive.
So do you guys wanna talk about anything projects and news-wise? I think we have probably like 15 minutes or so left in the show.
There are a lot of interesting projects that have been updated lately, and there’s some news. Let’s dive into it. I’ll start with Go Play - holy cow, is that cool! So you guys know I’ve had this - I don’t know if “obsession” is the right word, but I’ve been trying very hard to learn front-end development, and I’m an old dog and it’s a new trick; it’s not going terribly well. And I’ve had this conception that using GopherJS would make my life easier, for better or worse (I don’t know if that’s true)… But there’s a front-end framework called Vecty that’s built on GopherJS and it’s very much in the style of React, in that you build components and reuse them, and such… But Vecty isn’t terribly well documented yet, because it’s still kind of in flux. And somebody built a “Go playground” thing called GoPlay.space.
If you go to goplay.space - it’s a Go playground front-end, and there’s also a back-end that submits your code off to the playground and then reformats it… But it’s nice because it’s got some slick integration with
godoc, so you can highlight something and on the right side of the window it will open up the
godoc for that stuff… So I’m really excited to see this giant codebase - “giant” maybe isn’t quite the right word, but a large enough codebase that gives a great example of Vecty and client and server-side Go… It’s a really neat project, and the tool itself (goplay.space) is just like the playground, but better. It’s a neat tool.
Yeah, I was looking at this – I saw this on Reddit the other day… I do actually try to keep up with r/golang as a moderator, from time to time. But I saw this… You’re able to click on the Go functions and it would pull the GoDocs right there on the right…
Yeah, isn’t that neat?
Yeah, I’m gonna use this all the time, whenever I’m demo-ing stuff at the office, just because we have a lot of people who look at it who may not be super-involved with Go, and having the docs right there as you’re going through the code is gonna be invaluable.
So is this something that you host? I haven’t looked at this yet… Is this something that you host yourself, or is it just like an alternative play site that you can go to?
It actually uses the playground in the background, but if you wanted to host your own, you could… But you don’t need to, because he’s got one hosted at [goplay.space] (https://goplay.space/).
Oh, cool. I’m gonna have to start using that.
Yeah, it’s really slick, and there’s lots of extra sugary features on top of the playground that make it neat.
Oh, no way… I was just playing around – [laughter]
I had to open this up, because you guys were talking about… So on top of clicking on a function, you can just go to the imports statement and click the imported package and it brings up the package docs, too…
Slick. That’s why I wanna go enjoy this source code… I need to assume - or subsume - at all “read it, become it, learn it, do it…”
NO WAY!!! Alright… [laughter]
Shut the front door!
Yeah, if you click on
func, it actually brings up the doc for the package clause and import declarations and function declarations… The actual docs for that in the language spec. That’s sweet…
Also, just because we’re all hackers here, there’s a Settings button in the upper right and you can change it over to Dark Mode and it looks really legit.
Oh, it is legit!
Thank you for that.
And for anybody who doesn’t like the standard, you can change your tab width, too…
I like 8 a lot. I don’t know why, but I like 8 a lot.
This is so slick.
It’s slick, isn’t it? I was really excited… The person that released it – let me get the name, because I was just looking at it a moment ago… It is Igor Afanasyev (I’m not sure). Igor’s been talking about it in the Vecty room in Golang Slack for a long time, and finally he released the source a couple days ago… Really cool to see an implementation of something large in Vecty. So there’s GopherJS on the front-end, straight Go on the back-end… Cool stuff.
Now I need to try to avoid playing with this… [laughter] I just wanna take random code in here to see what happens…
Like, if I use a channel and I click on the pointer thing, does it do something? I’m gonna be finding hidden things now…
Right? Like, now I’m gonna find parts of the golang documentation that I haven’t looked at before, that I’m now gonna start reading.
You almost feel obligated to read it after it pops up… [laughs]
So the CFP for Gotham Go - which is New York City in 5-6 October - is opened. So the CFP is open and it will close on 15th July.
…which is roughly –
The last day of GopherCon.
Yes. I’m thinking today is June…
Today IS June.
It is June.
No, I was thinking today is July. I’m thinking “Wow, that’s only a week away that it closes”, but no, it’s like a month and a week.
This is how you know we’re really close to GopherCon, because we don’t know what day it is, we don’t know what time it is, we don’t really even know what month it is, and we certainly couldn’t tell you who the members of our family are.
We have families?
Oh, that’s cool…
It is, so let’s practice our Mandarin by watching the videos.
I wanna learn Mandarin so badly…
And with that, I have to go.
You are getting kicked out of your room?
I see people – oh, wait… They’re going away. They’re going away, I’m not being kicked out…
Yeah, flip them the bird. “Listen, Fastly… We’ve got stuff to do here. This is GoTime.” [laughter] See if that works, and let me know.
I try… I told you I was feeling a little spicy today.
Yes, Vim-Go rather… It was just released, too.
I was looking at the release notes - there’s some really nice stuff there.
Yeah, one of the cool things was the – what’s it called…? Keyify?
So if you have like a struct literal and you didn’t actually put the field names on there, it’ll automatically look it up and do it for you.
That is really awesome.
Wait, so if you define a struct literal, it’ll define the members automatically for you?
Yeah, so if you’ve used an anonymous struct literal, or a struct literal without the keynames…
Sorry, I have to go now. Bye, this was fun!
So yeah, you’ve got a struct literal where you didn’t put the keynames in and you just counted on ordering to manage the assignment, you can type
go-keyify in vim-go and it will put the keynames in for you… Which is cool, because that’s a
golint big red flag for keynames, so… It’s kind of slick. And there’s a bunch of other stuff in this release.
It also allows you to be lazy though, because you can just type really fast out the values and then just do
go-keyify and let it fill in the fields for you.
Oh, that would be cool.
I mean, if you remember it. That tends to be my problem - there’s lots of cool things, I just never remember to use them when they’re useful; I remember them after the fact.
So I came across this cool project this week too called fsql, and now that you’re talking about flipping birds, Brian, it has like a whole new meaning to me… [laughter] But it’s a filesystem SQL, so you can run basically like SQL commands to search… So rather than just using like a
find and all its flags, you can actually do like a
select * from and do
name a file like such-and-such, and check the size…
I was curious… I saw that too, and I was wondering if you could like do a join… If you could take files from this directory and match them on files from that directory and show how they relate. That would be useful if you’re ever doing a nested vendor and you wanna figure out which packages need to go where.
You can use
or to join conditions…
Yeah, but you can’t join queries…
I don’t know if you can have multiple select, yeah…
union would be killer, wouldn’t it?
You could do some crazy stuff with a SQL
I’ll betcha they’d take a pull request, though.
Well, you know, with a little bit of a Linux command line you could do that though…
Yeah, you could…
You use fsql and then throw in some
grep and all of the rest of it, but of course, that defeats the whole purpose of having fsql… So I’ll be quiet now.
I think other than that I don’t know whether – are there are any other news or things going on you guys wanna talk about before we wrap this thing up?
Well, we have our #FreeSoftwareFriday we can’t forget…
Yes, and I have a cool one, too.
Yeah, it needs some code love… It’s Kubernetes related. I’ll go first, being that I’m hinting at it anyway.
So we have a thing we’re working on where we’re needing to support multiple interfaces inside of a container; basically, one would be the mesh network like the [Flannel] (https://github.com/coreos/flannel) or something, and then the other being like a VLAN interface for outbound video data… But anyway, so we’re having to build our own CNI plugin to manage this, and I came across this project called CNI-Genie, which is actually ridiculously cool. It looks like it’s still in its infancy, but basically you can add a CNI annotation to a pod, and then comma separate a list of CNI plugins you want to run.
[40:12] So either you can get multiple interfaces, so you can have like Flannel and Calico and all these things running in the same cluster, and then issue IPs from specific ones or multiples, and then on top of that it does some metrics collection thorough cAdvisor, where if you want it to, it can choose what interface it should give you, or which CNI plugin it should use, based on…
Based on network performance?
That’s crazy. So first of all, CNI is complicated enough without adding a comma-separated list of CNI plugins to make my life more crazy… [laughter] So God bless them for going there, but holy cow!
The other interesting thing about this though too is a lot of people implement these networks at the Docker layer, and things like that. The cool thing about this is it would allow you to run multiples, in like a multitenancy environment, where people might have different requirements.
You could host multiple applications within that network and then have different CNI plugins that manage that, especially when you get into access control and things like that… But yeah, so…
That’s crazy cool.
And the other cool thing is if you need to migrate, you could have a Flannel network running and all your current containers running on Flannel, and then you stand up Calico side-by-side and then you’re just kind of rotating out containers over onto that new CNI plugin and new network interface. So there’s a thought there, too…
That’s nuts. Crazy cool. I see that it’s from Huawei and I know after talking to some people who went to GopherCon China that they are doing gigantic things with Go at Huawei, so cool to see them releasing open source, and I hope that we can find more ways to have that language barrier a little easier for all of us, to see the things they’re doing and collaborate.
I know the Go community in China is huge, but it’s kind of tough, since I don’t speak Chinese. If I could just learn Chinese, it would be so much easier.
I tried… This was – wow, almost ten years ago now that I tried to do some Rosetta Stone for Mandarin.
I didn’t make it very far.
Alright, so my #FreeSoftwareFriday shoutout is to a person, not a project. Everybody has probably seen this person in the Gophers Slack, on GitHub, on Twitter… This is Florin Patan, and I hope I didn’t butcher your name terribly, Florin… I apologize if I did. Florin is just an incredibly active member of the community and always, ALWAYS there to answer questions and help people out. I very much appreciate all of the work he does for the community; he’s one of the cornerstones of the helper crew in Go, and it’s awesome to see all the time he dedicates to helping people on Slack, on Reddit, on Twitter… Everywhere. Thank you so much for all that you do, Florin. We appreciate it.
Kris, is there any project or any person you wanted to shout out for #FreeSoftwareFriday?
Yeah, I would say the one person in the community who has stuck out to me more in the past few months than anybody else is Caroline Van Slyck.
A great talk, about adding more users to your app by supporting Windows better.
Awesome. I can get on board with that.
I’m just thinking of our 15-minute [laughter]
…and how long it took me to get Skype working?
Well, just how quickly you go from frustration with your computer to admiration…
So since we’ve got a few minutes left, let me tell you about my little recent migration. Everybody knows I just can’t find an operating system I love (this is not news to anybody), but I’ve been pushing myself more and more into the Microsoft world lately, because I think the Windows subsystem for Linux is the answer to most of the problems that I have. It may not be everybody else’s answers, but I wanted a Linux development environment and I don’t want to sit at Linux daily, because email is terrible… Lots of things are not so great about desktop Linux.
But development on Linux is what I want, so I thought WSL is probably the way to go. And with the latest updates, I’m running the Fast Ring Insider release, so I’m on build 16.1.99, so it’s a very fresh release. There pretty much isn’t anything in WSL that doesn’t work flawlessly. I can’t find anything that doesn’t work perfectly in WSL, which means that I’ve got a Linux development environment, and it’s perfect. Now I just have to get used to the Windows part, and I’m doing pretty well. I mean, I’ve always liked Windows email; I just have a hard time with things like keyboard shortcuts and such.
The thing that killed me today was that Skype doesn’t recognize my – well, actually it does; even worse, Skype recognizes my external audio interface for the podcast, it just doesn’t pick up the microphone. [laughs]
So the green light shows up that I’m talking in the audio interface, and in the Windows control panel I’ve got a little green light showing up that says I have inbound audio in my recording thing, but Skype is like “Nope, no microphone. Thanks for playing.”
So I blame Skype more than I blame Windows, because it works everywhere else.
So because we haven’t started a war yet [laughter], Kris, what’s your development operating system and editor of choice?
And this is the part of the show where everybody hangs up on me… I run Arch Linux and Emacs most of the time.
I’m in Arch Linux an Vim person, so…
I’ve been actually wanting to switch over to Vim… I know it’s like “Oh my gosh, Emacs for life”, but the more I see it and the more I hear about the community and how fast we’re coming out with things like what we just talked about, with the struct literals, I think that it might be fun to dedicate a year to just switching over and just learning Vim and seeing how I like it. That’s be something fun to do.
Yeah, once you get the first set of key movements down - that’s usually the hardest part; after that it’s just a lifetime of learning new tricks, and being around other Vim people. They see you type four characters and they’re like “You know you can do that in two, right?” and you learn something new…
Using Vim in front of an audience of 20-30 people that may or may not know Vim - that is probably the most painful thing in the world you can do… Because at the end of the class people are like “You know, you could have done XYZ in Vim and done this a lot faster…” Alright, fine. Just get off my back. I do not need you criticizing my Vim motions.
But you used to criticize my Vim motions…
I’ve never criticized your Vim motions. You’re the Vim god, I know nothing about Vim compared to you.
The history of mine and Brian’s friendship and relationship – actually, he was my boss for a while, and yeah… He used to give me a hard time because I’d fly through stuff demo-ing… So I’d just be like changing tabs and jumping around the file and things, like… “Slow down!”
[48:16] “Slow down! I can’t even see what you’re doing, you’re moving so fast!” And that was actually what convinced me that Vim is a good place for me to go, because I used like Sublime Text and TextMate before that… But watching Erik fly through Vim, I was like “Oh man, I’ve gotta get some of that.”
And that’s exactly what it was like for me… I’ve sat with some people who do the same thing and I’m like “If I could actually go through and learn that, I can see myself getting obsessed with it.” Like, “I have to learn more, I have to be able to do this in one less keystroke”, and it’s just… I grew up with Emacs. It’s like what the cool kids in high school used. We used to play games on it, so for me it’s just second nature, I don’t have to think about it anymore. Maybe it’s time for me to learn a new text editor.
I’ll actually plug a book for anybody interested in learning Vim… I had used Vim for probably close to ten years before I read this book. It’s Practical Vim by Drew Neil. I learned a ton from that book that I didn’t know from ten years of using Vim. It teaches you to kind of look at the keystrokes and kind of the multiplier, the command, and kind of like a motion activity… And you start to realize that there’s a format to them, like
c is for Change,
d is for Delete, and then you have a motion, which is like
t… And then you can say like
; , so
dt; means “Delete up to the semi-colon.”
ct; is Change To ; …
Once you start recognizing those patterns (
dw is Delete Word) it becomes much easier to remember them all.
There’s a cheat sheet somewhere, too… A poster.
It’s my desktop. It’s literally my desktop, because for some reason, once I got good enough to open files, move around, I stopped learning all Vim things. It’s like “Yeah, I can open files, I can edit…”, so I don’t use very many motions and I don’t use many of the extras. I know how to search and replace, and I know how to move to beginning, and search and all that stuff. I’m a basic Vim user, and I keep trying to convince myself that I need to learn all of the cool stuff, and I can get everything done without learning it, so I don’t.
There’s actually a follow-up book to that too, called Modern Vim, which gets into Nvim and things like that. I have not read that one yet, and it’s not out yet, I don’t think… It’s still being written, but that will be interesting when it comes out too, because Nvim is really cool, too…
**Kris Nova: **
[laughs] Scott Mansfield just posted an upside down T-shirt with Vim commands on it…
The Vim cheat sheet… That’s fantastic.
I need that shirt.
Thank you, Scott!
Yeah… And I feel like you see that a lot with Vim; like you said earlier, it’s a lifetime of learning how to be better at it. People who use Vim grow and get better, and the longer they use it, the more they fall in love with it and the more they sort of learn to master it. And I guess for me, I don’t really ever spend any part of my day-to-day coding life improving my editor skills. I can jump to a word, jump to a line, save and exit, and I kind of stop there.
That’s me. I can do the basic stuff. I’ve never really learned – now, today, since we’re on editors and kind of going sideways, I did the free webinar for JetBrains on Gogland IDE, and I was blown away, because I did that with Florin and I was blown away by how many cool features are in Gogland. So if you haven’t given Gogland a try yet - holy cow, do they have some really awesome Go stuff. We barely scratched the surface of the things that the IDE does, and it’s really cool how well Gogland thought through all of the Go stuff.
[52:10] When you’re looking at text editors, obviously there’s a huge difference between the heaviness of Vim and something like Gogland, but… I’ve been using Gogland more and more lately, and I’m impressed by just how much it does.
If I’m on my Mac, I use Gogland exclusively, and I’ll write in Emacs if I’m at home on my Arch Linux box… And it’s great. I remember coming over from IntelliJ with like the Go plugin; getting the Kubernetes codebase to index was like this 20-minute process… [laughter] I think it was like 7.5 gigabytes of memory, or something, and Gogland did it in less than 20 seconds and running less than a gig.
It’s highly optimized for Go, and it works great. I use it for demos and I code in it all the time.
I have a question - open question for the gang here… I have multiple GOPATHs in my home directory, for different modes of writing Go that I’m in, and then I just change my GOPATH variable based on like if I’m in Kubernetes mode, or if I’m in Azure mode. Am I the only one who does that, or…?
Not at all.
I do it by project most times. In fact, all of my classroom material for teaching Go is a self-contained GOPATH, and then I’ve got GOPATHs from my personal projects, and if I have a job - which sometimes I do - then I’ll have a GOPATH specifically for that, just to keep everything clean.
And if you’re not already aware of this, I will up your “different environment” game. There’s a project called direnv that I use the crap out of. Basically, it allows you when you
cd into a directory, it can execute shell scripts or set up aliases or your paths specifically for that directory. I have these different GOPATHs set up, but it just automatically changes for me when I go into the directory.
I was literally thinking about writing this exact tool like two days ago.
Yeah, I use direnv for everything. All I have to do is change into the directory and it automatically changes my GOPATH, exports, the Docker variables for Postgres, whatever. It was Erik, I’m sure, that introduced me to direnv, or maybe its predecessor. Because direnv was written in Go, but there was another one before that that isn’t… Same thing, though. You have an .envrc file, and it just automatically sources that when you’re changing the directory, to change your GOPATH and set environment variables.
Yeah, it’s so much fun. I use it to change up my
kubectl configs and things like that, too.
You’re not using kubectx yet?
Usually, there’s a kube-control or kubectl. I haven’t got into the kubectl thing…
Awesome, because right now I have a bunch of kube configs in my directory, and then symlink them according to what I’m doing. But this sounds awesome.
Oh, no, no, no. I’ll paste this one into Slack. It’s awesome. We were using this last week when I was at training, and it’s so much nicer.
Or even with direnv too, you can have it execute shell commands and stuff for you. So you can have it just change your context when you CD into the directory.
I feel like we need to have an episode all the time where we share tools…
A tools episode? Heck yeah. I think that’d be an awesome episode. All of the cool things that we each put into the automation of our workspaces, that make our lives easy… That’d be fun.
And then we could create this gigantic, super-duper repository of the best ways to automate your entire workflow, and the end of the day you wouldn’t even have to write code. You’d just show up and click a button, the code would self-write, and you’d just watch the compilers work.
Awesome. I finally just cracked down and I decided pushing my entire home directory up to a Git repo.
What?! The whole thing?
Well, I Git ignore downloads and stuff like that, and the big directories that have all my junk on it on my Mac book or my Arch Linux box…
So like documents, too?
Yeah. Dotfiles, documents - I just get it all up there and then I can just pull them down whenever I need them, and edit them and push them back up.
Holy cow… That’s brave.
Yeah… I also run my own Git server, so…
There’s another one… It’s not RCS, but… Shoot. I just saw the other day something like RCS, the name is like.. One of those Ruby companies made a really cool dotfile configuration tool, and I saw somebody… Elithrar - who’s Elithrar? The name is escaping me… On Twitter, Elithrar. Darn it, I’m blanking. I don’t usually blank on names. Anyway, I’m gonna go look it up… While you guys talk, I’m gonna go look up his dotfiles.
Yeah, so some of those things are cool, though…
But I guess I’m like an old school Linux geek, so Stow just works so well for me. It just automatically symlinks, and the binary is there, and it’s super fast, and the package exists already, and…
I have a Bin directory that is just like eight years’ worth of hacky shell scripts that I add to path whenever I move into a computer…
Oh, you’ve gotta publish that.
Okay… Let’s find it right now. I’ll pull my dotfiles out and I’ll publish it for you guys.
I sometimes forget that they’re not on every system, and I’ll be like “Wait, you don’t have this kcxx27d command?”
“Doesn’t everybody have that?”
I used to do that with Git aliases… First I’d alias G to Git, and then I had actual aliases set up inside of Git too, so that I could shorthand everything, and I’d be on somebody else’s computer or logged in over SSH somewhere, and I’m trying to run my aliases and it’s yelling at me that it’s not a valid Git command, and I’m like “I don’t know what you’re talking about… Yes, it is!”
“Of course it is, I just typed my alias, GX!”
And I have like an alias for viewing the Git log, where it’s kind of like a tree where you can kind of see railroad tracks and things like that, and I just kind of have that alias, so it’ll drive me nuts when I’m on somebody else’s machine and I try to Git log and it shows up in the standard way, and I’m like “Wow, wait… What is this?”
That’s the disadvantage to crafting your own workspace and environment…
But it’s also one of the things that’s so attractive about it, right?
[01:00:06.25] I love Linux and I love being able to configure and make everything special just for me, because… I don’t know, there’s something that’s sort of fun at the end of the day, knowing like “This is my secret command that nobody else runs, and most people will probably hate and disagree with, but it’s mine!”
That’s right. That’s my favorite part. Having your own Bash aliases, and shell scripts that do the crazy stuff… That just makes me happy.
They’re fun to share, too… I remember – I think it was you, Brian; the first time you saw in my shell prompt where I have it change the host name’s color and put the little lock there when it recognizes that I’m SSH-ed somewhere else… Because I would constantly type a command that I thought I was running locally and I would run it on a remote system…
Yeah, I still use that, by the way… Because I love it! It’s so awesome. And I added – I don’t think you had it before, but I added a little icon that shows an apple if I’m in a Mac and it shows a penguin if I’m on a Linux machine, and it has the lock if it’s SSH-ed. So if I don’t see the lock penguin, I know I’m on a different machine. That’s handy.
Nice. Yeah, it’s just kind of cool, because it basically changes my prompt to basically make it really – I really know that I’m on a remote system and I pay attention better. So except for the fact that I tend to be be on my Mac, remoted into my workstation, so I’ve become accustomed to seeing it there, so now I feel like I need to make it smarter… The difference between like machines that I own, or are on my local network, versus not…
That’s a good idea.
One of the other things that I have too is a helper to be able to tab complete machines that I’ve SSH-ed into before, because it drives me nuts.
I have that, too.
It drives me so nuts having to type out whole IPs, or trying to remember what they are, or host names…
So I changed – what’s the new
dmenu replacement we’re using in Arch now? What is that…?
You know what I’m talking about… It’s not
dmenu, it’s the replacement - what the heck is it called?
rofi, thank you. So I have a
rofi script that if I just hit alt+D in Arch and just type a hostname, it will automatically SSH to the hostname, and I did that with some Bash hackery.
I love me some Arch. And by the way, just because I’m running Windows now does not mean I’m not running i3 anymore… Which I think is the best thing ever. There’s truly nothing better. I’ve got Windows in the background, I open up WSL, I start an Xserver, and now I’m running i3. I have all the best of all worlds.
What window manager do you use, Chris?
Right now I am running…
Yeah, I’ve seen it, but I’ve never said it, so I don’t know… Xfce is what I would say…
That’s what I have now. I rarely actually get on my Arch Linux box; I’m usually just SSH-ed into it. But I ran Gnome for the longest time, and I think that’s kind of like what I grew up with… But I’m just running this now because it was sort of the prettiest at the time.
It’s light, too. There’s not a lot of heaviness in Xfce. I’m pretty sure Erik was the one who introduced me to i3, and once you go i3, you cannot go back. You really can’t. It’s the best windowing environment ever.
Oh, yeah… And just being able to quickly “hotkey” full-screen stuff, or… There’s like a parent/child relationship, so you can have multiple windows set up, and they’re kind of grouped into one container and you can just quickly kind of full-screen those two things at once.
[01:04:06.17] Yeah, it’s awesome. If you like tile-ing in any way, and keep shortcuts – because once you go with i3, you could just throw your mouse away, because you don’t need it. It’s brilliant for command line text editor people.
Yeah, I think the only time I touch the mouse is when I’m in a browser. That’s it.
Links for life. Just kidding… [laughter]
Yeah, browsing the internet links.
I’m sure Jessie Frazelle does.
Oh… If links was the only thing there, no more browser compatibility issues with CSS and the way things load…
Right? No more Web 2.0… [laughs]
So how would you run a video? I guess you could VLC it, or something… How would that work? What would YouTube look like in links? How would you watch the video?
I swear I’ve seen a links plugin that will play videos… I could be wrong, but I swear I’ve seen one.
There’s a video player that will actually convert video real-time; it will use ncurses and actually do colored ASCII to super impose the video in your terminal.
Yeah, I’m trying to find this library right now… It’s pretty cool.
I’ve seen that, but I swear there’s a thing that will actually embed in links… And maybe I’m thinking of something else. I don’t know.
I have to see the ASCII video conversion.
I’m gonna have to play with this now.
I don’t know… That means you have to use npm. Just say no.
Oh, sweet… like I’m actually looking at it now.
That is so cool. Yeah… Okay, that’s cool.
Not gonna lie, it’s cool.
This reminds me of the – did you guys ever see the Star Wars Telnet server?
Oh yeah, yeah… I did see that. Can we release ASCII versions of all the GopherCon videos? Do you think people would be mad? [laughter]
Yes, let’s do… Let’s definitely do.
I think it would have to be in addition to the real videos.
I think we’ve gone twice as long as we normally go on an episode because we dived into “the tool.”
Yeah, we’re probably totally into the after-show now…
Yeah, so we should say goodbye so we can keep going… [laughter]
Alright, so we should say bye… Thanks everybody for listening. A huge thank you to Kris for coming on the show with us today. Thanks to Carlisia who wasn’t able to continue, but she’s here in spirit right now; she should be back next week.
Thank you so much for coming on, Kris. It was an honor to finally talk in person - well, not quite in person, but over the internet - to my best friend. If you guys aren’t aware, Kris and I are bffs; we’ve been bffs for several months now, but we declared it on Twitter so…
Yeah. We’re Twitter bffs.
Yeah. Yeah, thanks for having me. This was a lot of fun.
Our transcripts are open source on GitHub. Improvements are welcome. 💚