WEBVTT

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

0:00:16.140 --> 0:00:20.820
<v A>Programming Throwdown, Episode 39: Rust. Take it away, Patrick.

0:00:21.479 --> 0:00:27.537
<v B>Email. It's such an integral portion of our lives. It is. But what is it? Where does it come from? What?

0:00:29.123 --> 0:01:14.567
<v B>Does it taste like? What does it taste like? It's delicious. So Jason and I were talking about how email has become increasingly a portion of our business lives. I guess personal lives as well. But that a large portion of our day is spent using email. And we were talking about our experiences with Google's new inbox and trying to change how email is done, and sharing our opinions about email. For me, I find that I have a horrible organizational scheme for email. And I have tried all sorts of Inbox Zero, whatever approaches. And it turns out I just end up using my email as some sort of weird to-do. And I like seeing things—whether they're unread, read, out, in, labeled. All of these are various levels of to-do for me. But

0:01:14.567 --> 0:01:24.338
<v A>Inboxes are nice. I like it. I'm a zero inbox kind of person. Are you that way? If I have an unread email, it just makes me tick a little bit. No? No.

0:01:24.880 --> 0:01:32.978
<v B>I have lots of unread emails. In fact, my lead came by one day and saw my inbox and was like, 'You have how many unread emails?' So are we talking like

0:01:32.978 --> 0:01:35.020
<v A>hundreds of thousands? It's okay. Yeah. Oh,

0:01:35.020 --> 0:01:37.380
<v B>Wow. No, not hundreds of thousands. No, no, like hundreds.

0:01:37.520 --> 0:01:38.260
<v A>Oh, hundreds. Okay.

0:01:38.600 --> 0:01:52.553
<v B>I'm not that bad anymore. Yeah. Like I have it a little bit better now. Basically, if it gets past a month, I just archive it all. Oh, nice. But yeah, I use it as like a to-do. Like I read a message and then I mark it back as unread if it's like, oh, I need to take

0:01:52.553 --> 0:01:53.025
<v A>action on this.

0:01:55.300 --> 0:02:20.200
<v B>And yeah, I know it doesn't work. And now Inbox, the Google one, I use it for my personal, and I really like it. And I don't quite get to Inbox Zero. Like I still leave stuff in my inbox. Although I have gotten to Inbox Zero with it because you can sweep away like large portions of messages, which I like. Yeah, yeah. I like the—whatever they call it—I call it the boomerang feature because that was the name of a startup trying to do the same thing, where you like say, 'Give me this email new again in a day or in 12 hours.'

0:02:20.560 --> 0:02:21.325
<v A>Oh, yeah, yeah, yeah. When

0:02:21.325 --> 0:02:23.280
<v B>I get to work. I love that feature.

0:02:23.400 --> 0:02:39.162
<v A>I actually should use that. I haven't used it, but I think it'd be really useful. I just haven't incorporated it into my flow. But I use a lot of the like filters so that like I have a bunch of different categories and most of the email gets routed correctly. And that way,

0:02:39.212 --> 0:02:44.520
<v B>Things like. I have filters as well, but I find that if it's filtered out of my inbox, that just means it does not get right. Yeah, pretty much.

0:02:45.040 --> 0:02:45.860
<v A>Yeah, it's true.

0:02:46.580 --> 0:02:52.960
<v B>Who am I kidding? People fuss at me like you didn't see this email mess. I'm like, no, it's in a busy stream. I don't check.

0:02:52.965 --> 0:03:16.940
<v A>Yeah, I have this one mailing list that work and they put automated emails like test results. But then it's also used for like real communication. And that's the worst because basically that's just that's just a black hole for me. Like people are like, 'Hey, did you get my email?' I said, 'Did you post it to this group?' And they go, 'Yeah.' I'm like, 'Nope, that's not going to happen.'

0:03:16.940 --> 0:03:29.652
<v B>And then they're always like there's ways around it. Like, oh, well, the test emails always come from the same thing or always having a suffix at the end or something. And it's like now my rules just have to get really. Yeah, this is

0:03:29.652 --> 0:03:30.600
<v A>Silly. Yeah.

0:03:32.220 --> 0:04:22.720
<v A>But actually, you know, there was that time where they were trying to do Google Wave as like a replacement for email. But that didn't really take off. I really think email is one of the last few things that needs like a refresh. You know, I mean, we completely refreshed the way video works. Like with, you know, you go from your camcorder to YouTube. Like so many things now are just so just completely fundamentally different than they were before. But email is basically the same thing. I mean, there's smart filters and there's some ways to manage it. But the medium itself hasn't really changed. I mean, in fact, just the way email uses those greater than signs to like tell you that it's a reply email. Like none of that whole hacky protocol has stayed the same all those years.

0:04:23.880 --> 0:05:01.420
<v B>Well, even the fact that most of the email has moved to conversations like threads, right? Kind of like more like forum posts or whatever. It would almost be better of like when you sent an email. Instead, you were just creating like a wiki entry somewhere. Yeah. And like this is kind of the Wave thing a little like and everyone can kind of edit it, but not just like an open form edit, but just more like a, you know, instant message thread. But it's indexed like an email, right? Like somewhere. The problem is some people use email as documentation, like a true wiki or, you know, online document or even emailing Word docs. Other people use it as ephemeral like text messaging. Yeah. So it needs to support both cases.

0:05:01.600 --> 0:05:19.440
<v A>And it has to be backwards compatible. Because you're not going to get everyone off email in a day, right? That's right. I think the big problem with Wave was that, you know, the first thing Wave should have done is like allow it should have taken your entire inbox and converted it to Wave, you know?

0:05:21.860 --> 0:05:50.380
<v B>Yeah. It's hard, though, because even like at work, we use Google Docs a lot. And we had a vendor we were working with and we sent him a link to the Google Doc, which he could access just fine. But he's like, oh, I didn't like working in the Google Doc. So I copied all your Google Doc into a Microsoft Word Doc. So like, let's use this to collaborate. And it was like, what? This is like, fine. You may not like Google Docs, but emailing a version Word Doc around is the worst idea.

0:05:50.740 --> 0:05:55.100
<v A>Didn't Microsoft go to like a Google Doc thing? I thought Microsoft had a cloud-based thing now.

0:05:56.020 --> 0:06:02.489
<v B>But people, as far as I know, people still just like take a .doc and email it. And then you're supposed to make edits or suggestions and

0:06:02.489 --> 0:06:37.140
<v A>Email it back. Oh, that's so bad. That's so bad. So there's another thing, actually, now that I think about it, is sending a file. Like that still hasn't been solved. Like why is that still so hard, you know? Like if I have, the other day I had like a two gigabyte file. And I wanted, it was a bunch of pictures. I wanted to send it to my parents. And I realized there's just no, there's just no way for me to do this. I mean like, you know, so that's such that my parents could receive the file without being like wizards or anything, you know?

0:06:37.419 --> 0:07:02.260
<v B>Well, the problem is like, where do you store it? Like your parents want a version of that file or the option to keep the file. But so you can't just host it from you because they also want a copy. But two gigabytes is a lot for them not to agree to accept. Right. Yeah. And there's no like third party like Dropbox or someone could like host a file and you could email the Dropbox link. But then you trust that they copied it down before you remove it or whatever.

0:07:02.400 --> 0:07:16.080
<v A>Yeah, I mean the best thing I've ever used for this, and by best I mean like most idiot proof, was AOL Instant Messenger. Where I could literally just drop a file into AIM and it would just get sent to that person and they would have it.

