text stringlengths 0 2.35k |
|---|
**Toby Padilla:** Yeah, yeah. Pi-hole has an option, so it's running its own local DNS server... And you can add your hosts manually to Pi-hole. |
**Adam Stacoviak:** I've done that already, but what I mean by that is whenever I go to my ssh config file, each host has to be in there for each machine, so that it knows what my hostname is, what my username is for that machine, that kind of thing. |
**Toby Padilla:** Right. |
**Adam Stacoviak:** That thing is tedious. |
**Jerod Santo:** No, if you SSH to a domain -- like, when you SSH to git.charm.sh, there's a DNS lookup that happens. So those machines would just -- |
**Toby Padilla:** But I think he means editing the SSH config. You've gotta shove all of those. You make a new host - great. You've added its Pi-hole, you've added to your DNS; you can get to it. But you have to know its name. |
**Adam Stacoviak:** Right. |
**Toby Padilla:** If you can put it in the SSH config, that starts looking nice. |
**Jerod Santo:** He's writing it into his configs; so he knows the names. Okay, I see what you're saying, but it's -- |
**Adam Stacoviak:** Right. So each computer has that SSH hosts file, that config file, so each computer needs to know, so I can SSH and autocomplete to iMac Pro, or 2 Mac Pro or to whatever the different machines are out there. Each machine -- the DNS is done by Pi-hole, but what isn't done is each machine knowing all ... |
**Toby Padilla:** I will say this is an area that we're exploring heavily. So check out Wishlist for now; that'll get you a nice TUI of browsing through your SSH config. But you can imagine that evolving for server discovery. |
**Adam Stacoviak:** I love it, because it's gonna look at that file, see all the hosts I have defined in there, and give me a list of the things it can navigate as a result. |
**Toby Padilla:** That is exactly what it does. And you can also run it as a server. So it could be a bit of a bastion host that you can configure, and have it be a jumping off point to a bunch of hosts on that subnet, or whatever. |
**Adam Stacoviak:** I'm listening, Toby, I'm listening. Keep going. |
**Jerod Santo:** \[laughs\] |
**Adam Stacoviak:** Tell me more. |
**Jerod Santo:** Well, let's drill down into Bubbles and Bubble Tea, because you mentioned this is like your React's Elm architecture, declarative, easier, a modern way of building these things... And Bubbles are the components, and Bubble Tea is the framework. Now, this is a Go thing. So does this lock you into Go, is... |
**Toby Padilla:** Yes. And all of our frameworks, all of our libraries and all of our apps are Go. And we actually had a lot of questions; I just got a question about it yesterday, "Do you have a Python SDK?" And the answer is no, we don't. I mean, we're a small team, so we have limited resources... But we think Go is ... |
We like lots of languages, and we come from backgrounds where we -- I was a Clojure developer for six years. I was doing Rust actually for two years before I moved to Go... And Muesli - I follow him on GitHub, and I got jealous of all the cool libraries that he was starting all the time. I'm like, "I want that." Becaus... |
\[52:19\] And so some of us enthusiastically, some of us begrudgingly, have moved to Go over the years, just because it is kind of the answer to building these type of tools. So when people ask us, "Hey, can I do a Node.js version of your stuff?", our answer is "No. Use Go, but come into our Slack and we'll help you." ... |
**Adam Stacoviak:** Are y'all in the main Gopher Slack, by any chance? |
**Toby Padilla:** I'm not a huge chatty person, so I'm not in a lot of Slacks, but I'm sure that Muesli and Carlos are. |
**Adam Stacoviak:** I was gonna say, it might make sense to have a channel just for Charm, that could be a welcome -- sort of a tie even, where maybe that channel could be shared between your Slack and that Slack... That way you can absorb some of the help at large, in the main Gopher Slack. |
**Toby Padilla:** We'll take some of the workload; we'll happily take that, yeah. |
**Adam Stacoviak:** That'd be a good onboarding practice or a good growth strategy. |
**Toby Padilla:** I like that. That's really good. |
**Jerod Santo:** So one of the things I've been musing on is some sort of a Changelog command line tool... And I actually was considering Go as the language of choice for that, because I really like the way GitHub developed their command line tool, which originally was written in Ruby and they rewrote in Go... And I th... |
**Toby Padilla:** So the readme is a good place to start, and it kind of walks you through a sort of semi-tutorial of how to do things. It's highly based, like we've said, on Elm. There's some concepts that will help you, like immutability, and you can hack this in Go. You can either do it the Go way, or you can do it ... |
And then there's a concept of commands. And commands are -- if you're doing something that's blocking, or a long-running process, you do a command, and when it returns, it calls update with the result, the model that's the result. And that's it. That's all Bubble Tea is, is those three concepts. |
So you learn about the view, you learn about update, and you learn about commands, and then you can start building Bubble Tea apps. And then you can learn about the Bubbles. So if you go into the Bubbles repo, you'll see spinners, progress bars, input forms, viewports, pagers, that kind of thing. So you can just start ... |
**Jerod Santo:** So what's missing from the Bubbles, if we're getting into the components? Or is there anything glaring, where you're gonna end up writing your own components because there's big gaps in the library? |
**Toby Padilla:** \[56:12\] I think you'll be pretty good with just a basic TUI. I tend to like to invent crazy things, so when I'm making Bubble Tea apps, I rarely start with a Bubble. I just start banging away and making my own stuff, and then often it'll get replaced by a Bubble when somebody else takes over the pro... |
**Jerod Santo:** So the string that returns - is this including all of the layout information, or is this string like a whole block of ASCII that comes back, or what is it usually comprised of that creates the UI? |
**Toby Padilla:** That's a great question, and that's actually what Lip Gloss does. Lip Gloss is our styling and layout library. Lip Gloss. |
**Jerod Santo:** So many libraries... |
**Toby Padilla:** I know, we've got a million of them. So Lip Gloss will do the coloring, and it'll do the layout of all of your stuff. So when you do your view, you'll use a bunch of Lip Gloss inside of the view... And it returns a string. So Lip Gloss always spits out a string. So as it renders, it has essentially wh... |
**Jerod Santo:** Okay. So I'm looking at Lip Gloss code right now... It very much almost looks like -- is this Go? |
**Toby Padilla:** It is Go. It's almost like a DSL that was written in Go. |
**Jerod Santo:** Yeah, because it doesn't feel like Go code that I would normally read, except for the fmt.println. |
**Adam Stacoviak:** Fumt. |
**Jerod Santo:** Fumt, yes, I know... But I always say "format", I don't know why. Okay, so you've got Lip Gloss for the way it looks and feels, and you've got Bubbles for pre-built stuff, and then Bubble Tea is like what everything plugs into. |
**Toby Padilla:** Then toss it behind Wish, so that it's remotely accessible with SSH... Yup. |
**Jerod Santo:** What about local storage? I mean, these are things that you would just do maybe BoltDB, or something; you'd just use whatever is available in Go, if you're not trying to do -- |
**Toby Padilla:** Well, for persistence we offer Charm. So Charm is a lot of things... It was already a lot to take in. Charm itself is a whole ecosystem. It's charmbracelet/charm on GitHub, and you'll see it's a bunch of things. It's a tool that you use, it's a client, it's a server, and it's a set of libraries. So Ch... |
So if you need a key-value store that's accessible across multiple machines, use Charm KV. If you need to access files or store files in the cloud, encrypted, use Charm FS. And CharmCrypt is there if you want just some straight up encryption library, using those intermediary symmetric keys I talked about earlier. And i... |
**Break:** \[59:58\] |
**Adam Stacoviak:** So the one thing when you ssh.git.charm.sh, when you git in there - for me at least in Terminal, and maybe this has been talked about and I just missed it, but I don't think so, it's not interactive. And I would imagine the -- I hope at least, Jerod, the plan for this future SSH app for Changelog wo... |
**Toby Padilla:** It should be interactive. So if it's not, that's definitely a bug. |
**Adam Stacoviak:** Okay. So it's not interactive -- |
**Jerod Santo:** What do you mean by interactive? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.