WEBVTT

0:00:00.000 --> 0:00:08.720
<v A>Hosting provided by HostTornado. They offer website hosting packages, dedicated servers, and VPS solutions. HostT.net.

0:00:15.480 --> 0:00:20.540
<v B>Programming Throwdown, Episode 36, Swift. Take it away, Jason.

0:00:21.000 --> 0:01:46.960
<v A>Hey, everybody. So, yeah, last week I was involved in this hackathon, which is, for people who don't know, it's basically, you know, you have some kind of a theme, and your goal is to rather quickly come up with some prototype, which demonstrates some cool, you know, some project that you've been working on. So, for example, there might be a hackathon on, say, HTML5, and you make some cool way to show videos in your website that's never been done before or something like that. It's pretty cool. It's a lot of fun. I've done a lot of these different hackathons and these 24-hour code challenges and design challenges and things like that. And Patrick, you've done a lot of rapid prototyping with Arduino and along those lines. And it's a lot of fun. Everyone who's, if you're from a hobbyist to a professional, you should definitely give it a shot. There's a ton of them on the Internet. Like, if you're into games, there's the Ludum Dare challenge. There's a ton. I'm sure whatever topic you're interested in has some kind of hacking contest. And it's cool. It's a chance for you to sort of showcase something to the rest of the world or at least to a community of like-minded people and get feedback and things like that.

0:01:48.857 --> 0:01:49.347
<v A>So you

0:01:49.347 --> 0:01:50.700
<v B>would recommend hacking at hackathons?

0:01:51.179 --> 0:01:59.740
<v A>Definitely hack at hackathons. Yeah, definitely. I think sleeping at hackathons, I wouldn't recommend that. That typically doesn't happen. That's what I would do.

0:02:00.620 --> 0:02:01.479
<v B>Yeah, that's what you do.

0:02:02.360 --> 0:02:07.774
<v A>Yeah, for people who don't know, Patrick has to get his eight hours. Otherwise, he turns into every Patrick. I don't know what you're

0:02:07.774 --> 0:02:08.139
<v B>talking about, eight.

0:02:08.859 --> 0:02:12.094
<v A>You get nine hours of sleep most nights. Oh, man. I'm a terrible person,

0:02:12.094 --> 0:02:14.760
<v B>dude. Terrible person. I need my beauty rest.

0:02:16.640 --> 0:02:17.258
<v A>Oh, man. So

0:02:17.258 --> 0:02:18.500
<v B>We got to... Oh, go ahead.

0:02:19.540 --> 0:03:53.859
<v A>But yeah, in general, you know, a couple of tips for these hackathons. Number one, go with a plan and focus on the plan. Like, start with the UI. It's a complete opposite of an actual project. Like, you want to think about it this way. Think about at any moment the hackathon could be over. Even though that's not true. There's usually 24 hours or something. But just treat every hour like it's your last hour. In the sense that, don't spend every hour killing yourself as if it's a deadline or anything. After one hour, you should have something that you can at least look at, even if it's just an empty screen. After two hours, you should have something and kind of work backwards. You'll notice, you'll find that a lot of your ideas that get thrown out are really ones that didn't matter. For example, in this hackathon, I wanted a settings page where people could sort of customize their experience. But I started backwards from the experience, and I never got to the settings page. If I had done that in the opposite order, I'd have nothing to demonstrate. I'd be like, 'Hey guys, here's my project. It's a settings page.' I would have totally bombed. So, it's really good. Rapid prototyping in general is a really good skill. And I say skill because it's not something you can learn. You have to just cultivate it. And I highly recommend it.

0:03:54.739 --> 0:04:42.265
<v B>Yeah, I think that's good advice to do it the opposite way you would normally do it. But I know a lot of people—well, I guess you should somewhat—that mindset is applicable to everyday life or everyday work. But I agree. I saw a lot of people whenever you do these kinds of things, or even in school when people work on projects. They would end up with some sort of what they would call a tech demo at the end. They would work a lot on some piece of infrastructure and then in the end they ended up with kind of nothing because it was just some sort of processing in the background and no kind of good visualization way. If you start kind of faking the data and make it look nice, and then kind of work back to actually make the processing, it's easier for people to imagine or believe that you can do the hard part in this scenario. Yeah.

0:04:42.265 --> 0:04:43.024
<v A>Exactly. So for

0:04:43.024 --> 0:04:59.240
<v B>prototyping, that's really useful. Like, is it worth investing in actually getting the algorithm to work right? Now, in real life you may actually—that is the key point, right?—and so you don't care about the other stuff. But for demos, it's much easier if you can say, 'Here's what it will look like when the algorithm works.'

0:05:00.200 --> 0:05:26.760
<v A>Exactly. That's exactly right. You have to sort of, as I said before, you have to plan beforehand. And that part you can do kind of bottom up. When I had planned it before the hackathon started, I kind of started with the settings page and kind of drew diagrams of how I wanted it to look. But then when I actually got to coding, when they started the clock or whatever, then it was—yeah, it was all about the UI. So, yeah, a lot of fun. You guys should definitely try it.

0:05:27.160 --> 0:06:50.260
<v B>So this week we have a question from Mike. And I'll summarize. He wrote a little bit more. But basically he's still in school and that he gets every time he asks for career advice, people say to get involved in open source projects or communities. And he was asking if we had any recommendations for that. Specifically, I actually don't have a great recommendation for an open source project to join. I also got this advice when I was in school and had the same thing. If you ask people what open source project is good to join or is open for contribution, you always get this: 'We'll first start by helping to document the project or looking at the bugs and trying to fix bugs.' But there's a lot of work you have to do to get to that point on any kind of mainstream open source project that you would know. I'm not saying you can't do it, and I know people vaguely who have done it before. But I think a lot of the open source project opportunities that you should be most interested in first are the smaller projects. Maybe it's just one guy who has some interesting tool, and you think of a new way that the tool could work. Because if it's just one guy, it's much more likely that you're able to kind of understand the codebase and make contributions more quickly. Which, in my opinion, when you're first starting out is a better feedback mechanism because you see your work actually leading to something versus just spending like six months trying to figure out where to put your code.

0:06:51.160 --> 0:06:52.560
<v A>You can actually make a contribution.

0:06:52.980 --> 0:07:40.960
<v B>Or even creating your own open source project for something that you've been using. And you say, 'Hey, this might be helpful to someone.' And posting it up and seeing what other people—now, you may get harsh criticisms or, the internet has some people who are jerks, and they may say mean things about it. But some people will have legitimate like, 'Hey, you may want to consider this,' or 'You have a security problem here,' or whatever. And then that feedback can be really helpful. And I think as far as when it comes time for a job, you'll have learned some stuff there. And you'll have something to point people to and say, 'Here's work I did.' But don't feel like you have to join OpenSSL and make contributions or the Linux kernel or one of these really big open source projects. Don't feel like when people say that those are what they mean. There's a whole range of things that you can do.