0:07:16.320 --> 0:07:21.940
<v B>But that was only if the person was there. Yeah, I mean that's fine. Oh, yeah.

0:07:22.179 --> 0:07:23.239
<v A>But anyways.

0:07:23.820 --> 0:07:30.539
<v B>But for that you can use Dropbox, right? Like you can put it in Dropbox, send the link, and then when they download it just delete it.

0:07:30.679 --> 0:07:36.059
<v A>Yeah, if I had two gigs free on my Dropbox. But I don't have that. That's the problem.

0:07:37.984 --> 0:07:39.739
<v B>Anyway. You mean you're not paying them money?

0:07:39.740 --> 0:07:44.860
<v A>Yeah, I know. I want to freeload, but I also want everything they have.

0:07:46.460 --> 0:07:47.820
<v A>That's called buying it. Yeah.

0:07:48.520 --> 0:07:50.140
<v B>So we have some user feedback.

0:07:50.300 --> 0:08:26.660
<v A>Yeah, we have some awesome user feedback. Thanks. This is collected from email and from the G Plus and Facebook pages and community or community and page respectively. But Simon, or Simon Yu, he told us, he gave us a pretty cool link. There's this tool called ISPC, and it lets you take C code and turn it into SIMD. So I haven't tried it or anything, but it looks cool. It's on GitHub, so I'm assuming it's open source. It looks pretty awesome.

0:08:29.000 --> 0:08:32.080
<v A>I wonder how it works. Let me see. Overview.

0:08:35.376 --> 0:08:40.300
<v B>So SIMD was, for those of you not following along, last episode, episode 38.

0:08:40.760 --> 0:08:56.940
<v A>That's right. So yeah, apparently it's an extension to the compiler. And it uses LLVM. LLVM. So you compile a bunch of your code to LLVM. You compile this to LLVM. And then now everything's LLVM. So it just kind of works.

0:08:58.500 --> 0:09:00.400
<v A>Cool. I'll have to check that out. It's pretty awesome.

0:09:01.240 --> 0:09:24.027
<v B>So not exactly SIMD, but we've talked about CUDA before. And I had someone tell me today, because we were talking actually about SIMD and they brought up CUDA, that if you are a CUDA programmer, apparently you can make mad money. Really? That's what they told me. I don't know if that's true. But they said that the demand for GPU programmers is so crazy and the supply is so bad, that if you can do that, that you can make, as they said, mad money.

0:09:24.027 --> 0:09:36.497
<v A>you doing GPU right now? No. So there's a potential. I mean, we both, so just some background. Patrick and I did GPU programming several years ago. Yeah, so that's what

0:09:38.303 --> 0:09:40.919
<v B>I was thinking. He's like, 'Man, apparently I'm not doing it.' Yeah,

0:09:40.919 --> 0:09:42.600
<v A>apparently there's mad money to be made.

0:09:43.770 --> 0:09:46.251
<v B>But he also wasn't doing it.

0:09:46.540 --> 0:09:47.078
<v A>So apparently the money

0:09:47.213 --> 0:09:48.057
<v B>must not be that bad.

0:09:48.080 --> 0:09:55.660
<v A>You know, that's like an investor who tells you, you know, buy this stock, buy this stock. But then, you know, they don't have any of it or they're shorting it or something.

0:09:58.900 --> 0:10:12.699
<v A>So cool. So Nicholas Baring. And oh, by the way, all these people's names were public. So, but if I am saying your name and you're super offended, let me know. Because I won't do it anymore. But as far as I know, it's okay.

0:10:14.540 --> 0:10:37.360
<v A>Nicholas Baring said, I made a comment in an earlier episode about how it's better to throw exceptions. He found some article where they said, basically never throw exceptions. You know, like the program should always survive. And if there's some crazy case, you know, you should handle it and maybe log an error or something. But don't like crash the program.

0:10:39.459 --> 0:11:24.220
<v A>But I think it's interesting. I mean, it's obviously a different perspective. I think a lot of it depends on the specific program. So, I mean, for example, if you're doing like a front-end web server, then you don't want, you know, the person clicks the follow button, and, you know, it just crashes. So, there's definitely things where, and I would maybe even go so far as to say the majority of things you have to sort of fail gracefully. It just so happens that most of the things I work on, you can kind of fail loudly. And if the whole binary dies, you know, nothing's like impacted immediately. But, yeah, I think he did bring a valid point. And the article is actually quite interesting. So, definitely check it out. It's a different perspective on it.

0:11:26.000 --> 0:11:28.345
<v B>It probably depends on the language too, right? Yeah,

0:11:28.497 --> 0:11:31.940
<v A>that's true. Like some languages are, you know, more than others.

0:11:31.940 --> 0:11:59.680
<v B>For instance, like in Java, right? Like in Java, you a lot of those libraries and stuff you call will throw exceptions. And then you're kind of forced to deal with it. So, if you're already dealing with it, throwing your own, in my opinion, I'm going to get flack for it probably. But is that like throwing your own isn't that big a deal since code's already having to be set up to handle it. Versus like in C++, that's not normally the default, throwing exceptions. Right? So, if you start doing it, who knows if other people who try to use your code will be set up to handle exceptions or not.

0:11:59.680 --> 0:12:34.199
<v A>Yeah, and it depends on the framework too. Like if you're doing, say, a website, you typically have like a thread pool. And if one of the threads crashes, it just spins up another one. And so, all that really happens is that specific web request kind of fails, but you move on. But if you're doing something else, like some kind of device app, device-side programming or something, and throwing an exception that isn't caught means, you know, killing the entire binary and now nobody can do anything, then obviously you have to not throw any exceptions there.

0:12:36.459 --> 0:13:07.980
<v A>Finally, you have a Bens Magyar. Hopefully I got your name right. Bens Magyar. He linked to this pretty cool Python library called Bokeh, and it's a visualization library for the browser written in Python. So, I definitely want to check this out. Like personally, I think this would be pretty cool. I see a lot of value in this. I've been doing a lot of Python lately and doing a lot of visualization. So, I'll definitely have to take a look at this. And you guys should too. It looks pretty cool.

0:13:09.612 --> 0:13:10.169
<v A>That does look great.

0:13:12.042 --> 0:13:12.497
<v A>All right.

0:13:12.660 --> 0:13:37.489
<v B>Time for the news. For the news. First article is mine of Virginia. Oh, I guess the University of Virginia. I don't know. But there's a link in the show notes. But there was a very good PDF that I found on how GPUs work. It looks like it was part of a magazine or something. But I didn't see it when I skimmed it what magazine it must have been a part of. It says Computer. Is there a magazine called Computer? I don't know about.

0:13:37.489 --> 0:13:39.025
<v A>That magazine. Yeah. I haven't heard about it.

0:13:40.580 --> 0:14:16.980
<v B>Anyways, but it's how GPU works, written by someone from the University of Virginia and someone from NVIDIA. And it talks a little bit about what we talk about. For example, representing three-dimensional space, you use four-dimensional matrices. And they give a little bit of explanation about why that is. About some of the things that having a GPU allows you to do that weren't really feasible before. About shaders. About general GPU. Just kind of like a cursor overview. It looks like about five pages long, so not that long, but a good thing. We've talked about GPUs a number of times, and this is a good overview of what it is and the context behind it.

0:14:16.980 --> 0:15:01.840
<v A>Hmm. Yeah. I'll have to check this out. Actually, you know, the GPUs... I have a friend from NVIDIA who is telling me that they're doing a lot more machine learning GPU activity. So, I think NVIDIA specifically is building a bunch of machine learning libraries and stuff like that for the GPU and making that available to everybody. And so, that's pretty... It's pretty awesome. I mean, I think you know, a lot of processors are now coming with GPUs, either on the die or... Or, you know, a lot of devices have GPUs in them and stuff like that. So, this is... We might have to revive our GPU skills.

