{
  "version": "1.0.0",
  "segments": [
    {
      "speaker": "Jonathan Hall",
      "startTime": "9.84",
      "endTime": "17.2",
      "body": "This is Cup to Go for December 4, 2026. Up to date with the important happenings in the Go community, about 20 minutes per week. I'm Jonathan Hall."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "17.28",
      "endTime": "18.32",
      "body": "And I'm Shiny Ahmad."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "19.04",
      "endTime": "20.08",
      "body": "The year is almost over."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "20.48",
      "endTime": "23.6",
      "body": "Fancy, fancy sweatshirt you're wearing."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "23.68",
      "endTime": "24.16",
      "body": "Oh yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "24.4",
      "endTime": "33.15",
      "body": "It's the same as mine, just Not through a million laundry cycles. Yeah. A little less worn. That's cool."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "33.39",
      "endTime": "33.79",
      "body": "That's worn."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "34.51",
      "endTime": "38.59",
      "body": "I'm like totally swagged out. I also have my cup, my mug."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "38.83",
      "endTime": "44.67",
      "body": "I don't. I'm using my Ember mug. The old obsolete Ember 2 now that the Ember 3 is out."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "44.91",
      "endTime": "47.39",
      "body": "Oh, is that the one that keeps your coffee warm?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "47.55",
      "endTime": "54.64",
      "body": "It's got like a heater in here and you can set the temperature and features of the three, except that it's washer safe, but This one's not."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "54.8",
      "endTime": "56.16",
      "body": "Does this actually work? Should I get one?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "56.32",
      "endTime": "70.0",
      "body": "Yeah, it works pretty well. Should you get it? If you're tired of drinking cold coffee all day, you should get it. There are probably cheaper alternatives. I've heard of people just putting their ceramic cup on a little Bunsen burner or something like that. But yeah. I'm happy with that."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "70.16",
      "endTime": "75.68",
      "body": "I might I might get one. I might get one. Not sponsored, by the way. Not sponsored."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "75.84",
      "endTime": "80.23",
      "body": "If you have another, yeah. I wonder if I could run TinyGo on my mug. That would be cool."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "80.47",
      "endTime": "82.47",
      "body": "Whoa. That's pretty cool."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "82.63",
      "endTime": "86.63",
      "body": "I don't know what I would have it do, but it would just be cool to have Go running on my mug."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "87.67",
      "endTime": "101.03",
      "body": "Straight up it would be cool. We might discuss Tiny Go a bit more later in the show as they have a new release if we have time because we have a lot of stuff to talk about. But yeah, before we get into it, how was your Thanksgiving?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "101.19",
      "endTime": "115.62",
      "body": "It was good. Spent the day here at home with the immediate family. Had a friend of my wife's over with her kids, so it wasn't a big family event like it usually is because family doesn't live here, but it was a nice time. We'll spend Christmas with family this year."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "115.94",
      "endTime": "131.31",
      "body": "I watched 16 hours of football on aggregate. American football is not a good sport. I can I can say after watching 16 hours of it basically continuously. It's not a good sport, but go bad."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "131.55",
      "endTime": "133.55",
      "body": "Why is it why is it not good? Boring?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "133.87",
      "endTime": "141.71",
      "body": "Because I watched 16 hours of it and there was like 50 minutes of action and the rest were ads or breaks."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "142.11",
      "endTime": "143.79",
      "body": "Let me introduce you to baseball."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "144.67",
      "endTime": "166.95",
      "body": "No, thank you. Alright, so let's do some go. We have a few shows before the big Christmas break will take. Of I think two weeks, which is unprecedented for a Capo Go. The only previous break that was that long, I think, was war induced."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "168.95",
      "endTime": "172.63",
      "body": "Yeah, so let's do let's do some Go news. What do you say?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "172.87",
      "endTime": "178.87",
      "body": "I think it's a good idea. First off, we have a pre-announcement for security release. Tell us all about it. What are they fixing?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "179.11",
      "endTime": "181.99",
      "body": "I will tell you everything about it. Are you ready?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "182.28",
      "endTime": "182.76",
      "body": "I'm ready."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "183.0",
      "endTime": "189.96",
      "body": "We they plan to issue a release December 8th during US business hours."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "191.0",
      "endTime": "191.4",
      "body": "Alright."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "191.88",
      "endTime": "211.43",
      "body": "Yeah, it's that thing where there's a pre-announcement for a private security fix that covers certain CVEs. CVEs is, you know, the vulnerability ID, which now I'm blanking what CVE is for. C is for common. What is the VE vulnerability and exposure and exposure?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "211.75",
      "endTime": "212.15",
      "body": "There you go."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "212.23",
      "endTime": "217.11",
      "body": "Yeah. So the vulnerability and exposure IDs are here, but we don't know what they are. Any guesses?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "217.59",
      "endTime": "224.87",
      "body": "I'll bet they're all about post-quantum crypto stuff. I d I don't know. That seems to be the news these days."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "225.11",
      "endTime": "236.0",
      "body": "That either that or Chinese spies or whatever. Anyway, we don't really know, but just remember Tuesday to put in a little thing on your calendar to upgrade."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "236.08",
      "endTime": "237.2",
      "body": "Yeah. Are you ready to upgrade?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "237.36",
      "endTime": "247.2",
      "body": "Or maybe you can give your agent like schedule a task to your agent right now as the as you're listening. We will catch up you up on that next week, I hope."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "247.76",
      "endTime": "261.36",
      "body": "We'll plan it. Next up, we're talking about proposals, basically the rest of the show here. But before we jump into some specific proposals, you had something to share. Sort of a meta proposal con item here. Tell me about it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "261.87",
      "endTime": "267.47",
      "body": "Yes, friend of the show, Anton Jivanov, who was on the show already."
    },
    {
      "speaker": "Speaker 3",
      "startTime": "267.79",
      "endTime": "283.63",
      "body": "Okay, my name is Anton. I do some open source stuff and I write interactive maybe I can call them guides or books and interactive articles on my blog. That's mostly what I do in my free time, so that's it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "283.87",
      "endTime": "304.32",
      "body": "He has been cooking up something that's pretty much like if you don't like Capo Go that much, but you listen to us begrudgingly because we help you keep up with proposals, we have an alternative for you. He built a Go proposal tracker which shows you proposals already implemented, something that's coming up, all the likely accepts."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "304.72",
      "endTime": "324.98",
      "body": "And, you know, he says that he likes staying up to date with what's coming next in Go. And this is sort of a way for him to get a quick summary of that. And I agree with him that GitHub's interface is really slow and takes lots of clicks to get to what you what you need. And there are a few views."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "325.06",
      "endTime": "343.84",
      "body": "There's a condensed view and a full view. It's not replacing their proposal, it's just some summary, which is great. I really, I really like it. It's very simple. Looking at it right now, you know, I don't want to review all of them because that's basically the show, but like Add flag iterators. I don't think we talked about it and it seems interesting."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "343.92",
      "endTime": "372.8",
      "body": "And I'm like, hmm, okay, flag iterators. And then I can expand it and then it shows me, you know, obviously in larger, in more words, but I expand it. It's like the flag package allows you to walk flags only with visit and visit all. It can't stop early. So now we have a iterator version. So you can do four range, you know, that returns the seek. Cool. It's a cool proposal. We may talk about it in more depth on the show, but this is just a really useful site. I like it."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "373.68",
      "endTime": "393.54",
      "body": "He shows the proposals that have been accepted and implemented, and they're therefore almost certain ship with Go 128. Those that are also the likely accepts. Yeah, those that are accepted but not yet implemented, which will probably come in 129 or later, and then those that are likely accept, which if they are accepted would come 129 or later. So yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "393.86",
      "endTime": "397.86",
      "body": "Unless they're like urgent or whatever. So they'll probably be faster actually."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "399.06",
      "endTime": "409.06",
      "body": "There was, yeah, there was one just this week actually that was proposed as a as a an exception to the prees. We're not gonna get into the details of that one today, but it does happen."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "409.38",
      "endTime": "415.7",
      "body": "So I like how Anton, you know, when we had him he talked about the interactive Go release notes."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "416.49",
      "endTime": "435.21",
      "body": "So he was like, that part is kinda not great, so I'll redo that. And now that other people have picked it up, he's okay, I'm gonna do my own Go proposal thing. He also he's also working on his own programming language. I think it's called Solod or something, which is Go adjacent to if, you know, for lack of a better term."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "436.01",
      "endTime": "457.02",
      "body": "It's he's really doing a lot of things. Don't know what to tell you. He's doing a lot of things. Well done, Anton. Now that we have this proposal interface or like tool, what proposals are we missing? The ones that aren't making it to the cut? Like this one that you pointed out that was declined. What's up with that?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "457.26",
      "endTime": "478.75",
      "body": "We don't usually talk about declined proposals, but there was one here that I thought was worth talking about. We may have talked about this back earlier on. I can't recall if back when it was still in the you know proposal process. But it's officially been declined now, and that is to add a new package called main thread with a do method in it, or do function, I should say."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "478.99",
      "endTime": "506.56",
      "body": "The concept here was s occasionally you have something you need to do in certain types of applications that needs to run on the main thread, which you normally don't have access to in Go, right? Because Go just sort of manages Go routines and threads automatically and it dispatches them however it sees fit for you. If you're doing something that interacts maybe with a GUI or some real-time computing or something where you really need to interact with that main thread, generally not a good way to do that in Go."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "506.64",
      "endTime": "538.31",
      "body": "So the proposal was to add just a simple function called main thread.do that would take a function with no arguments and no return values and execute that code on the main thread. Now, Some systems don't allow you to do that and they call out I'm not familiar with these, but they call out most notably in C shared or C archive mode on platforms such as Android. Go doesn't have access to the main thread, so this function would panic, the proposal says, in these cases."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "539.03",
      "endTime": "547.71",
      "body": "It was declined though. And I learned something from the from the reason for decline, which I suppose is informative in At least I find it interesting."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "547.95",
      "endTime": "552.83",
      "body": "Why would I want this do function? I can just put code in the main function, right?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "553.07",
      "endTime": "577.64",
      "body": "So the main function, yes, you can put things in the main function, but once you're into the main program, you don't necessarily have any way to know that you're running on the main on the main thread any longer. Because, you know, if you started if you're running a web service or something like that, whatever you're doing, or interactive GUI components. with different Go routines, you've lost that control to know that you're running on the main thread."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "577.88",
      "endTime": "578.84",
      "body": "Okay, got it, got it."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "579.0",
      "endTime": "600.34",
      "body": "Yeah, so in the explanation for why it's being declined, Damian Neal explains, Go programs already have an existing way to run on the main thread. The init funcks always run on the main startup thread and the init function can call runtime.lock OS thread to cause main to be invoked in that thread as well."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "600.66",
      "endTime": "603.14",
      "body": "Lock OS thread. I didn't know about that function."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "603.46",
      "endTime": "608.66",
      "body": "I didn't either. Yeah, that's one of the things I learned reading this explanation."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "608.9",
      "endTime": "609.38",
      "body": "Interesting."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "609.62",
      "endTime": "636.94",
      "body": "So the proposed the proposal adds a way for a Go routine, an arbitrary Go routine, to execute a function on the main thread. But, and much of the discussion that I didn't read in detail was about how do you manage If two Go routines simultaneously call this main thread.do, how do they get coordinated? And what if one of them never releases the main thread, for example? Does the other one block forever? Does it panic? You know, how do you handle this coordination?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "637.1",
      "endTime": "660.51",
      "body": "So the general consensus and conclusion here was, well, you already have a way to do this. It is lar potentially quite cumbersome for certain use cases. You know, if you want some arbitrary code to execute on the main thread, The init function doesn't really give you a lot of flexibility, but on the other hand, that's kind of the point. When you want something to run on the main thread, you don't have a lot of flexibility."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "660.67",
      "endTime": "676.49",
      "body": "So it's it is limiting, but it's also maybe honest about how it's being limited. So that's kind of the conclusion. Like they I think that they were open to doing this, but couldn't find a way to solve it. It is solvable even if cumbersome."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "676.81",
      "endTime": "698.73",
      "body": "So conclusion was not to add this API. Go. And I guess that makes sense. I I've I I'm probably not the best person to ask though, because I've never felt the need for this. I would really like to hear from somebody who was championing for this if they feel like it was, if there's a solution that was overlooked, although I suppose if that were the case, they would have talked about it on the thread."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "699.19",
      "endTime": "706.55",
      "body": "Yeah, or some GUI people. I wonder if we have anybody who does GUI in our in our audience."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "707.11",
      "endTime": "709.99",
      "body": "Sure would be fine if we had somebody listening that knew anything about that."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "710.23",
      "endTime": "731.1",
      "body": "It would be fine. It is worth noting that the person opening this issue, Elias Noel, Elias, I guess, they have the GIO UI, so Giao UI? I don't know how to call it, which is cross-platform GUI for Go."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "731.82",
      "endTime": "757.05",
      "body": "So it has like Linux, macOS, Windows, Android, whatever, WebAssembly. Just another way to write a GUI in Go with various tools, buttons, whatever, you know what I mean? Toggles. So radio buttons. Like everything you would expect from a basic GUI project and there are a few examples of things that are built with it on the website."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "757.29",
      "endTime": "781.46",
      "body": "So obviously if it's been two years since it was proposed and the project is still alive, they've worked a way around it. So it wasn't like a huge blocker, even if you do use specifically, you know, these specific things, I guess they found a workaround. And also, your memory did serve you right. We talked about this December 6th, 2024. Two years ago."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "781.54",
      "endTime": "794.34",
      "body": "Almost. Episode 90. The proposal is to add a new package called runtime slash main thread that has a single method in it or single function in it called do. And all do does is execute the callback function you pass to it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "794.58",
      "endTime": "806.52",
      "body": "So it was declined. What is the process for declined proposals? Like is it never gonna be relitigated again? Like Is it possible that it might reopen if there's a huge need for it?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "806.68",
      "endTime": "822.6",
      "body": "Like what Oh, I think it theoretically could be reopened. That has happened before. I think like if somebody had some shower thought that was like, oh my gosh, this is an amazing way to solve this problem, could they could certainly comment on the issue. Probably what they would do though is create a new proposal."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "823.08",
      "endTime": "848.26",
      "body": "If that's you, listener, and you had this brilliant flash of insight into how to solve this problem, I would suggest you open a new issue. Call it a proposal, run and then and then describe, you know, provide a proposal for what you what you think should happen and reference this and say, this is the inspiration, here's my new solution that I think solves all the problems that everybody had. That's how I would do it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "848.5",
      "endTime": "880.04",
      "body": "And I would also say, just as a person who experienced this process, is that Re-litigating existing issues that have been declined will face you with the Go proposal process, which is good in a lot of ways, but it is relatively ineffable. Like it's not the most friendly way. Because unless you have a really, really good reason for relitigation, there they don't really want to relitigate stuff that they already talked about."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "880.6",
      "endTime": "885.49",
      "body": "And they shouldn't want to. Yeah, right. That's just a waste of time. Unless there's truly new insight, yes."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "885.73",
      "endTime": "894.93",
      "body": "So this is main thread.do, second time we talked about it, and it got declined. So overall, maybe a total waste of 15 minutes of your time over the last two years."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "895.25",
      "endTime": "900.13",
      "body": "Something like that. But hey, I learned something about main threads by reading this. So not a complete waste."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "900.37",
      "endTime": "918.79",
      "body": "Exactly. So I don't think it's a waste of time at all. We have another proposal that's currently in the active column as of very recently. That I am very, very, very, very excited about, but I don't fully understand. So please explain it to me. Typed struct tags."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "919.03",
      "endTime": "919.35",
      "body": "Yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "920.07",
      "endTime": "921.27",
      "body": "Axel Wagner."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "921.59",
      "endTime": "925.83",
      "body": "Yeah, I don't know how often you use struct tags, Shy. I mean I know you're not using"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "925.83",
      "endTime": "928.15",
      "body": "Go as much as whenever I use JSON and whatever."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "928.39",
      "endTime": "932.39",
      "body": "Of course. Have you ever had to parse struct tags yourself?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "932.63",
      "endTime": "955.36",
      "body": "Yes. When I was working with gRPC. That was like 2021, 2022. I used it with Proto Validate. So it allows you to put in some various tags in your gRPC files and then it generates, you know, validation code. And some of those were custom that I wrote. So I ended up parsing those struct tags. Yes. The answer is yes."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "955.6",
      "endTime": "959.52",
      "body": "Got it. Got it. Is it fun to parse your own struct tags?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "959.76",
      "endTime": "990.72",
      "body": "Is it fun? I have to admit. that I didn't do it. I had an employee do it for me. But I don't I don't remember it was a as a big deal. It was a cool idea. Like when we came up with it, we were like, oh, cool. Because I think what we did is we matched tags to Kafka queue names or something like that. It was not a very obvious way to use tags, but I delegated it. Which probably means it wasn't very straightforward to begin."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "990.96",
      "endTime": "994.08",
      "body": "It was easy for you. So w you know, what's the problem, right?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "994.32",
      "endTime": "994.64",
      "body": "Yeah."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "995.04",
      "endTime": "1021.1",
      "body": "Nowadays we delegate it all to our agents anyway. Well, if you ha dear listener have ever tried to parse struct tags yourself, you know that it it's a little bit finicky. There is support in the standard library for certain types of sort of blessed parsing, you know, certain formats. the same format that JSON uses, for example. But notably, there's nothing that enforces that format."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1021.18",
      "endTime": "1037.74",
      "body": "You a struct tag is just arbitrary text. You could have struct tag and then, you know, your address or something like that, and it's it will compile, it will execute, and if you try to parse it, then, you know, good luck parsing it w with whatever format it's in."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1038.24",
      "endTime": "1062.88",
      "body": "So that's one of the limitations of struct tags as they stand today. They're just arbitrary text with some sort of conventions around how they ought to be formatted. But even within those conventions, there not everything is agreed across libraries. Some libraries do different, do it slightly differently. So this proposal, number 74472, is to add typed struct tags."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1063.47",
      "endTime": "1084.11",
      "body": "Now, this is something that maybe some of you haven't realized. I certainly didn't realize it until late into my Go experience. The Go tag is just a string, but it's an arbitrary string. But the fact that it's just a string is interesting. It's not some special syntax or whatever, it's a string. The proposal here is to allow it to be other types as well."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1084.59",
      "endTime": "1106.43",
      "body": "So you could put a struct in there or a an array or whatever. Most interestingly, you could put named types in there. So the so the motivating example here uses the JSON library and we see a before struct with a bunch of fields and the modern day JSON colon syntax for each tag."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1106.91",
      "endTime": "1130.4",
      "body": "The proposal is that we could then the JSON tags here will allow you to do stuff like rename the fields and whatever. That's the structs we know. Right. It's like, oh, this is gonna be a time with a certain format, or this is gonna be ignore the case, or this is gonna be, oh, this field is called F1, but in the JSON output's gonna be lowercase F1 or whatever."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1130.56",
      "endTime": "1139.68",
      "body": "So this is the format we know. And as you say, it's just a string. It's a string that says JSON colon, which is a format we all agree on, which let me argue."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1140.9",
      "endTime": "1159.14",
      "body": "devil's advocate for or for a second is already typed right because if it's a format we all agree on and the and the program will fail it's it will fail at runtime or have a weird behavior but it is a type we all agree that this is a type it's just so we're writing it as a string"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1159.38",
      "endTime": "1178.56",
      "body": "you're yeah you're not wrong it is it is a schema an agreed upon schema yeah And now whether it fails at runtime is another question. Generally, for JSON tags at least, the JSON, the standard library will not fail for an invalid struct tag. It will just ignore it. Which maybe fail in the"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1178.64",
      "endTime": "1195.28",
      "body": "in the sense that in the sense that it will not do what you want. But if you try to put in type that doesn't exist into the struct tags, it will do the same, right? Because it's still just an open-ended list of things. It's not like there's a way, you know what I mean?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1195.44",
      "endTime": "1195.6",
      "body": "Yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1196.08",
      "endTime": "1200.72",
      "body": "To validate the behavior that it's gonna do, you're still gonna need a runtime test."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1200.96",
      "endTime": "1207.44",
      "body": "But at least here So to an extent, that's true. But I there so I think we're jumping ahead a little bit here."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1207.6",
      "endTime": "1216.56",
      "body": "But you're yes you're right to an extent. The example in the before has just string tags. that look like JSON, colon, whatever."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1216.64",
      "endTime": "1219.6",
      "body": "And it can all correctly adhere to the standard, correct. Yes."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1219.76",
      "endTime": "1223.68",
      "body": "Yes. And it can be a million other things too. It doesn't have to be JSON, colon, whatever."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1223.76",
      "endTime": "1223.92",
      "body": "Right."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1224.08",
      "endTime": "1227.36",
      "body": "Cool. What's the after? So what's this proposal giving you?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1227.68",
      "endTime": "1242.0",
      "body": "Yeah, the proposal is that we have named types in this case in the JSON package that say things like json.name and then you pass in the name you want it to be or JSON.format and spec and pass in the format that you want."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1242.14",
      "endTime": "1264.46",
      "body": "So you have the same exact control, but with some compile time safety, which gets to what you're talking about. Like in the in the current version, if I mistype and write J O S N, nothing tells me about it, right? Unless I have a linter that tells me I'm I will never notice, I won't notice, and I only if I happen to notice that, oh, that field is capitalized now and it's not supposed to be in the output, only then would I notice."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1264.62",
      "endTime": "1275.27",
      "body": "And I've worked on many projects where such typos have happened. And nobody noticed for months or longer. If I make the same typo with a new mis new version of type JOSN, it will be a compile time error because I mistyped the name of that package."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1275.59",
      "endTime": "1303.09",
      "body": "And even more, even more in-depth than that, some of the controls are like time format. So that's a classic case, especially with the much hated and maligned go time format package, which I personally hate. You know, you could type in today with JSON tags, you can pass a thing called format, which will tell you for time fields how do you want to format like in and out the field, right?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1303.17",
      "endTime": "1340.37",
      "body": "So let's say we you have a field called day and obviously the format of day shouldn't include hours, right? It should just be a date. So you say like format, and in this case it's 2006. dash 01 dash 02 if i pass 2006 that won't really work like i wonder what will happen but i don't think it will work but like you said it's at runtime it's a very obvious like typo that anybody could do with the json.format like typed thing you can make sure that you know you pass time dot rfc3339 Right?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1340.53",
      "endTime": "1368.32",
      "body": "And if you mistyped it and you wrote rfc.33339, you wouldn't know in the string version, but there's just no such exported thing in the time package. So you wouldn't be able to do that with a typed version. So that seems awesome. Just move a lot of the a lot of the worries you have from runtime or even like test time. It's not like it's gonna panic at runtime, it's like validation time to compile time."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1369.04",
      "endTime": "1392.84",
      "body": "Exactly. I think another really big benefit here that I don't know if they talk about this, but it it's apparent to me is that you we now effectively have namespaces for our struct tags. Right now, JSON, any library can implement something that uses JSON tags, right? And I could write my own library that uses a different format that's JSON colon and then something else, something that doesn't match the standard library, right?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1393.16",
      "endTime": "1419.79",
      "body": "And then that would confuse anything else that depends on the current standard. By using name types, then my custom JSON tags, whatever they would be, would be tied to my package. So it's clear that they're related to my package and not some standard that someone else should be using. So it gives us a more precise namespace over these tags rather than just hoping that you chose a string that's unique to every other library out there in the world."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1420.19",
      "endTime": "1440.35",
      "body": "And one final note about this proposal, which is I think in your screen share, if you're if anybody's watching the video version of this, also if you're watching the video version of this, yes, I know, I have a generationally bad hair day. I don't need to hear it. I didn't get a chance to put in it it's it was cold. I put a hat on."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1440.67",
      "endTime": "1472.92",
      "body": "So if you're worried about hair, look at Jonathan. You'll be okay. So anyway, the third version here is called, like the third example is a mixed. So it's not like we'll have to upgrade all of our struct tags. Like if you're using the string ones and you like it, you can combine. You can have a str part that's a string and then a part that's a struct. And the example they give here. is some of them are the YAML struct tags."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1473.48",
      "endTime": "1498.15",
      "body": "So let's say you want both in YAML and in JSON for a certain field to have a certain name in lowercase, right? So you need to do that. You used to you can have the YAML one be in a string format and the JSON one to be in the typed struct tag typed part. It's just turning struct tags from generally opaque strings that can be whatever."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1499.11",
      "endTime": "1520.47",
      "body": "We have a mini language for them, like we said, is a schema. And this turns it into from a thing, a syntax that needs to be parsed at runtime into an expression list that can be typed tags. Again, like you said, linters might help here, but if you don't provide a linter, like maybe it doesn't work for you. So what do you think about this proposal?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1520.95",
      "endTime": "1541.77",
      "body": "I hope it makes it. I it looks I think it's likely to be accepted, at least in some form. Has a lot of upvotes, including my own. Has a few down votes, four down votes out of 134 upvotes. So, you know, someone doesn't like it and they probably have good reasons. But yeah, I'm hopeful for this in some form to make it. I think it would be a good addition."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1542.89",
      "endTime": "1550.25",
      "body": "What I'm trying to think about is what would be a downside for this. So, you know."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1551.41",
      "endTime": "1569.01",
      "body": "I would agree that I'm like thumbs up on the general concept and I gave it an upvote as well. But I'm trying to find a place where this might be like here's an example. What happens if I do JSON in the struct tag and also do JSON in the typed part?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1569.17",
      "endTime": "1569.41",
      "body": "Yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1569.57",
      "endTime": "1574.21",
      "body": "Does that make sense? My like my question? Yeah. So like the what happens if you have both?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1574.45",
      "endTime": "1575.57",
      "body": "Redundancy, you mean, right?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1575.93",
      "endTime": "1593.37",
      "body": "Yeah, which one wins? This is just a tiny example. Cause again, Go usually does things in one way, but to be fair, since the struct tags are an opaque string, you can do that right now. You can just write JSON multiple times into struct tags. So maybe it's the same behavior."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1593.93",
      "endTime": "1605.37",
      "body": "I think they just have to define like w which one takes priority if there's a conflict. And I imagine the new one would take priority, but I don't know. Maybe they want the old one to take priority. But yeah, I think it's a simple answer. You just have to choose which one takes priority."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1605.73",
      "endTime": "1626.85",
      "body": "It would make sense that the new format takes priority just because you put the string first and the type later, so the latest thing on the line would take priority. I assume that's how it works with a string. I just have my like so I think this is a good idea and I'm just putting my QA head on trying to poke holes into this thing, you know, trying to find, oh, what happens if like X or Y?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1627.17",
      "endTime": "1636.47",
      "body": "Also, another question is what happens with generics? Like if you have a struct that has a T. Can you put the T in the"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1636.71",
      "endTime": "1639.35",
      "body": "in the in the struct tags? Good question."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1639.59",
      "endTime": "1650.79",
      "body": "So there are a few edge cases here. This is not as simple as it seems, but it definitely seems like a good improvement. How do you see this one playing out? Like this seems, if it's been added to the active column, does that mean what?"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1650.95",
      "endTime": "1670.25",
      "body": "Yeah, so this was proposed in July of 2025, so it's been a year and a half. I think it has a good chance of being accepted in some form. My prediction would be that it is accepted in a pared-down version that eliminates some questions like what you're you know, the sorts of things you might be asking about."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1670.41",
      "endTime": "1691.86",
      "body": "Like maybe they start with this doesn't support generics or it only supports certain types or something like that. Whatever they can agree on is the most basic non-controversial part. That seems to be the pattern for these sorts of things. Because there's a lot of can of worms I can see this potentially opening. And I think trying to avoid as many of those as possible is a likely way forward."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1692.1",
      "endTime": "1711.81",
      "body": "One really cool thing that I didn't think about is for specifically for Go JSON V2, is if you say somehow you declare, I don't know how, but you somehow declare your program doesn't do the string type tags for just for JSON. Right?"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1712.05",
      "endTime": "1736.85",
      "body": "So this is one comment here on the thread, but I would from Joe Sci, I would I would never think about it, but because JSON V2 has support for a bunch of things, right? Various formatters and various whatever. Imagine you want your binary to be as small as possible, and you specifically don't use the time format for JSON structs in your program. Maybe you just don't have time fields."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1738.05",
      "endTime": "1765.17",
      "body": "Right now at compile time or link time, you can't minimize your binary size, right? Because it's you define at runtime which formatters you'll use with the string-based struct tags, right? But now with these typed ones, you can check it at link time. You can like have, oh, the implementation of specific formatting or specific whatever is gonna be on the tag type itself. And if it's never referenced, you just don't need that in your binary."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1767.46",
      "endTime": "1787.62",
      "body": "So at if I don't know how you would mark that. Maybe if you're at compile time, you check if any struct has any string tag. And if they all, if you're completely clean, then the JSON package can have like smarter linking, which would make binary sizes just all over smaller."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1787.86",
      "endTime": "1788.5",
      "body": "Yeah."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1789.22",
      "endTime": "1796.58",
      "body": "This makes a lot of sense. This is like, I'm looking at this more and more and I'm like, oh my god, why didn't they just do this to begin with? I don't know."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1796.9",
      "endTime": "1824.98",
      "body": "One interesting thing, I think, so the way this is defined, the proposed spec is that it w the tag would become an expression list. And an expression in Go is quite broad. The definition is quite broad. You can have things that evaluate to booleans, you can have things that evaluate to just about anything. So you could still do strings, you could do true and false, you could have named strings, you know, strings of name types, booleans of name types, and so on and so forth."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1825.35",
      "endTime": "1827.83",
      "body": "Yeah, but you can't put code there. Right."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1828.63",
      "endTime": "1840.15",
      "body": "You can't do you can't do a function. You can't do yeah, there's a lot of things you still can't do. So you can't make your s your tag a function that evaluates at runtime or something like that. Because this isn't Perl."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1840.87",
      "endTime": "1866.1",
      "body": "This isn't this ain't Pearl. I like it. I'm gonna even comment on it saying I really like it and that we discussed it on this week's episode and Whatever. Let's see let's see if we'll follow it. Who wrote the original proposal? Alex Wagner, which we mentioned once on the show for a blog post they wrote. But I don't know, I don't think they've been on the show."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1866.26",
      "endTime": "1878.5",
      "body": "So I'll ask them if they wanna come on the show, I guess, as well. Alex, if you're listening, we would love to hear like where you came up with this idea and how do you think it's gonna go forward."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1878.66",
      "endTime": "1917.78",
      "body": "But I'm also shamelessly tagging you on the on the thread because i think it's a good a way to get your attention alright i think that does it for a show we've been yapping for a while we do have a few lightning round items right yeah just a couple so let's do a quick break and then a lightning round item Yeah, like we said, no ads. We promised to do no ad break. We just wanted to let you know that next week's episode, we're very excited about it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1917.94",
      "endTime": "1932.1",
      "body": "We're not gonna give too much, but we have a sponsorship coming up, which we're excited to share with you all. We're actually testing it right now, working out all the details. So be on the lookout for next week's episode because it's gonna be exciting."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1932.79",
      "endTime": "1952.55",
      "body": "We wanted to thank all of our Patreon supporters. This is the best way to support the show and we really appreciate all of you, you know, putting in some money. We don't pay to advertise. This is just for editing fees and hosting fees and stuff like that. And you're lucky, everybody, because I'm a huge procrastinator and our store is still up."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1952.71",
      "endTime": "1966.43",
      "body": "So if you want a sweatshirt like mine, or like Jonathan's or a cup like mine or some other stuff like the nice fancy golf shirt which i haven't worn yet but you wore it right is it is it nice"
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1966.67",
      "endTime": "1968.19",
      "body": "yeah i wore it yeah that's right"
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1968.67",
      "endTime": "1993.67",
      "body": "it is it is pretty expensive so only get it if you really want it but there's some stickers and socks and cool stuff like that you can find all that at store at cupago.dev and all the past episodes also in store at cup also at cupago.dev If you're like Jonathan and you don't remember, if we talked about main thread.do, you can just type into the search main thread.do and it will tell you that we did that two years ago."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "1993.91",
      "endTime": "1995.59",
      "body": "Wow. What a feature."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "1995.75",
      "endTime": "2025.04",
      "body": "Yeah. I think that's all the programming notes I have. Anything else? Oh, about the Christmas. We're gonna take a break. We're I'm gonna be in Hawaii and whatever. It's gonna be cool. So end of year and probably New Year's Day too, we're probably just not recording. So we're gonna miss the 25th. We're gonna miss the first. We might even miss the 18th, depending on where Jonathan will be. Well, I know where I'll be."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2025.12",
      "endTime": "2030.08",
      "body": "I'll be in Guatemala. Even next week I'll be in Guatemala, but I think I can still record. We'll work that out."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2030.32",
      "endTime": "2039.04",
      "body": "We'll see. Maybe we'll have a replacement. We'll see. December is gonna be a little shaky, guys. We we're taking breaks. We hope you are too."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2039.2",
      "endTime": "2040.32",
      "body": "Yeah, let's do a lightning round."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2040.4",
      "endTime": "2047.12",
      "body": "Let's do a quick lightning round then. Lightning round."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2048.8",
      "endTime": "2062.47",
      "body": "First up on the Lightning Round, project, I don't know where I found this, but it's kind of a cool project if you're a Linux user, and we all know that at least half the co-hosts of the show are Linux users. Go4VL."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2062.63",
      "endTime": "2067.27",
      "body": "One out of every two Go hosts recommends Linux."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2069.19",
      "endTime": "2089.59",
      "body": "Go4 VL is idiomatic Go bindings for the Linux Video for Linux media controller. So if you are interested in interfacing with a webcam or other video device on Linux directly with Go, you can do that now with Go4VL from Vladimir Vivian, I believe is the name of the guy who released it."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2089.67",
      "endTime": "2104.47",
      "body": "So I guess good for IoT stuff as well, which lines up with the thing I promised to talk about, which is TinyGo release. Unfortunately, the release notes do not include Ember Mug in the commits."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2105.11",
      "endTime": "2110.15",
      "body": "Alright, Ron, that's what I want. As soon as you have Ember Mug port, I'll install TinyGo on my mug."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2110.31",
      "endTime": "2146.46",
      "body": "I don't know what it runs, but this is go for TinyGo 0.45, which is their biggest release so far. It has a way more complete reflect package, some Linux stuff. The compiler is faster, it has better escape analysis, heap management is smarter, and there's a lot of hardware support for ESP, various types of ESP32 chips, new boards like the Wave Share, the Electro Crow panel, Adafruit. Like Arduino, new Arduino ones."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2146.62",
      "endTime": "2168.46",
      "body": "So lots of support for lots of things. The Tiny Go channel on I had to leave it. It's like so active that I couldn't lurk there. It was taking up too much of my time. But if you're a Tiny Go person, if you're a tiny not a tiny person using Go, any sized person using Tiny Go, you should check out this new release for sure."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2168.62",
      "endTime": "2178.22",
      "body": "The only thing that might be problematic for you is it requires a new version of Go, but that's like neither here nor there. It requires Go 126. You should definitely be on something newer at this point."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2178.46",
      "endTime": "2178.94",
      "body": "Very cool."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2179.1",
      "endTime": "2181.26",
      "body": "And that's a show. Pa ba-pa."
    },
    {
      "speaker": "Jonathan Hall",
      "startTime": "2182.06",
      "endTime": "2183.42",
      "body": "Program exited."
    },
    {
      "speaker": "Shay Nehmad",
      "startTime": "2183.74",
      "endTime": "2184.86",
      "body": "Goodbye."
    },
    {
      "speaker": "Speaker 4",
      "startTime": "2191.26",
      "endTime": "2194.46",
      "body": "Program exited. Goodbye."
    }
  ]
}