0:07:41.500 --> 0:08:07.887
<v A>Yeah, definitely. I mean, I feel like unless you're actually contributing to the Linux kernel because it's your job or something like that, a lot of those huge codebases are actually a nightmare. And it's nothing against them. It's just that these things grow organically and they don't grow in the most pristine way. Right? So, yeah, as Patrick said, your best bet is choosing something small and starting from there. Yeah.

0:08:07.960 --> 0:09:12.140
<v B>And there may be exceptions to rule. But it's the same thing. Whenever you start a new job or join a team, it's kind of weird because they went through a lot of effort to get you or hire you or bring you on. But then it's always like it's been my experience that many times when you first join a team, nobody has the time to help you. Everybody's too busy to help you. They need your help, but not right now because they don't have time to help you get started. So, nice people will point you in general direction, but you spend your first few weeks kind of twiddling your thumbs a lot because no one has the time right now to help you with something. And I think that's just kind of one of those facts of life of way things work out that open source projects are probably similar. The guys or girls contributing are spending their time doing their contributions, and then bringing on new people is probably like a second priority to them. So it's like, again, except maybe in some exceptions, they're probably more interested in spending their time actually doing the work. And so that's what makes it difficult to join if you're not just super self-motivated, which some people are. And I'm glad there are people like that in the world.

0:09:13.620 --> 0:10:02.040
<v A>Yeah, yeah, definitely. Yeah, that's really good advice. Start something small, preferably something you work on yourself. And GitHub has kind of reached this critical mass now where, I mean, I don't know about you, but I tend to search specifically in GitHub for projects. The other day I needed a Node.js LDAP library, and I just went straight to GitHub. And I found some guy's library that he wrote in his spare time. It was just a one-man operation. And he grabbed it. And I found there were some bugs in it. I filed bugs. I made some changes. So if you put your project on GitHub, write some decent documentation. And if it's something pretty niche or you're doing it better than everyone else, you'll generate interest.

0:10:03.700 --> 0:10:05.033
<v B>Definitely. All right. Time.

0:10:05.117 --> 0:10:14.618
<v A>for news. So, yeah, this is—I think this might be the first time on a show we've ever made a mistake. No. So—I'm pretty sure. Maybe.

0:10:14.618 --> 0:10:16.700
<v B>our first legitimate official retraction.

0:10:17.220 --> 0:10:42.630
<v A>But—well, no. I went and read all—I listened to all the old episodes. And it turns out we never made any mistakes until now. It's shocking. But, yeah. So, we announced last episode that Twitch was going to be bought by Google. We showed what Luddites we are when Twitch got bought by Amazon a few days ago. It turns

0:10:42.630 --> 0:10:59.740
<v B>out people were overstating their belief in the rumor that Twitch would be bought by Google. And we, like, the terrible people we are. Man, I'm saying that too much tonight. Like, the people we are, the innocent, not believing that the internet could ever have a lie on it. We just took it and said, 'Oh, that must be true.'

0:11:00.560 --> 0:11:23.316
<v A>And it was not. According to this Forbes article, you know, they were about to be bought by Google. But there were some issues related to antitrust and things like that. Actually, let me be more clear. There were issues about the potential of antitrust litigation that could happen but didn't actually happen. So, J.C. has no

0:11:23.316 --> 0:11:24.560
<v B>idea, and he's not a lawyer.

0:11:24.960 --> 0:11:25.712
<v A>And this part,

0:11:25.847 --> 0:11:27.200
<v B>is all still rumor.

0:11:27.620 --> 0:12:16.371
<v A>That's right. That's right. Well, it's on this Forbes article. But, yeah. But, yeah, you're right. It's not validated in any way. But, yeah. So, Amazon bought them, which I think is pretty cool. You know, I personally have never liked the YouTube kind of user experience. Like, in fact, if you want to see the current live streams on YouTube, you actually have to go to this crazy, like, YouTube slash and then this hexadecimal string. And that's the only way to get a list of the live streams. And so, I mean, I know that YouTube's not live streams aren't really their thing. But still, I just—I feel like the UI, I just never really been happy with YouTube from an experience standpoint. Right? And so, you know, it's kind of like. You

0:12:16.371 --> 0:12:21.540
<v B>mean specifically for live streaming. That's what you're talking about, though, right? Or, like, in general, you just don't like YouTube?

0:12:22.420 --> 0:12:42.207
<v A>I like the service. I don't feel like the UI, the user experience is there. That's my opinion. Okay. Anyway, I can go under a soapbox about that. But I'll spare everyone. But, and actually, you know, a lot of the internet, a lot of Reddit and things like that have echoed similar statements. Oh,

0:12:42.207 --> 0:12:45.200
<v B>So you read something on Reddit. I see now. I see where this is going.

0:12:45.380 --> 0:12:57.660
<v A>Yeah, I've been blinded by Reddit. No, but no, actually, it was kind of for me, it was a little bit of a, it was kind of a relief to see other people thought the way I did. Because sometimes I think I'm just, I'm just crazy.

0:12:57.960 --> 0:13:00.360
<v B>No, that's true. Well, yeah, that's also true.

0:13:00.520 --> 0:13:22.217
<v A>Anyway, so they got bought by Amazon, which is pretty cool. You know, my guess is that Amazon will leave them, you know, as is. Because Amazon tends to do that with a lot of their acquisitions. They don't really try to run their life or anything, which is pretty cool. Yeah, I think Twitch is pretty great. I've actually been listening to a lot of streams while I've been working. So last

0:13:22.217 --> 0:13:28.640
<v B>time we talked about the Dota 2, The International. Mhm. What have you been watching on Twitch since that's over now?

0:13:28.640 --> 0:13:29.035
<v A>So you obviously

0:13:29.035 --> 0:13:29.389
<v B>weren't watching that.

0:13:29.439 --> 0:13:33.557
<v A>So there's a guy who, you're not going to believe this. There's a guy who is

0:13:33.557 --> 0:13:34.240
<v B>this Fish Play Pokemon?

0:13:34.839 --> 0:13:39.565
<v A>I've seen that, which is pretty awesome. I've also seen Goldfish play Street Fighter. Oh, maybe that's what

0:13:39.565 --> 0:13:40.040
<v B>I'm thinking of.

0:13:40.260 --> 0:13:50.860
<v A>I don't know. There's both. There's both. But the one I saw is this guy. He's a chef, and he just kind of talks about food and stuff. And he also does these like speed eating challenges.

0:13:51.460 --> 0:13:57.860
<v B>So it has nothing to do with video games. So you watch live streams of non-video games. Not really, yeah. So I thought Twitch was like solely about video games.

0:13:58.500 --> 0:14:02.920
<v A>Well, it could be whatever you watch, right? I don't know. I mean, they can't really. I don't know. I've only ever

0:14:02.987 --> 0:14:03.760
<v B>watched video games on it.

0:14:04.040 --> 0:14:19.860
<v A>It is video game centric. There's no doubt. But there's nothing to stop you from doing whatever you want. Oh, okay. So this guy, actually, the last time I saw him, heard him, he ate a pizza, a medium-sized Domino's pizza, in a minute 16 seconds.

0:14:20.860 --> 0:14:21.819
<v B>This is gross.