0:15:03.520 --> 0:17:01.980
<v A>So... Skills with a Z. Make mad money. Yeah, that's right. To make mad money. Mad monies also with a Z. Oh. So, this article is pretty cool. It's Mixpanel's Pitch Deck. Actually, it's funny. The article originally was open sourcing our pitch deck, and they got blasted on Hacker News for using the term 'open source' when it wasn't source code. I didn't realize this was a big deal, but it's currently like a big social faux pas at least on Hacker News to use the term 'open source' for something that isn't sourced. So, anyway, so they changed it to 'Here's our pitch deck' or something. But it's pretty cool. It literally is their pitch that they used to secure their like VC funding. They got something like 70 million or something in Series B or Series C. And it's about how they did that. And, I mean, so it's the deck, but it's also, if you read the Hacker News comments, they also, the Mixpanel founders are there answering questions and adding commentary. And it's actually, it was a really good read. So, definitely check it out. It's pretty cool. There's a lot of things I didn't know because I'm not like not really in that area. So, for example, there's a term called KPI. That's Key Performance. I forgot what the 'I' is. No. Do you know what the 'I' is? Let me look it up. But, it's like KPI and it was about, oh, Key Performance Indicator. And basically it's a fancy way of saying how they're going to measure success. And they also had like, you know, their graph showing their growth and stuff like that. So, I thought the whole thing was pretty cool. They talk about some of the things that we've talked about on the show, like have a vision, and and the vision is really important. Have like a good mission statement, all that stuff. But it's cool to see like a living example.

0:17:04.460 --> 0:17:06.460
<v B>Well, they have a whole thing in here for their competition.

0:17:06.819 --> 0:17:16.899
<v A>Yeah, they had that little, that was like an X chart or T chart or however you say that. But it's, yeah, their competition; they had to break it down into free paid and then I forgot what the other axis was.

0:17:17.020 --> 0:17:29.014
<v B>Yeah. I always find that funny when you talk to people who have an idea for something or like you ever watch like that Shark Tank show on TV. And then like people are like, 'Oh, I have no competition.' There is it's like, 'Well,'

0:17:29.014 --> 0:17:29.892
<v A>Maybe. Yeah, you're probably doing

0:17:30.027 --> 0:17:32.920
<v B>Something wrong. Seems really unlikely you have no competition.

0:17:35.020 --> 0:17:44.260
<v B>It's like Tesla, Tesla saying, 'Like, who else makes electric sports cars?' Well, no one. We have no competition.' It's like, 'Well, your competition is every other kind of normal car.'

0:17:44.340 --> 0:17:46.260
<v A>Yeah, I mean, the other thing, too, is,

0:17:47.104 --> 0:17:49.973
<v B>Like, you even if. Now, I don't know that Tesla actually says it. That

0:17:49.973 --> 0:18:15.480
<v A>was just a hypothetical. Yeah, right. Even if, like, you, uh, even if you literally have something completely brand new, your competition are the audience of people who can clone you over the next five years, right? I mean, you always have somebody, you know, who can, who can duplicate what you're doing given enough time. And that's, so, yeah, you should always have competition. Um, at any rate.

0:18:16.420 --> 0:19:56.160
<v B>The next article is Goodbye, Dr. Dobbs, who, fun fact, Dr. Dobbs is not a real person. It's an amalgamation of two people's names. I forgot what they were now. I guess I should have had it ready, but I looked it up earlier. Uh, um, so it's two people together founded the magazine, Dr. Dobbs, and I, uh, 38 years ago, apparently. And they have decided, the current, editor and staff or whatever, and the company that owned them have decided to stop publishing Dr. Dobbs. So most people have probably at least come across Dr. Dobbs at one time or another. They have a huge corpus of like programming related content. So they get a lot of search hits when you search various programming topics. I don't know that I've ever subscribed to the magazine in college. I think they had it around. So I think I've read Dr. Dobbs in print before. Okay. That's where they put it on a dead, dead tree paper. And like, I don't know the magazines are that common anymore. I guess they are. And so they're finally stopping. And the guy was making a point. He's like, it's kind of the person writing the article. It's kind of interesting because their website currently has more page views than ever has had before. And it's been growing for over the last three years. That's still, you know, a pretty significant clip. But that, you know, how much they're making is going down because basically they relied on pay-per-view ad and the pay-per-view ad industry is just like drying up. Yeah. Right. Cause it turns out no one clicks on those ads. No one like it's not helping anybody by seeing them. People block them from their vision. And so they're, they're actually, their ability to make money has suffered.

0:19:56.820 --> 0:20:21.580
<v A>Yeah. I mean, it's like, they didn't really keep up with the times, you know. I mean, they, like the website itself looks very dated and the content is up to date, but yeah, it feels like their business hasn't hadn't really adapted. I wonder how like TechCrunch and these other sites make money? That's through pay-per-view ads, right?

0:20:21.580 --> 0:20:29.897
<v B>Is it just so there's like display ads or whatever, but it also like click ads and maybe click, click

0:20:29.897 --> 0:20:30.500
<v A>ads. Oh, I see.

0:20:32.000 --> 0:20:43.144
<v B>Also, I don't think like when these people say they have a lot of views, I don't think the views approach something like TechCrunch. TechCrunch probably has an order or two of magnitude more page

0:20:43.144 --> 0:20:44.400
<v A>views. Yeah. Right. That makes sense.

0:20:45.740 --> 0:20:47.751
<v B>So, I mean, I don't know.

0:20:47.751 --> 0:20:50.265
<v A>Yeah. Yeah. I mean, I mean, and then also

0:20:50.485 --> 0:20:57.040
<v B>I think people like TechCrunch and stuff, they now like they run conferences and stuff too. Right. And then like people pay to go there or be a vendor there.

0:20:57.080 --> 0:21:16.760
<v A>Yeah. That's what it is. That's actually the right answer. I mean, yeah, that they—uh, yeah, you're right. All of these people, even like no JS and stuff, they have the NoJS conference, and it's like a thousand dollars to go, you know? Um, yeah. These people didn't really jump on that bandwagon among other things, but, uh, yeah.

0:21:16.820 --> 0:21:38.919
<v B>So, I mean, I still get like magazines, but the magazines I get are typically much like lighter fare. Uh, Dr. Dodds is like, I guess would it be considered like a trade journal? I don't know. Like I've never really read, sat down and read Computer Science magazine trade journal type stuff. Right. It's either more tactical where I go to like Stack Overflow, like how do I solve this problem? Yeah. Or like someone's blog post, which I guess would be similar to this.

0:21:39.240 --> 0:22:01.719
<v A>Yeah. Another part of it is they didn't really handle the social side correctly. Like you have to log in to comment, and so like, nobody's going to do that. But anyways, I won't sit there and bash Dr. Jobs. Dr. Jobs is a great site. It has a lot of good. I really hope that they, you know, keep it on the Internet Archive or something so that, you know, all their historical, you know, information.

0:22:01.879 --> 0:22:06.379
<v B>No, I think, so I think he said the intention is to keep serving the web pages because they are enormously popular.

0:22:06.380 --> 0:22:09.629
<v A>Oh, okay. They just won't make new content. Gotcha. Gotcha. Okay.

