This week, Robbie and Adam talk with Naman Goel about the origins and evolution of StyleX, how it integrates with React and other frameworks, and the pros and cons of different programming languages like Rust, TypeScript, and Swift. They dive into the challenges of building performant, type-safe styling systems, the surprising complexity of theme APIs, designing for developer experience, and more.
In this episode:
(00:00) - Intro
(02:26) - Whiskey rating & review: Glenfiddich 12 Year Old single malt Scotch
(09:13) - South Park, spy thrillers & sleeper hits you missed
(11:20) - Flow vs TypeScript
(14:59) - How CSS shaped Naman’s perspective on type systems
(18:45) - How StyleX works - and why it’s different from Tailwind
(21:02) - Tailwind Merge vs StyleX props: performance smackdown
(22:16) - Real-world use case: when and why you’d want to merge styles
(25:45) - Inside the making of StyleX and its powerful theming system
(32:56) - Robbie and Adam wrangle Vue transitions in Astro
(36:09) - GIF or JIF? SPA or “spa”?
(40:36) - Building StarPod.dev: streaming audio across pages
(42:30) - Can you reduce client-side router noise?
(46:03) - Should you spec your idea or just blog it?
(47:18) - Naman’s journey into writing web specs
(48:44) - What is link delegation?
(52:39) - Hot Take: Is Rust overrated?
(01:02:17) - The dream language Naman wishes someone would build
(01:04:57) - Are AI-generated programming languages just around the corner?
(01:05:53) - A spicy take on CSS syntax and readability
(01:06:27) - Is CSS finally catching up to StyleX?
Enjoying the podcast and want us to make more? Help support us by picking up some of our fresh merch at https://whiskey.fund.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Welcome to Sentat, welcome to a brand new episode of the front end happy hour podcast. Welcome to this week's J.S. Party. Live from Ship Shape Studios, this is WhiskeyWeb and whatnot, with your hosts Robbie the Wagner and me, Charles William Carpenter the third. That's right Charles, we drink whiskey and talk about web development. I mean, it's all in the name, it's not that deep.
This is WhiskeyWeb and whatnot, do not adjust your set. Hey, what's up everybody, welcome to WhiskeyWeb and whatnot with your host, Robbie the Wagner and Adam Thomas Argyle, the nerd. What's up? Today we've got, yes, sorry go ahead and it is Naman Gowell, creator of the only official react styling library stylics, X-META, OpenAI Dev now, a super conductor of tokens, orchestrator of rulesets,
react to fishy noddle, creator of solenoid, speaker, blogger, type nerd, and C.S. S. Polunker, welcome to the show Naman, I haven't seen you since Amsterdam. How are you doing? I'm doing good. Thanks Adam, nice to meet you Robbie. Yeah, that was very kind of. That was like the best intro I've ever gotten, that's insane. Love it. That's what Adam's here for. I got to spruce you up, because no one likes to write a resume. I mean, I've been talking about that on other podcasts, writing a resume sucks. I mean, some people like to bolster themselves, and those are just blood holes.
Anybody that's like, I am this big and I am this cool, you're like, you suck already, so I'll do it for you, because then it's cool. Maybe if I post you, so almost embarrassing, you're good. You have a lot of cool stuff going on. You're easy to bolster, so thanks. You know what else is embarrassing? The size of my teeny little bottle. It's true, but at least you have a good scapegoat. Here's the daddy size.
Out of this sweet Pringles can. Yeah, you know what I used to do, though? When I was younger and I like didn't know what real alcohol was, I used to get hypnotic in like these size bottles and just drink them straight out there. I thought that was so cool. I mean, maybe you word it, somebody. Maybe. All right, but yes, we have the Glinn Fidditch 12-year scotch is 80 proof. It is 12 years old, right in the name, and it is 100% melted barley, and I can't get mine open.
A little finicky and a little pre-show chatter. Naman and I were talking about the first time he had this, and that was a cool story. There was a breakup involved. Anyway, yeah, do you want to give us the story again? It was pretty, pretty sweet. Yeah, so it was one of my exes, and she sent it to me for my birthday. It arrived like a few weeks later. Would you have broken up during that period? So I had to constantly send it back, but yeah, she didn't want it back. Constellation prize, that's awesome.
I kept thinking of that song from back in the day, the hardest part of breaking up is getting back your stuff. Do you remember that band? Is it MTV made up band? I know my calculus. It says, you plus me equals us. That was their famous song. I think I'd have to hear them. It's not great. I mean, they were making fun of boy bands at the time, which I loved because I was very jealous of boy bands. They had all the ladies in their athletic shirts, or a wife beaters in their big buckles on their denim, and then the ladies got crazy, which is all cool again.
Very popular right now, probably. All right, so before we have a sip, I have a toast. To JavaScript frameworks, may they rise, may they fall, and may we forget half their names by next Tuesday. You still still have a, it'll definitely happen. Warm. Getting a really nice warm scent off that nice color. Yeah, it's a clear-ish brown. I'm not getting a lot on the scent.
Maybe a little bit of lemon. I don't know, I've been a little sick, so I can't really smell as well. Oh, a little bit of lemon. Oh, there's citrus to it for sure. Whoa. It's good. Ooh, nice hug. Feeling it down to the softest, just warming me up. It's like Christmas inside. I feel like a complete imposter right now. It's like, people do this for whiskey too, not just wine. It's all made up.
Yeah, just pick any descriptor. I've tried to be super stupid and be like, oh, it smells like rotisserie chicken or something, and that people never get that. But if you're like, oh, dried apricots or juicy fruit, or anything that could be in there, people will be like, oh, you're so right. That is exactly what's in there. Yeah, the only two words I've ever used to describe whiskey is it smooth or not? Or is it smoky or not? And I don't really have a capillary past that. And I would say this is neat,
it's smooth, but not smoky. Yes, I would agree with that. A lot of times you get a scotch and you smell it, and I like to say it smells like you just opened a sharpie. And I think that's the like, the PD smoky, like the, you know, super scotchy flavors. And this doesn't have a lot of that. I think I read there were more details on here than I didn't give everyone this, let's see. It is matured for 12 years in Oloroso, Sherry and Bourbon cast. So there's probably some extra like sweetness and stuff from the Sherry imparted in there.
Yeah, pretty yummy, in my opinion. Very yummy. I'm like really getting these fruity notes, almost like a guava at the end. Like at the beginning, I don't taste much different than whiskey, but as it settles and sort of like rests on different palate parts of my tongue, definitely get a lot of floral and yeah, guava. Just keep coming back, but that initial citrus and definitely smooth. Yum. Yeah, for sure. So on this show, we have a very complex rating system
from zero to eight tentacles. Zero is like the worst wouldn't give this to your enemies. Eight is the best. And four is kind of middle of the road. I guess there's technically nine. So it's maybe there's no middle. Four and a half is middle, I guess. Yeah, pretty simple. What do you think I'm going to go first? I will. Delicious. Smooth. The lasting flavor. Yummy. 12 years. Got to respect that. Mm. I'm going to go pretty high rated on this one. I'm thinking like a 7.2.
Let's forget. Thank you. Yeah, I was going to go six or seven. My gut said seven. And then I was like, this probably something better out there. So I haven't had a lot that I like prefer to this. There's some really highly rated whiskeys that everybody loves, but I actually like this more than a lot of them. So I'll go with like a seven as well. Nice. Yeah, I totally agree with the like, I think once you hit a certain price threshold, it's just like, it's not any better if it's $500 a bottle. It's just like, oh, maybe if you're like,
you have a really sophisticated palette or something you can taste, something that makes it better. But for me, like, not worth it. But yeah, so this is pretty good. I'm not usually a Scotch fan. This is not all that Scotchy. So I am a pretty big fan of this one. I'm not going to go all the way to seven. I'm going to say six point eight. Nice. Plus minus points two on the seven. Yeah, I leaned up. I'm always going to do that. I'm like an optimistic person. I like complimenting things. So I'll probably always sway, sway up the number. I'll give you the benefit of this whisky.
Yeah, I was just going with whole numbers. I was like, I'll leave the decimal off. Yeah, it is hard to have fractions of a tentacle, I guess. But we do it. If you have a fraction, it'll just regrow, right? Like most tentacles, tentacle regrow. Yes, that is true. Chuck would always say that because he's like, there could be a nine tentacle octopus. If one, if you cut one off, you can grow two back. So. Well, that'd be a really popular octopus. It's got like the split tentacle. All the ladies are like, oh, do you see that tentacle?
How do you think that feels? Snakes out. Crazy. Yeah, what if you just cut like all of them a little bit and have like a thousand tentacles? Like if you grew back a bunch. So what's the, what's the origin story of the tentacle rating system? Where did that come from? Well, I'll give you the not that long version. We had a consultancy called ship shape. Our logo was like an octopus like creature. So like the crack in a boat, yeah. Yeah, it's technically, if you want to be 100%
technical, it's a cthulhu. A cthulhu face. Yeah. But no one's everyone like half people don't know what that is. And then like, I don't know. We just, we make it easy. I mean, it's octopus like, I know what it is. Yeah, yeah. But yeah, so that's not the way to think. Yeah, I, the first time I saw it was Southpock, not down to the dragons. I've learned so much from Southpork. It's not even funny. Educating the masses. Oh, they're mocking the masses.
They're so good at making fun of us. And I just love the perspective that they, that they share. It's, it's good stuff. I'm not caught up though. There's like an episode I'm not caught up on. Are you caught up in a month on Southpark? No, I actually got, I got a subscription to powder mod plus finally to watch it. But I just, I was flying over the weekend. So I'm going to watch it this week. Gotcha. Yeah, it's like the only TV show I still watch these days. I was watching Alien Earth, but the season ended. So I'm back to no shows. I got a list for you if you need a list. Yeah, well, give it a shot.
We're like oddly picky on our house. My wife falls asleep to everything. If she stays awake, it's like, oh, she likes a show. Did you watch Ozark? I think I started that one. I think I got halfway in. That was a drug smuggling show, right? Yeah. I think I got halfway into that one. I don't know. That's a new, uh, new Jason Bateman show called Black Rabbit that I just started. It's like similar vibes that's, uh, pretty fun to watch so far. Cool. What are you watching them on? I've been watching lots of anime recently, but the last live action thing I watch was slow horses.
Have you heard of it? No, I've heard of it, but I haven't. I haven't pulled the trigger. They keep showing up, but I'm going to make sure to watch this. The name makes you think it's not going to be good, but it's actually really good. It's a really good spy thriller with comedy in it. The premise is that it's a British show. And I forgot the actor's name, but he played Sirius Black and in the Nolan movies, he was Commissioner Gordon. Like, he's a really good actor. So they are the rejects of MI5. They can't kick them out of the agency,
so they get sent to this dump, and they're all like these rejects. And it's about them, but like it's also a Sirius spy thriller show. So it's like really funny, but also really good spy thriller entry, all of that. And it's almost like slight, like two movies per season. It's like five episodes per season. And there's five seasons out so far with, you know, one story per season. Pretty good. Nice. I'm definitely down to that premise. Yeah. Yeah, you know what else is good that I've heard? Flow.
Ah, everybody loves the flow state. What can I say? No, this is almost like, almost a cliche at this point for me. Like I was like the biggest flow defender. I was like updating my attempts. What happened? I don't get to use it much. I don't get to use it much anymore, but for the longest time, I was updating my website this, this like last week, and I was finding all my talks. And my first ever talk that's actually up online somewhere was I had a meetup I was talking about flow.
So it's almost like almost nostalgic for me. Like I used it for my first like big job, like my first type system was flow. So it kind of like made sense. And yeah, so I often like talked about how I like prefer things about flows like type system to type trip. And in a lot of ways, I still do. It's foster. It makes more sense. It's more consistent. The downside is it's not as polished as TypeScript. TypeScript is just like so over-engineered and like executed so well that it's very difficult to convince people to like choose flow
because you have to you have to want correctness over convenience. Which most people don't get. I do that work now. I feel like, hey, I could annotate the hell out of flow. And it just like make this yeah, it takes sort of the tediousness out of it. For the longest time, flow needed fewer annotations than TypeScript. Now it needs more. And then soon they will go back down to fewer again. That they've been doing this like massive refactor over multiple years. And like TypeScript also like actually shipped this feature that flow had to ship just to scale.
Where flow makes you write annotations for all exports so that it can like, you know, check your code faster and TypeScript to file exports or function exports. Yeah, like file like like module exports. And but also function up. But like module exports even functions need return types. Like you have to annotate everything. So it's not like it doesn't have to infer like all the way up the chain. It can just grab that. Yeah, and that was done a few years ago. And I forgot, it's called the types first architecture. Whereas basically like, oh, you know, you can just type check a few files
and you're good. And you're have to like look at the whole global state, which is why it's like scales to, I don't know, like 50,000 files or something at like Facebook's Mono repo. It like works fairly well. And TypeScript actually shipped that feature last year as like a flag. Like you can opt into it. Mm-hmm. It's going to say that's a killer feature to just partial check. Yeah. And so you can do an island of checking. You don't have to check the world. Oh, that's huge. That's a really annoying game. TypeScript once in a minute. Yeah, it does.
Of like the whole inferred versus explicit, like everyone has been team inferred types because they don't even write more. But if you get an actual benefit out of doing it, that's totally different answer possibly. Maybe this is hot again. And then you can have an LSP because like when you're in the file, you can infer the types and then it can just insert them for you. So it's not like you have to type them out. You just have to have them in your court. So it's not the end of the world. What like slow falls down on is like,
oh, for the longest time, it's like auto-complete was way worse. So it like wouldn't auto-complete like object keys. That's just tooling though. That's not flow's fall, right? That's it's kind of it's the tooling part of slow. You know, like there's the type checking part where I think flow is always better. And then there's everything else where flow has always been worse. Like generating type annotations, all of that's been bad. You wrote Stylex, which is a typed library as far as I know. And you're interfacing with CSS, which is typed.
How did CSS shape your understanding of types? And how did you shape CSS to fit into the typed world of Stylex? Also, I don't know if everybody knows what Stylex is. By the way, Stylex is the official, the only as far as I know, the only official way to style React components that is compliant with the latest variant of React. And so it'll work with server components or client components. It works across the entire spectrum of React. It's the only one that does that. And it's very near and dear to the interface that you probably
loved from your previous React styling solution. So anyway, that's Stylex, Namanis, the creator. I introed him a little bit about that, but probably went over your head as I was talking. You know, money boys. Yeah. Anyway, so like how did types, because you're in a fully typed scenario, you're typed in the library, you're typed with CSS, you're typed in typescript, you're typed in your React components. How did that shape your perspectives? Yeah, so like, I don't know, like we, which I don't know Amsterdam, I don't know if I mentioned this, but like CSS was the first language of the web that I learned.
So programming language. It's a programming language. You heard it here. He said language. It's definitely a language. I don't get into those debates because I'm like, I'm like, programming language doesn't make it superior. Scripting language, though, apparently. Yeah, like a markup language is made for something. It can be good. It can be better than a programming language sometimes. It's kind of gone over back and forth. So I didn't start Stylex, but I like took over like maybe a couple of weeks in.
The first commits were by Sebastian McKenzie, creator of Babel. So he like had like a proof of concept that atomic styles are faster and that things can be typed, but we want to write objects. My elevator pitch would be Stylex is what if Dale win, but you don't have to learn all new syntax is just, you know, the normal thing. You dealt with that? I don't know. I would have to see it, I think. And I would also have to use React, which I don't. You don't have to react, to be honest. You can use it with anything where your markup and your JavaScript is in the same file.
Okay, so it works with solid. It works with the svelte. It works with view with like a little bit more mess to like set up. And it works with Astro. These are the ones I've tested. It works with quick uses. Give it a try with Ember and let me know. I have not tried Ember. It does work with Angular, but it's not great. So I would not recommend it with Angular. It's probably the same, like the same syntax is kind of the same across Ember and Angular, like the using directives and classes and all of the things.
But Ember does have single file components where you can do your markup and JavaScript in the same file. So maybe we could get it to work, but I don't know. Angular, the problem was you had to define it and then bind it and then use the, like it was like too many steps to define the use. And I think with the single file components, which I've seen some rumblings of it also coming, to Angular, I don't know if it's part of Angular itself or just analog, which is their like metering work. In one of those things that probably will be better, but literally no one has ever asked for it.
In the year and a half, since dialects has been out, there have been lots of people who want to use it with views. Like everything else other than Ember and Angular, nobody seems to want it. And it's felt also like nobody actually wants it. I just tried it and it just worked. It was pretty straightforward. Well, they're using, yeah, the CSS module is out of the box. Why not do an atomic scenario that's honestly kind of cooler. So a little bit more free. Okay, so tell people a little about like how it integrates. How do you define your styles and then how are they referring to an element? Sylex is a bunch of functions that are all compiled away.
So there's a stylix.create that like lets you define some styles. But conceptually speaking, you should just think of that as when you do that, it gets compiled away and turns into an object where it maps keys to class names, which are atomic. And then you apply them with this function called stylix.props, which basically takes a bunch of style objects, which are just class names. And it merges them similar to like CN or whatever those class names utilities. And it gives you back a class name prop and sometimes a style prop I'll come to that later.
And that's conceptually all you have to think about in terms of like how it works like at runtime. If you limit yourself to the same constraints as tailwind, which is you define all your styles in the same file and you use them all in the same file, then it is as fast as tailwind because we will also compile away stylix.props and just put a string there. If you can figure out what string would be there at compile time, we'll just put it there. And if you use some like conditions, so you're like this is my base styles and if it's active, I want my active styles otherwise I don't, which is their own like sets of class names or
we pre compile that down into multiple strings and then just like this like bitwise operator business to like choose from them. So it's like super fast, just compare the conditions and pick the class name, but nothing else. In the past, it used to use a ternary expressions to like add strings together, but it would sometimes add extra spaces to this class names and then every time we would make a change, there would be like what do you call snapshot tests breaking. So we don't do that anymore. So in that case, it's as fast. Then a lot of people with tailwind use this function called
tailwind merge, which lets you like just throw styles together and like merge them at runtime. Tailwind merge is three to four times bigger than the runtime of stylix in like kilobytes and it is must not using bitwise. It is, it is just crazy slow like because tailwind doesn't want it to exist. Like the tailwind team doesn't like him. That's the benefit of it. I've never used it personally. In terms of like developer experience, there's nothing better than to be able to just like pass styles around it as if it's just data and like override
whenever, whatever you want. And tailwind merge is like 80% as good, just actually pretty decent in terms of like the devex. It's just like bloated and slow. It's like five x bigger and like maybe 10 x slower. And like stylix.props is fast both because of how it's implemented. It like uses like a tree of weak maps behind the scenes to like cache everything and all of that. But it also like stylix itself is designed for that. So like stylix is not generating strings is generating objects
or strings. And so like when you have to merge them, it's like way faster than like looking up a string and being like is grow a flex box property. Like if you put grow and then later you put shrink which one should win. So like tailwind merge has to have this like massive list of things of like all these exceptions where they don't have a consistent prefix for every property because it's like optimized for like typing less. It's not optimized for merging. And stylix is optimized for like reading and merging. It's not optimized for like typing less. That's all right. So I understand
the concept. But I'm not understanding like a concrete example. Can you give me an example of like when you would want to merge two or like what gets you into this situation? Let me give you a very like like an example that exists out there which is every card on facebook.com has a few things that are like predefined. Like they all have like this border radius. And you can have one of like three border radii depending on where you're using it. Like you can have a configuration for like shadow. But then other than that in different places you want completely arbitrary styles.
You may want different background colors. You may want like different padding, different sizing, all of that. So you just have like some default styles and then the user passes in the rest of the styles. And you consistently get the last thing applied. Cool. I'm on the same page now. Sorry, I just was understanding for a second. I started working on stylix for that. So I was on the component steam like the design system team. And I was not supposed to work on stylix. It was supposed to be complete. And I was like making components. And then I'm like, this is so annoying.
I'm like, I have like this massive list of props for like all these like booleans of like, do I want like primary or not? Do I want this or not? It's like just like we would get these massive lists of like toggles to like up conditionally apply different like styles. It would make the like the API of a component is just like annoying. And we were like recreating essentially like CSS in like react props. And then we were like, why could we just like pass in like styles? That would be so much better than this mess. And like that's when I started working on stylix.
That was like the first thing I'm like, I need this. And that's why it's like type safe because we're like, hey, like you're you're overriding styles for a for a card. Don't change the border radius. We don't allow you to do that. You can change everything else, but not border radius. That's predefined. Don't worry about it. And like everything like came from there for like two, three years. Like stylix started. I don't know if tailwind existed then or not, but like no one knew about it. I started working on it in 2018. It was like internal for many years. I find it really funny because like the first YouTube video to cover like stylix was Theo's video because
like he found like this like beta website. I had somewhere because I was like working on it. Wasn't even open source yet. And he just found the link somewhere and he made a video about it. And he's like Facebook tried tailwind. Then they made this and said, I'm like, we never tried tailwind. We didn't even know about it. Y'all tried vanilla extract and you're like, we can do better from like, I don't know if everyone can notice here, but Naman has a very high attention to detail. And so when I was at Chrome and I'm watching stylix evolve, which also was considering
how to integrate design systems that are full of custom properties like open props. I was like, oh, a library is actually giving a crap about native CSS variables, which is why I was paying attention to vanilla extract because it would scope my custom properties and my keyframes with robo vomit names. It sort of helps them be pseudo private and stuff. And I'm watching as stylix is evolving and I'm watching the months taking attention to detail into making sure that the modern CSS authoring experience is not crammed into stylix. There was an attention to detail
there across. It sounds like for about six years that you didn't want this thing to age poorly. I'd account almost its entire success into you carrying the torch forward. What was motivating you there other than it sounds like you were dog fooding it and you're like, it sucks for me. So it's going to suck for other people like how did you find some intrinsic like motivations there? For the longest time, I was just an internal thing. Just making improvements based on what people were complaining about. There was lots of improvements that are very hard to even describe because they were just like internal messes. Like how does it fit into this like 15 year old bundling
situation that Facebook uses that is impossible to change at this point written in PHP? Like lots of that type of stuff, which I always struggled with. But basically, Tamachino who was still at Facebook to like COVID or something, he told me open source it. And I was like, I'll do it. And then I just like, I was like, oh, if only I'll do this one more feature. And I just kept not not shipping it for years. So that's like totally on me. And I finally like felt like it had everything. Once I added the teaming APIs, which the teaming APIs themselves took like, I want to say six months of iteration.
Those hooked me hard. Those were really well done. I was really impressed with those. That's my like proudest part of style X is the teaming APIs because we had the first version. I was like, hey, can we do this? And they're like, no, the bills will take too long. So there was like all these constraints because at the same time, we were designing those. There was like this like work internally to like make a themeable component system. I don't know if it ever got done. But basically, we wanted all these different design systems to all be one design system, which is different themes.
And the designers had like this really insane ideas, which makes sense in Figma. But like, in hindsight, it makes sense on the component level because there were just like thousands and thousands of CSS variables. Like, that's what they wanted. I didn't know that if you put 10,000 CSS variables, you can literally crash your browser back then. So yes, I can material designed it. At first, they really crossed the browser and then they crashed Safari and then they crashed. It's like every browser was like, pretty funny. So I designed this whole system. I'm like, okay,
it needs to scale to 10,000 variables. And it needs to be so casual that only the files that you change have to be recompiled. And I was like, how the hell will I do that? I was like, just spending weeks after weeks thinking about ideas and finally came up with this API. And I'm like super happy with it. Like because like, especially with my react brain, it makes a lot of sense because it just feels like react context to me, like create context provider. And it's like define was created theme. Like, I don't know if those are the best names, but well, they're good names. But like,
yeah, theme UI was like the more popular one before you were implementing this. And I hated that one. I was like, whoa, this is a lot of hoops. This is definitely developer driven abstraction into I'm not feeling effective anymore. And I feel like stylics did not give me that sense. So you did really well sort of like taking the torch and carrying it on. The thing that people wanted the most just to like give a shout out is stitches. Do you have a play around with stitches? Yeah, stitches in vanilla extract were the two things that right, those came together, right? Uh, stitches were pretty little bit on the extract stitches.
The same person though, that's the same guy, right? Is it? I swear, it's the same thing that did stitches did, uh, I don't know. I know that vanilla extract is the same person who did CSS modules. I don't know what stitches. Okay, yeah, let me look it up. Stitches, uh, they're, I swear those two work together though. Mark work with the other dude that made stitches. Like, this is a very like the ecosystem of stitches and villa extract and sprinkles is a tight scenario. I think stitches was like deprecated and they were like, go use vanilla extract, at least like, I don't know if it's the same person, but like they definitely were like,
go use vanilla extract. And so stitches had this like very interesting theming system, which people love using. And I think it's like a really good devex, actually even, even today. And if I could implement that for stylex, I would, but it's just like completely breaks types. Like it completely ruins the type safety of variables in stylex. So I caught because it basically lets you arbitrarily nest variables as many times as you want. So you can like have namespaces of namespaces of namespaces. And there's
like two problems with that. Like one is like pretty hard to like make that type safe. But two is, now your variables can't have different values based on media queries, which is something I want in, which that's something nobody else does. I'm like all variable, like in CSS, you can define a variable and then like say, if like I'm in preferred dark mode, then it's a different value. Why doesn't anything else let you do that? So like when I designed like new APIs for stylex, I always start with like CSS. Like my goal is I want the capabilities, but not the,
not the learning curve. So like not the global context maybe even. Yeah. So like I intentionally, like don't want you to think about selectors ever. That's like one thing. There's another thing, this one, I don't know what you think about it. But like I have like a personal aversion to any like values that you reference by strings. Think about like react query, like you have query keys, which are just strings. I am like very averse to that because I'm like, oh, I'm just like arbitrarily typing a string. And that's not type safe. Instead, I go for things which are like,
you define them once and then you have to import them everywhere and use them. So those are like the two things that I'm like always like biased towards. I'm like, I don't want strings like arbitrary strings that mean things. And I don't want you to like have to think about selectors and stuff. It should just feel like data. But I want all the capabilities. And the hardest feature to implement in stylex was view transitions. Because view transitions one did not have view transition class at the time. Yeah. And that was just impossible. Like it's like, oh, you literally
can't share it. Like it's unsherable to CSS. And that was the first time I like went to the CSS WG GitHub and like commented on things. I'm like, please do this. What are you doing? This just in whiskey.fund is now open for all your merge needs. That's right, Robbie. We're hearing reports of hats, sweaters and t-shirts as well as a link to join our discord server. What's a discord server? Just read the prompt or man. Hit subscribe. Leave us a review on your
favorite podcast app and tell your friends about our broadcast. It really does help us reach more people and keeps the show growing. All right, back to your regularly scheduled programming. Anyway, I don't know what I was answering. Like, what was your question? I just wanted to hear more about stylex. I love that we got into view transitions. I was waiting for Robbie to be like, there's too much tech here, like web. Where's the what not? But at the same time, you started talking about view transitions. And I was like, Robbie and I are in view transitions a little bit of a
hell right now where we're like, how do we make this really good? We've made it okay. We would like it to be better. Yeah, Robbie, tell them about like what we're pairing on and how we're trying to fight view transitions right now. Yeah. So we're using the Astro. We're building star pod, star pod that if you want to check it out. Shout out to my podcast. It looks good. Yeah, sorry, my voices. So I can feel my nose being stuffed up right now. It has this built in client router thing on Astro where like if you do nothing, it kind of like cross fades the pages and like,
looks kind of nice, but Adam threw in a nice like the title of the episode from the episode list will go like zoom in and out when you like go to the episode and stuff. Or like I guess it did both with client router. But if you don't have client router, it only does one way. I'm not I'm not even remembering like the full scope because like subtle things work with client router or don't. And the main reason we need client router is because we want to play an episode and then like move around the site and have the episodes to play. It's like for anyone that doesn't know Astro is like
a static site generator. So it's like multi page app. It's not a spa. So it's like going to have it'll stop every time you change pages unless you have something to handle that. That's our big dilemma right now. Yeah, we're stuck between like, hey, imagine we're Spotify and we want to ship a multi page app because it's better for SEO and it's easier for users to just like go to a playlist and then hit play. You know, so they're immediately taken to a detail to get server side rendered. But in this case, it's static. The client router is a way in Astro to it's kind of like a hot wire.
What's the what's the rails way that does this where it intercepts your request and only partially renders the paging Aaron Francis. Paging. Francis. No, sorry. That's live wire. And that's not the rails. That's PHP. But it's something anyway. It's like yeah, hotline wire probably. I think sorry to everyone that I offended by getting all those wrong. No worries. It's similar to that where it's like Astro's like, Hey, we see we're we're we're ready to render you server side generated. However,
the destination page here can be client side partial rendered. If you like, we'll look at the entire HTML page that comes back from the server. Take just a little tiny chunk and then render that into the little spot and we'll add some view transitions in there for you because we're Astro and we're tight and we'll auto name it and shit. So it's kind of like the modest talking about like we're naming things and coming with unique names becomes really difficult or unique view transition class names gets even hairier. Anyway, so it's like we're stuck between like if we use the client router in Astro
which makes us more like a single page application. A spa as I call them. Damn it. It's a spa. That should be a spicy question. Is it a spa or an SPA? It's a spa. Well, it's a spa. I like spa. That's good. You can't say impah though unless you want to sound like a what's the band that did like Hansen. Hansen. Yeah. The funny part about that question is whoever answers fastest is the loser. So I guess that's. Hey, I used to love Hansen man. Me and my best friend in kindergarten
listen to Hansen on the reg. Hansen D2 or I think the monosome of the same Hansen too. I'm on team SBA. I go out of my way to not start saying words that wouldn't mean something else to people who are not devs and spa already means something. Okay. Nice. Yeah. Another one I heard today or pond. Yeah. What? I haven't heard those ones before. No. So today I heard a new one which is
like ooming like out of memory errors. And I was like, wait, people say oom for that. I didn't I was the first time I heard that today. You know, that's like saying Earl. You're like, no, that's just the the Hick that lives down the street. That's not a URL. Yeah. Like the one the one abbreviation that I have definitely failed on is Jason. I pronounce it like more Jason rather than Jason because like people will hear Jason and be like, who? What? Yeah. It's Jason. It's Jason. Yeah. Yeah.
I agree. Hey, they should be a part of the spicy question. So like, how do you say this? Jason or Jason? Is it Jason or Jason? Yeah. Oh, the gif and gif one is like really annoying. I'm team Jeff, by the way. I don't know. Team Jeff. Oh, you say Jeff. I admire. So this is like one of those weird ones. I'm like, I admire you for saying gif, but that's fucking peanut butter. So it's taken it can be peanut butter and a picture format. The peanut butter is named off to
the picture format. They wanted to get in on the hot. Yeah. So my argument for this was like jiffy or you'll you would probably say giffy. Well, that's a J and just service to like no, with the like the service to get gifs like in Slack and throw a gif in there, whatever. Like, you know, I'm talking about giffy. So I would I thought it was supposed to be giffy and because it's fast like to grab one and like that it all goes together. It's all gif. I
don't know. I don't know if I think they have taken a stance that it is giffy, but I'm like, why? I thought the creator said it's gif and then everybody. Yeah. I think it's officially he was meaming though. Okay. Wait, I create a tweet storm. He came. I have seen the video. It's like hilarious. No, like you remember the apple slide where they like dropped this massive no. It was like as like as big as their entire screen. It just said no. And so like he came out and he's
like, it's pronounced JIF, not GIF. And it's like it's got like epic music playing and he's like on stage and it's got this big screen behind him. And he just has that and he does that and he leaves and he does say anything else. So yeah, that happened much later. I don't know why. Like everybody used to say gif. Like I've been saying gif since like high school, a middle school. I don't know. Everybody's saying gif. Not gif. No, I grew up in India. I grew up in India. We did not
have the JIF peanut butter. In fact, I didn't know peanut butter was a thing that time. Because I was like, that's that's strange. And I don't know. Like that sauce, right? You have peanut sauce, not peanut butter. You're like, why would you make a butter out of this delicious sauce? I don't know. No, I just need dropping out like like roasted peanuts. I'm like, fucking shame, man. Yeah. Yeah. So I was like words like gin are like, like they have the J song with the GI. And then. So just sound like gins. And then and then skin.
Got to wear your key while you drink some gin. I had gone deeper into this. It basically comes down to like word roots. So like Latin-based words, GI is always G. But Germanic words is G. So there's gin, but there's also gift. And so you can take whatever you pick because it's not a real word. It's such an abbreviation. Okay. That's so funny. This all branched off of MPA versus SPA. Some people say spa. Some people say SPA. They were like, no one says spa though. I don't know. No one says spa. Yeah, that's unless Hansen was making a website and they're like,
we specifically used astral to make a pop. That's Fred. Fred. Reach out to Hansen and get them to make you a commercial about MPAs. Okay. So wait, we're making the site. It's got future transitions. It's got that we have to we're choosing to go a client side router that intercepts and does partial rendering just so that the audio can continue place the same reason. Spongebob. If anyone remembers Jason Miller's article about Jason. Jason Miller. Jason Miller.
Makes him sound like Jason the Rulow. Makes him sound fancy. Like I'm in Japan. It's like Jason. He's a wait, but wait, you would say Jason. Son. Jason. Son. Okay. That's a funny to me. Probably no one else. Okay. You could go back to what you were saying. Jason wrote a article about like, oh, it had a really catchy name. We'll put it in the show notes, but it's like, I went to use an SPA, went to use an MPA. Here's five concrete scenarios where you have to use a single page application. Here's a concrete
scenario where you should never use a single page application. And he's he outlines them in there. And one of them is if you're an audio player that needs to continue playing audio or a video player that needs to continue playing video during page navigation, during router changes, then you need a single page application. And so start pod. This podcast player is playing audio and as you change navigations and you float around the site or you fart around the site as I wanted to say, but I edited myself for some reason. Anyway, fart around the site. You crack like a duck, like my wife, she farts and quacks like a duck. That's just a joke for her to listen to later and
think it's funny. Anyway, we want the audio to be continuous. But Robbie's today, he's like, we can have our cake and eat it too, man. We can go single page application or we can go multi page application. If they change the page while audio is playing, we'll just keep track of where they were and resume because it's going to be like near instant navigation. And if we nearly instantly resume there where they were, what's the loss? Because the game for us is a lot in terms of SEO. We have some performance gains. There's like page with the scripts required for
the client side router. It's just noise. And so Robbie and I are working on the site as like a, how do we reduce noise? Client router is noise. But dammit, we need that. I went no more. What do you think about like trying to like navigate this like difficult scenario? What would you do? You want to hear my spicy take here? Yes. You say I win. I don't mind being able to be honest. It's okay. But my spicy take is I think everything is fine as a single page application. I think client routing is is never a problem. It is spicy. Like I feel like there are bad
implementations. There are bad frameworks that maybe add too much complexity. And then you're like, hey, this is too annoying. And I'll just do multi page application. But I don't think the the concept of client side routing is the problem. It's it's just like bad implementations. If you're on reachable to be spicy take. Yeah. Yeah. No, I think that's so I agree with that. I think, but it's like it's hard to convince someone either way, I think, but like what we want to do is try to like use all just like primitives. Like use the web as the platform. Don't add like
extra stuff. So it's like it's more of an exercise in like what can we do here? Not what should we do? So we're like trying to like show how would you do it if you weren't using a spa? So like I think like this spa and the spa boundary is getting kind of blurry. Have you seen this library called like morph DOM? Yes, but that's like so. That's that's like a competitor to H and others, right? Like hyper hyper renderer. It's oh, no, let me check it out. So morph DOM is a DOM
differ, not a virtual DOM differ. It's a DOM differ. So like I feel like you can have an MPA in pretty much always, but like when you click on a link, you can run morph DOM to fetch the next page and then patch your existing page with the new HTML and that kind of gives you the benefits of an MPA where you can have a bunch of static HTML files, but you can like keep the state of like audio elements or like video elements or whatever like that because it'll just be like in
this place in my DOM, it's the same exact element. It just doesn't replace it. It just leaves it as it's because it's diffing it. And so I think something like HTML X for hot wire which I just linked yeah, which are very similar. Yeah, I would say it's closer to hot wire than HTML X because HTML X is all about parcels. And I think morph DOM is more about this is the page I'm on. This is the next page and I'll change what needs to be changed because like usually if you do a full page navigation, you throw away the last page and you get a new page, but like this is here's the
old page, here's the new page, what changed? Let me update that. And I think that's like a lightweight like SBA more on top of MPA tooling, which I think would work really well for a lot of these things. I always talk about these things and like I think Adam, you're like the most close to this that I know out of anyone who's like worked on standards and stuff. You've written like specifications, but like I like constantly have like why can't we do something like this on the web and I like want to like tell everyone about it, but they're like write a proposal and I'm like fine, here's
the blog post. They're like, but that's not a specification. I'm like, I don't know how to write a specification that's to do weird. That's fine. The blog post is a stellar starter. Writing a specification is a chore and it's not even really a moment to like really go conceptualize something. It's a moment to harden something. So your blog post is a perfect scenario where you're like, here's what I want and here's what the problem is. That's enough to go seed the people that do write the specs that want to harden things. So think about like a scenarios where some people are good
at ideas and some people are good at abstractions and making like really tight pure functions. That's the harmony that you're looking for here. You want to propose and articulate a need and they're going to go write the type to function that fits in slots right into the huge system. Honestly, it's kind of like designer and developer relationships where you're kind of being a spec designer and you're awaiting a spec developer. Ooh, that was a nice little pop. Yeah, I want to make my pop. That's good. Hey, it's good. And it wasn't good. Wait, hold up. Everyone doing it now?
No, I can't hear it at all. I'm like, I think I could hear that sound for a long time. That's a very pleasing sound. Yeah, it's much better than the twist off cap. Yeah, this is how you know it's fancy. Yeah, I mean, like the closest I've gotten to like specwalk is like attend open UI meetings. Sometimes I think like I can brag that there's like two things I've like contributor to like significantly. And one of them is shit in Chrome. So the first one is interest target. I want to say
holy shit. That was huge. Yeah. So it was already being worked on before I like ever like did anything. Like I met Yuna last year at React Miami. I was working on hover cards for Facebook back then and she like, oh, we're working on interest target, which is similar. And then I came in and then I attended many meetings and I'm like, this is how it should work. And like, I think the specification is like about 80 to 90% exactly what I did. So nice. I feel pretty good about that one. And then I didn't write specs. I didn't write.
I did not write a single word of that specification. You're the muse. You're Yoko Ono. Naman, here you go. Here's the title for the episode. Naman Kowell is Yoko Ono for standards. I know everyone hits Yoko on. Just like, oh, I don't hate her. I just, I'm like ambivalent. I don't know what what her deal is. But yes, ambivalently don't want to be her. Yep. Probably not. I'll be John London though. That's fine. No, but I didn't write it. So it can't be John London.
Sorry. And the other one, which is still being like worked on is called Link Delegation. I don't know. Is this where you want a card to be clickable? But yes, that oh my goodness. This one's okay. I'm about to go to T-pack. Shopify wants this. I want this. My website has it all over the place. It's an annoying piece of JavaScript that I want to rip out. What are we talking about? I will let you present. This is a phenomenal idea. I am a co-author of that one. I did very good. Do you tell everyone what this is?
You want a whole card to be clickable, but the card has other buttons or links inside of it. So you have nested clickable things, which means that it's not valid HTML and it's not accessible and everybody hates you. But you can make it work if you want, but like everyone will hate you and it's not accessible. And so there are all these hacks that people do, which are fine if you can like achieve them, but they're not flexible enough that you can use them wherever. So like the best hack I've seen is that you make the outermost thing like the card itself
position relative and then everything else inside of it is position static. And then your primary link. So say like there's a title inside of the card. That title has like a child inside of it, which is position absolute of just like zero, zero, zero, zero. And so it expands to fill the card. And so no matter where you're clicking on the card, you're clicking on the link actually, like the title bar. That's like one solution that has been around for like 10, 15 years. I think I saw an article on CSS tricks showing off this trick. So this is a really old trick.
It works, but like what if your card needs like position relative between the card and the actual thing? Now you're like screwed. So nothing else like scales properly. So like when I was working on components, the first version of our like link component, I actually just allowed you to like nest links. I like discovered that if you put a anchor tag inside of an anchor tag, like a browser will literally break, but you can wrap the. You can put a button inside of actually we weren't using buttons and we was using divs for IE reasons, but I think you can put
buttons inside of buttons, but you cannot put links inside of links. But I found out that you can wrap the nested link inside an object tag and then you can make it all work. And I was very proud of myself and I made it all work, even if you nested links and stuff. And then like two months later, the accessibility team reaches out to me and I'm like, what have you done? Nothing is accessible. It's horrible. So then there's our link role in numbers, linting that's like never do this. Yeah, it's like the browser literally won't let you do like it will literally break.
It will close the outer link before the inner link starts. It breaks in really horrible ways unless you put that weird object tag in the middle. And then like lots of months of like trying different things. I tried like the index tricks. I tried the absolute position tricks. And then the final solution, which is the spec like the proposal on Open UI now is there is no nested links. So you have a card, which is just a div. And then you just have a bunch of links inside of it. And then on the div, you're like, Hey, if somebody clicks on you, just forward
you click to that one. So there's a primary link on the container. And that's all it does. And that is completely accessible because for screen reader users, the card itself is just a div. Like they don't have to think about it. It's just a way to be able to click without being able to know where you're clicking. You can just like click wherever and just forward you click to the correct place. But that's all it does. And that's pretty much the specification. It's pretty simple. That's why I was willing to write it because it's so short.
That's not true. Yeah. Very cool though. Definitely solves a problem that I feel like a lot of people have had. But I do want to wear 58 minutes in now. And the title of this episode is rust is overrated. And we haven't talked about Russ. How do you feel about Russ? Okay. So I I wrote a blog post. I don't know. Many years ago now where I said Swift is a more convenient trust. But I don't hate Russ. Like I think rust is fine. I think it's pretty good for certain things.
There's like this like spectrum of languages where there's like super high level convenient languages like JavaScript and Python. And then there's like assembly on the other end. And nobody writes assembly with lots of people will write CC++ and now they're starting to write rust. It's pretty close to like the C++ and C end of things. There's like this big gap in the middle. And it's kind of weird that whenever we want something faster than JavaScript, we jump all the way to the other extreme. And there's like examples of why you shouldn't do that,
which is go. Like yes, build is go. And like TypeScript is now being rewritten and go. So like go is a pretty good language for all of this stuff as well. And I think go is like fine and good. And like useful for lots of things. There's also OCaml coming back to flow, which was always written in an OCaml, which is why it was like faster. But there's like a problem with both OCaml and go, which is that they're both garbage collected languages. So there are certain scenarios where you were like, I don't want garbage collection. I want like predictable performance. I don't
I don't know. And also like all the boundaries. Ah, it's control. It's like you want control. Yes. Or you're like look, it's control. And I will orchestrate. You're just like, I'm an orchestrator. I don't want automated things. I would like to tell you when to release and when to grab. I don't want to tell you, but I also don't want that overhead. So like the example would be technically tooling is not a great example for this. Like bundlers can have GC pauses and it's probably fine. But like there are scenarios like when you're like building UIs and stuff. This is like
one of the reasons Apple is like super anti garbage collection all the time is if you're scrolling and it GC pauses while it's scrolling and you see a cup that's like the worst thing ever. So the OS just like defer GC though. You're like, geez, it's not a good time. You know, don't do it now. Sure. Like there are there are solutions. Like you can like work around it. There are also fancy GCs. I don't know. There's like tracing GC and other. I don't know. But there are kinds of GC and somewhat better than others. But like basically like if you have like virtualized
lists and you're doing lots of work wireless scrolling, you can't just be like, I'm just not going to collect any garbage till I'm done scrolling because like you might do like 1000 cells before you ever stop scrolling. And so that's like one of the reasons like Apple says at least why they don't want GC. And so there are like valid reasons outside of like just you know iOS for not wanting GC. And that's why people go to rust because like go is like really good and really fast. But one,
it's like intentionally a simple kind of dumb language, which some people love and some people hate. But to do it's definitely GC. And so if you don't want that like the next best thing for most people is rust. But like rust is like not all the way to CNC plus plus where like manually allocating and deallocating everywhere. But you still have to really, really think about memory all the time. So it's in your face, but you don't actually have to touch it. You have to touch it. But like you can't make a mistake. It'll make you do the right thing, but you have to do it. And then in rust,
there's this like wrapper type called RC. There's also ARC, which stands for reference counting, which is literally a counter. So like every time you like make something, you just like bump its number like, hey, three things are looking at it. Four things are looking at it. And then when they stop looking at it, they're like, okay, back down to three, back down to two. And then whenever it goes down to zero, it just cleans itself up. So rust is manual by default, but you can opt into reference counting. And then it's very explicit when you're doing reference counting when you have to
like, I don't remember the function calls, but you have to like explicitly call like bump. It's like, I'm using it now. Like all it's like called clone or something. It's like a dirty check. And anyway, whatever. Yes. And I think like 99% of things that we're doing with rust are fine with that. Like you do have slightly more overhead because you're adding and subtracting numbers all over the place, but adding and subtracting numbers are actually pretty fast. So it's fine. And so Swift is just like RC by default, but you can opt into the rusts not RC if you want. And I
think like for most people, that's the better default. Like you don't want to constantly think about memory all the time. You would rather have like the GC type of developer experience. And then when you need like manual control, you can just like do some annoying things and it works out. And that's that's what Swift is for the most part. That was like my whole take is like, I think Swift is better because you're have to think about memory most of the time. Okay. So you can't opt out of it in rust and what you're saying, but it's like Swift is very similar except you can just use it when
you work. Yeah, it's it's just like what's the default? So in rust, the manual version is the default. So if you opt into RC, which is more convenient, you have to write a whole bunch of words to be like, Oh, I'm making I'm bumping the count now. I'm like done with it. Like you don't have to clean up, but you still have to be like, I'm making a clone now. This is another listener to this or like another thing is looking at this reference. And in Swift, that is the default. So you don't have to think about it if you're just doing that all the time. But it's like if something is slow
and you're like, Hey, reference counting is not good enough for this or I never want this to be cloned ever because this like a file handle or something, then you have to write extra lines in in Swift. So there's a trade off, but I think the Swift trade off makes more sense because 90% of the times I just want the convenience of being able to like copy things and like pass them around like references. And then only 10% of the times I want to be like, Hey, hey, don't copy this ever. This is a thing that should never be cloned. This is why I like Naman talking about this because like for me, I'm motivated by computers should be computers and humans should not be computers.
So there's like a couple. It sounds so simple, but it's like, I don't want to put my brain into a scenario where I need to act more like a computer. I'm like, no, this is why we're in the year of 2020 fucking five, where I don't have to be a computer. In the 70s, you had to be a computer. It made sense. You needed to micromanage and like orchestrate all of the things. But in the future, you shouldn't need to. And so whenever I like hear people talking about rust, I'm like, holy
shit, this has the worst of all of my worlds, which is it's like for Bose, I have to hold the hand of it. And there's like all these little memory. Oh my goodness. I'm like, this is not an advanced language. This is a language asking me to do a shitload of work. And so when I hear Naman talk about Swift, I'm like, ah, Swift sounds like it's in a sweet spot where not only am I in a minimal syntactic sugar scenario where like I don't have to type a shitload of curly braces and a lot of semi-colons and a lot of open noise. To me, that's noise in an author as a human reading code.
parentheses, curly brackets and semi-colons are noise. That's computer talk. That's computer ending and beginning different things. Team curly braces over here. Team, hey, yeah, curly brace said like, and I know it feels good. Like it feels good to put a semi-colon somewhere. But at the same time, like over time, it feels better to express and not syntactically finesse. Ooh, it rhymes. But that's also, it's like, I don't want to micromanage my parentheses and my curly brackets and my semi-colons. That's noise to my purpose. The purpose is
I want to get some shit done. That's why I haven't gotten into rust. Rust, to me, looks like a place where I'm going to go spend time not getting shit done. I'm going to spend time articulating and finessing in a very finite way, which is probably satisfying in the same way typescript is satisfying. However, this Swift scenario sounds to me where I can, by default, get a preferred scenario. However, also write minimally because I'm a human and I don't want to write twice as many characters as needed to express my intents. Anyway, so it's like, that's where I'm coming from as an
author of code these days and for the past seven years or so. It's like, I want to write as little as possible as close to English as possible and micromanage as little as possible because I just want to express intent. And so Swift, to me, has always been atticing that way. But yeah, go ahead. Yeah. Sorry. I just want to say, I think this is a thing we've discussed several times. A lot of people don't want to get things done. You forget that people want hard engineering problems. They want to hand roll the rust thing for two years because it's fun, not because they want to get stuff
done. That's what a lot of people love. I'm a little bit like that. I won't lie. There's something I've been doing. I've been using the Codex CLI to write a JavaScript parser in Swift. And so far, I'm done with the tokenizer. And I tried this last year and it was like completely incapable of doing it. Like none of the models could do it. And this year, they can do it. So Codex is tight this year. Yeah. There's this like thing that I've been like wanting somebody to make. And nobody will make it because I don't know how to like
publicize it enough. But basically, I had this idea like maybe a year and a half ago, a year ago, where prettier put out this like big blog post about how to format ternary expressions. I don't know if you saw that. And it was like a mini controversy on Twitter because everybody wants things to be formatted differently. And basically, I saw that and I like took part in it. I'm like, I want things to look like this. And then like two days later, I'm like, actually, no, I want them to look like this. And then essentially, my final thing was like, why do we have
ternaries? They're so hard to read. We should just have if expressions. But we can't have them because like JavaScript, you can't have breaking changes in JavaScript. And then I was like, TypeScript is a JavaScript superset. So is flow for the most part. There's like small exceptions. But like for the most part, there's supersets, which means like if JavaScript made mistakes, we just have to live with them. But there are a whole bunch of like compiled JavaScript languages outside of these two where they don't look like JavaScript. You're all like, you get like these like list languages and you get these languages that look like Haskell or you're like, you get
Elm. And then they don't look like JavaScript. They don't work like JavaScript. They're just like completely foreign. And I'm like, what if you just like made TypeScript? But you just like fixed things like TypeScript with breaking changes. And I'm like, that would be great because like and then you could just like. CoffeeScript went too far. CoffeeScript was like, I loved CoffeeScript as you can tell from like, I want to write very little and give very far and express myself in succinct ways. Nothing comes close to CoffeeScript. I hated CoffeeScript.
Most people hated it. I know. And so there's one specific reason I hated it more than anything. It didn't make a decision of how you call functions. You could call do function name. You could call function name parentheses or you could do function name space arguments. And I'm like, just like, I loved it. I hated that. That alone was the entire reason I could not tolerate CoffeeScript. But the space with the parameters that was a little funky. I'm going to admit that went a little too far. But okay. Anyway, you're right. You're right. So I made this website. It's still
live. It's called lightningScript.dev. When I'm like, please, someone make this language. And I just like put it out there like more than a year ago. And nobody did it. And so I'm hoping that like this codex will one day make this language. We'll see. I don't have time to actually work on it myself. But if an AI can do it, then I'm looking forward to a language like this existing. Yeah. Yeah. I was going to say I wonder like how far away are we from you just describing the language you want to an AI? And you can write whatever you want. And it'll just work.
It's probably closer than we think. It's pretty good at translation right now. Yeah. The new ontropic model announcement post has a mention of they made it make a new language. So really, I've been thinking about a next gen CSS language for many years. Chris Coier and I have talked about it multiple times. Like what would tell me more? What would the next version be? Well, that's kind of the problem is I can articulate questions problems. But CSS is so nimble and so capable at the same time. It's a very difficult language to dethrone. And so anytime I kind of
get into the weeds of like dethroning it, it's more about property value, succinct solutions, and like corrections as opposed to structural corrections. But anyway, sorry, I didn't mean to derail. No, it's completely fine. I can always note out about CSS. You want to hear a tiny, mini hot take on CSS syntax. Yeah, absolutely. Container queries should not be at rules. They should be pseudo classes. Have you seen the proposal for media queries and container queries to be pseudo classes as function, pseudo functions? I've seen the function version.
Yeah, yes, yes, yes, yes. Yeah, it's kind of ridiculous. Yeah, it's a little ridiculous that we have to at rule those. They should be something you can attach to the selector itself. Dude, 100%. Yeah, I like it in the value. So this is the one thing where I went against what CSS does and then CSS caught up to stylics, which is the API of stylics is you don't write base styles and then like mobile styles. You just write styles. And then your values can be adaptive. So like your width can be different values for like different media queries or whatever.
And that was like the weirdest thing to everyone who was using stylics and those good reasons behind it, but I won't go into it right now. And ever since CSS shipped custom functions and like if functions, now you have that in CSS. And I think it's a way better than like being like, hey, these are like my normal styles and these are my like, if you're doing responsive design, I don't think you should be writing your styles like that. You should always be thinking of all screen sizes. Yeah, we talked to a guy that builds apps for flip phones. And he's like,
no one thinks about like 160 pixels being your screen size or whatever it is episode. Yeah. Damn. I don't even think about that. I don't know. Yeah. Yeah. But like it's reaching everyone and we're reaching just a partial amount. Yeah. Yeah. Yeah. It's, I mean, it's more than you think. But yeah, we're pretty over time. So before we end, what would you like to plug? I guess I'll plug like solenoid, which is not something you should. Yeah, you will. I give a talk and react summit earlier, like I think in June. And solenoid is just like this idea
I had for like more than a year. I didn't have the idea for you. I developed this idea over year. And it was just like all these different things happening. HTMLX was happening. There was like all these new like so aside rendering things and like react server components was happening. Astro was happening. I was looking at all of this and I was looking at solid JS and I was looking at like Ryan Karni also stream. And I was just taking it on in and I had this like weird idea. I'm like, what if you did this? And so I'd like made solenoid for that. And that's all it is. It's
just like this like experiment where it's like a radically different way of rendering apps. The closest thing to it is quick JS. But if I was to give you the elevator pitch, it's the idea is that it is interactive as the HTML streams in. So if you do like server side rendering, like async server side rendering where you have like suspense boundaries and those suspense boundaries get plugged in later or whatever. And you're streaming in your HTML and say you have like a really slow internet connection where you get like a few lines of HTML
at a time. Even if you've just gotten like the first like 8 10 lines of your HTML, it's already interactive. And then like the things that come in later just catch up to your client state when they come in. And that sounds awesome. I don't know if that's a good idea because that your HTML is bigger and your JavaScript is much smaller. I haven't built anything big with it. The framework is not even complete. But I think it's like a cool idea. So I would like love just discussions about it. For sure. Very cool. All right. Yeah. Thanks for coming on. Thanks everyone for listening. If you liked it, please subscribe. Leave us some ratings and reviews. We appreciate it. And we
will catch you next time. You've been watching whiskey web and whatnot recorded in front of a live studio audience. What the fuck are you talking about, Chuck? Enjoyed the show? Subscribe. You know, people don't pay attention to these right? Head to whiskey.fun for merchant to join our discord server. I'm serious. Like 2% of people who actually click these links. And don't forget to leave us a five star review and tell your friends about the show. All right, dude. I'm out of here. Still got it.
This week, Robbie and Adam sip Jephtha Creed six-year wheated bourbon and tackle OpenAI’s controversial pricing, AI agents as digital Tamagotchis, and whether frameworks still matter when LLMs write the code. They...
This week, Robbie and Adam sip on Courage & Conviction American Single Malt and dive into the AI arms race, deterministic models versus word vomit machines, and whether Jev is the future of intelligent software or just...
This week, Robbie and Adam sip on Oak and Eden Bourbon with Amburana Spiral and dive into building software that actually works, AI code reviews that roast your PRs, and whether engineering is dead or just hiding behind...
This week, Robbie and Adam sip on Chicken Cock Small Batch Kentucky Bourbon and dive into building mobile apps with Claude, CSS infinity, MySpace's comeback, and whether 2026 is just 2006 but way more expensive. They...
This week, Robbie and Adam catch up over Redemption Rye to talk token budgets, worktrees, and whether the harness era is already over. They dig into the abrupt shutdown of GitHub Copilot at work, Bob as the internal AI...