0:14:22.280 --> 0:14:28.900
<v A>I know. It's unbelievable. And, yeah, you just got to see it. If you go on YouTube, you can watch a replay. Wait, wait, wait.

0:14:28.939 --> 0:14:36.480
<v B>I can go on. Oh, this is confusing. Interesting. I have to go on YouTube to watch a replay of a Twitch TV live stream?

0:14:37.760 --> 0:14:50.440
<v A>Yeah. Maybe you can watch it on Twitch. Okay. I mean, does Twitch have replay? Anyways. This is a digression. But you should watch it. It's pretty cool. Just put like Guy Eats Domino's Pizza in two minutes or something like that.

0:14:50.660 --> 0:14:52.580
<v B>Okay. Guy Eats Domino's.

0:14:52.580 --> 0:15:06.900
<v A>His name is Caleb Hart. So, here, I'll put it in parentheses in the show notes. Okay. But, yeah, it's pretty epic. It's a very large man, and he eats a pizza very quickly. Okay.

0:15:07.439 --> 0:17:03.640
<v B>Interesting. All right. I'll have to check that out later because I'm going to get distracted if I read that right now. So, my next news story is not a news story at all. Well, it's not really news. But it's a blog post that I read, and we were discussing this at work and sharing our anecdotal stories about it. And the blog, well, you'll have the link in the show notes. But basically, it's called Norris Numbers. That's the title of the blog post. It makes it always sound awesome. I wish I thought of cool names to title stuff like this, like the Norris number. So, this guy is writing about a friend who has a quote about a friend or something who is called Norris, Cliff Norris. And he says that the Norris number is the amount of code an untrained programmer can write before they hit a wall. And so, they were talking about, like, the estimates of it or whatever, like 1,500 lines of code, 2,000 lines of code. Now, there's a whole thing you can get on about if a line of code is a good measure or a bad measure or what it measures. But leaving all that aside, I feel like this is a good point that when you talk to people who are just fresh out of university or while you're in university or school, that you write code that's a very certain manner. And architecture seems to be really lacking in most of those projects because it's not what it's about. And you'll never write enough code that architecture will kind of really matter because you're not going to maintain it. You only are going to work on it for a few weeks. So, you can just kind of spit out code. And you, in some ways, are very efficient because you know you're going to stop. But that kind of doesn't work in the workplace. But yet, in the workplace, the coding initially kind of comes out the same way. And it takes kind of training and thinking and experience to be able to kind of write something more than these people are claiming about 2,000 lines of code. We'll go with that for now. So, once you get above 2,000 lines of code, for instance, you start having problems like if your organization of what code is in what files or what classes and how the data flows.

0:17:03.740 --> 0:18:37.720
<v B>Not a performance problem, but a like how do I move around the code? And if someone else might be working on it, right? Like how do we work on two things at the same time? So, you have to kind of learn those things before you can get to their saying the next wall, which this guy is saying is like 20,000 lines of code. And when you get to 20,000 lines of code, that you can still kind of have like a loosey-goosey approach if there's multiple people, for instance. But then if you want to make it to like 200,000 lines of code, you need even more very strict organization. You need like someone really writing the, for instance, like style guides because you need the code to be consistent, deciding what goes in and out of the project. So, like not adding features just because they might be nice to have, but actually only writing the features you need. And so, he's just kind of talking about these like leveling up as a programmer. And I thought it was an interesting read because personally, I don't read a lot of articles that talk about the craft of programming like that. And so, it was kind of interesting to read. And then thinking in my own kind of growth, how that like, oh yeah, initially you write spaghetti code and then you realize like that doesn't work. And then you do other stuff and how that like you, as you're leveling up the complexity and size of the project, how you have to bring new techniques to bear. And a lot of times you don't know them initially. Like you don't know how to write a 200,000 line of code project. And then you kind of learn it over time and figure out what works and doesn't work. But then you keep hitting these things that prevent you from growing even bigger.

0:18:38.944 --> 0:19:15.100
<v A>Yeah, this is really interesting. I think it's really interesting because you can kind of see the wall coming. Like, for example, there's one project I worked on where there was effectively like a main control loop file that was, you know, like 20,000 lines of code in one file. And you just know that the wall is like evident, you know. Like you just know that what they're doing isn't scalable. Even if you look at smaller projects, you could start to see something where it's like, okay, this isn't going to, this is going to end badly.

0:19:15.560 --> 0:19:52.980
<v B>Yeah. And in one measure is kind of velocity, right? Like, and even this is a little off topic from what this is talking about. But I've noticed in my own projects that, you know, when I work on at work, that you go through these cycles. Some people call it like technical debt. But if you can keep throwing more people and working harder and trying to add more features. But at some point, if you're not kind of thinking through re-architecting the system, you eventually get this organic growth problem where you start to lose a lot of velocity and trying to just keep things working. Right? And then you have to kind of do a re-architecting, and then you can go really fast again.

0:19:52.980 --> 0:20:35.919
<v A>Yeah, like a very common problem you see is, for example, there's some class and the class has a variable called, you know, latitude. And then you end up with another variable called previous latitude. And then somebody realizes, oh, no, I need three levels deep. So I need like previous, previous latitude. And then you find out, oh, I need an array of latitudes, like a history. So you create an array called like latitude history. But then you're in a hurry, so you don't delete the previous latitude. You keep it around. And then you can just see this and you just know that this is going to end badly. Or like you're going to need some kind of major refactoring at some point.

0:20:36.659 --> 0:21:11.100
<v B>Yeah. The current problem I work through is whether or not when you first start a project, how much time do you spend architecting? Because you could spend kind of an infinite amount of time stuck trying to figure out what to do without ever doing anything. And so you've got to get started at some point. So you kind of have to pick the lines, even if you know the requirements may change. So you kind of have to do your best and trade off getting going versus flexibility. Because you could write the most flexible system in the world, but it doesn't do anything. It's just really flexible. It can do anything, but it does nothing.

0:21:11.100 --> 0:21:58.380
<v A>Yeah, you have to make the trade-off between being data driven and building a Turing machine, right? Yeah. I mean like on one end, you want, for example, CSS, right? If you're building a website, you don't want to have all of your style in the HTML. And then every time you want to change, or in the JavaScript and every time you want to make a font bigger, you have to go and hack code. But on the flip side, you don't want to create some like wild thing that compiles to something which compiles to CSS so that you can just write everything. Then you've basically just kind of created your own language that you're going to have to code in. You haven't really gotten anywhere. And so somewhere in between there is kind of the sweet spot. Yep. Yep.

0:21:58.960 --> 0:21:59.720
<v B>All right. Cool.