0:22:11.600 --> 0:24:11.060
<v A>Cool. So, yeah, this is pretty interesting. So there's a bug. So, you know, you always see these articles like the Bash one. What was that called? The thing in Bash. I'll look it up. Keep going. So there's Bash. There's the Heartbleed, which everyone knows about—the bug in SSL. Shellshock. Shellshock. And usually, I don't know too much about the Bash one, but I know the Heartbleed one; it's something like ridiculously complicated with like somebody can like look at the response times and like, you know, fit a distribution to it and like do all this crazy math. And it's like something you'd see in CSI. But this exploit is very, very simple. Basically, you know, the way your Git repository works, you have a folder called .git. And in your .git folder, you have all these things, among of which is this folder called hooks. And in the .git/hooks folder, you can do hooks. So, for example, every time you commit, you can, you know, save the date to a file, or you can... I have a friend who every time he did a Git commit, it took a picture using his laptop camera. And so he has a picture annotated with the commit. So you can see like how stressed he was when he was making the commit. Just goofy stuff. But you could also do really productive things like, you know, check the code, make sure it's formatted. And if it's not formatted, like if it's not auto-formatted, then fail the commit, etc. So now if somebody in their Git repository has like a .git folder and then had a hooks folder and made their own hook, then that'd be pretty bad, right? Because what could happen is you would clone the repository, and you would also end up inheriting all of these hooks that could, you know, basically execute arbitrary code on your machine. So Git tries to be smart about this, and they say, look, in your Git repository, you can't

0:24:11.060 --> 0:24:50.059
<v A>have a .git folder because you would be able to do this, right? But they didn't think about case insensitive. So if you have, for example, like a .git folder, then it says, oh, that's fine. But on Windows, that's not fine. And on Mac, it's not fine because the Mac has HFS case insensitive by default. So yeah, all you have to do is make a .git folder and then make a hooks folder. And then, you know, rm -rf someone's hard drive. And anyone who clones your repository and does a commit will wipe out their own hard drive. And of course, you can do a lot worse than that, right? So do

0:24:50.228 --> 0:24:56.900
<v B>They actually find this happening, or did someone discover this was a possibility and then they kind of stopped it?

0:24:56.900 --> 0:25:00.680
<v A>That's a great question. You know, they're never going to tell you that, right?

0:25:02.760 --> 0:25:09.120
<v A>They're never going to say like, you know, who or how they found this, right?

0:25:11.920 --> 0:25:13.077
<v A>Let me look. Yeah, I

0:25:13.077 --> 0:25:18.940
<v B>know. Well, sometimes, you know, because sometimes like you find the way it's found is a circulating worm or something, right?

0:25:19.060 --> 0:25:46.574
<v A>Oh, I see. So I haven't heard anything about it. Maybe this is how those hackers got into Sony. Oh. Oh, yeah, it's another story. But, yeah. So basically, if you have Git, you should upgrade to 2.2.1. Or at least, you know, until you do that, just look at the repository you're cloning and just make sure it doesn't have a .git folder. You know, if you're

0:25:46.574 --> 0:25:50.260
<v B>doing this. Well, GitHub is saying that they are blocking it. Like, they're not allowing it anymore.

0:25:50.560 --> 0:25:51.000
<v A>That's right, yes.

0:25:51.000 --> 0:25:56.100
<v B>And then they scanned all their repositories and fixed it. So it should be impossible to happen on GitHub.

0:25:56.280 --> 0:26:10.560
<v A>That's right. So on GitHub, you're fine. I'm assuming most of these sites are doing something similar. So, yeah. In general, it shouldn't be a big deal. If you upgrade to Git 2.2.1, you're guaranteed not to have this problem. But, yeah. I thought that was kind of interesting.

0:26:13.560 --> 0:26:15.320
<v B>Time for Tool of the Show.

0:26:15.560 --> 0:27:53.360
<v A>Tool of the Show. My tool is not out yet. I played it on the desktop. What? I know. I'm totally. This is the worst kind of cheating. But they said it would come out in 2014. So they have, like, what, 12 days to pull this off. But it's on desktop. It's coming to Android and iOS this year. It's called This War of Mine. And basically, it's The Sims. But think of it as, like, The Sims on hard mode. You know, like, if you've ever played The Sims, it's very tame. Right? Like, you, the only thing that's really getting in your way is aging. And you can turn that off. So, you know, you kind of go through. You learn how to cook. You do things at your own pace. And, but it's fun because you're constantly getting better. And you grow a family. And you see the growth. And the growth is addicting, you know, being a part of that. The thing that kills me about The Sims is that it doesn't feel like a game to me. It feels like a simulation, kind of as the name says. And I really wanted The Sims-like experience, but with a game where, like, I could lose and there are enemies. And this is exactly that. So in this game, you basically are playing The Sims, but in this war-torn Yugoslavia. And it's very hard to survive. Even to just grow food is extremely difficult. And the goal is to survive for, I won't spoil it, but for a certain number of days. And as things go on, you get more and more desperate because it's very hard to become sustainable.

0:27:54.760 --> 0:28:00.696
<v B>So I'm trying to look here. I don't actually understand. Is it a multiplayer game, a single-player game? It's

0:28:00.696 --> 0:29:15.800
<v A>like The Sims, so it's single-player. I mean, you're managing multiple Sims, but it's totally single-player. It has another thing that's pretty cool. So in later versions of The Sims, they had this sort of vacation mode where you'd go on a vacation somewhere. And then it becomes almost like an adventure game. This kind of took that idea. So at the end of every day, so after I think it's 12 hours of in-game time, you can scavenge. And so you pick one of your Sims and you send them. And now the game becomes kind of like a point-and-click adventure in a sense. But you gather resources. You trade with people. So during the day, you can make moonshine. And then at night, you can sell the moonshine to soldiers for money. And then use that money to buy bread. And anyways, there's a whole economy thing going on. But it's really cool. I had an incredible amount of fun playing it. I got kind of burnt out because I was playing like all-nighters playing it. It was kind of ridiculous. And then I beat the game. And then I was like, okay, I got to take a break. But I actually want to play it again. And I'll definitely be buying it on iOS when it comes out. So yeah, check it out.

0:29:17.899 --> 0:30:20.300
<v B>All right. My title is also, well, I guess it's only iOS, but also mobile. And it's called Vainglory. You may have seen this on advertisements on the actual television. They've been running ads for it. And I believe it was part of the WWDC presentation where they talked about the new Metal API for doing graphics processing on iOS. And this is a massive online battle arena. Is that right? MOBA. Which is apparently the hot thing. I'd never played a MOBA before until I tried this one. And I did really miserable at this one for a while. And now I think I'm doing slightly less miserable. But it looks really beautiful. Like it's really amazing. Like on, it doesn't feel like it's a mobile game. It feels like it could be a PC using a mouse. Like it really feels good and high quality. And it doesn't feel weird or hard. Like I've played other games where there were supposed to be, you know, sometimes PC ports or PC quality style games. And like the controls are very awkward and weird and just doesn't work out well. And I didn't ever feel like that with this one.

0:30:20.879 --> 0:30:33.955
<v A>Yeah. I've also been playing Vainglory. Yeah. I think it's great. It's, it's, it's, I actually, I always kind of wondered how the UI would work for a MOBA. Because, you know, there's times where you have to click across the map. So

0:30:33.955 --> 0:30:35.069
<v B>you've played other MOBAs before though,

0:30:35.069 --> 0:30:54.760
<v A>Right? Yeah, yeah. I've played like desktop MOBAs, and, you know, one of the things like clicking on the other side of the map to go to a strategic location. The way they did that where, I mean, I don't know how you do it, but the way I do it, I use my middle finger on the mini-map to like pan it around. And then when I have the spot I want, I use my index finger to just tap anywhere on that screen.

