WEBVTT

00:00:00.000 --> 00:00:03.520
<v Jonathan Hall>I'm glad I have a co-host because this show would suck if it was just me by myself.

00:00:15.200 --> 00:00:23.360
<v Shay Nehmad>This is Cup of Gov for November 23rd, 2026. Keep up to date with the important happenings of the Gov community in about 20 minutes per week.

00:00:23.450 --> 00:00:28.570
<v Jonathan Hall>I'm Shani Ahmad, and I'm Jonathan Hall and I'm confused. I didn't think November 23rd was a Friday.

00:00:28.810 --> 00:01:11.700
<v Shay Nehmad>Looks like someone has a case of the Mondays. Yeah, this is a Monday. We had unexpected just stuff going on Friday. But we decided to make it up for y'all. We also really wanted to talk about this new security release and this collections thing, because I want to learn about both. They seem timely. So we decided to do an episode on a Monday, sort of on a whim.

00:01:11.830 --> 00:01:19.510
So we don't know when this will come out, how fast we'll be able to turn it around, but let's see. How was your weekend? This is a question I never get to ask on this show.

00:01:19.750 --> 00:01:45.250
<v Jonathan Hall>Yeah, we don't do that very often, do we? It was good. We went spa shopping. The s the spa that we got the hot tub when we bought the house has been on the Fritz ever since we moved in. It's been a pain to get it replaced. We're not ready to replace it yet, but we wanted to go see what the options were. So we went and spent an hour with a salesperson who was Really, really wanted me to come back and give her a down payment, but I didn't.

00:01:45.730 --> 00:01:49.890
<v Shay Nehmad>So was it relaxing or was it stressful? Spa shopping?

00:01:50.130 --> 00:02:02.930
<v Jonathan Hall>It was I wouldn't call it relaxing, but it wasn't stressful either. Like, yeah, I don't know. The salesperson was fairly friendly, answered my questions, wasn't too high pressure. I mean, there was some pressure, but it wasn't high pressure, like s water pressure?

00:02:03.010 --> 00:02:10.900
<v Shay Nehmad>I don't know. Just trying to make spa jokes, but I don't I don't do that enough to know any Sounds like you got yourself in hot waters.

00:02:11.620 --> 00:02:20.100
<v Jonathan Hall>Yeah, that that's gotta be in there somewhere. Speaking of hot water, I think Go has been in some hot water. They're trying to get themselves out with some of these security releases.

00:02:20.420 --> 00:02:22.820
<v Shay Nehmad>Yeah. My weekend was great. Thank you for asking.

00:02:22.900 --> 00:02:28.980
<v Jonathan Hall>I had a great Tell us about that. I know that you had family visiting and Yeah, no, no, I'm just kidding.

00:02:29.300 --> 00:02:35.780
<v Shay Nehmad>I had a show. That was that was a highlight. My family's visiting, so I could do a show at the farmer's market.

00:02:36.500 --> 00:02:37.300
<v Jonathan Hall>You perform.

00:02:37.600 --> 00:02:43.200
<v Shay Nehmad>I performed music at the farmer's market for charity. You wanna guess how much I made in four hours?

00:02:43.920 --> 00:02:45.200
<v Jonathan Hall>300 bucks.

00:02:45.520 --> 00:02:46.160
<v Shay Nehmad>$70.

00:02:46.800 --> 00:02:47.360
<v Jonathan Hall>$70.

00:02:48.000 --> 00:02:58.240
<v Shay Nehmad>It's not too bad, I feel. It's not too bad for four hours for an amateur musician. Yeah. And it all went for charity and apparently my wife's employer also matches donations, which is a cool thing.

00:02:58.400 --> 00:02:58.960
<v Jonathan Hall>Oh, okay.

00:02:59.120 --> 00:03:10.060
<v Shay Nehmad>So you could count it as double. You shouldn't, but you could. So seems like I'm not gonna be a full-time musician anytime soon. I tested that on the weekend. So let's go back to program.

00:03:10.220 --> 00:03:13.820
<v Jonathan Hall>What what music did you perform? Did you perform the Cup a go theme song while you were while at that show?

00:03:13.980 --> 00:03:17.020
<v Shay Nehmad>Yeah, for four hours on a loop. Maybe that had something to do with.

00:03:18.620 --> 00:03:29.900
No, we have a show called Oops All Mashups where we do mashups of like two or more songs that work together or should work together. And my wife and I, we both sing them like at the same time.