0:22:00.480 --> 0:23:50.680
<v A>So, yeah, my next news is also not really a news, but it's a really, really good read for people who are interested in this kind of sampling methods. It's called Gibbs Sampling for the Uninitiated. And as the name suggests, or as the name actually just outright says, you don't have to be initiated on Bayesian methods or sampling methods to understand what's going on in this paper. But just to give you kind of like a little preamble. So, you know this, have you seen this where if you have, say, a circle inscribed in a square and you randomly throw darts at the square, you can estimate. Estimate. So, okay, one thing is let's say you have some circle inscribed in a square and you want to know the area of that circle or you want to know a random point on that circle. Let's start there. So, one way to do it is to just throw darts at the circle randomly or throw darts at the square because you can easily do that. You just pick a random X within the range of the square and pick a random Y and you throw a dart there. If the dart hits the circle, then you use that point. You say, here's my random point on the circle. If the dart misses and hits like the little corners around the circle on the outside of the circle, then you throw another dart and you don't count that dart. And so, it turns out, this is called rejection sampling. And so, it turns out like this is fine. Like, doing these darts and throwing some of the darts away is the same as from a math standpoint as picking a random spot from the circle.

0:23:51.980 --> 0:24:13.812
<v A>But it's a lot easier to do because, you know, it's easier to pick a random spot in a square and then throw some of them out than it is to figure out the equation for all the random spots that could be in a circle. Right? Okay. So, this is sort of like an easy way to do a hard thing. Right? And so, you can actually approximate. But you just have

0:24:13.812 --> 0:24:15.360
<v B>to know what's in the circle versus not.

0:24:16.240 --> 0:24:28.180
<v A>That's right because it's easier to know whether you're in the circle or not than it is to know the distribution of points in a circle. Like that second one is hard. Okay. Right?

0:24:30.960 --> 0:25:37.860
<v A>So, the, so, and you can do this to approximate pi. Right? You can like, you know that if you throw like a hundred darts that all hundred of them will end up in the square. But some fraction of those darts will end up in the circle. And then based on that, you know the area of the circle. Right? Is like a fraction of the area of the square. And then you can actually approximate pi. Like if you throw enough of these darts. So, this is an idea where like you use a bunch of random numbers. And you figure out, like in this case pi. You figure out the value of pi by what's called Monte Carlo sampling. You just try a bunch of random numbers. And slowly, slowly the number you're looking for gets closer and closer to pi. Right? But you can also use it for distributions. Like as I was saying, if you want to pick a random spot on the circle. You can use this rejection technique. And you can effectively sample from the circle. And so, like if you're doing computer vision kind of stuff. This is pretty useful.

0:25:39.440 --> 0:26:46.860
<v A>So, this is cool for say like circles. But if it gets really complex. And like in some high dimensional space. You're doing some machine learning. And you need to sample from some really complex shape. In a really high dimension. Then like these rejection sampling techniques break down. Because you end up just rejecting everything. Or rejecting you like 99.9999% and just nothing gets done. So, this is one way to deal with that. It's called Gibbs Sampling. And hopefully they do a much better job than I just did talking about this whole thing. It's pretty complicated to cover. But it starts you from the ground up. And it starts by talking about just like basic statistics. Like counting and things like that. And they work you through going from there to this Gibbs Sampling, which is kind of like the de facto way to solve this problem. So, I thought it was a really great read. And I thought for people who aren't familiar with this, and are interested, they should definitely give it a shot.

0:26:48.040 --> 0:26:54.280
<v B>I'll have to try. I skimmed it. But uninitiated doesn't mean ignorant. So, I need Gibbs sampling for the ignorant.

0:26:55.560 --> 0:26:58.200
<v A>You need the dummies for dummies. Yeah.

0:26:59.200 --> 0:28:19.377
<v B>So, I guess this could have been the tool of the show. But I didn't have time to try it out. So, I'll just make it a news item: Hyperlapse is a new app released from Instagram. And I saw something similar from Microsoft. And I don't understand the connection. I feel like it was also called Hyperlapse. But this Hyperlapse from Instagram allows you to record a video on your iPhone. I don't think it has Android yet, but iPhone. Like you walking down the street in New York City. And of course, as you walk, you kind of the camera moves up and down. It's not stabilized, right? So, what they do is make a kind of a time lapse where they fast-forward you through the video, but also kind of stabilize as you go. So, you've probably seen these effects in various movies or commercials or whatever. Or the other classic one is like you point at the clock in the center of Grand Central Station. There's some fancy clock, and you point at that. And you have all the people like whisking around you, right? So, you could set up a tripod and do this. Or, you know, if you could stabilize a video, you can just kind of hand-hold it for a while, and you get these really interesting effects. You know, Instagram is all about filters, I guess. Well, it's all about a lot of things. But, you know, people on Instagram like filters. So, this is using time as a filter. And it seems pretty interesting. So, I'm definitely going to be checking it out. But I think it just was announced or released like today—13 hours ago, it says. So, this is

0:28:19.377 --> 0:28:32.060
<v A>like fresh off the presses. Is this the same as the, like in Google Plus? They have the AutoAwesome where if you take a bunch of pictures that look like they're a sequence, it'll build a movie out of it. Is this the same thing or is this different?

0:28:32.560 --> 0:28:40.300
<v B>So, but that doesn't try to give a coherent viewpoint, for instance, right? Like it'll just stitch them together.

0:28:41.240 --> 0:28:41.460
<v A>Right.

0:28:41.460 --> 0:28:53.820
<v B>This one actually tries. It takes video and essentially tries to make a cool-looking fast forward of the video that's stabilized. So, if you just fast-forward normal video, it's kind of like blurry. But this stabilizes it. So, it actually like.

0:28:54.340 --> 0:28:59.580
<v A>Oh, now I see what you're saying. All right. Yeah. So, just watch the video. Yeah. Okay. Yeah. I'll check it out. It sounds cool.

0:29:00.300 --> 0:29:05.192
<v B>So, it definitely is. It's cool. It's just like a better fast forward basically. Okay.

0:29:06.998 --> 0:29:23.880
<v B>So, because you know, you have certain videos that are cool. Like you're, you know, on some beautiful drive through a cool town or on like a train or an airplane or something. And you're flying over stuff and it's cool. But if you have to watch it at real time, it's like very boring. No one wants to watch it.

0:29:23.880 --> 0:29:27.780
<v A>So, wait. What's wrong with watching it fast forward? Is it blurry?

0:29:27.960 --> 0:29:32.817
<v B>Well, it's not that it's, yeah, kind of blurry because you're bouncing around, right? Like the train is vibrating.

0:29:32.817 --> 0:29:35.618
<v A>Little. Oh, I see. And you know, you're kind of like moving left and right.

0:29:35.640 --> 0:29:45.760
<v B>So, they're trying to pick a point and kind of keep the perceived viewpoint as if you were stabilizing the camera, as if the camera is being held very stable at a certain point.

0:29:46.260 --> 0:29:49.260
<v A>I see. So, they're like basically registering the frames together.

0:29:49.880 --> 0:29:50.120
<v B>Yeah.

0:29:50.220 --> 0:29:52.763
<v A>And then like, okay, got it, got it. And there's some stuff about how

0:29:52.763 --> 0:29:54.720
<v B>They did it. We can read about it. Anyways. Yeah. I

0:29:54.720 --> 0:29:57.720
<v A>Need to jump on the Instagram thing. I totally missed that boat.