0:30:54.897 --> 0:30:55.724
<v B>Yeah, something sort of like.

0:30:55.724 --> 0:31:14.879
<v A>That. Yeah, yeah. So the way they did that was very clever. Also, so in most MOBAs, the enemy's health, like the, the, the little grunts, their health doesn't turn colors when you can one-shot them. And that actually makes a huge difference. Because with like Dota.

0:31:15.020 --> 0:31:21.040
<v B>Oh, I didn't know this. Wait, wait. So when they're on their last hit from you is the only time it changes colors?

0:31:21.040 --> 0:31:30.740
<v A>So yeah, like the enemies, the little grunts, they have a regular health bar. But when you can, like when the game calculates you can last hit them, the bar turns like a bright red.

0:31:32.106 --> 0:31:32.680
<v B>Oh, I didn't.

0:31:32.680 --> 0:32:05.320
<v A>Know this. And so that makes a gigantic difference. Because in Dota, you have to constantly like, you know, because you have a desktop with a big screen, the health bars are bigger. And you have to sort of look at the health bar, how many pixels wide it is, and make a judgment call on if you can do the last hit. And often you're wrong and it doesn't completely kill the enemy. And so as soon as you go to mobile, this becomes even more frustrating with the health bars being small, right? So they just said, 'Look, we're not going to play this game. We're just going to tell you when it's a last hit.' And I thought that was clever.

0:32:07.060 --> 0:32:12.660
<v A>So yeah, basically they got a bunch of things right with this game. So I think it's pretty awesome.

0:32:15.480 --> 0:32:18.280
<v B>And it's free to play. I think most MOBAs are now, right?

0:32:18.280 --> 0:32:20.920
<v A>Yeah, that's right. Yeah, totally free to play. You can.

0:32:21.060 --> 0:32:47.020
<v B>That's like the. And so in this one, the only thing as far as I can tell that you spend money on is they have a rotation of characters and only a subset are available for free to play at any given time. So if you want to guarantee your favorite character is always available, you have to, you know, buy it with either in-game currency or currency that you converted normal dollars you converted to in-game currency or whatever. But right now they don't have any other way to spend your money as far as I know.

0:32:47.020 --> 0:33:04.649
<v A>Yeah, I think that's right. So yeah, the Defense of the Ancients, they give you all the characters, but you can spend money on silly hats and stuff like that. They actually, they added some things recently, which are pretty cool in Defense of the Ancients. Like you can spend money to, like, make

0:33:06.842 --> 0:33:30.569
<v A>A bet on who will win the game. And based on the results of the bet, you get items. And so it's basically the same thing. Like you're getting silly hats. But because it's like they basically, you pay for this gambling minigame that you play while you're playing Dota, kind of. Like you can bet against your own team and stuff like that. So those things are actually kind of... Wait,

0:33:30.569 --> 0:33:35.139
<v B>That sounds awful. Because if you bet against your own team, you can just make your team lose.

0:33:36.679 --> 0:33:39.560
<v A>That's true. Yeah. I never really thought about that.

0:33:40.300 --> 0:33:45.440
<v B>This is like why gambling is so controversial amongst people who are professional athletes.

0:33:45.440 --> 0:34:05.940
<v A>But I think the consequence of winning or losing the bet is low enough that it's like I'm not going to spend an hour playing a game that I've thrown so that I could get, you know, one one hundredth of a silly hat. So anyways, they have a bunch of cool things like that. So I'm sure Vainglory will go in the same direction eventually.

0:34:07.680 --> 0:34:12.120
<v A>All right. All right. So on to Rust. On. Yeah.

0:34:14.080 --> 0:34:19.120
<v A>Rust is pretty cool. Actually, this was a user request, I believe.

0:34:20.859 --> 0:34:21.139
<v A>Somebody...

0:34:21.227 --> 0:34:22.307
<v B>I think multiple user

0:34:22.307 --> 0:34:26.060
<v A>requests. Yeah, that's true. Multiple. So I didn't even know about Rust.

0:34:27.839 --> 0:34:33.968
<v A>And, you know, it hasn't really made Hacker News, or at least I haven't seen it on Hacker News. Actually, I take

0:34:33.968 --> 0:34:35.920
<v B>it back. You must not look at it very often.

0:34:35.920 --> 0:34:39.420
<v A>Yeah, I was going to say I'm sure it's made Hacker News, but I just happen to not catch it.

0:34:41.120 --> 0:34:42.759
<v A>But...

0:34:42.759 --> 0:34:58.900
<v B>It's just, it's the same as this new trend of languages to have the same name as common things. Go, Rust. Yeah. I don't know of another good example, but it's this problem. Like, you see it, and it's not clear that it's this. Also, there was a video game called Rust, or is a video game called Rust? Yeah, that's right. So for a long time I thought they were talking about the video game.

0:34:59.319 --> 0:35:06.182
<v A>Yeah, yeah. Why do they do that? They should make it something very clear: X, Y, Z, Z, Y, or something. No.

0:35:07.359 --> 0:35:09.440
<v B>Do not call it that. Do not name a language that.

0:35:09.440 --> 0:37:03.025
<v A>But do you know what that's from? Oh, X, Y, Z, Z, Y is the code you have to put in Adventure to open this door. And there was some way to figure out it was that, but it was super hard. Anyways, so Rust. Okay. So, Rust, it's like C++. It tries to be close to the metal. It's meant for, you know, system software, web servers, socket servers, those kind of things. You know, embedded. It compiles straight to machine code, so it could be used for embedded. It uses LLVM. So, if you have, like, an LLVM to machine code compiler for your, you know, Raspberry Pi—well, Raspberry Pi is a bad example—but for your crazy architecture, Motorola, whatever. For your architecture, yeah. Then, it can, it'll work. You don't have to, you don't need any Intel processor or anything like that. It tries to be very memory safe. So, what that means is you actually can't get a null pointer exception at runtime. So, the way the language is designed, if it's possible for you to null pointer exception, the compiler will just not allow that code to be compiled. Which is pretty cool. Because most null pointer exceptions, it's not because someone is doing something absolutely crazy and there's a chance of it happening. Most of it are just blind user error. And so, if someone is doing that, it's just a bug that they need to fix. Very rarely do you have to do something really wacky with pointers, but with that in mind, Rust does not allow unsafe pointers. So, for example, if you have some FPGA that's running on a certain memory address, and you

0:37:03.599 --> 0:37:21.419
<v A>just know that that address, you know, is 0x12345678, you can't just say pointer is equal to that. It won't let you do that. So all the pointers have to kind of come from references to objects. And wait, so how

0:37:21.419 --> 0:37:23.440
<v B>do you, how do you do that then?

0:37:24.000 --> 0:39:18.920
<v A>I don't think you can do it. I mean, I'm assuming they'll add like an unsafe pointer, you know, some way to do that. But at the moment you can't do it. So yeah. So same thing with like in place, new and things like that placement new. You can't really do that yet, but in exchange, you get a bunch of cool stuff. You get type inferencing, you get complete memory safety, bunch of cool features. One thing they have, a common problem is if you have multi-threading and you share a pointer to an object with another thread, then it's very difficult to like keep track of who owns this object. It's always kind of a nightmare. So what Rust does is it says the thread that created—so the way that Rust works is you create a Box. And a Box is basically a wrapper around a pointer, which says that I want this pointer to go to another thread, this data. You can share Boxes with other threads, but at the end of the day, you have to own the memory. So if another thread tries to delete a Box that it didn't create, the compiler gets unhappy. Yeah, and so the which thread created the Box is actually encoded sort of in the Box type. So there's that. There's it has traits, which are similar to interfaces in Java. But one difference is you can actually have function bodies in traits, but the functions, there can't be any data members. So, in other words, like in Java, if you have an interface, you can't have int a as a member of the interface. It doesn't let you have data. And that's because of the diamond problem, right?