00:03:30.140 --> 00:03:31.580
<v Jonathan Hall>Got it, got it. Cool.

00:03:31.960 --> 00:03:39.400
<v Shay Nehmad>I think it's cool. Well, I think it's neat. And public opinion seems to agree that it's like, alright.

00:03:41.720 --> 00:03:43.480
<v Jonathan Hall>100% alright.

00:03:43.720 --> 00:03:49.640
<v Shay Nehmad>Yes. Anyway, but seems like I'm not gonna be a full-time musician anytime soon. So why don't we talk about programming for a little bit?

00:03:49.800 --> 00:03:50.360
<v Jonathan Hall>Let's do it.

00:03:50.840 --> 00:03:51.960
<v Shay Nehmad>Security release.

00:03:52.120 --> 00:03:58.120
<v Jonathan Hall>Yeah. Security release for Go versions 1.27 and 1.26 were out.

00:03:58.560 --> 00:04:02.240
<v Shay Nehmad>Well we're 127 and 126. These are the two active versions.

00:04:02.400 --> 00:04:04.000
<v Jonathan Hall>Yeah, I guess that kind of redundant.

00:04:04.160 --> 00:04:08.320
<v Shay Nehmad>I think you went 127.4, 127, 126. 0.11.

00:04:08.560 --> 00:04:15.520
<v Jonathan Hall>Here we go. I'm glad I have a co-host because this show would suck if it was just me by myself. 12 security fixes.

00:04:15.600 --> 00:04:17.120
I don't think we're gonna get through all of these, are we?

00:04:17.200 --> 00:04:39.600
<v Shay Nehmad>Or are they all No, actually you can I sort of looked at it and summarized it. There are two classes here. The one that I'm gonna start with is first of all, I'm gonna start with you should upgrade. Like it's okay. If you're not on 126 yet, if you're on an older Go version, you need to upgrade your like a minor version, which might be a little painful, but not like too bad at all.

00:04:40.080 --> 00:05:00.250
But if you're on 126 or 127, you should just upgrade basically always. But there are two sort of highlights worth putting in. The first one is that a lot of these were found during the Go security. team internal audit. Usually these security releases, when you when we open it up, we see now it's like a list of already usual suspects, right?

00:05:00.330 --> 00:05:22.080
Like the same people, Ryutec or Jacob Kuyek who was here on the show, or other vulnerability researchers that may have been on the show or not. These are just the two names that come to mind. Like familiar names, because usually it's the same people finding these same things, specifically the HTTP server crash that we're gonna talk about was by Jacob.

00:05:22.560 --> 00:05:51.610
So, you know, familiar name. But eight of the vulnerabilities that were found were found in the build toolchain, like stuff involving Go and the linker and things like that. Eight of them were found during an internal audit. I think it's mostly like there was a nugget of an idea, like malicious packages exploited in the build process is like the general theme. Like what would happen with secure supply chain issues?

00:05:51.770 --> 00:06:01.050
Cause those have been plaguing our industry right now. And if you're working like me with like node packages in production, oh man, it's like it's a problem.

00:06:01.290 --> 00:06:01.610
<v Jonathan Hall>Yeah.

00:06:01.770 --> 00:06:21.300
<v Shay Nehmad>I think I something wised up the Go team to it and then they sent an agent and then that agent found a lot of these things. That's my read of it. I don't know if that's actually what happened or if a human found all these issues. Just seems a bit like a lot of things to find really quickly that are very similar.

00:06:22.500 --> 00:06:37.220
And I'll give you one example. So what is the linker? You know when you compile some Go code, when you do Go build, what does it what does it do? It takes your code and it wants to compile but there's also a thing called the linker. What is that?

00:06:38.020 --> 00:06:41.860
<v Jonathan Hall>It's a good question. It's been a long time since I've had to care about this level of detail.

00:06:43.490 --> 00:06:46.530
<v Shay Nehmad>I know what attackers I think rely on.

00:06:47.010 --> 00:07:05.890
<v Jonathan Hall>Probably. So like in C, you, you, there's multiple stages of compiling, right? You compile from the source to like an object file, and then you link multiple object files into an executable. And I guess Go does something similar. It's just a little more transparent. It's less transparent. It's more like done for you, right?