0:29:58.060 --> 0:29:59.960
<v B>I missed every social, every boat.

0:30:00.380 --> 0:30:07.800
<v A>Yeah. We were just talking about this before the show. We are not socialites. We're the anti-socialites when it comes to social networks.

0:30:08.180 --> 0:30:08.963
<v B>Okay. Book

0:30:08.963 --> 0:31:08.937
<v A>Of the show. My book of the show is Denial: Why Business Leaders Fail to Look Facts in the Face and What to Do About It. So, this is pretty interesting. It actually covers several different companies that have, you know, either completely failed or had to reinvent themselves. And it covers, it goes way back in time. It actually covers Henry Ford and the Model T. So, for people who don't know, you know, someone told Henry Ford, 'Hey, we should do the Model T in different colors because there are people who like, you know, the aesthetics.' You know, changing the aesthetics. And he said no. And then other car companies started making cars that were, you know, red or yellow or painted however you want. And people loved it. And he still said no. And then people stopped buying his cars. And that's how that sad story ended. It was

0:31:08.937 --> 0:31:09.899
<v B>A really sad story, actually.

0:31:10.560 --> 0:32:43.040
<v A>Yeah. And a lot of these are actually quite sad, but there's a lot to take away from them. I haven't read the book yet, but it was recommended to me by a friend, and I'm definitely going to give it a read. But it covers, you know, the tech industry. It covers various ones. There's actually, you know how they have the tamper-proof seals on like pretty much everything? Like, water has a tamper-proof seal now. But that all started because someone who is just a sociopath was poisoning bottles of Tylenol. They were actually taking capsules of, I think it was like cyanide that were white to look like Tylenol capsules and putting them in Tylenol bottles and killing people. And, of course, you know, people's natural reaction is to blame Tylenol and sue the Tylenol company. And, you know, after many months, they found out that it was this sociopath, and they caught him and everything. But this is all about sort of how they dealt with that. Because, you know, from their perspective, they just saw people using Tylenol and dying, right? And anyways, all of these, each chapter is a different company with a company, you know, breaking pandemic and how they dealt with that or didn't. And so, you know, I just thought it was just a phenomenally interesting idea, and I'll definitely be reading it this week.

0:32:45.120 --> 0:33:29.780
<v B>Mine is not nearly—well, maybe it's more interesting, less interesting. It doesn't seem as applicable, as useful to your life as Jason's nonfiction book. So previously I had recommended a book by Scott Lynch called The Lies of Locke Lamora. And this is actually a series. And so the next two books, Red Seas Under Red Skies and The Republic of Thieves, I've read both of them now. And so I will recommend them as well, basically recommending now at least the first three books. I really liked the first book a lot, and the second and third book didn't disappoint, I guess. You know, when you read a first book, sometimes like a whole new universe, right? So it's kind of hard to keep it up through many books.

0:33:30.380 --> 0:33:33.540
<v A>Right. Especially if they didn't think they would be writing a second book.

0:33:33.540 --> 0:33:50.447
<v B>So I think this person did, Scott did, and they did a good job. So it's not like world building as much. Like there's a lot of weird things in the world, and they've not really revealed much more, I guess. But, you know, the story advances, the characters advance.

0:33:51.460 --> 0:33:52.962
<v A>I kind of like actually

0:33:52.962 --> 0:34:23.826
<v B>the second book. I like the first book a lot, and I think I like the second book a lot too. The third book I'm kind of wishy-washy on. And I'm glad I read it because I wanted to find out what was happening to the people, but I didn't care for the style. The style is different actually in each of the three books. Like—instead of the same thing. Like, you know, you read some books. Like I'm trying to think of a good example. Some books and like the same things happen to the characters every time. Like the characters don't seem to be learning. And it's just like a good story, right? Because like

0:34:24.180 --> 0:34:25.024
<v A>it's like James Bond.

0:34:25.024 --> 0:34:46.900
<v B>like a James Bond book, right? Like James Bond doesn't really—much doesn't carry over. He doesn't really get better or smarter through each book. And sometimes the books are about like the characters getting smarter and more powerful as the books go on. And then in this one it seems almost as if they're just putting them in very different scenarios and almost a different style of writing for each of the books. And I kind of enjoyed that.

0:34:47.440 --> 0:34:49.179
<v A>Oh, cool. Yeah, I'll check that out.

0:34:49.560 --> 0:34:51.360
<v B>Time for tool of the show.

0:34:51.360 --> 0:34:59.220
<v A>All right, I'll try not to go into hyperbole here and I'll save a little bit of time. My tool is actually rather simple. It's next door.

0:35:00.400 --> 0:35:01.200
<v B>Wait, you left it next door?

0:35:02.100 --> 0:35:49.540
<v A>It's—yeah. So it's pretty cool. Basically you validate your address with them, and there's just a variety of ways you can do that. And then it's effectively yet another social network that I probably won't participate in. But this one's kind of cool. If you're having like a garage sale and you want to know if like your neighbors want to have a garage sale with you at the same time or something like that, you can basically—it's like—you can think of it as like a forum or a message board, but it's private to your neighborhood. And there's a separate message board that's private to like all the neighborhoods within five miles. But because you've validated your address, you typically don't have to worry about spam and things like that. At least I heard about this. Yeah, it seems pretty cool.

0:35:49.760 --> 0:35:59.080
<v B>And they were saying actually like a ton of people—like a lot of neighborhoods have been registered already on this. Like it was kind of crazy how much it's catching on, but no one seems to really be talking about it yet.

0:35:59.900 --> 0:36:32.400
<v A>Yeah, I mean I signed up. My neighborhood was definitely already on. There's a number of people from my neighborhood who are already on. And, you know, what I found is I was just browsing some of the content and I just didn't see a lot of content. I mean there's maybe one message every three months. And most of the time it's just complaining. It's not really useful. So that was kind of sad actually. But, you know, we'll have to see what develops. I mean, you know, this could—I see great potential. It's just a matter of whether people realize that potential or not.

0:36:32.717 --> 0:37:32.050
<v B>Interesting. All right. My tool of the show is Waze GPS navigation app, and as if we needed another. But this one is—it has some features I like. So it also has some sort of social networking points earning thing that I don't use. But the idea is that some people do, and it makes the network better because what it tries to do is use—I feel like we had to have talked about this before, but I looked it up, and I haven't seen it. And it didn't come up that we had talked about this before. So if I did, I apologize. But if not, this is awesome: Waze. People enter like there's a policeman ahead or, you know, there's a traffic camera here or, you know, traffic got—there's a traffic accident, you know, on the right side of the road up ahead. And people enter these things. And so if you keep the app up while you're driving, you'll get alerts coming through. And it will ask you to even like validate, like do you see an accident up ahead, right? So they know when it clears and stuff.

0:37:32.050 --> 0:37:32.708
<v A>and gives warnings.