0:39:19.380 --> 0:39:58.424
<v A>Like, if you have two interfaces with an int a, and you have a class that implements both of them, now it becomes like very a nightmare, right? It's ambiguous. So they don't let you do that. But you can have functions that catches the function body. You know, basically your only parameters can be what gets passed into the function. Which is cool. So, for example, if you have, you could have an interface called like Square and have a function called area. But it would have to take the size, the length of the square as a parameter. But yeah, there might be cases where you need functions like that. Or, you know. So, this

0:39:58.424 --> 0:40:01.200
<v B>is like, yeah. Yeah. That's the same thing as just a function pointer.

0:40:01.540 --> 0:41:02.980
<v A>Yeah, yeah. It's basically a function pointer. So so that's pretty cool. I thought that was very clever. It has two runtimes, which I thought was interesting. So it has native and green. In native mode, Rust behaves just like C or C++. You know, if you create a new thread using pthreads or Win threads or whatever in C++, then it's a new thread. And so the OS keeps track of all the threads and all of that. But as you remember from our Go podcast, we talked all about coroutines. And Rust supports coroutines. So, if you use the green Rust runtime, then you get support for coroutines, which is pretty cool. So, you know, there might be cases where you have very limited memory or you need real-time guarantees and things like that. You can use the native Rust runtime for that. And for everyone else, we can use the green Rust runtime. And now it behaves like Go.

0:41:05.120 --> 0:41:07.240
<v B>But you have to choose one per program?

0:41:08.100 --> 0:41:15.036
<v A>You have to choose... That's right. Per binary? That's right. So, yeah, it's actually, I think, a different compiler or something like that. Oh, okay.

0:41:17.520 --> 0:41:19.474
<v A>Yeah. Is

0:41:19.474 --> 0:41:23.160
<v B>The API similar enough that you can move it back and forth? Or...

0:41:23.160 --> 0:41:51.440
<v A>Actually, it's identical. So, for both of them, there's an idea in Rust called a task, which is basically like a thread or, you know, they're all kind of the same thing. In Rust, you create tasks. And if you're using the native Rust runtime, a task becomes a thread. If you use the green runtime, a task is a coroutine. But none of your code changes.

0:41:53.220 --> 0:42:50.480
<v A>So, it just guarantees change. Like, if you actually specify the size of the thread pool. So, let's say, just keep things simple. Let's say you have a thread pool of size 2. So, you have... So, you have... That means that you have, you know, one thread available for your main thread. Then there's one other thread. So, if you spawn two tasks in Rust, and you have a green runtime with a thread pool size of 2, it can't execute both of those. Because it's already using one for the main thread, and it only has one left. So, it'll execute those two spawned tasks serially. So, if you use the native version of the runtime, then every time you call spawn, you're going to get a new operating system thread, and it's going to start. So, it's a guarantee that if I call spawn, this code is going to start executing as fast as possible, right?

0:42:51.680 --> 0:42:56.500
<v B>Wow. So, it's going to let your OS try to decide.

0:42:57.420 --> 0:43:01.838
<v A>Yeah, that's right. I mean, yeah, the guarantee is that you will be...

0:43:01.838 --> 0:43:03.220
<v B>will do the best the language can.

0:43:03.380 --> 0:43:39.460
<v A>That's right. That's right. So, but with the coroutine, you know, if you have a thread pool size of 2, and you execute, you know, 10,000 coroutines, they're all going to execute sequentially. Whereas, if you have 10,000 threads, they're all going to execute in parallel. I mean, that might... Yeah, that might hurt you. Yeah. So, in practice, you know, 10,000 threads probably not a good idea. But, but, you know, in theory, that's how the native one works. So, I would imagine the native mode is only for people doing, like, very low-level embedded where they really need that, you know?

0:43:39.460 --> 0:43:48.840
<v B>Yeah, that's interesting. Yeah, that's interesting. I've not really heard of something that, like, out of the box wanted to support two run times. Other things do support multiple run times, but...

0:43:49.840 --> 0:44:23.840
<v A>Well, this actually came from Go. So, I, so one of the common criticisms of Go is that you can't guarantee that a Go routine is going to start even, you know, within minutes of when you create it. And so I guess that's a pain point for some people. So, you know, I personally not a big fan. I feel like if you need something to start, you know, within a minute, then, you probably you're probably doing something wrong. But, you know, who knows? So.

0:44:25.880 --> 0:44:35.560
<v B>Yeah, I don't know sometimes these pain points, if they're, people actually ran across a legitimate problem or they're just imagining, in theory, this could become a problem. But in practice, you wouldn't actually hit it.

0:44:35.580 --> 0:44:59.001
<v A>Yeah, exactly, exactly. I'm thinking in practice, either one of two things: either you're doing, like, a web server where, you know, if you have a few seconds in between, like, when you spawn a task and when it executes, it's not that big a deal. Or you're doing some very low-level embedded, in which case you don't have that many tasks, so they would just start right away anyways.

0:44:59.001 --> 0:45:02.480
<v B>If you're doing embedded, you're not running any of these languages. Let's just be honest.

0:45:02.820 --> 0:45:06.400
<v A>That's true. But you could be. There's no reason why you couldn't.

0:45:06.540 --> 0:45:07.440
<v B>Maybe. It'd be nice.

0:45:07.620 --> 0:45:11.809
<v A>There's really no reason why you couldn't run Rust on, you know, even a Motorola.

0:45:11.809 --> 0:45:13.460
<v B>Not looked enough at its compiler, but.

0:45:14.100 --> 0:45:32.260
<v A>Yeah, well, it goes through LLVM, which is what Clang goes through. They make the claim that their whole goal of the language is to be as fast as Clang, or be as close to Clang's performance-wise as possible, while still having these features. And they claim to be pretty close. So, who knows?

0:45:32.980 --> 0:45:33.260
<v B>Okay.

0:45:34.860 --> 0:45:42.488
<v A>So yeah, it was made by a Motorola Mozilla employee. So, actually, I wanted to talk about this for a little bit. So, have you heard of mscripten?

0:45:44.125 --> 0:45:47.640
<v B>Yes. So, mscripten. We've talked about it, I believe. Yes, in our JavaScript episode.

0:45:47.880 --> 0:45:57.160
<v A>Yeah, yeah. So, mscripten was created by a Mozilla employee. And this was. And basically, I feel like Mozilla employees are just very creative people.

0:45:58.620 --> 0:46:00.900
<v B>Like, it just seems like. Or at least these two were.

0:46:01.060 --> 0:46:10.880
<v A>Well, yeah, maybe. It just, I get the impression that, like, a lot of the cool stuff that's coming out now is coming out from Mozilla employees. But I could be wrong.

0:46:12.700 --> 0:46:13.320
<v A>I don't know.

0:46:13.555 --> 0:46:14.972
<v B>I guess for the size of the

0:46:14.972 --> 0:46:17.360
<v A>company, it just seems like they're creating a lot of cool stuff.

0:46:19.760 --> 0:46:39.460
<v B>But I mean, their wheelhouse is also very well aligned with what the internet would think is cool, right? So, Mozilla is concentrated mostly on making browser and web-related tools and products. I don't know if they do anything else. But I don't even think they're doing server stuff or whatever. But maybe, maybe.