00:07:06.130 --> 00:07:57.500
<v Shay Nehmad>Yes. And one thing that could happen is a malicious package. So let's say I write a package called, you know, github.com slash bad guy slash bad code. Well, that might tip you off, but I could give a crafted dot Sysso file, S Y S O, or some native libraries, and these files could have linker scripts, linker options, or even link time optimization plugins that just run arbitrary code.

00:07:58.450 --> 00:08:34.820
Now, obviously when you take a third party, and this is bad, right? Because that arbitrary code could do whatever you want on the developer machine. Start mining crypto, steal all your keys. What was it recently? Get into your get into the Binance thing and delete all the crypto in the world. Generally, by the way, as someone in the security industry, security awareness month is cybersecurity awareness month is October. But this year, they're taking it like extra, extra hard. It's been it's just been a tough six weeks for this industry.

00:08:35.140 --> 00:08:55.620
So many vulnerabilities and stuff going on. Can you blame AI? I don't know. Anyway, the fix for the specific linker thing is just to validate the binary format and the embedded options and restrict like certain flags. Because apparently, and you should think about it when you're doing your security, your security issues aren't just your code. Right?

00:08:55.860 --> 00:09:19.700
You may have something in your code which is like, I don't know, a user system, and then you wrote it incorrectly, and then you allow people to upgrade to admin. But if you want a full like security, a fully secure thing, you have to worry about more than that. In a recent show, we talked about that Linux vulnerability, right? Yeah. There was a there was a proposal.

00:09:20.100 --> 00:09:23.300
<v Jonathan Hall>It was about, I can't remember what it was now, multipath routing.

00:09:23.790 --> 00:09:49.870
<v Shay Nehmad>Yeah. Which is a thing in Linux and somehow made it to the Go proposal process. Or the TLS thing, right? That you gotta upgrade the TLS libraries because of the e-Mudra thing where they had four as a as a as a key or whatever. Like all these all these problems are not actually in your code, but they impact your production workloads security thing.

00:09:50.030 --> 00:10:08.930
So all these things that they found in this specific release are more about like build toolchain and not about your code specifically. So even if you think your code is secure, which you never should, but whatever, if you have some packages or some stuff happening in your build and you want to protect your developer machines, you probably want to upgrade.

00:10:10.450 --> 00:10:30.550
You should upgrade anyway, right? In this case, you should, it's like extra annoying because you have to upgrade your development machines, which usually get worse treatment than production workloads, but if you have like agents running on some cloud somewhere, now you gotta make sure that those agents are using the correct Go version. Hopefully that's just like upgrading one place in your code base, but I don't know.

00:10:30.790 --> 00:10:39.190
For me it's never. Like is for you just upgrading Go mod enough to make sure all development environments and all production environments are on the right version or do you have to go to multiple places?

00:10:39.430 --> 00:10:43.540
<v Jonathan Hall>For my code, that's enough. Well, for GoPro. Do you want to automatically

00:10:43.540 --> 00:10:48.660
<v Shay Nehmad>upgrade all your development machines if you just upgrade, you know, the Go mod and try to run Go anywhere?

00:10:48.900 --> 00:10:49.060
<v Jonathan Hall>No.

00:10:49.300 --> 00:11:14.480
<v Shay Nehmad>That's what I'm saying, right? You gotta you gotta be a bit more careful with that. Because that's annoying. It's you don't just fix the production thing now. You gotta fix your development machines, your CI pipelines, stuff like that. Yep. CI pipelines are especially annoying because I assume they would be a high value target because they have some keys, like production keys, and they're annoying. Talks about it a bit before the show. Like I asked you if you use GitHub Actions and your answer was, what was it?

00:11:14.640 --> 00:11:16.240
<v Jonathan Hall>How do you when I have to?

00:11:16.400 --> 00:11:37.600
<v Shay Nehmad>Yeah, regrettably or something like that. Anyway, so linker inputs, another build to change vulnerabilities. The second one that I wanted to highlight, the second security thing that I want to highlight, of course, like I said, not discovered by the internal audit, but by Jacob Chuyek. I keep saying that name wrong, who was on the show.

00:11:56.760 --> 00:12:24.770
Found an HTTP1 server crash. And I thought this was really funny to put out this week because Like I said, security has had a rough time this week. And Wiz and Icota Labs and Rapid7 and a bunch of other security companies came out with an remote coding remote code execution on HTP2. Now that one's specific to Nginx, but I was just like, I found it funny, like, okay, you're stuck. You gotta pick another HTP.