0:37:33.400 --> 0:38:30.200
<v B>But the thing for me, it seems more—like every GPS app now says that they do kind of real-time traffic. But this one seems to do a better job of it because they seem to be more quick about feeding back in like actual user reports and stuff. And it will even show you on the map like all the people driving around who have the app open. So living in the San Francisco Bay Area, there's like—I forget—like each morning it tells me there's like 2,000 people using it. Wow, which is not a ton. But like in a commute, there's already like 2,000 people on the road. And if you kind of spread them out, this is not that big of an area. So that's a lot of data points that they get in real time. Yeah, that's great. And they're feeding it back in and it works really well. Well, they're now actually owned by Google, so I guess they'll be integrating something with the Google stuff soon. Cool. But I like this app, and I use it every morning to check which—I have several potential ways I can go to work. And I always look on this and see which way I should go.

0:38:32.140 --> 0:38:44.840
<v B>But yeah, like all GPS apps, there's slight problems where like if I leave now and my commute's a little longer. So by the time I'm halfway through, right, it's like 20, 30 minutes later. So traffic has changed a lot.

0:38:44.840 --> 0:38:50.029
<v A>Oh, yeah, yeah. All of a sudden, there's an accident in front of you. You can't really do anything about that. But they know.

0:38:50.320 --> 0:38:54.140
<v B>Like every day, there's at least one accident. So I feel like they should—anyways.

0:38:55.320 --> 0:39:01.420
<v A>Yeah, that's right. They should just predict. Like, Patrick, what are you thinking? Come on. You know that I'm going to give you an accident.

0:39:02.120 --> 0:39:03.820
<v B>So, yeah. Anyways. All right.

0:39:04.360 --> 0:39:06.465
<v A>All right. Time for a discussion of Swift. Swift.

0:39:08.120 --> 0:39:39.720
<v A>So Swift is a new language that was introduced by Apple, I guess a month or two ago. But it's been in development for a few years now. And basically, the point about Swift is to replace Objective-C. So, you know, Objective-C was popularized, you know, as being the only language that you could use to make iPhone apps.

0:39:41.640 --> 0:40:47.294
<v A>And it's also used to make, you know, OSX apps and things like that. And Objective-C is an open source—has an open source compiler. So you could really use it to make anything in theory. And so Swift is meant to sort of come in and replace Objective-C and just kind of make developing for any of those devices a little bit easier. So it has a variety of features, many of which, you know, we've talked about on other episodes. But we'll cover them briefly. So it has static typing with type inference. So if you listen to our Haskell episode, you know all about that. But basically, you know, it has the static typing. So, you can't try to, you know, set an int equal to a string or anything like that. But most of the time, you don't have to put the type either, which is what makes a dynamic type language as popular, right? You can just say i equals 3, and it knows that i should be an integer. But it has

0:40:47.294 --> 0:40:53.000
<v B>to be an integer from then on. Well, from then on. That's right. Every reference of i needs to be an integer.

0:40:54.279 --> 0:41:03.561
<v A>That's right. That's right. But, you know, I feel like that's true. I feel like with dynamic languages, you should be doing that anyway. I mean, that's like a personal. Yeah. That's a pet peeve. There seems

0:41:03.561 --> 0:41:21.900
<v B>to be there should be some reason. There's probably some clever thing you can do where i can be equal to literally anything. Kind of the null pointer hack. But also null pointers are dangerous. Or void pointers. Sorry, not null pointers, but void pointers. Right. It's kind of the same thing. A void pointer can be literally anything you want. So.

0:41:22.160 --> 0:41:24.799
<v A>But, yeah, it's just a bad idea. It's just drama. Yeah.

0:41:26.759 --> 0:42:21.979
<v A>So it also has generics, which is huge. I mean, Objective-C still had, like, just array. And then if you wanted, like, an object out of the array, you had to say, like, you know, get me the item at index one and then cast it to whatever. And, you know, theoretically, you could have an array where the first thing's a string, the second thing's a number, the third thing is something else. And that's a terrible idea. Don't ever write code like that. I mean, if you really need, like, for example, think about, like, say, JSON. In JSON, you know, an array could hold, you know, numbers and other arrays and maps in it. Right. So, like, create a class that has those three things and make one of them non-null. Right. Like, don't try and rely on the compiler and the runtime, you know, casting to solve that problem for you, you know. So

0:42:22.080 --> 0:42:29.560
<v B>generic is like pair. So you say, like, I want a pair, but I want both things in the pair to be of the same type, but I don't know which type they will be.

0:42:30.420 --> 0:42:59.104
<v A>Yeah, exactly. So with generics, you know, that's when you're writing the pair class. But as someone who's using the pair class, you could say, like, this is a pair of an Int and a Double. Or this is an array of Strings. Versus Objective-C where everything was just a pair and array and you used casting to talk about what you meant. It has string templating, which is pretty awesome. It's something that a lot of people take advantage of. So you mean built-in support for this, or is

0:42:59.104 --> 0:43:00.336
<v B>this a library that they have?

0:43:00.420 --> 0:43:35.460
<v A>A built-in support, yeah. So for Java, for example, you have to use the string template third-party library to get this. But in general, this is pretty awesome. I mean, basically, you know, you could imagine, like, having a string and then saying, like, embedded in the string could be, say, like, percent name percent. And then wherever you see percent name percent, it changes it to some variable. So that's basically what templating is. And it's a way to sort of write code that's, you know, very data-driven.

0:43:36.000 --> 0:43:43.940
<v B>So the way this works is, like, if I have a string that says, hello, percent name. I don't know. Is that the syntax? Hello.

0:43:43.940 --> 0:43:49.760
<v A>The syntax is actually like slash open parentheses and slash close parentheses. But yeah.

0:43:49.940 --> 0:44:09.740
<v B>So if you have hello and then the special thing indicating name, and name is currently set to Jason, and then I say print that string, it'll say 'hello, Jason.' And then if I say the string is now equal to Patrick, and I print the string again—oh, sorry. The name is now equal to Patrick, and I print the string again, and it'll say 'hello, Patrick.'

0:44:10.480 --> 0:44:51.846
<v A>Exactly. Okay. Exactly. All right. Yeah. So string tumbling is very useful. It has closures and has functions as first-class citizens. So I think we talked about these in the Haskell episode. So one thing you'll notice already is that Swift borrows a lot from functional programming, and so it's actually very similar to Java 8 when that comes out. So you'll notice a lot of similarities there. It also has operator overloading, which is pretty cool, especially if you're doing math stuff. You know, like, I don't know if you've had to deal with this, Patrick, but, like, in these, like, have you ever used the Java matrix libraries? You know, I have.

0:44:51.846 --> 0:45:40.244
<v B>Mixed minds about operator overloading. Sometimes it's convenient, but sometimes it's not because if, you know, we have—I'm not a high-level algebra person, but, like, you know, I kind of have a feeling for how a plus should work. And so if you have something and define the operator as plus and the plus doesn't work kind of how I've conceptualized it to work, it's kind of bad because I tend to just use the plus without going and looking up the comments you wrote about how plus works. Versus if you wrote a function that I had to call and I needed to go look up the name, I'm probably also likely to read the comments about any sort of warnings or, you know, the exact usage of it. So for me, operator overloading is kind of scary because I've had instances where I used an operator that I thought should work in a