0:46:39.640 --> 0:46:39.860
<v A>Yeah.

0:46:39.980 --> 0:46:50.840
<v B>And so, but that's what people would find cool. Because if you're a web programmer, right, you're going to be very interested in something like mscripten. Rust, you know, not so much. It doesn't seem as exactly in their wheelhouse.

0:46:51.740 --> 0:46:53.120
<v A>Yeah, that's a fair point. Yeah.

0:46:53.420 --> 0:47:01.140
<v B>I guess I can explain how it would be work-related and how what you're working on there would be of interest to it. Like, it's a very popular thing right now, right?

0:47:01.820 --> 0:47:02.380
<v A>Yeah, right.

0:47:04.380 --> 0:47:05.378
<v A>Yeah, it's

0:47:05.378 --> 0:47:09.100
<v B>Still in. But that's a good point. There's a lot of good stuff seeming to come out of Mozilla. I can't dispute that.

0:47:09.180 --> 0:47:22.860
<v A>Yeah. Oh, the other thing is they created like an all-JavaScript PDF renderer, which I thought was pretty cool. I don't know. It's just kind of goofy stuff. Nothing, nothing like groundbreaking, but just kind of cool, like this is what I would do if I had a bunch of free time.

0:47:24.920 --> 0:47:28.969
<v B>Anyways. Well, you should go work at Mozilla then. Apparently, yeah. Apparently.

0:47:29.279 --> 0:47:32.180
<v A>Apparently Mozilla gives you a lot of freedom. Awesome. Um,

0:47:33.300 --> 0:47:38.060
<v B>So I have a, it says here, great standard library. So, this is the batteries included thing.

0:47:38.220 --> 0:47:38.460
<v A>Yep.

0:47:38.740 --> 0:47:46.720
<v B>So a lot of tools out of the box that you get to do common operations. So you're not going to have to go write your own JSON encoder or decoder.

0:47:47.520 --> 0:48:48.974
<v A>Yeah, I mean, that's one thing about C++ that kills me. Like, there's no easy way to go from C++ objects to disk and back without having to write a bunch of boilerplate. Like, the best is the Boost Serialization library, and even that one's not that great. I mean, ultimately, C++ doesn't have reflection. So, you know, it's just there's no way to do it, but this does, so. Actually, this, this doesn't have reflection, but the language, it's like the compiler itself has this auto serialization built in. That's how they get, that's how they pull it off. So, yeah, on the cons, we talked about this already, but you know, obviously going to be slower than C++. They make the claim, you know, if you tried to write all of these memory safety checks and stuff yourself in C++, that they would be faster. But that's not saying much, because that's not what people want to know. What people want to know is like, what kind of performance hit am I going to take? Yeah. The other con is too

0:48:48.974 --> 0:49:42.974
<v B>early. Yeah. That's always the problem, right? Is like in C++ for right or wrong, you don't do that. But there are certain areas where you kind of say, like, I want to, I get in trouble for this. I do a lot of low-level programming and I get in trouble all the time. People are like, oh, this is not considered the safe way to do this and see. And it's like, well, this is some graphics routine that needs to run X number of times a second, a lot, and needs to run really, really, really fast. So, yes, you may think that it's not harmful to add, you know, not make this an inline function, like just make it a normal function. But it's like, I measured it and turns out on our platform that it's, you know, 10% faster to make this inline at the expense of a little bit of code size. Even though that's a violation of like the standard. It's like, but I measured it on our platform and in this circumstance, I need the speed over the, you know, shared. It's not premature optimization. Well, maybe it is, but I don't think

0:49:42.974 --> 0:49:45.825
<v A>it's premature. You know, we got to the point, we needed the speed and now it's

0:49:45.825 --> 0:49:58.020
<v B>time to do it and you can. Yeah. Versus like something like, you know, when you hear tools or whatever saying, oh, well, if you try to do all this in another language, you know, it wouldn't be as fast. It's like, well, but sometimes I don't want to do all that stuff.

0:49:58.020 --> 0:50:02.960
<v A>Yeah, exactly. I mean, if you use Rust, you're handcuffed to doing all that stuff whether you want it or not.

0:50:04.720 --> 0:50:13.120
<v B>But for 99 point, some number of nines, you probably don't actually need to, you shouldn't be skipping those things anyways.

0:50:13.440 --> 0:50:36.520
<v A>Yeah. My biggest con with Rust is that it doesn't have good third-party library support and specifically, it doesn't have any way to communicate with other like programs written in other languages. You know, like Protocol Buffers, Thrift, Avro—like even just having one of these would make a huge difference.

0:50:36.620 --> 0:50:38.200
<v B>So no good RPC support?

0:50:38.259 --> 0:50:39.660
<v A>Yeah, there's no RPC support.

0:50:41.180 --> 0:51:24.038
<v A>And so, yeah, I mean, there's, you know, basically, you know, you have to write, if you wanted to write part of your application in Rust, you would have to talk to it through JSON, you know, and you'd have to handle all the deserialization yourself and all that. And so, you know, I'm sure someone will make it. It's just not there yet. And, you know, on top of that, it's, it's still in alpha mode and the developers encourage you to download like the latest Bleeding Edge build. They basically say, don't download the stable build because it's missing so many features and we fix so many critical bugs that you're better off getting, you know, today's development branch than the stable release from three months ago. And that's, that's about something. So

0:51:24.038 --> 0:51:26.974
<v B>Don't use this for your work project, but for your hobby project, how that?

0:51:26.974 --> 0:51:45.980
<v A>Exactly. I mean, it's basically where Go was when we talked about Go. And now Go is much more mature. So, you know, I'm sure this will shape up just fine. But in the meantime, it's a cool language to learn so that you're ready for when, when it, you know, becomes more, becomes more widely accepted.

0:51:46.520 --> 0:52:02.320
<v B>Wait, is that the equivalent of like playing the stock market? Like if you guess at what language you think will be big next and you invest like a lot of time and effort into trying to learn it so that when it becomes big, you'll be one of the first people to be ready for it. Is it like a speculative learning thing?

0:52:02.400 --> 0:52:12.267
<v A>Yeah. I mean, like in some way we were like, we were speculators by learning the GPU. We just never cashed in on it. Yeah. We didn't get our mad monies. Story

0:52:12.267 --> 0:52:18.662
<v B>of my life. But yeah, I remember when Tesla IPO'd and I was going to buy some and now

0:52:18.662 --> 0:52:30.819
<v A>It's like, I had a friend who was telling me like buy Tesla, buy Tesla, buy Tesla. When it was like $40 a share and yeah, that guy's like rich now. He's like a multimillionaire. That hurts.

0:52:31.620 --> 0:52:32.280
<v B>You know, even like

0:52:32.280 --> 0:52:35.774
<v A>Our first show was on Bitcoin, and if any of the people, no,

0:52:36.000 --> 0:52:37.640
<v B>Bitcoin has slid a lot now though.

0:52:37.759 --> 0:52:39.140
<v A>Yeah, that's true. That's true.

0:52:39.660 --> 0:53:15.260
<v B>So I think it's down; I'd have to look at it. I want to say it was down like 50% this year, and so that's always the problem, right? Like your friend who's a multimillionaire, if he cashed out all his Tesla right now, but most likely he'll hold on to it, and then it'll go down, and then like, I shouldn't say most likely. All these people invested in Bitcoin and said, 'Oh, I'm so rich! Like my Bitcoin's up tenfold, 10X!' Right? Like, and then, so it's still up 5X, but they'll all feel bad because they lost half of what it was worth. Yeah. So then they'll wait for it to go back up as it continues to slide down to zero or goes back up. I don't know what Bitcoin will do.

