text stringlengths 0 1.82k |
|---|
**Brian Ketelsen:** \[32:00\] So what about laying out your data at a lower level? I know when we talked about this a few months ago when you came to visit us in Tampa, you talked about the size of the structs and keeping them within word boundaries. How does that affect processing speed? |
**Bill Kennedy:** I’m not really sure if I said that... If the struct is data - to me when I look at a struct, I look at it in two different ways. What I'll ask is: Does this struct represent my pure data or is it a struct that’s gonna be some sort of concept like a pool of goroutines? I’m creating a pool of goroutines... |
**Erik St. Martin:** I was just gonna say, so one of the things that I think might come into play there if you look at structs, is if the struct is large enough where it doesn’t all fit in a cache line, if you’re using properties at the top of it and at the bottom of it, you could keep blowing out the cache line, as yo... |
**Bill Kennedy:** That could be a level of micro-optimization. If these structs, let’s say they do spend over 64 bytes, they're still being laid out across two cache lines, right? And the next one might be laying into the next one, so you still might see the same sympathies anyway. If you start mutating these things, t... |
You know, the hardware today is designed to copy data really, really fast too. And so I tell people don’t panic because you think you’ve got a struct that’s too large to copy and now we're just gonna start sharing it everywhere. Until you do some performance profiling you don’t really know. So I’d rather the code be re... |
**Carlisia Thompson:** What are some easy things to do, some easy rule of thumbs that can help people achieve this data-oriented design, thinking about grouping data that you’re going to use together in the same place? When you set out a program, how do you think about these things? |
**Bill Kennedy:** I really believe that every problem we solve is a data problem with some data manipulation. So the very first thing I’m doing on projects is I’m asking what is the data that we’re working with? What is my input? And what is it that we’re trying to achieve? Where are we trying to get to? Here’s my inpu... |
I don’t get completely paralyzed over it, because we have to solve the problem. If you don’t get something to work, almost you can’t do any of these. You gotta get something to work first. But I think what's brilliant is Go is pushing us in the direction to do things fairly right the first time if we follow the idioms,... |
**Brian Ketelsen:** So do you have any resources for us to kind of go out and start exploring these concepts? |
**Bill Kennedy:** Oh, yeah. On the Go Training GitHub repo under Arden Lab/GoTraining. I actually have a folder in there called Reading where I've got a ton of links that I've kind of pulled out for people to read, and there's a whole section there around CPU caches and the Linux operating system and how the scheduler ... |
**Erik St. Martin:** Alright, I have a little bit of a change of subject. There’s a grassroots movement going around. I’m not sure if you’re aware of it, but there are several people that are talking about cosplaying as you this year as GopherCon. Did you know about this? Could you give them some advice on maybe on whe... |
**Bill Kennedy:** Say that again, they want the hat? |
**Erik St. Martin:** They're looking to dress up as you this year at GopherCon. Several people have mentioned it. |
**Bill Kennedy:** The hat is too expensive to be played in that game. \[laughs\] |
**Erik St. Martin:** Alright. I’m gonna put this out there, free beer for anybody who comes dressed as Bill Kennedy. |
**Bill Kennedy:** Oh my god. \[Laughter\] |
**Bill Kennedy:** Free drink tickets all night. |
**Erik St. Martin:** I will even steal the real hat and give it to you. \[Laughter\] |
**Carlisia Thompson:** If that's all you're missing. |
**Erik St. Martin:** Oh, that’s priceless. |
**Brian Ketelsen:** So we know you’re a busy guy, Bill. You’ve got workshops going on at GopherCon, you’ve got the book going on... Is there anything you wanna tell us about any of those things that you've got going on other than your training? |
**Bill Kennedy:** The trainings are always really exciting and I’m really excited to be doing a [NATS workshop on the 3rd day of GopherCon](https://www.meetup.com/Denver-NATS-Cloud-Native-and-Microservices-Messaging/events/231095092), but I think one of the things I’m really excited about right now is Carlisia and I th... |
**Brian Ketelsen:** \[40:19\] That’s neat idea. |
**Erik St. Martin:** Yeah, Brian and I commonly don’t make it out to the Tampa one. I mean time gets the better of you, so... |
**Bill Kennedy:** Right, I know so many people that come to me and they get... Even me, when I am in Miami and San Francisco’s holding a MeetUp with people that I wanna hear and I can’t get out there, it can be depressing sometimes. But what’s great about this is you're gonna be able to really start your own MeetUp and... |
**Erik St. Martin:** You're saying yes on his behalf. |
**Bill Kennedy:** I can’t get Erik to say yes, but we’re gonna get Erik to say yes one day, too. |
**Brian Ketelsen:** One day. |
**Carlisia Thompson:** Bill, do you wanna mention some other people that have already agreed to do a MeetUp? |
**Bill Kennedy:** Yes, so we have... I hope I pronounce her last name right - Butow Tammy from Dropbox, we scheduled a talk, I haven’t published this yet. Kelsey Hightower has agreed to give a talk, too. So I’ll be publishing that very soon on the days that are there. And we've reached out to a few more people, I haven... |
**Brian Ketelsen:** That’s really awesome. |
**Carlisia Thompson:** Yes, and I suggest people to sign up. There is a limit of a hundred attendees, so when you see the tweets going out, just go and sign up. You don’t wanna be left out. |
**Bill Kennedy:** And I have to say Compose.io is sponsoring our plus account that gives us the hundred people. We're really excited that they've stepped up and they're supporting the Go community. |
**Carlisia Thompson:** Absolutely. |
**Brian Ketelsen:** That’s great. They're also GopherCon sponsors, so double props to them. |
**Bill Kennedy:** Yes, so that what I’m kind of focusing on now with the little time I have, trying to get enough speakers set up and really show people the power of the platform so others will come in and start their own MeetUps. At the end of the day, that's what I would love to see. |
**Erik St. Martin:** I don’t think you're quite busy enough, Bill. \[laughter\] It’s not like you travel, or anything. I mean... |
**Bill Kennedy:** Nah... Well, you know, I have a long time on planes. \[laughter\] I can't sleep on them. |
**Erik St. Martin:** Oh, I can’t sleep in cars, I can’t sleep on planes... In general I can’t sleep, I guess. \[laughter\] I guess we’re running out of time here, but typically the way we close out the show is we like to thank open source projects that have kind of made our lives better and easier, just to show appreci... |
**Bill Kennedy:** The one that I’ve been working, on because I do some work on the CORAL project, which is an open source project, it's [anvil.io](https://anvil.io) which is providing authentication and authorization. It’s all written in Node, but we've added some Go support on the client side and it’s a really cool pl... |
**Erik St. Martin:** Awesome. Brian? |
**Brian Ketelsen:** So, one of the projects that I wanted to shout this week was Go Validator. The link will be in the show notes, but if you've ever had to validate inbound data, you know how painful it is to write that regex for email validation or credit card validations. This is a project by Alex Saskevich, that co... |
**Erik St. Martin:** \[44:19\] Excellent. Carlisia? |
**Carlisia Thompson:** I wanna give a shout out to Joe Fitzgerald - I can’t pronounce it properly. He is the one who does all the Go packages for Atom and he does an amazing job. He has go-plus, autocomplete-go, go-metalinter, tester-go... A bunch of packages. I use them all the time. He’s amazing. He's frequently on t... |
**Erik St. Martin:** I didn't even know there's an editor channel. These channels pop up too fast. It’s like, "Wait, there’s a channel for that? Is there a barbecue channel? There is now!" |
**Brian Ketelsen:** There is a barbecue channel. \[laughter\] |
**Carlisia Thompson:** There is. |
**Brian Ketelsen:** Yeah, that's a silly question. |
**Erik St. Martin:** So this is funny, this is kind of sidelining here... But somebody made a comment about needing a barbecue Gopher. They were like, "We should totally see whether the Ardan guys will create one for us." And there, apparently, already exists one. There is already a gopher standing at the grill, or - I... |
**Brian Ketelsen:** He's standing at a grill, he’s got a cowboy hat on, he’s got an apron and he’s got the barbecue tongs, and I can tell you that the shirts have already been ordered. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.