0:45:41.880 --> 0:45:43.380
<v B>certain way and it just doesn't.

0:45:44.920 --> 0:45:46.639
<v A>Yeah, that makes sense. I'm trying to think of

0:45:46.639 --> 0:45:49.840
<v B>a good example off the top of my head, but it's escaping me right now.

0:45:50.560 --> 0:46:03.580
<v A>Yeah, I mean, well, one of them—the one I've seen is, you know, when you have two vectors and you do multiply. Yeah, yeah, that's a good example. Sometimes you get the dot product or sometimes you get a vector where it's component-wise multiplication.

0:46:04.400 --> 0:46:04.720
<v B>Yeah.

0:46:04.880 --> 0:46:06.920
<v A>And it's like you kind of really know what you're going to get.

0:46:09.020 --> 0:46:29.140
<v A>I do see that as a problem. I think, you know, I've been not burned, but I've been frustrated with doing matrix operations in Java. You end up with this mess where it's like a dot add parentheses b, like, dot multiply. You know what I mean? It just kind of—it looks so hideous.

0:46:29.260 --> 0:46:43.580
<v B>Yeah, and I think Haskell had a good way of dealing with that where, like, you can write any function as infix. So, like you're saying, like, a dot add open paren b, right? You can just write a add b.

0:46:44.220 --> 0:46:45.240
<v A>Oh, yeah, that's right.

0:46:45.340 --> 0:46:49.720
<v B>So, you can do — or you can say add a B.

0:46:51.780 --> 0:46:51.980
<v B>Yeah.

0:46:52.040 --> 0:46:52.705
<v A>Yeah, right. So,

0:46:52.705 --> 0:47:08.460
<v B>You can do them — yeah. So, you can get what you're talking about. Like, I think that's kind of, like, well — I mean, maybe it's not as easy to do in something like Swift or whatever. But I think that's actually a really nice feature of Haskell that you can do it that way. So, you can actually write out the thing but use it in the middle if you want.

0:47:09.640 --> 0:47:52.200
<v A>Yeah, that makes sense. Yeah, I think that, like — I think both of these are good. I think the Haskell idea is probably — I agree it's probably better because you could have a name that's pretty descriptive, like a multi-piecewise or something instead of using a multiplication sign. But, yeah, either way, I think both of them are better than the Java 7 way. I think Java 8 has operator overloading at any rate. So, those are basically the big features. You'll notice, like, Swift, by itself, it doesn't really do anything brand new. But it takes a lot of ideas from different languages and kind of brings them together, which is pretty cool.

0:47:54.000 --> 0:49:12.860
<v A>It's using LLVM. So, I think we've talked about LLVM in the past. I'm sure we have. But go ahead and do it again. It stands for Low-Level Virtual Machine. So, for example, like, say, Java. You write Java code. And then the Java code gets compiled to what's called Java bytecode. And then there's a JVM, which executes that bytecode, right? So, LLVM and also another one called CLI, which is Microsoft's kind of version of LLVM. And it's for C# and VB.NET and those things. So, both of these guys kind of take it to the next level. So, they have an LLVM interpreter, just like Java has the JVM. They have the LLVM. And you can compile your code to bytecode and run it, just like you can in Java. But you can also go from LLVM bytecode to machine code. So, that's the thing that Java does not have. Now, you know, if you go to machine code, there's no going back, right? I mean, like, now you've built something that only works on, you know, an iPhone or something like that.

0:49:14.400 --> 0:49:26.672
<v A>But that extra step allows you to do sort of a lot of cool optimizations while at the same time having the advantage of the VM when you need it. It also has

0:49:26.672 --> 0:50:22.299
<v B>the advantage that for optimization you can do work on, if you're a person interested in taking something from the LLVM bytecode to the machine code and coming up with clever ways of recognizing patterns of operations in the LLVM bytecode, then, and producing machine code that's optimal for whatever, like Pentium 3s. I don't know. Nobody uses those anymore. But Pentium 3s, like, that just for some reason has this one instruction that you love and you figure out a way to generate bytecode to that. Then anyone who has any language in the front end compiles into LLVM bytecode can take advantage of that optimization for Pentium 3s. So, whether it's coming from Swift or Objective-C or Regular C, if it's in that intermediate format of LLVM bytecode, you kind of don't care where it came from because you can recognize patterns there and produce the optimal machine code.

0:50:22.300 --> 0:50:44.360
<v A>That's right. So, both Objective-C and Swift go to this LLVM bytecode, and then from there, they're both treated the same way. So, all the work that's gone into, you know, going from LLVM to machine code for Objective-C doesn't have to be duplicated for Swift.

0:50:46.170 --> 0:50:59.520
<v A>Yay for standards. Yeah, that's right. Well, isn't that weird? It's kind of like a standard by example, you know? It's not really a standard, but it's like, it's a reference. Well, so, I mean, the alternative,

0:51:00.060 --> 0:51:58.600
<v B>and this starts to get a little outside of where I have a lot of knowledge about, but the alternative, if you take kind of the GCC project, they also use a kind of, it is, and they don't call it bytecode, but they have an intermediate language. So, their front end is compiled to this intermediate language, but they kind of only ever meant for it to be used by their project. And so, it has all sorts of nuances and complexities, and it's very difficult to work with. But it's very, very optimized. Like, you get really good code out of GCC a lot of times. Right. But this LLVM was kind of from the ground up, always intended to be used in this way by many, many different front ends and for producing optimal against different back ends. So, they kind of designed it that way. So, they made certain choices that kept it easy to use. Yeah, exactly. So, yeah, it's not really a standards. Like, I don't think there's a standards body that does it, but, like, they made it and said, hey, this would probably, other people might want to use this as well.

0:51:59.920 --> 0:52:08.925
<v A>Yeah, yeah, definitely. Yeah, I think it's interesting. Like, yeah, it's sort of like a standard just by being a reference. Yeah, I guess, like you said, you had a

0:52:08.925 --> 0:52:17.620
<v B>Good way of saying it: standards by example. It's not really a standard. They just made it open source, and because they did a good job, it's become a de facto standard. There we go.

0:52:18.600 --> 0:52:19.920
<v A>Yeah, yeah, that makes sense.

0:52:21.819 --> 0:52:36.859
<v A>So, yeah, it's optimized for mobile, clearly. It has very good integration with Objective-C, as you might expect, because they're both, you know, compiled down to the same thing. So, basically, have you ever used Swig, Patrick?

0:52:36.860 --> 0:52:41.420
<v B>Uh, no. I'm going to go with no. I think I have, but just go with no.

0:52:42.240 --> 0:53:48.623
<v A>Okay, just go with no. So, yeah, Swig is this thing that kind of inspects your code and it generates stubs in another language. In other words, let's say you have a bunch of C++ code, use Swig, and you can create, like, Java files, like Java source code, where when you call one of the Java functions, it knows to go and call the C++ function. So, this works kind of similar. There's an idea called a bridging header, and you just tell Xcode in the project what Objective-C files you need to access from Swift, and vice versa. Java, and then it, for each of those files, generates a bunch of wrapper code under the hood. It's pretty cool. It just kind of—it's one of these things that just kind of just works. So, the functions in Objective-C, you can just call them from Swift, and vice versa. So, I hope it works better than