0:53:15.500 --> 0:53:26.000
<v A>Yeah, yeah, I don't know. It's true. That is true. Like, whenever you reflect on these things, you always reflect on the high, and it's almost impossible to time that.

0:53:28.240 --> 0:53:33.000
<v B>Yeah. But yeah, I think that, but I was saying language—learn a language before it becomes a real thing.

0:53:33.000 --> 0:53:40.600
<v A>Yeah, if Rust was a stock, I would invest in Rust. The only thing, it comes rather close to Go, to, you know, the Go language.

0:53:42.540 --> 0:54:35.147
<v A>So, it's unclear like why would you use Rust if you use Go? I mean, Rust does have the memory checking. I guess that is a big thing that Go doesn't have, but yeah, I guess that would be the number one reason to stick with Rust, but, but yeah, it's pretty cool. Check it out. You can actually do some pretty fun stuff like get a pointer to a vector and then do pushback and then try to access that pointer. Rust gets unhappy. It says, 'Hey, you did pushback on the vector. You know, the vector called Realloc. Now you're trying to access this pointer again.' It's like it feels cool to see the compiler like experience something that you would over the course of hours as you tried to debug. Like that whole process was kind of cool for me. So, check it out. You know, compile a few programs. It's pretty cool and then, you know, wait a couple years until it's awesome. So,

0:54:36.620 --> 0:54:41.560
<v B>It looks like the high of Bitcoin was $950, and it's currently trading at $310.

0:54:42.100 --> 0:54:46.280
<v A>What was it when we made our first episode? That was like five years ago.

0:54:49.980 --> 0:54:55.900
<v B>Hang on. The chart doesn't go back that far. In 2011, it was worth 40 cents.

0:54:55.980 --> 0:55:03.500
<v A>Yeah, there you go. So, if you listen to our first episode and bought $1,000 worth of Bitcoin, you're like a millionaire now or something.

0:55:04.479 --> 0:55:08.660
<v B>Wait, if you bought... Ah, I don't even know. Yeah, that'd be ridiculous.

0:55:09.640 --> 0:55:24.100
<v A>Think of that. Like $1,000 is, you know, for most people like what, two paychecks or something? And it's just like weird to think about that. But again, there's no way to know that that would have happened.

0:55:24.200 --> 0:55:41.740
<v B>I'm trying to calculate in my head the orders of magnitude is throwing me off. Oh. So, okay, let's say it was a dollar and it went up to $900. That's two orders two times. So, if you spent it as $1,000, you would have made $100,000. So, yeah, so if you invested like, yeah, $1,000, you'd have been like a millionaire.

0:55:41.979 --> 0:55:42.759
<v A>Yeah, isn't that wild?

0:55:44.799 --> 0:55:48.419
<v B>And then if you had done it in like Dogecoin, you'd have

0:55:48.419 --> 0:56:02.054
<v A>Like... Yeah, that's the other thing too. Is like your brain is trained to see the outliers. It's not thinking about the millions of other like crazy things that came out that were not popular. It's

0:56:03.235 --> 0:56:49.480
<v B>A legitimate thing, right? Like, what is it? It's like survivor bias. So, if you look at the S&P 500 today and say if I had bought all those stocks, you know, 10 years ago or whatever and you say like how much money I made, it's actually not fair because a bunch of stocks which used to be in the S&P 500 10 years ago are now bankrupt and worth nothing. So like you would, it's like survivor bias. You can't take a stock that exists today because and trace it back 10 years because you have to look at the number of stocks available 10 years ago. You know what I mean? Like when you pull from the distribution 10 years ago of stocks that were on the market 10 years ago, it's different than pulling from today stocks which also existed 10 years ago because that guarantees they are good companies that survived at least 10 years.

0:56:49.580 --> 0:57:19.847
<v A>Yep, that's right. You know, one thing that amazes me is Silicon Valley still. Like many parts of Silicon Valley still haven't recovered from the dot-com boom. Like I was looking at specifically housing prices and there's many places like around San Jose, Morgan Hill, like all these places where housing prices are down like 20-30% from their $19.99 price. Like that just blows my freaking mind. Yeah.

0:57:22.100 --> 0:57:27.840
<v B>The dot-com boom was like a very popular boom, right? Like a lot of people were in on it.

0:57:27.960 --> 0:57:34.940
<v A>Yeah. I mean, your stories, I remember hearing stories—we were, well, I don't know about you, but I was in high school. You were probably in high school, right, at the time?

0:57:35.100 --> 0:57:35.963
<v B>No, I don't think I was even in high school.

0:57:35.963 --> 0:57:46.560
<v A>You were in high school, yeah. I mean, I was hearing stories about like, you know, yeah, like you get a brand new car as a sign-on bonus and stuff like that. Just like ridiculous stories.

0:57:48.300 --> 0:57:53.040
<v A>Nice car. You get like a Lexus as a sign-on bonus. Yeah. But those days are gone.

0:57:53.140 --> 0:57:55.540
<v B>And that was someone who just like sat and did Excel all day long.

0:57:55.720 --> 0:58:22.369
<v A>Yeah, that's right. They wrote an IP tracer in Visual Basic or whatever. Did you see that CSI episode? No. It was a CSI episode that's kind of internet famous where this guy's like, a hacker is hacking into our CSI database. We have to stop him. And this woman shows up and she goes, I'll write an IP tracer in Visual Basic. And he's like, good, get on it. So

0:58:22.369 --> 0:58:22.454
<v B>Funny.

0:58:24.020 --> 0:58:28.700
<v B>Well, thank you to all our listeners and current viewers. Yeah. All the dozens of you.

0:58:28.980 --> 0:58:41.220
<v A>Yeah, yeah. I mean, we have a number of people on the Twitch stream. My Twitch, for some reason, is flipping out. So I can't actually tell how many people are on the Twitch stream, but I feel like it's more than there was last time, which is pretty cool.

0:58:43.500 --> 0:58:43.632
<v A>We're

0:58:43.632 --> 0:58:44.920
<v B>the new Bitcoin, baby.

0:58:45.300 --> 0:58:50.900
<v A>Yeah, that's right. The, the, the, the, the, the, the Bitcoin of podcasts.

0:58:52.840 --> 0:59:14.817
<v A>The activity on Google Plus on Facebook has been great. Lots of user questions. This time we did something a little different where we just picked a few of the top user feedback and read it out. I felt like it went pretty well. It's a lot of interesting content. So thanks for that. Thanks for listening and checking out your books and tools of the show and all of that. And

0:59:14.817 --> 0:59:18.180
<v B>There actually are way more than dozens of listeners, and we appreciate all of you.

0:59:18.300 --> 0:59:32.520
<v A>That's right. We have dozens of viewers, but thousands of listeners, and a big shout out to you guys for, you know, it's because of you that we make this show. So, that's what sort of keeps it fun for us.

0:59:32.620 --> 0:59:38.037
<v B>So I'll see you in the 2015. That's right. Have a happy new

0:59:38.037 --> 0:59:43.977
<v A>Year, happy holidays and all of that. And I will see you next year. The intro music is

0:59:43.977 --> 0:59:45.480
<v B>Axo by Binar Pilot.

0:59:46.180 --> 1:00:04.380
<v A>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 an attribution to Patrick and I, and ShareAlike in kind. Thank you.