00:12:26.050 --> 00:12:43.980
You can't have one and you can't have two. You can't end any of them. It's a pretty simple vulnerability. And it only leads to a crash, not like remote code execution or anything like that. But I found it interesting. Do you know what max byte reader is? That like interface or struct, I guess?

00:12:44.380 --> 00:12:47.740
<v Jonathan Hall>I think it lets you read up to the maximum and then it stops.

00:12:47.980 --> 00:12:51.260
<v Shay Nehmad>Yep. Now it read reads up to a limit.

00:12:51.420 --> 00:12:51.980
<v Jonathan Hall>Yeah.

00:12:52.220 --> 00:12:59.500
<v Shay Nehmad>Now what happens when you get to that limit in the HTTP1 server? You automatically set the connection close header.

00:13:00.050 --> 00:13:00.370
<v Jonathan Hall>Okay.

00:13:00.610 --> 00:13:18.130
<v Shay Nehmad>Which makes sense, right? You read and then you read up to your limit, so you set the connection close header on your thing. However, if something is explicitly setting a header at the same time, they might crash. Just runtime panic.

00:13:18.370 --> 00:13:42.050
If you set up a server that has max bytes readers, And the handler tries to read the request body while writing a response header and the HTTP server is writing the connection close thing at the same time, which sounds like a lot of a lot of things, but actually is pretty reasonable to happen. It's like a reasonable race. It will crash your server.

00:13:42.290 --> 00:14:04.040
So not a RCE, but a crash. And this really fixes it pretty simply by just synchronizing them. Like you just add a synchronizer on that map and you're good. So a classic like security race. And if you're using HTTP2 with Nginx, you should upgrade that as well because there's a remote code execution there. Yeah.

00:14:04.360 --> 00:14:07.000
<v Jonathan Hall>Upgrade all the things all the time, basically, is the rule now, right?

00:14:07.240 --> 00:14:26.340
<v Shay Nehmad>No, no, no, no, no, no, no. Because then if there's a supply chain, like someone took over that NPM. account, right, or whatever, and published a malicious package, you gotta give it 48 hours of cooldown unless you reviewed it manually and then you put it in an exception in your log file. It sucks. Yeah.

00:14:26.580 --> 00:14:47.210
We'll talk about it later. Why don't just why this is why we can't have nice things. Exactly. Alright. So this is the security release. I learned some things from it for sure about like how the linker works and what flags it has and whatever. But the bottom line is you gotta upgrade and this time you gotta upgrade your development machines too. Hide your kids, hide your wife, remember that guy?

00:14:47.370 --> 00:14:47.530
<v Jonathan Hall>No.

00:14:47.930 --> 00:14:52.970
<v Shay Nehmad>Hide your children. Tell me about collections, my friend.

00:14:53.130 --> 00:15:01.290
<v Jonathan Hall>Yes, so the other topic today, we're basically doing a two-topic show today, I think, with a few things in the lightning round. But the second topic is a collection of topics.

00:15:01.450 --> 00:15:01.930
<v Shay Nehmad>Oh no.

00:15:02.490 --> 00:15:23.720
<v Jonathan Hall>We talked we mentioned this in the last episode or two episodes ago, I think. That we were wanted to talk about this, but we were too busy talking about other collections of things. The general idea here is a new collection group of packages or collection of packages in the standard library about collections. What's a collection? You probably know what a collection is, right? It's your baseball cards, it's your action figures, your comic books, whatever.

00:15:24.760 --> 00:15:32.120
<v Shay Nehmad>My unfinished project, my linear tickets, my pull requests, my open agent threads.

00:15:32.390 --> 00:15:53.830
<v Jonathan Hall>The thing that all of these themes have in common is you need some way to manage these collection of things, right? And there's many different shapes of collections when it comes to programming. You can this well, some of the simple ones are things like an array or a or in Go slices, maps, but there's other kinds of collections and I don't know, I've been itching for some of these in Go for a while.

00:15:53.910 --> 00:16:24.210
Different languages have different ways of doing these. If you take a data science or a data structures class in university, you probably learned about things like linked lists and doubly linked lists and binary trees and all these. These are all different forms of collections, different ways to store and manage things, different types of data in a computer program. Well the la late last year, the Go team formed the Go Collections working group. And these were this is a group of people we've all heard.

