text stringlengths 0 1.82k |
|---|
**Nate Finch:** Yes. |
**Erik St. Martin:** So how does that work for dynamically linking against it? Do you need to have the plugin at compile time, like you'd need the header files for C if you were gonna dynamically link against something? Or is this just completely generic because the information is available in the binary? |
**Nate Finch:** It's completely generic, which means you lose a bit of type safety going through it. I'm looking at the package now to remind myself... Basically, you can look up names of types and functions, and they get returned as an empty interface that you can cast them and call them. |
**Erik St. Martin:** Interesting. I know there's been a few use cases where people have really wanted plugins. Kubernetes is a good example, too. |
**Nate Finch:** Yeah, I'm a big fan of plugins. I wrote a package to work with plugins called Pi that really, at least partially obviated, which is fine. I think plugins are super valuable... That's half of why Kubernetes is so popular - you can swap things in and out as much as you want, and this will make it even bet... |
**Erik St. Martin:** I think it's really cool from the perspective that there's a lot of cool tools where we want them to support many different interfaces to other applications and architectures, but the core package starts to become very bloated with knowledge of all these individual versions of the same system, what... |
A good example of this - and I'm gonna give away my \#FreeSoftwareFriday early - is CNI, the Container Networking Interface. You can basically just tell it, "This is the plugin I wanna use for my networking", and there's just kind of like a known interface between them. So having stuff like this is really cool because ... |
So I'm not sure... Was that all the goodies coming in 1.8? Does anybody know of any other ones that are coming in? |
**Nate Finch:** The GC improvement - now it's down to maximum 100 microseconds - not milliseconds... Micro. |
**Erik St. Martin:** Yeah, which is awesome. And there's a new proposal... This isn't gonna be for 1.8, but I think it's future work, where they're trying to get it down to under 50 microseconds for the stop-the-world pauses. |
**Nate Finch:** Yeah. There's a caveat right now that individual goroutines may stop for longer than that. I don't know if it's a bug or just the way things work. So stop-the-world is that short, but they're working on making it better and better, which I think is just fantastic, because that's what half the world says... |
**Erik St. Martin:** See, what I love about Go is that I get a choice. Like, yes, there is a GC, but I can manage my own memory if I want to... If it's important to me and I wanna have full control over it, I can manage it. I can create my own byte slices and pointers, and just hang on to them and reuse them, and creat... |
\[43:54\] It's not like Python or Ruby where you have no option - you can have GC or you can have GC. It's cool, because you can write it one way first. For most people, coming to a compiled language, it's gonna be fast enough already. The number of times you're gonna drill down to allocation isn't as common as you'd l... |
**Nate Finch:** Right, exactly. |
**Carlisia Thompson:** So as far as Go 1.8, I just wanted to mention that there is a really great blog post listing in detail what's going to be in 1.8. It was Tyler Christensen... We'll place the link on the show notes and on Slack. |
**Erik St. Martin:** Oh, Tyler Christensen, yeah. |
**Carlisia Thompson:** Yeah, there are a bunch of nifty little things. |
**Nate Finch:** Cool. |
**Erik St. Martin:** So... Interesting projects. We mentioned a few shows ago the vuls (vulnerability scanner) that was written in Go; I was looking at it again recently, and I noticed that it actually uses a library called github.com/jesseduffield/gocui, which is actually really cool because you can build command line... |
I haven't built anything with it, but seeing it really makes me want to. |
**Nate Finch:** Nice, yeah. I used a different one for a small project... I can't remember now what the name was, but very similar. Maybe a slightly lower level; with this one you have a window and put stuff in it. The one that I used was more like your screen was a grid and you could put stuff in the grid. But this lo... |
**Erik St. Martin:** See, I love graphical stuff. I don't know why, but I'm a command line junkie. Even at my development machine... I have a Mac and I do the podcast and stuff from that, and email and chat, but I primarily develop off a Linux box, and I run the i3 window manager. That's it. I don't need any of the flu... |
**Nate Finch:** Well, I did 13 years of Windows development, so I still at times want things I can poke at with a mouse but I also love the terminals. It's nice to put those both together and you have a lightweight windowy thing. It's pretty cool. |
**Erik St. Martin:** Yeah, I'm waiting to have some time to actually build something with it. Another cool project I found - they have a command line version for it too, but mainly for Vim and neoVim - is a fuzzy file finder that's written in Go. There's been a number of these written over the years for editors, but I ... |
**Nate Finch:** Yeah. I actually think that's a great first project - to take a small tool that you like in a different language and do it in Go. A lot of time, working on a project is like "What do I want it to do?" and what's nice about just copying something else is that you already know what it does, so you can jus... |
**Erik St. Martin:** \[48:02\] Because you spend your time learning the language, rather than trying to learn the domain and the language at the same time; you're already kind of familiar with the domain. |
How about you, Carlisia? Anything new you've come across this week? |
**Carlisia Thompson:** Yes. Well, actually not much... I wanted to mention Dave Cheney's talk, with the disclaimer that it was the only talk from dotGo that I have watched, so I'm sure there are a ton of other great talks. This one I watched and loved it. He talks about the functions as first-class citizens in Go. And ... |
**Nate Finch:** Yeah. |
**Carlisia Thompson:** \[laugh\] Okay. And it's funny that he said... He talks to people and people say, "Well, I know how to use it, but I don't use it because I'm concerned that other people won't understand." That is definitely true for me, I haven't used it yet. But he walks through examples of how to use it. That ... |
In the talk he also goes into the act of concurrency pattern. I didn't really get how the two fit together, but I also loved it because "Oh, great! There is a nice example of how to use that pattern." In the example that he gave, I think the purpose for that example was to show the first Go proverb; for people who don'... |
For people who are new to this statically typed language with pointers in memory allocation and all those things, this might sound so cryptic. Dave's talk walks through an example that gets the idea across. It is a bit advanced, but if you are ready for that, I highly recommend it. |
He also mentioned that talk by Bryan Boreham from this year's Golang UK Conference; it's called An Actor Model In Go. I haven't seen it yet, but it will go deeper into what an actor model will do. |
**Erik St. Martin:** Yeah, there's a talk by Rob Pyke from one of the Gopher fests where he talks about the Go proverbs. I'll find that video and link that in the show notes, too. |
**Carlisia Thompson:** Yeah, good point. |
**Erik St. Martin:** An interesting thing about the functions as first-class citizens - I have not seen that talk, but speaking of 1.8 changes, the sort logic... Right now you have to have an interface on your type that you wanna sort, which has kind of been a pain, but in 1.8 you'll now be able to use a comparator, so... |
**Carlisia Thompson:** Yeah, there we go. That's exactly what I was thinking... That's how I approach things - I accumulate a bunch of tools and every time I have a problem I reference to those and say, "Can I use one of these to solve this problem?" But it's helpful when people serve to you, like "Here's a use case", ... |
**Nate Finch:** Yeah, I am actually working with some code that uses first-class as function, so as a way to do validation of user data. I've got a function that's got all this logic for getting the data, and then you just pass it in a validation function, and then it can run that to make sure that the data is valid. |
\[52:02\] I was working on that while I watched Dave's video; I was like, "Yes, that's exactly what I'm doing." |
**Erik St. Martin:** Yeah, I haven't actually seen that video. I'm gonna put that on my list. Actually, all the dotGo videos need to be on my list to watch. Alright, so what else do we have on our list before we move on to \#FreeSoftwareFriday? |
**Carlisia Thompson:** One more thing I wanted to mention - Peter Bourgon emailed the mailing list (I forgot which one) and they have the draft spec for package management ready, and they are calling for comments; they are soliciting comments either on Gophers Slack, the vendors channel or on a mailing list. And they s... |
**Nate Finch:** Yeah, I looked at that and honestly, it's so long and so detailed... I need like a TL;DR version so that I can have some idea of what the overall meaning is, because it's seven pages long. I don't know that I can get all of that. |
**Carlisia Thompson:** Yeah, maybe the prototype they're starting to implement will be helpful in that regard. Sometimes it's easier to look at code. |
**Nate Finch:** Yeah. |
**Erik St. Martin:** Alright. Ready for \#FreeSoftwareFriday? |
**Carlisia Thompson:** No, I'm sorry... I have one more thing, the last thing. |
**Erik St. Martin:** What is it? |
**Carlisia Thompson:** GoBridge has a community newsletter called Go Pulse. Amy jumped in and took this on, and she did a fantastic job with the first issue. We have sections for different things that people can suggest, and every month there is an editor. So if you feel so inclined, raise your hand and volunteer and s... |
**Erik St. Martin:** One thing I liked was the Gopher Mic section, where you kind of hand it over to somebody. |
**Carlisia Thompson:** Yeah, she made it very inclusive... It was awesome. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.