0:53:49.028 --> 0:54:00.359
<v B>swinging C++ code into Java, or calling into C++ from Java, which we do, I have done before, but yeah, it was always kind of messy, and it never works quite like you want it to.

0:54:00.359 --> 0:54:05.740
<v A>Yeah, I think the issue with C++ to Java is they have different VMs.

0:54:05.740 --> 0:54:12.029
<v B>Well, that was always a problem. Like, well, kind of different binaries, right? Is one way of kind of saying it, to hand wave a little. So,

0:54:12.100 --> 0:54:12.700
<v A>You have, like,

0:54:12.760 --> 0:54:23.160
<v B>the C++ needs to be compiled in one way, the Java in another, but then the Java needs to know how to call into the compiled C++, and then how to interpret kind of the results that come back.

0:54:24.080 --> 0:54:25.444
<v A>Because they use a different

0:54:25.444 --> 0:54:26.060
<v B>standard for it.

0:54:26.660 --> 0:54:55.448
<v A>C++ is like, is not a VM, and Java is the JVM, and so there's not really, like, a meeting point there, you know. I would imagine that if you built C++ code with Clang, and you, and if Clang had a Java compiler, I don't know if that's true or not, or rather, if LLVM had a Java compiler, then maybe you could do something more sophisticated, because then, like, those two languages are meeting at the LLVM level. So, like,

0:54:55.520 --> 0:55:00.799
<v B>I know there's a Python can call into C++ code; it's much cleaner. Um,

0:55:01.240 --> 0:55:03.683
<v A>like the way there's the Boost Python, I've seen that. Yeah.

0:55:03.919 --> 0:55:23.342
<v B>well, and otherwise, yeah, yeah, but they kind of built it in for it. Yeah, there's like ways to do. Like, the C++ optimization is just really fast, and so you just want to have a Python scripting of calling this, and it works pretty cleanly. Oh, okay. But there again, like, that, yeah. So, it can be done good or bad, but

0:55:23.342 --> 0:55:24.794
<v A>you're saying that Swift?

0:55:24.794 --> 0:55:25.720
<v B>Objective-C is done pretty well.

0:55:26.020 --> 0:55:42.023
<v A>This one was done really well. Like, I took an Objective-C library and added it to some Swift code, and it just worked. I was actually rather surprised, but I think the reason why it works so well is because of this, this LLVM middle, and that's important for

0:55:42.023 --> 0:55:49.178
<v B>a new language because initially there won't be a lot of Swift libraries, right? So, like, it will be good that you can use the Objective-C libraries. Yeah.

0:55:50.000 --> 0:56:09.900
<v A>I mean, you basically get yeah, all of the Objective-C libraries; you kind of just get for free, which is pretty cool. Um, cool. So, yeah, there's a, there's a blog about Swift, there's a Reddit subreddit on Swift, and check it out. It's pretty cool. Um, I made a couple of,

0:56:09.900 --> 0:56:11.900
<v B>it's still, it's still time to get on the ground floor.

0:56:12.640 --> 0:56:31.660
<v A>That's right. That's right. I mean, if you make even something which you might think is mundane, like a, you know, I don't know, a calendar app or some library to help you, you know, talk to Facebook or something, I don't know, and you use Swift, it could actually end up being really, really, really popular because there's not many out there.

0:56:32.380 --> 0:56:40.259
<v B>Or you could, like, fall into some sort of, you know, it could bomb, right? Like, we don't know. You like it though, so Jason sounds

0:56:40.259 --> 0:57:12.034
<v A>Like he gives it a thumbs up. I think it's pretty solid. I do one thing: they're on the fence about—I'm not crazy about—the fact that this isn't an obvious decision, but they're still trying to figure out what to do with the compiler, like whether to open source it or not. If you read blogs from the developers, they literally say we don't know whether we're gonna open source it yet. And that always makes me uneasy because if you don't open source it, it really can't gain traction. Well, it could, but it's

0:57:12.034 --> 0:57:32.080
<v B>Very dependent on, in this case, Apple, right? Like what Apple, if Apple decides for internal reasons to cancel it, it may have been a good community may have wanted it, right? But like Apple decides not to do it. They could open source it at that point, but you know, it's always better to kind of open source it early and have input and everybody on board from the start.

0:57:32.080 --> 0:57:38.207
<v A>Like what a disaster C# was. Like C# is actually still surprisingly popular, but,

0:57:38.299 --> 0:57:39.051
<v B>Like a lot of

0:57:39.051 --> 0:58:02.480
<v A>People write C# code. They had Mono, which was like the open source that's basically reverse engineered all of C#. And then for a long time, Mono didn't work 100% the way C# did, like the Microsoft compiler did. So, just, the whole thing was kind of a nightmare. By the time it stabilized, I completely lost interest. But you know, let's hope that doesn't happen here.

0:58:05.040 --> 0:58:22.340
<v B>All right. Well, thanks for all the letters, emails, and postings. We see them occasionally on the—although we just talked about how anti-social we are—but we do see postings on Google Plus, Facebook, and Twitter, and the emails. And we do appreciate their community involvement.

0:58:23.140 --> 0:58:36.600
<v A>Yeah, definitely, definitely. We definitely know we've been making a habit of talking about an email or a Google Plus or Facebook post in the beginning of the show. And that's because we've been getting so much good content from you guys and so many good questions.

0:58:36.645 --> 0:58:38.860
<v B>Although we'll probably offend a bunch of people because we don't talk about theirs.

0:58:40.220 --> 0:58:44.340
<v A>If we offended you, send us another email. You can get all the

0:58:44.340 --> 0:58:45.471
<v B>money you paid for this back.

0:58:46.360 --> 0:58:48.640
<v A>Yeah, that's right. Oh man.

0:58:49.200 --> 0:58:51.360
<v B>But I can't give you back the hour of your life.

0:58:52.259 --> 0:58:57.800
<v A>No, that part you can't get back. So, but you can't give us back the bandwidth either. So it's, we're even.

0:58:58.820 --> 0:59:01.279
<v B>Okay. This is Devo. All right. Until next time.

0:59:01.779 --> 0:59:02.840
<v A>All right, guys. Catch you later.

0:59:28.540 --> 0:59:29.540
<v A>Bye.

0:59:58.540 --> 0:59:59.540
<v A>Bye.

1:00:28.540 --> 1:00:29.540
<v A>Bye.

1:00:58.540 --> 1:00:59.540
<v A>Bye.

1:01:28.540 --> 1:01:29.540
<v A>Bye.

1:01:58.540 --> 1:02:32.000
<v A>Bye. Bye. The intro music is Axo by Binar Pilot. Programming Throwdown is distributed under a Creative Commons Attribution Sharealike 2.0 license. You're free to share, copy, distribute, transmit the work, to remix, adapt the work, but you must provide attribution to Patrick and I and share alike in kind.