00:16:24.610 --> 00:16:32.210
<v Shay Nehmad>Sounds like a fundraising. They walk around the proposal, benches, pews at church.

00:16:33.410 --> 00:16:35.970
<v Jonathan Hall>Can I talk to you about Lord's safety or the goat?

00:16:36.210 --> 00:16:37.650
<v Shay Nehmad>Have you heard the good word?

00:16:39.090 --> 00:16:56.200
<v Jonathan Hall>So anyway, this working group, which I think they missed a really good opportunity there just to call it a working collection, but whatever. This working group was formed late last year, includes people like Jonathan Amsterdam, Ella Van Donovan, Robert Gressemer. Daniel Marty, Ian Lance Taylor, Keith Brandle, and Roger Pepe are the people mentioned.

00:16:56.360 --> 00:17:15.320
They got together, talked about stuff, came back to the Go team and the community at large back in July of this year with their proposals. And the proposal at a high level, so this is a group of proposals. It's not a single proposal, it's several proposals, and some of those proposals have now been accepted.

00:17:15.590 --> 00:17:34.310
The ones that have been accepted from what I can tell here, and there's so many here, it's kind of hard to track them all, but I see four specific ones that have been accepted. There may be some other peripheral ones that I'm gonna miss. But the first one is the proposal for a hash, map hash package with a hasher interface.

00:17:34.710 --> 00:17:52.690
A lot of hashing in there. It's a nice collection of hashing. The basic idea though, I think we've talked about this on the show in the past. Not in the context of collections, but just sort of on its own. But the basic concept is an interface that allows you to create a hash function on your arbitrary data types.

00:17:52.930 --> 00:18:27.660
<v Shay Nehmad>So any type that I have I write a hash on is sort of like, you know, comparing to other language. In Python you have like underscore hash function, which you can put on any object. which just re gives you like the whenever you call the built-in hash on that object. So an equivalent, but obviously a go equivalent. And because it needs to work on any type, it uses the generic syntax. So it's like a hasher, a hash func that takes any, like a T any sort of situation.

00:18:27.900 --> 00:18:33.420
<v Jonathan Hall>And the b the basic reason for this is this is this is sort of the foundation of a collection.

00:18:37.390 --> 00:19:09.950
You need to uniquely identify each object in your in your collection or your set, right? So this allows you to do that. So you can create your art your arbitrary data types that manage your people in your address book or whatever you're managing. And this will allow you to create the custom hash function. With that in place, that also allows us to build the golang.org slash x slash collection slash hashed package and a number of things in there. The first one is map.

00:19:10.510 --> 00:19:20.430
So this conceptually is the same as the built-in map in Go, but it lets you use custom hashed types as keys. So you maybe very useful. Yeah.

00:19:20.750 --> 00:19:21.390
<v Shay Nehmad>Very useful.

00:19:21.630 --> 00:19:34.940
<v Jonathan Hall>Yeah. So you have a struct that has Type center that can't normally be compared in standard Go, as long as you build that custom hash function, you can use it with this map. So that's been accepted.

00:19:36.140 --> 00:19:53.760
Set is the other one that's been created. A set is similar to a map except that it doesn't have key values, it's just a list of things. We usually manage these in Go using a slice. But there's limitations there because slice has an implicit order. You maybe don't you don't care about the order. You just want to know, does this thing exist?

00:19:53.840 --> 00:20:03.520
And yeah, you can iterate through the slice to find that. But the set concept is a little bit more abstract version than a slice or an array. And we're going to now have that in Go as well.

00:20:03.840 --> 00:20:24.930
<v Shay Nehmad>One interesting part about the set that here in the proposal is even though it's going to be like in the X collection package, I assume that eventually it's going to get into the standard library because it says here in the proposal, we expect quote, yeah, we expect it to become the standard set in most new Go APIs.

00:20:25.170 --> 00:20:54.320
So they're like, oh, any Go API that has a set is going to use this thing, which again is not like groundbreaking. Well, I don't what I'm trying to say is what you would expect from a set. We talked about this on the show. It has add, remove, contains, len, all union, intersection, difference, has all the set like things. Which is great. They're definitely pushing forward on like using these collections. This is just not just a nicety that's gonna be for like other people, because they need it for their own APIs, I think.

00:20:54.880 --> 00:20:58.160
Well, when I say their own, I mean like the standard APIs.

00:20:58.320 --> 00:20:58.560
<v Jonathan Hall>Right.

00:20:58.800 --> 00:21:00.480
<v Shay Nehmad>So sorry, I cut you off. So we have set.

00:21:00.880 --> 00:21:16.360
<v Jonathan Hall>No, yeah, so we've got so basically we we've got two high-level concepts, map and set, and then there's different variations of this. We have the hashed one, we have a set, and we have sorted. I think the most interesting one to talk about here is the sorted map. What does that mean?

00:21:16.840 --> 00:21:17.880
<v Shay Nehmad>Sorted map.

00:21:20.200 --> 00:21:34.920
<v Jonathan Hall>So you probably know that in Go, when you have a map, the it's an arbitrary order. There's no ordering, right? You insert key A and insert key B and insert key C and you fetch it out and it might come out in any order, right?

00:21:35.000 --> 00:22:00.360
You don't know if you get A, B, C or C B A or whatever. An ordered map lets you specify that order. Usually you don't need this, but occasionally you do. And when you when you do need to maintain a particular order, other than alphabetical order, which you can always regenerate using a map, but maybe you need to maintain what order were things inserted in so that you can always select the first one or the last one or both, but in the right order.

00:22:01.080 --> 00:22:21.720
The dualang.org slash x slash exp slash collection slash sorted dot map. And set as well will let you maintain that order. So you can keep your map or your set. You can use it as an arbitrary thing. You know, just play with get and set sort of functions, but you can also retrieve the original order if you need it.

00:22:21.960 --> 00:22:33.720
<v Shay Nehmad>Yeah, this uses the new iterator syntax that we talked about a lot with seek2. Like seek meaning like S EQ and then the number two.

00:22:35.600 --> 00:23:03.760
And you can also look at specific spans within the map, clone a specific span within the map. Like there's a whole thing about, okay, it's a map, but it's since it's ordered, I can also think of it as like a I mean sort of a vector or array or whatever and look at specific parts of the of the map. I can iterate over all of them, I can iterate over a span of them, I can do it backwards, like a lot of I can clone a span, like there's a lot of things here.

00:23:04.990 --> 00:23:17.790
that you could do. Like it's a pretty large API. I don't, which by the way, I don't know if I love, but this span thing introduces a lot of power for things that you probably would do. But like above.

00:23:18.590 --> 00:23:39.630
Above function above KNE that takes a l o of type K and returns a span of type K. It's kinda hard. Kind of hard to figure out what you're trying to do here. But I assume it's just a matter of being used to it, right? The more I'll use this like span API, the more I'll be comfortable with it.

00:23:40.510 --> 00:23:41.710
<v Jonathan Hall>Yeah, I'm noticing that this is all.

00:23:42.270 --> 00:23:44.510
<v Shay Nehmad>I don't know if I don't know if it will happen, by the way.

00:23:46.110 --> 00:24:06.570
<v Jonathan Hall>I'm noticing that with the maps and sets here, there are a lot of new methods being defined. Most of them are pretty intuitive. Insert, get, contains, delete, and so on and so forth. Keys, values, these are all things that you probably, if you've been using an object-oriented language before, you have you're used to having all these methods on your things.

00:24:06.730 --> 00:24:25.380
But there's a lot of them. You know, there's like two dozen or so that will be added on each of these types, but they're mostly pretty intuitive. The one that I find a little bit odd is intersection, which is Campbell case. The S is capitalized. I always thought of intersection as a single word, but they're treating it as two words here. Whatever.

00:24:25.620 --> 00:24:28.260
<v Shay Nehmad>That must be a mistake. Intersection is a single word.

00:24:28.500 --> 00:24:29.460
<v Jonathan Hall>I thought so.

00:24:29.780 --> 00:24:36.820
<v Shay Nehmad>That must be that must be a mistake. I see other places where it says intersection and it's not capitalized.

00:24:36.900 --> 00:24:40.410
<v Jonathan Hall>So it's definitely I hope I hope it's a mistake. Yeah.

00:24:41.770 --> 00:24:50.730
<v Shay Nehmad>When will they support Israeli queues in all these data structures though? You're laughing, but it's a real data structure.

00:24:50.890 --> 00:24:53.530
<v Jonathan Hall>I'm sure it is. I don't know what it is, but yeah.

00:24:53.770 --> 00:24:59.690
<v Shay Nehmad>So cues, Israeli queues are is like a FIFO queue.

00:25:00.090 --> 00:25:00.410
<v Jonathan Hall>Uh-huh.

00:25:00.730 --> 00:25:06.890
<v Shay Nehmad>But when an element comes in, it instead of joining at the back end, they join like their friends in the middle.

00:25:08.080 --> 00:25:08.320
<v Jonathan Hall>Right.

00:25:08.560 --> 00:25:15.440
<v Shay Nehmad>So the problem it's trying to solve is if you would like your processing to handle like similar things at the same time.

00:25:15.600 --> 00:25:15.920
<v Jonathan Hall>Yeah.

00:25:16.560 --> 00:25:27.600
<v Shay Nehmad>So if you try to join your queue but you don't have any friends, you join the back of the queue. But if you join them, if you join your and like your friend is in the seventh place in the queue, you'll join, hey Jonathan, what's up?

00:25:27.680 --> 00:25:50.670
And you'll like handshake and then you'll sort of like cut in line, which is a very Israeli thing to do. And it's actually super useful when you're trying to imagine like processing messages and like if you're doing the entire group of a thing, everything's in memory already and like cached and warm, you would like the say similar things to enter the queue at the similar time because overall your processing will be faster.

00:25:50.830 --> 00:25:51.150
<v Jonathan Hall>Right.

00:25:51.630 --> 00:25:54.190
<v Shay Nehmad>So that's Is there a better name

00:25:54.190 --> 00:25:57.710
<v Jonathan Hall>for that than an Israeli queue or is that really what it's always called?

00:25:57.870 --> 00:26:04.630
<v Shay Nehmad>It's what it's called. I'm not kidding. Like search Israeli Q online and you'll find like Python implementations and whatever.

00:26:05.110 --> 00:26:05.510
<v Jonathan Hall>Wow.

00:26:05.990 --> 00:26:17.430
<v Shay Nehmad>What I like is what like Israeli Q with priorities and whatever. So you have Israeli people talking about it in blog posts, but then you have also non-Israeli people talking about it in blog posts. Like, wait, I'm not sure that's allowed.

00:26:17.590 --> 00:26:18.230
<v Jonathan Hall>Yeah.

00:26:19.350 --> 00:26:35.060
<v Shay Nehmad>Anyway. So what's up with this work? Is it like completely done and closed and just everything's dropping in 128? Or is this like some pie in the sky thing that they're just talking about and we don't even know it's acceptable? Like where is this work standing?

00:26:35.380 --> 00:26:55.060
<v Jonathan Hall>The umbrella proposal is accepted and several of the specific proposals are accepted and slated for Go 1.28, which is interesting because like these are golang.org slash x packages. They aren't the standard library. So I think that means that at least in general, you could use these on older versions of Go once they're there.

00:26:55.270 --> 00:27:18.950
Yeah, the in general, the idea is that several of these are available or will be available for 128. I think the intention is to see how the first set goes, see what kind of reaction it gets, and then potentially create more and extend to other more niche collection types. Maybe Israeli cues will be included in there.

00:27:21.240 --> 00:27:47.560
But yeah, for Go 128, we should be able to start playing with a bunch of this. The first one, the that I mentioned, the hash map hash package is already in 127. So by itself, it's of limited value until these other things build on it. And you can still use it for your own implementations if you want to build your own collections, but it was really there to enable much of this other stuff that will be coming in 128.

00:27:47.640 --> 00:28:04.040
<v Shay Nehmad>So Yeah, one thing I like about this umbrella proposal and this like work group that work over time is you can look at the change lists themselves in Garrett and look at how like these incredible developers are doing code review.

00:28:04.280 --> 00:28:32.060
So like it really just calms me down because I still do code review. I know it's a Heretic thing to say blasphemy that I'm a deseller. Why don't I just let AI write all the code and never look at it and whatever? It's very nice to see these people like, oh, look at this thing, you you're putting it, but if there's a panic, we're gonna do an allocation, so maybe defer it instead of doing it like this.

00:28:33.340 --> 00:29:00.640
Just legitimately finding bugs in optimization. And also just renames. Like, oh, I think we should change this to added because this signature I copied it and then it was hard for me to explain whether it's changed or added. So maybe rename this return variable for clarity. I'm like, oh my god, people still do that, it's really useful. Like very, very accomplished developers still do that. I don't know.

00:29:00.800 --> 00:29:10.080
I don't know if the if reading change lists of standard libraries is a good way to learn Go. I don't know. What do you think? Like high quality Go. I feel like it is. What do you think?

00:29:11.520 --> 00:29:16.000
<v Jonathan Hall>It's a good way to learn. I that's certainly not where I would start if somebody's trying to learn Go.

00:29:16.560 --> 00:29:19.920
<v Shay Nehmad>No, no, I don't mean to start, I mean like up level.

00:29:20.240 --> 00:29:46.400
<v Jonathan Hall>Yeah, if you wanna if you wanna level up a little bit, it's a it's a good way to go. I've learned some things reading the standard library. I don't I haven't read a lot of the code reviewed comments, although I've read some, but just reading the center library is very informative. Although I wouldn't take it too far, there are some anti-patterns in the center library. Some for good reason, some maybe less so, but like I wouldn't just say

00:29:46.800 --> 00:29:50.240
<v Shay Nehmad>necessarily, not necessarily every comment you see there is applicable to your code base.

00:29:50.480 --> 00:30:01.320
<v Jonathan Hall>Right. And there's also contradictions of style at least in the center library. So you shouldn't just say, Oh, I saw this in the Center Library. That means I should do it all the time. Because even the Center Library doesn't always agree on those on those standards.

00:30:01.560 --> 00:30:09.240
<v Shay Nehmad>For sure. Alright. I think that will wrap it up for this episode. We talked about two topics. It took us all like half an hour before I think we'll, still.

00:30:09.480 --> 00:30:12.920
<v Jonathan Hall>Yeah, I think we'll save the lightning round for after Thanksgiving.

00:30:13.160 --> 00:30:31.610
<v Shay Nehmad>Yes. Happy Thanksgiving, everybody. We will not record next week. Generally, we put this on the Slack channel, but maybe it's good to say this as well. So we're not recording this weekend because we'll be full of turkey and watching football and what other things do you do in Thanksgiving? Shopping? Black Friday?

00:30:31.770 --> 00:30:32.410
<v Jonathan Hall>Yeah, some Black Friday.

00:30:32.730 --> 00:30:43.610
<v Shay Nehmad>Trying to revive the stock market. Although if this was a proper news show, we would probably talk about the fact that Jensen got reinstated like three hours ago. But I don't want to talk about it.

00:30:43.850 --> 00:30:45.450
<v Jonathan Hall>I don't want to talk about that either. No.

00:30:45.610 --> 00:30:52.070
<v Shay Nehmad>Yeah. So we should record December 4th, right before Hanukkah.

00:30:52.470 --> 00:30:53.430
<v Jonathan Hall>I think so. Yeah.

00:30:53.670 --> 00:31:18.500
<v Shay Nehmad>Yeah. We even have a little interview there lined up. We hope it'll it will actually happen. And then yeah, we'll record a little bit during December, maybe three episodes, but then we're doing a end of year like long break or New Year's Eve and like whatever, Christmas. I'll actually won't be stateside. So I won't either. And there's no school for the winter recess.

00:31:18.820 --> 00:31:33.700
So we're taking a brief in the break this week and a slightly longer break next month. So not a ton of cup of go in the upcoming weeks. Save your episodes. Make your workouts shorter. Clean the dishes faster. I don't know.

00:31:34.900 --> 00:31:39.460
<v Jonathan Hall>Yeah. Well we'll see you next week at least. Yes, yes. No, we're not we won't.

00:31:39.540 --> 00:31:40.500
<v Shay Nehmad>I was just saying that.

00:31:40.740 --> 00:31:44.180
<v Jonathan Hall>This week, this week is next week, but the next week we will be.

00:31:44.390 --> 00:31:44.630
<v Shay Nehmad>Yeah.

00:31:44.790 --> 00:31:46.870
<v Jonathan Hall>This is Monday, so this is your this week.

00:31:47.110 --> 00:31:47.910
<v Shay Nehmad>Everything's confusing.

00:31:48.070 --> 00:31:49.430
<v Jonathan Hall>It's all it's so confusing.

00:31:49.670 --> 00:31:49.990
<v Shay Nehmad>Yes.

00:31:50.150 --> 00:31:51.990
<v Jonathan Hall>We'll see you later. Program exited.
