Podcast Lookup

JVM Languages (Jython, Clojure, Scala)

Programming Throwdown

  • January 29, 2013
  • 1 h 0 min
  • Episode 24
Episode page
About this episodeThis show covers some JVM languages, languages that are built on top of Java. Tools of the show: Ripple Emulator and Battle of the Bulge…

This show covers some JVM languages, languages that are built on top of Java. Tools of the show: Ripple Emulator and Battle of the Bulge. Books of the show: Reinforcement Learning: An Introduction http://amzn.to/X6DpwS and Ready Player One http://amzn.to/Yg3zzP

★ Support this podcast on Patreon ★

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

JVM Languages (Jython, Clojure, Scala)

00:00—
  1. A

    Hosting provided by HostTornado. They offer website hosting packages, dedicated servers, and VPS solutions. HostT.net.

  2. B

    Programming Throwdown, Episode 24: Some JVM languages—Jython, Clojure, and Scala. Take it away, Jason. Hey, how's it going, everybody? We're back. Longest episode title so far? Yeah.

  3. A

    Yeah, that's what we're going for. We are breaking records left and right. So, yeah, we actually—you know, I think it's been a little while since we did a programming language show. Yeah. Because, you know, we had the mailbag, and then we had, you know, the Hadoop framework. And so it's pretty cool. We're actually going to cover three languages.

  4. B

    Make up for it. And

  5. A

    It hits you with, yeah.

  6. B

    Sure. One,

  7. A

    two, three punch combo. Say what you

  8. B

    want. Save judgment until the end.

  9. A

    We have a question from Roger. Roger, actually, out in the audience that we wanted to kick off the show with. We have an audience? We have an audience. Actually, well, we know we have Roger.

  10. B

    Oh, okay. I don't know if we have an audience. No, we do. We get emails from a couple of loyal listeners.

  11. A

    No, yeah, we definitely, and we definitely appreciate the email questions.

  12. B

    And comments. Comments on our G+ posts and stuff.

  13. A

    Yeah, totally. It's good to see the communities living, thriving. Thanks for checking out the books, too, and all that good stuff and the tools of the show. And hope that we can keep, you know, giving you guys some expert advice.

  14. B

    It must be the new year. You sound very insightful. Like, you've been thinking about this or something.

  15. A

    Yeah, I mean, I had that whole, like, you know, Christmas break to just kind of reflect. Okay. Anyways, Roger. All right. So, Roger had a question. His question is, do you guys ever feel behind in work? For example, I have a job where I code in C and Java, but lately I feel like I'm falling behind the whole web movement. I try to work on side projects to help keep up. So, I'll take first stab at this. Okay. Is it easy? Yes. Yes, you feel

  16. B

    a lot. Oh, he said he's never filled, but yes. All right. Well, there you go, Roger. Yes. So, there's a couple ways to kind of, I mean, guess at what Roger is saying here. But, I mean, first is we all are very, very busy. And, you know, often that's kind of the joke, right? It's a good thing. If you weren't busy, you should be scared, right?

  17. A

    Yeah.

  18. B

    Totally. You might not be working at that place for much longer. So, being busy is like very normal. It's good. And then also, I mean, we work in a world where people don't necessarily understand programming. So, many of us work for people who aren't engineers or technical or programmers because we have a very hard time understanding that kind of workflow that we have. And then, even if you do work for those people, engineering, software engineering is still relatively new. So, this whole idea of estimating how much stuff should take and how many people to put on something, we're just still not really that good at. Yeah. And so, everything is so new and different. And you don't know what obstacles you're going to run into. So, often you find yourself overloaded at work. I mean, this is very common.

  19. A

    Yeah, and I mean, a lot of people, you know, feel like, oh, I'm coding in like assembly for this Motorola chip to power a traffic light or something like that. It's like, I should be working on like doing stuff in the web using some crazy high-level language and all these things. And big data, I'm hearing that's the latest thing and all that. And so, you know, I think that there is something to be said for sort of just really diving deep into technology. Even if that technology isn't the latest, greatest thing, you could still have a lot of experience just on, you know, something that you're working on now. And there's still a lot of value there, right? So, you shouldn't worry so much about, oh, I'm not doing the latest thing, right, that I'm reading about in the news. Because the latest thing will get old. Either the latest thing will get old or it will die, right? Either of those two are very good. So, you know, in general,

  20. B

    Wow, that was deep.

  21. A

    That was deep. That was deep, Jason. But yeah, I mean, I think that his point, which is very salient, too, is just to continue to do side projects and keep yourself up to date.

  22. B

    But it's hard to find time with that. You have life. You have work. So you can be overwhelmed at work like I was discussing, you know, and just feel bad and then not have time for the other stuff. Or even the other way, Jason's interpretation of this, like feeling behind and that you're not working on the latest and greatest. But, I mean, for the most part, that's always going to be the case. Some companies kind of pick a thing and stick with it. And so even if you worked on that cutting-edge company, working on that cutting-edge thing, likely in two, three, four, five years, that thing is now the mature, safe project that everybody's using, right? And you would have to, like, this would be a dangerous thing if you always had to work on the cutting-edge thing. So I do think it is important to have some level of side projects or reading or watching YouTube videos or trying to just learn new language. I mean, whatever it is, you know, to try to stimulate that, you know, keep your brain working and learning.

  23. A

    Yeah, I mean, like right now, at least from what I've been reading, Ruby on Rails is kind of like the big buzzword, you know? It's like the hot thing.

  24. B

    Dude, I think that was, like, years ago.

  25. A

    Well, what's the hot thing now? I mean, it

  26. B

    even passes, like, to Node.js. And then now even that's a year or two old. So it's even past that.

  27. A

    Oh, man, I'm falling behind. I mean, I think actually my side projects.

  28. B

    I mean, it's not exactly the same, right? But, I mean, like the buzzwords keep, like, I mean, it's always going to be something new. Yeah, yeah. And that horizon's constantly moving. I think I'm about three to five years behind. Okay. I'm probably farther than that. I just know what they are. I have no idea how to do them.

  29. A

    But, yeah, I mean, you know, knowing about the latest and greatest thing is good and having that breadth is good. But it's not something to really worry about. And like Patrick said, there's—so what if he's still programming in COBOL? If he's still programming in COBOL? Well, he's good, he's watching the show or

  30. B

    listening to the show. So, but I mean, there's a limit to it, right? Like, so if the language—with anything, you know, we don't know the situation. You just got to do the best you can. We feel you. We understand the pain you're in. But, I mean, you got to kind of—if you're using a language that—nothing wrong with COBOL. There's, you know, lots of good money, I'm sure, to be made working jobs where you're programming COBOL. Yeah. But there's a balance of, like, you know, understanding what risks and things you're taking on. And if you're working in a language or environment that is still being used by newer stuff, then you're probably pretty much okay. So, you think of, like, Java, C++, even C, right? These things are still being used actively today. So, that's still a fertile field. Then you shouldn't be too scared. But if you are on something that basically it's all maintenance all the time, that's dangerous because if you know and that's, like, your thing and you're going to embrace it, great. But otherwise, those number of projects still on that are going to get smaller and smaller to some level. Yeah. And so, that's risky. And then also, you don't learn that how to kind of code brand new things because you're just stuck in maintenance all the time.

  31. A

    Yeah, yeah. And to Patrick's point, just to say it a different way, it really depends on what you're working on much more than the language, right? Like, I mean, you could be doing—so, I do a lot of C++. And C++ isn't, like, the newest, sexiest language. But I feel like I'm working on something that is pretty new and interesting, right? And so, that's really the thing you should look for.

  32. B

    Wait, but there just became, like, C++ OX, right? It just, like—Oh, yeah. It's new, right?

  33. A

    Yeah, we haven't moved to that yet. Oh, okay. Actually, I take it back. Like, I think C++ OX is supported, but I don't know it yet. So, I know, like—I know a few things, but nothing too big. But, yeah. So, but, you know, to Patrick's point, if you're happy with your job and you're doing some fun, interesting things, that's really what matters. And, you know, it's good that you're doing the side projects so that if the job does get stale for you, you can go and you'll have the latest tech under your belt. So,

  34. B

    moving on to our news, we—last week was the Consumer Electronics Show. So, we have a little bit of delay from when we record this to when we release it. But we feel like this discussion will still be interesting.

  35. A

    Yeah.

  36. B

    So, there was a bunch of new products, things for you to spend all of that hard-earned money that you're making while writing in your programming languages. Like, what are you going to spend them on in another year, right? So, that's what CES will show you. There were all sorts of new announcements, but I wanted to pick up on a couple because it kind of carries forward a thread that I guess has been in many of our shows. And we've been interested in talking about with things like the new consoles and the Ouya and these kinds of things, which there was some—you know, some stuff about Ouya came out. But there were a couple of big-name companies, which aren't traditionally known for doing console or portable gaming stuff, that had announcements about that. And the first one is this has been rumored for a long time, but Steam finally confirmed that they've been working closely with a hardware manufacturer to release what people have been calling the Steam Box. This is a hardware that will run Steam games. I guess one of them is called Piston. And I watched an interview with the guy from Steam, and he was saying that, you know, there's actually a whole family of products they have planned and, you know, kind of like a whole change of things that they have envisioned. And some of it is pretty cool. Some of it is kind of crazy and out there, but definitely sounds interesting because this is going to be a direct competitor to whatever the next Xbox and next PlayStation. Yeah, totally. I don't know. It will already probably be surpassing the Wii U. I don't know how much of a competitor the Wii—no, I'm just kidding. I don't know anything about the Wii U. It already has twice the specs or whatever. So, but yeah, but I mean, it's going to be able to run—so, Steam's official version or their partnered version or their—I don't know if this will be—maybe like Google does with the Android phones. They have like a Nexus. Maybe Steam will have kind of like this is our current endorsed platform. I mean, not a ton of details are out, but he said the Steam one is going to run Linux, and it's going to run all the current Steam games. So, like if you have Steam, they have to introduce this big screen mode. Oh, yeah. I've seen that. Yeah. So, like you'll be able to hook it up to your TV and run it, and then they're really focusing, he said, on doing some really awesome peripherals. So, controllers and stuff that have really low latency. Oh, like the

  37. A

    guitar for Guitar Hero. No, I don't think

  38. B

    like that. So, he's actually kind of saying the new thing is to move into—for the Wii U and Kinect and the PlayStation Move, right? All these things like—he said those are, if you think about it, really low bandwidth input to the system. So, you have to wiggle your arms around or do a dance, but it's really hard, especially if you're trying to do precise movements. He's like, so that—like why worry about that? Like don't—eh, kind of call that stuff a fad. Oh, I see. You know, and so he's saying he wants to make like a wireless control that's like really, really low latency and really precise and just—Oh, okay. You know, works really well. It makes me think the console era is

  39. A

    going to die. I mean like why would PlayStation make a PS4 when they have to compete with Steam, which gets all the PC users and—

  40. B

    But maybe I'm thinking we're going to more a hybrid approach, right? Oh, because this is a console. Yeah, it is a—it's a box. You buy, you don't build, right? Yeah, right, right. You don't go to Dell and run Windows. I mean, for the most part, there's going to be someone controlling pretty much the end-to-end kind of stuff on it. Yeah, that makes sense. Which is the nature of the console, right?

  41. A

    Yeah, I guess it's true. Really, the only difference between a console and a PC is that a PC has different expectations for the user. Like you're expected to upgrade the OS and things like that. But, I mean, this thing which really blurs the lines. I mean, if they have their own OS that they keep up to date and things like that and you just play the games on it and you don't have root access or whatever, then I guess it's technically a console even though it runs effectively like Linux.

  42. B

    Yeah, so it'll be interesting to see. It's going to be interesting times. But I thought it was kind of cool. And you also had some comments about biometrics as inputs. And so I started kind of like speculating with some friends like what kind of stuff. And one thing I thought of—so you have to let me know what you think about this. So they have this idea of the galvanic skin response. Okay. This is the conductivity of your skin. So it changes in response to stress. Okay. So if you do a lie detector test—I've never done a lie detector test. But one of the things they measure is this thing. So it's known like if you get stressed out, I guess your skin starts to kind of sweat. And so salt is conductive. So your skin becomes more conductive. Something like that. I have no idea. This is kind of like—I probably got this completely wrong. That makes sense. But so if you could measure how stressed somebody was. Think about like just cool things. So we started with this. And like what kind of cool game ideas. So we thought of one was, you know, if you had like a horror game. And if you got too stressed, right, then essentially you would like—you would lose. So you had to like do really like—like cutting wires on a bomb. But like if you got too stressed and nervous about it, you know, the bomb would just blow up. Yeah. Right? So okay. Maybe that sounds kind of cheesy.

  43. A

    It's like a staring contest. You ever do the staring contest? And this is from Conan O'Brien. It was a skit he did with Andy, the co-host, where they would stare at each other. And then like crazy things would happen behind Conan's head where he couldn't see it, but the other guy could. And like people would run out half naked and all that stuff. And then eventually the guy would lose because something so crazy would happen.

  44. B

    Okay. You could totally

  45. A

    do this. Like you stare at the screen. It just shows you more and more crazies. Then it shows you Gundam style. You're like, oh! Hands get

  46. B

    Really sweaty. Okay. So I, but also interesting would be even as like, you know, of course with user disclosure or whatever, but it'd be interesting if you're even just testing a game to see what parts are making people most stressed so you could optimize it. Or even the game could learn what stresses you the most? Like a guy popping around a corner, or like a really huge, you know, lumbering guy down the hall. Slow zombies or fast zombies? Yeah. You know, which ones really get to you? And then the game could kind of almost like, you know, tailor itself to what you're most scared or least scared. Like you're, you're really stressed. So it stops doing those things because it's trying to be a pleasant experience.

  47. A

    Yeah. Yeah. That's pretty cool. I don't know.

  48. B

    It was like, I don't know. My head was spinning, but that was one crazy conversation we had.

  49. A

    That's totally awesome. So this other article is on the NVIDIA portable. It's a portable handheld PC and it looks pretty cool. It looks,

  50. B

    It's basically NVIDIA Shield? Project Shield?

  51. A

    Yeah. Project Shield. It's like a controller and then it, it looks, it looks like you're holding a controller and that's it. But the top of the controller actually flips open, kind of like a flip phone. And there's a screen. And so just by having something that effectively fits in your pocket, you can play all of these games.

  52. B

    So this is like a, it's an almost, this is an Android handheld, but instead of being a phone or tablet, I mean, it's meant for gaming. It is a game controller. Like, you know, that's the form factor there.

  53. A

    Yeah.

  54. B

    But they're doing some really clever stuff with it. So first of all, the platform is pretty powerful. So you can play really good Android games on it. But then they introduced, related to this, this concept of streaming the games from your PC. So you could have a PC in my house, like upstairs running. And they also talked about Steam games. And you can actually, you know, your input would go to that thing. And then your, go to that computer. And then that computer would also stream the video back to your device if you had the right video. It's kind of like that cloud. So it's

  55. A

    Exactly.

  56. B

    Online. So it's

  57. A

    Like online. But the difference is you don't go to the cloud. It's in your house. Right.

  58. B

    So, the processing is local. And the demo they were showing, it was actually hooked up over Ethernet. They were saying because it was a noisy Wi-Fi environment, but they envisioned this working really well. How cool is that, right? That's pretty awesome. You're trying to be downstairs, like, you know, just doing something else. Or you don't have—you don't want to go sit at your computer where, at least for me, it's kind of like you. Nobody else is allowed to interact with you during that time, right? Like, you're kind of doing your thing. You're on the computer. But if you could sit there with a little handheld on the couch, right, and just kind of playing around. That

  59. A

    would be really cool. Yeah, this is super fun. And does it work as a phone, too, or no?

  60. B

    Oh, I don't know. Oh, okay. I didn't read, but I would

  61. A

    Android, it might.

  62. B

    I wouldn't think so.

  63. A

    Yeah, it doesn't look like it has a receiver or anything like that.

  64. B

    So I thought this was really interesting. And then they talked about this in combination with the Steam Box, right? So if

  65. A

    you think about this, like, if you pair this one-two punch thing, right? Then it's basically like a Wii U. But, I actually want both.

  66. B

    of them. As opposed to the Wii U, I have no desire to own. Yeah, exactly. This is pretty awesome. So, I mean, and then even from this wireless device, if you had—if NVIDIA did this well, right? And it's what others are already starting to do. And I feel like this is

  67. A

    going to be

  68. B

    a huge new thing this year or next year. It's like you have AirPlay on the Apple devices. So you have the Apple TV hooked up to your TV. The Apple TV hooked up to your TV. Right? Which effectively becomes a monitor. And then you can mirror what's on your iPad or iPhone. Android, you know, I'm sure it's got something similar or is in the world. You know, they're going to have that. Yep. This gets to almost the same thing, right? If you have this controller and some stick that I can plug into my TV and then all my devices can talk to it—this, I don't know. It'd be totally awesome. Yeah. This actually makes me excited.

  69. A

    I would love to have. The other thing, too, is I would love to have party games where just people could come over and bring their controller and you could just do, like, because this controller actually has a screen. So you could do things like play five-card stud poker, and your cards would

  70. B

    be out of hand. Or trivia. Think about, like, a trivia game. Yeah. Like, just people pull out their iPhones or Androids, right? And you just, like, you know, buzzing in, or you have this one. Yeah.

  71. A

    That'd be super awesome. Pretty awesome. I don't know. So

  72. B

    Maybe I get

  73. A

    A little too excited about this. No, no. I think this is great. I think this is super cool. Can you buy one now or no? No. Oh, not yet.

  74. B

    Do things coming out in the near future. The near future. The near future. The year 4000.

  75. A

    So last article is NASA pays $17.8 million for an inflatable International Space Station expansion. This is like something straight out of a science fiction book.

  76. B

    So I was telling a coworker about this Bigelow space, Bigelow Aerospace. This is a guy who owned a hotel chain, and he has like a whole company, kind of like you hear about Elon Musk and SpaceX, about getting stuff to space, like building space rockets. This guy is essentially the same thing, but he wants to build space hotels. So he has this concept of the like Kevlar and carbon fiber, whatever, these flexible fabrics. You pack them down. You send them up into space, and then you know, inflate them with air tanks or whatever, and it becomes a habitable environment. So it's small, and then you don't have to pay all this. Because in space, you don't have the same requirements as a building on Earth, the way gravity works and stuff. Right? So you can design the assumptions very differently. And now NASA. Now NASA apparently wants to like, so the full details aren't out yet. They don't come out until tomorrow. Oh, okay. But, you know, people are speculating like a storage unit for the space station. So they'll send this up and then attach it. That's crazy, right? This

  77. A

    Is totally awesome. I mean, this is a great idea, right? The only thing is, how do you get that much oxygen up there? I guess you have to make

  78. B

    Many trips. Well, so I mean, so I would, I'm not a space engineer. I'm not a rocket scientist. I'm not a rocket scientist. I only play one on this podcast. But I would think like you could compress it fairly well. So the oxygen itself probably doesn't weigh that much. Gotcha. Or the air mixture doesn't weigh that much. So you can compress it to a very high PSI, store

  79. A

    It in, you know, essentially a tank. Like a liquid form or something.

  80. B

    Well, I mean, even just to like you know think like a scuba tank, right? Like if you were to expand, I don't know how pressurized a scuba tank is, but if you took a scuba tank that was just, I assume, pretty pressurized, and you expanded it to normal, you know, Earth air pressure, it probably is much, much larger volume.

  81. A

    Yeah, that makes sense. So here

  82. B

    We are speculating about stuff. That's totally awesome. We should probably

  83. A

    Know this before we talk about these things. Well, nobody knows. It's not out yet. We'll have to find out tomorrow.

  84. B

    So stay tuned. But how cool is that? Like, I mean, so for you, was space a big thing growing up? Like, did you were you into rockets and thinking about being an astronaut?

  85. A

    No, never. I actually, so, I don't know, maybe my parents are wacky, but we used to go to medieval fairs and things like that. So you

  86. B

    wanted to be a knight, not an astronaut.

  87. A

    Yeah, if you had to choose. Yeah. Really? I didn't actually want to be either. I felt like both were pretty dangerous, but. But yeah, I never got into the space thing, but I can appreciate it. I mean, I think something like this seems really cool. The fact that you bring up a suitcase.

  88. B

    So I have a question for you. Would you go to space? I would go to space station. I would totally go to space. I would. Like, how much personal sacrifice would you do to go to space? Oh, wow. So, let's say, you know, people were having this conversation. I was like, oh, I would go to, like, I think it would be really cool to go to space. I wouldn't, you know, spend the amount of money they're talking about. I don't have that much money to spend to kind of go up to space. But if it became cheap enough, like, you know, a vacation, like, I would take now kind of cost to go, sure, I'd go. But other people are saying, no, I wouldn't. Like, there's no way. The risk will never be low enough. Like, it's too dangerous. Like, they just are scared of, like, the nauseousness they are sure they would endure. If you don't like it, you're going somewhere in a very, very different environment, right? Like, if you go there and you're just like, I don't mean to be graphic, but you're just sick the whole time. It's going to be really miserable. It's not like you could just go back. It's kind of like the Midwest.

  89. A

    I'm just kidding. No, but I don't think I didn't realize there was such high risks.

  90. B

    Well, I mean, you're going for most current designs, you're on top of something with a giant explosive, right? So, I mean, a rocket engine is basically just a controlled explosion. So, you're attaching yourself to a giant explosion. I wonder, though, like you're trying to get out of Earth.

  91. A

    I wonder what the percentage of planes that crash versus rockets that explode.

  92. B

    Oh, I think it's far higher from rockets currently. Oh, is it? Because the

  93. A

    Volume is so low.

  94. B

    There's not that many.

  95. A

    But I can only think of two rockets. Oh, no. No, more rockets. I can only think of two space shuttles that have exploded.

  96. B

    Whoa. Out of how many? Let's say there's one. This is bad. Was there two a year or something? But there was like five total, and two of them had catastrophic failures?

  97. A

    No, but that's how many units, not how many flights.

  98. B

    Okay. I mean, we can look it up. This is kind of actually really groan. Actually, it's probably still

  99. A

    Much more risky than an airplane. Because you think about how many airplanes there are, and there's not even a crash every day, right?

  100. B

    Yeah, I mean, it's very rare for there to

  101. A

    Be a complete fatality kind of crash. I guess it is quite risky. It's very, very risky.

  102. B

    But for now, I mean, the problem is the measurement is so low, you don't have... Well, first of all, it's a very new technology, so it doesn't matter anyways. But then also, the current method may be very different than the future method. Right. And then the measurement rate is so low, the measurement would be very noisy.

  103. A

    Yeah, that makes sense.

  104. B

    So, yeah. But I mean, I think it's always going to be somewhat... It's going to be more risky than taking a plane flight. I can't... Yeah. I mean, at least for, you know, probably our lifetimes, right? I mean, yeah,

  105. A

    Just the physical forces you have to overcome are much greater, and you could assume that always is going to incur higher risk, right?

  106. B

    Yeah, I mean, eventually, I would think it would be naive to say it won't become easier routine. Right? I think if history teaches us something, it's that whatever we expect not to happen... It's crap. Yeah, so whatever I say will be wrong, but I think it will become routine, but I think it will also, like, air flight will probably become much safer. So maybe future shuttle flights to the inflatable space hotel will be as risky as current airplane flights are.

  107. A

    Oh, I see. That makes sense. I don't know. Yeah, we'll

  108. B

    See. I'm making this stuff up now. Time will tell. See, if we did really good at this, we could, like, go back to this podcast and then, like, become futurists. Oh, see our predictions, yeah? Because we could, like, look, we predicted this was going to happen. We should be making bolder claims, Jason.

  109. A

    Yeah, totally. I think it will happen tomorrow. Wow. Now, actually, good question. Okay, do you think there will be humans in space, like, commercially in five years? I say five years. I say two.

  110. B

    You say two years?

  111. A

    Let's just say less than five. If it's

  112. B

    Less than five, you win. So you've got to say how many? I don't know. Okay. But you said it very vague. It's got to be very specific, right? How many man-days will humans be in space in five years? Okay. Will it be greater or less than 10,000?

  113. A

    How many man-days? So number

  114. B

    of men or women times the number of total days.

  115. A

    I'll put it to you this way. I think 1% of the population will have gone into space for a vacation. Oh, that number's far longer in a year. And I think that is going to

  116. B

    be five years. Oh, really? That's really aggressive. Oh, okay. So I was just thinking you meant, like, you could commercially. Like, right now, if you wanted to buy your way into space, it kind of exists. But, I mean, it's not really commercial. I mean, it's custom. You know, you've got to go on the Soyuz rocket. You don't think it would take five

  117. A

    Years to go from there?

  118. B

    That's what I was saying. Two years. Two years, basically, for very rich people to be able to buy a ticket to space.

  119. A

    Oh, but you're thinking it's going to take

  120. B

    much longer to bring it to the middle class. Yeah, it's like the greater than 50% of the population has access. Or to your case, 1% of humans will have recreationally traveled to space. You think that number is more than five years? Yeah, I think that's more.

  121. A

    Than five years. All right.

  122. B

    Well, because also, I mean, there's a lot of people on the world who don't have a car, don't have access to clean running water, right? So, like, you've got to already, those people in five years, I mean, they're going to go from that to recreational space flight?

  123. A

    Yeah. This episode is really, like, coming in. I've been really bad now. I guess I didn't think about all of the people in the world. I was only thinking about, like, the subset of people who were candidates, like, who would want to go into space, you know?

  124. B

    Well, you don't think those people want to go to space? I'm sure they do want to go to space. You don't think they look up at the stars and wish, like, oh, I wish I could go there? Wow, this is

  125. A

    Really off topic now. Anyways. We'll have to come back to that.

  126. B

    Okay. Let us know if you find this interesting or tell us to shut up and keep to our claimed expertise.

  127. A

    Yeah.

  128. B

    So, anyway, speaking of

  129. A

    Our claimed expertise is the tool.

  130. B

    Of the show. Of the show. Show. Show. Show.

  131. A

    So, my tool of the show is something that I think is pretty freaking cool. It's a Ripple emulator. It's actually not a Ripple emulator, but it's called Ripple Emulator. And what it is? I'm confused. It is pretty cool. It's an extension for Chrome. And you put it, you know, you attach it, and it puts a button in the top right of your Chrome browser. And then you click the button, and you can actually simulate what the site looks like under different phones. Oh. Yeah. So, you can click it and say BlackBerry, and it will show you what your site looks like.

  132. B

    I thought I was going to be able to drop a stone in a pond and watch the ripples. The whole website? I'm very confused. Ripple outwards. Yes.

  133. A

    Okay. But it's pretty cool. This seems more useful. Yeah, yeah. It actually uses, like, the emulators of the devices and things like that. How fast is

  134. B

    It? Is it pretty fast? It's pretty fast.

  135. A

    It's, you know, I haven't tried it on dynamic content. I've only tried it on, you know, static web pages. But it feels very responsive.

  136. B

    Have you tested for accuracy? Like, take a device you own and, like, compare?

  137. A

    No, I haven't done that either. Sorry, I didn't mean to deflate your balloon, dude. No, but so I haven't done, like, rigorous testing of this, but I have used it to sort of verify, like, a site I was working on, how it looked in Android. Oh, okay. And, you know, I haven't checked pixel by pixel, but it was pretty close.

  138. B

    No, no, no, no. I didn't mean that. I just mean, like, yeah, did it generally give you a better feel for it? Oh, yeah. Okay. Yeah. Better than just resizing your window down to the right pixels.

  139. A

    Yeah, yeah. Resolution. No, it definitely did better than that. Okay. And so... Well, good tool then, sir. And so it covers, like, different browsers on different, you know, platforms and things like that. And it'll actually warn you if you have something that's, let's say, like, Mac-specific or desktop-specific that, like, a phone won't know how to handle or things like that. So...

  140. B

    Very cool. Yeah.

  141. A

    It's actually made by... Or it's made by a company that was bought by BlackBerry. So... By RIM. So they should... It should be pretty well-maintained and things like that. So if you do any mobile development or you want to see how your website works on Android or BlackBerry or some other, check out this Ripple emulator extension.

  142. B

    I feel like I should make a joke about, like, RIM stock price or something at this point. I don't.

  143. A

    Want to offend anybody. It's not a simulator. It's not... It can't do it all. I feel like... Oh, no, never mind. Poor RIM. I'll just... Remember when RIM went down and there were riots in London? Yeah, so RIM, like... So RIM... Aren't they in Canada? They're in Canada, but something happened to their London thing and there were actually riots. Or, no, actually, the riots... We are totally, like, making... Like, we

  144. B

    Don't have, like, a story about this or anything. Hang on. We're going to totally mess this up, dude. So, okay. Something about RIM riots. Okay.

  145. A

    The UK riots, RIM and the race price of privacy.

  146. B

    Anyways, so... Something bad happened. Ripple emulator. Check it out. Bought by RIM. So what is your... Hopefully they didn't

  147. A

    Pay in RIM stock. Yeah, this show is sponsored by RIM... Sponsored by RIM's competitors. Oh, sorry.

  148. B

    Mine is the very, very, very useful tool. I could not get by without this. Really? This... If you don't have this, like, I don't even know how you get any work done. Really? That is the game Battle of the Bulge for the iPad.

  149. A

    This looks awesome.

  150. B

    So this is a war game for your iPad. It does not work on iPhone. Does not work on Android. Nothing. I'm a horrible, horrible person. Supposedly, I guess, one is in the works. Okay. But, yeah. So this is a really, really, really awesome game. It's kind of, like, strikes an awesome balance between, like, a true war game. If you ever play, like, a real, like, war game with all the little cardboard Axe and allies. No, no, no, no. Like, I don't... Like, the... What is the name of that company that does all of them? Oh, I can't think of them. Avalon Hill. With all the little cardboard squares. Oh, yeah. And the hex maps. And, like, a book that's, like, 50 pages thick. Like, okay. If you ever play one of... I never actually managed to play one of those. But I've seen them. I've

  151. A

    seen people playing them, yeah.

  152. B

    And then, like, Risk or Axis and Allies are just kind of similar. This kind of, like, strikes a balance in between. So the nice thing is the computer handles a lot of the accounting, bookkeeping for you. They threw a lot of, like, really thematic elements into it. But, yeah, it's... Like, you can sit down and lose really easily. Like, you know, it's really fun to just drag the guys around and then completely you lose. Because a game is really hard. And I've never won. Not even once. Oh, man. I got a tie once. But it's actually really fun. And I've kind of always wanted to, like, imagine myself as being, like, an awesome strategy war game person. But I kind of find out, like, I'm pretty terrible at, like, strategy. Even, like, you ever really like the turn-based games? Like, Final Fantasy Tactics? Yeah, yeah. Or any of these styles. Advanced Wars. Yeah, or Advanced Wars. I'm terrible at all of those games. Like, I really, like, envision myself as, like, this awesome, like, game guy. And, like, oh, really good strategy. I'm just terrible. Like, in my old age, I've kind of... That sounds really hard. Aww. But I just kind of, like, I'm embracing the fact that I'm... Like, I played this game, and I'm just, like, on the easy setting. And, like, I don't

  153. A

    Even fathom how I would ever beat it. One thing I've noticed is that some of these games demand a lot of micromanagement. And so, what if you're not specifically moving each person, then you can get burned just on...

  154. B

    No, no. So this one, I mean, this one—it's not the individual. It's what they call a squad. So you're managing kind of a squad. And it's similar to Advanced Wars. It's about the same level of... Oh, I see. I mean, probably people don't even know what we're talking about. That's okay. So, you know, you're kind of moving the people around. And then there's very complicated conditions. And I think that's what I'm not accounting for. Like, oh, this is an elite squad, but he's attacking somebody in a forest. So, he's got a defensive bonus for being in a forest. And I haven't—I've only played five or six times, but I haven't yet gotten to that, like, oh, I need to be... I need to move my guy to the right to be on top of the hill so I can attack down onto the people as opposed to just attacking them straight and just watching my people die. So it's kind of interesting if you have an iPad. I'm going to be never to go to war with you as the creator. Yes, you should not. You should not let me direct your war. I would not do well, according to my previous experiences. We'll just train everybody to be hackers, and we'll just do it from the safety of our desks. Yeah, exactly. So people should check this out if they have an iPad, which greatly, I know, narrows down. It doesn't work on iPhone or iPod Touches. Well, we'll

  155. A

    have to say as soon as it does.

  156. B

    But it is a little expensive at $10, but I found one of the games is really, really well made. Not just oh, we're ported this over or whatever, but this one's really well made, and I really enjoyed it over the Christmas break.

  157. A

    Yeah, that sounds awesome, man. So is it easier to hack somebody if they're on a mountain, or do you pay a penalty for that?

  158. B

    It depends on what mountain.

  159. A

    Oh, that's true. Maybe it's Iron Mountain. Because,

  160. B

    if it's you know, NORAD, you

  161. A

    know, deepens, that's probably pretty hard to hack.

  162. B

    Yeah, exactly. Also, if the mountain is very tall, connectivity might be bad, so it might be hard to hack them because you probably don't have a reliable connection to them.

  163. A

    Ah. You just reminded me of something. Speaking of connections, that was

  164. B

    A joke for everybody playing along at home.

  165. A

    Somebody at work who's a hardware engineer happens to sit next to me. My phone kept going off, and I would leave my phone when I would, like, go to a restroom or a meeting or something, and my phone would go off, and he was getting annoyed with it. He finally took those static, the things that, like, if you buy a GPU or you buy a hard drive,

  166. B

    It comes in a static bag, conductive bag.

  167. A

    Yeah. He took four of those and he put one inside the other, and then he put my phone in that. And it's basically a Faraday cage. I didn't realize that. If he had grounded it, yeah, but pretty close. Yeah, I mean, and then he just closed the lid. He didn't tape it shut or anything. And my phone totally had no connectivity. Did he tell?

  168. B

    You? He did? No, he just

  169. A

    Waited for you to come back. He just waited for me to come back, and I was like, look at my phone, and I found it wrapped in static bags. But I didn't think that would work, but it does. Wow.

  170. B

    Yeah, I think it does. I mean, it really attenuates the signal very strongly. Yeah,

  171. A

    Yeah. I didn't.

  172. B

    I don't. I

  173. A

    Guess I don't know.

  174. B

    I used to think Faraday cage, too, but then somebody told me. I said that one time, basically, like you said, and then I got a verbal lashing from someone who actually knows. Yeah, because a Faraday cage needs to be grounded. So if you think about it, essentially, the radio waves are coming in. So if you had strong enough signal, it would charge the bag. I'm butchering this because I know nothing about this. No, you know more than me. But essentially, the bag would start becoming an antenna because you're able to manipulate the charge on the bag versus if it's grounded, every time the charge builds up, it just would go straight into the ground. That's my, like, I probably butchered it. We're going to have people email us and tell us. No, no,

  175. A

    No. I think that

  176. B

    makes a lot of sense.

  177. A

    I mean, you probably know more electrical engineering than, like, 99.99% of the population. So, anyway. Thank you for that compliment. Maybe. Think about it. Okay, so, again, time for Book.

  178. B

    Book of the Show. Our newest, oh, no, I guess newest segment was Question of the Show.

  179. A

    Well, Book of the Show.

  180. B

    Book of the Show.

  181. A

    is pretty awesome. So my Book of the Show is, I have it right here. Here. This sound is, uh. Here, maybe let me drop it on the table. No, no, don't do that. Don't do that. It's pretty heavy. It's a hard cover. This is Reinforcement Learning and Introduction.

  182. B

    So trees were killed to make that book for you. That's true. That's kind of sad. I'm sorry. I don't know. I'm sorry, guys. I haven't

  183. A

    even finished it yet. So some of the trees died in vain.

  184. B

    Oh.

  185. A

    Yeah. So she's at one in the beginning.

  186. B

    Why are we?

  187. A

    Anyways. We need to be more upbeat. Reinforcement Learning and Introduction by Richard Sutton and Andrew Bartow. So a little bit about Reinforcement Learning. You know, we were thinking maybe doing like a whole Machine Learning podcast. But just a quick synopsis of Reinforcement Learning. What makes it different? You know, so traditional Machine Learning, you do the, oh. For example, like if, you know. So one thing they do is they measure like babies, right? They measure the distance from like, I think the baby's hip to their

  188. B

    knee. Okay. So we switched from artificial, so real life, real doctors.

  189. A

    Oh, yeah. So real doctors.

  190. B

    Okay. And they

  191. A

    measure like from the baby's hip to their knee.

  192. B

    I shouldn't say real doctors. That sounded bad. Medical doctors.

  193. A

    And that distance. Hip

  194. B

    to the knee.

  195. A

    They used to figure out how tall the person is going to be when they're an adult. Okay. And obviously it's not like one-to-one. There's some function that maps that. And so you could actually take a bunch of babies, measure them at their babyhood, measure them again when they're adults. We should say doctors should take a bunch of babies. Don't

  196. B

    try this at home.

  197. A

    And then you can come up with some function using regression or something like that, like simple machine

  198. B

    learning techniques to figure out so that

  199. A

    when you get baby number X plus one, then you know how tall they're going to be.

  200. B

    Okay. Yeah. So that's regular machine learning.

  201. A

    Reinforcement learning is when you have to make a lot of decisions. So by contrast, let's say you want to have a machine like play checkers. So you make the very first move, but the problem is you haven't learned anything, right? The very first move doesn't tell you like, was this a good move? Is this a bad move? Right? So you only get a reinforcement. You only get like, you only get a value at the end, like when you've lost the game or won the game. Okay. And somehow you have to take that like, oh, I lost the checkers game. I'm really disappointed. And like, you have to like think about all the things you did and which ones of those caused you to lose, right? Or which things the opponent did, which were great for him, which caused you to lose and vice versa if you win. Reinforcement learning lets you do that. That piece of it. I think I need to sit here quietly. Okay. So it's not like, oh, I have all this data, all these like XY points, and I just like need to fit like a function to these points. It's more like I have all this data and only some of it I know was good or bad. So in other words, like all the last moves you played in all the games, which caused like the move which lost you the game. Like you know that that move was bad or that move is part of a bad game. But you don't necessarily know all the moves that led up to it were bad. Some of them might have been great, but then you lost because of other reasons, right? Like two of the moves might have been great, but then the next 28 were bad. Right. So reinforcement learning lets you do that part of the problem. And if you want an introduction to that,

  202. B

    You can read this book. I feel like I need an introduction to that. Yes. I should read this book.

  203. A

    Another simpler example would be if someone's on your website and you know people are on your website. They're spending a lot of time. They're visiting a lot of links and they're having good time. And then you make some changes. Let's say you make like 200 changes or a bunch of changes. And then people, they start just dropping off your website or they start not spending enough time on your website. Or maybe, you know, everyone who goes to this, like everyone who visits sites A, C, and D on your website, like in that order, they never visit your site again. So reinforcement learning will actually give you those answers. So you could just put in everybody's sort of their visit history through your website into a reinforcement learning algorithm. And it'll actually tease apart what, you know, sites and what actions are good and bad. That sounds pretty cool. Yeah. I feel like I

  204. B

    should read this book.

  205. A

    Does it let you do some

  206. B

    really awesome stuff? I feel like I probably won't understand it though. No, this is an introduction. Okay. So, but I've been told

  207. A

    that before. Patrick Sipko. No, so I actually, this is one of the first books I read. And so

  208. B

    If somebody, so take me for an example, very, very little, you know, artificial intelligence. Could I read the, like, does it contain, do I need to know like previous artificial intelligence? No, you can totally. So this is my first artificial intelligence book. Yeah. This would be good.

  209. A

    I mean, you might need to know the very basics of machine learning. Like it might help to read Machine Learning and Introduction or something like that.

  210. B

    Okay.

  211. A

    But even if you didn't, this book has a bunch of really simple examples. Like it starts with kind of like, you know, driving and your commute time, trying to estimate your commute time to work. So it's a very concrete example, and they kind of carry this example through the whole book. And I think it starts off with, you don't need a lot of knowledge.

  212. B

    So is it written in domain language or normal language? Like in other words, can I read it even if I don't fully get all the concepts while I still learn stuff out of it? Oh yeah. Totally.

  213. A

    I mean, it has a few equations in it, but it's not too math heavy. Okay. It doesn't

  214. B

    try to teach me through the equations. Right. Okay. I don't books like that. I have trouble reading books like that. I just don't. I need to like have the concept told to me like in plain words.

  215. A

    It does words as pictures. And they have the first couple of chapters are available online for free. Ooh.

  216. B

    So you should start with that. An introduction to the

  217. A

    introduction. Yeah, exactly. Does this book have an introduction? I don't know. Well,

  218. B

    the first few chapters.

  219. A

    Oh, the first chapter is an introduction. It does have an introduction to the introduction.

  220. B

    And with that, what is your book to show? Since I'm the slow learner, I'm going to go with another fiction book. Okay. This one is Ready Player One by Ernest Cline. This book was actually really, really popular. I think it even made the New York Times bestseller list for a while. And this is about a year and a half old at this point. But this book is really, really a fun read. Wow. I had a good time reading this. This looks cool. It was very enjoyable. And the author of this basically took everything that he loved about the 80s and put it into a book that was set in the future. Ah. Ah. And so I kind of missed that boat a little. Like, you know, there's no secret. Like, I'm not that old. So, like, I knew most of the references, but they were more like I kind of didn't know exactly what they were. And there were a lot of references I'm sure I missed. But, you know, I still did get a bunch of it. Like, you know, there's references to Pac-Man and not just like references, but even just talking about Pac-Man and a lot of people trying to understand the culture about like Dungeons and Dragons and about these kinds of things. It's really a good story. I really enjoyed it. It wasn't like some science fiction you read where it's like, oh, man, this is like really deep. It made me think about like the future and like, you know, about this stuff. It was just like a fun read. You know, you read a book and it's like really easy to read and really fun. And this was this book. And once you start reading, it's like, oh, just one

  221. A

    more chapter. I just want to find out. Just

  222. B

    One more chapter.

  223. A

    Just one more chapter. Yeah, I've been looking for a book like this. Like, I kind of want something more light. I feel like

  224. B

    This is it. So I feel like and plus with all the cultural references, it's kind of like just like a running joke almost, you know, like just like all this pop culture to various movies and games and, you know, one-hit wonders from the '80s. All those kinds of things. So I would definitely recommend this if

  225. A

    you haven't read it yet. So I don't I'm kind of out of touch also with the '80s. Like, would I still get enough of it? Yeah. So, I mean, I think it's a good book

  226. B

    without that. OK. So because you'll I mean, you'll know stuff, right? Because a lot of stuff from the '80s still exists today. Like, I mean, you know what Pac-Man is. Yeah. You know, and you know what a lot of these things will be. So Back to the Future, you know, kind of has some. Yeah. Yeah. Some stuff in there, I guess. Is that true? I don't remember. Anyways, DeLorean is

  227. A

    in it, apparently.

  228. B

    Well, that was something. Anyway, so there's you'll know stuff in there. And even if not, like, it's still a fun read. OK. And I went to a presentation the author actually did where, you know, he was like signing books and stuff. Oh, OK. And I

  229. A

    was like, oh, OK. Like, this would be good. Like, I really like this book or whatever.

  230. B

    So I went to hear him talk. And he was saying how that, you know, the approach he took to doing this was kind of interesting. But he told that there were like teenagers who obviously, you know, weren't even alive in the '80s. And they read it and they read the book, the e-book version, and have Wikipedia open. And every time there's a reference they don't get, they look it up in Wikipedia. And so by the end, they kind of end. This is actually really fascinating because it's similar to what happens without giving away a lot. It happens to people in the book. So the people in the book is about kind of kids in the future trying to learn about '80s culture.

  231. A

    Oh, I see. And so one interesting side effect is that really happened in the present.

  232. B

    Yes. So like

  233. A

    People right now are

  234. B

    actually like learning about '80s culture to understand this book.

  235. A

    Yeah.

  236. B

    So anyways, check it out. It's pretty meta. I like it. It was a fun read.

  237. A

    Cool. Yeah. I'll definitely read that. So on to the programming languages of today's

  238. B

    show. That's right. So we picked a—we have three languages today: Jython, Clojure, and Scala. And all of these things have in common that they are languages meant, written to use the Java Virtual Machine. Yep. So the Java Virtual Machine is the virtual machine that Java runs on.

  239. A

    Yes. I love saying statements like that.

  240. B

    So when you write Java code and you run the Java compiler, it compiles it to the bytecode, right? Which gets interpreted and run on the Java Virtual Machine. Yeah. Which is—was kind of Java's whole thing when it came out in the '90s was write once, run everywhere, run forever. I mean, there was some play on that. It was like you wrote your code so as opposed to C++, where you might have to change based on your platform and know about NDN-ness and know about all this stuff. Java's like, 'I'm just going to write my code once and it's going to run everywhere.' Yep. You know, just take it and just run it, run it, run it once it's compiled. And even

  241. A

    to go. Even on like a higher level, you know, C++ didn't really touch things like GUI. Like it was expected that if you wanted to make a GUI, you know, some user interface that you would have to hook into Windows.

  242. B

    The OS, whatever your OS was.

  243. A

    Yeah. You'd have to ask Windows or Mac or Linux for a window or a button. And you'd have to write three versions, right? But with Java, they did all that hard work for you. So they wrote three versions of their GUI and they had one common API for all three. And so you can take some GUI program that you've written in Windows and just, you know, know that it'll run on Mac. I mean, the buttons might be a little bigger. You might have to do a little bit of tweaking there. But for the most part, they've handled just about everything.

  244. B

    So the JVM, you know, buys you a lot. We've talked about virtual machines in the past. Maybe we'll revisit it in the future. But this idea of the JVM is a defined machine, but it doesn't actually exist or doesn't have to actually exist. It's a theoretical machine which is described. And the bytecode that it's compiled down to and then interpreted and run is just like in a real machine to be executed with instructions and moving stuff to registers. But then the virtual machine translates those from itself to whatever current processor it's running on, which is why it doesn't matter if you're running on ARM because you're issuing the Java Virtual Machine the same instructions. And then the Java Virtual Machine knows how to, in turn, issue the proper instructions to the ARM processor that it's running on. And so that's how you get that write once, run everywhere. And so all these languages that were built on top of that JVM kind of get that stuff for free. And like Jason said, also get the built-in GUI stuff for free, you know, networking stuff. Whatever is built for Java, they kind of get that for free.

  245. A

    Yeah, even there are some things which, you know, kind of go unnoticed many times. But, for example, Java has an awesome date and time library. So you can actually say, you know, the time is like this many seconds since the epoch, or that's, you know, people usually use UTC. Wait,

  246. B

    Do you pronounce that 'epoch'? Yeah. I

  247. A

    Always pronounce it Epoch. Oh, which one is it? We'll have to look it up. I think

  248. B

    It's Epoch. So anyways,

  249. A

    I'll finish this thought, and you can look it up. So, but you might, you know, you might have users who are in Greece or in the Netherlands.

  250. B

    Oh, you're right. It is Epoch. I feel stupid. It's Epoch, yes.

  251. A

    Or in the Netherlands or the U.S. or U.K. or whatever. You might want them to see the time, you know, that they're seeing on their clock, right? And you want everyone to see the right, the localized time for them. That's actually really, really freaking hard. You know, I mean, it seems super easy. But you think about, like, even in the U.S., like, we have Daylight Saving Time. We have all these other issues. You have, you know, you have, like, different, you know, time zones. You have rollover. And there's even, like, really wacky things that can come up. So, like, I'm having trouble thinking of one off the top of my head. Oh, like, one, for example, is let's say you say if you buy this product, it expires, you know, on the 13th. Well, like, what does that mean? Does that mean, you know, 12:01 on your time, localized time? Or is it, you know, this time UTC, right? All this stuff can get really hairy. So you have to kind of get it right. But it's really nice when Java can do it for you. Or at

  252. B

    least the stuff that also is built in Java or at least to run on the Java Virtual Machine does it for you.

  253. A

    Yeah, exactly. Yep. And so kind of what we're getting to is all of these languages, not only do they run on the JVM, but they also can natively use all of the Java libraries. So the Java GUI, the Java Datetime, all of this stuff you get for free, which is pretty amazing. So the first up is Jython. Yes. Crazy name. Yeah, I mean, who would have, I mean, took like pretty wild, like no one would figure out that it was Java and Python put together. It's

  254. B

    just such a

  255. A

    stretch. Yeah, this is actually Java and Lisp. So, yeah, Jython is, so one thing about Jython that's kind of different, and you'll kind of sense a gradient when we talk about these, is Jython is very much Python. I mean, you can actually do import Python import statements and import Java, you know, classes to get those benefits that we talked about earlier. But for the most part, you're writing Python, and many people use Jython, or sorry, many people compile regular Python scripts with Jython.

  256. B

    So they just write regular Python scripts, and for whatever reasons, platforms, whatever, they'd rather run them on the JVM than using the Python equivalent.

  257. A

    Right. Like imagine if you know, you're on ARM. Well, maybe I'm not sure if the Python virtual machine compiles on ARM. But let's say you're on some crazy new architecture. You're a hardware engineer. You made this new processor. It's totally wild.

  258. B

    And your first step was to port the JVM?

  259. A

    Of course. Okay. It's like what you do right after you get MAME running on it. Step one: MAME. Step two: JVM.

  260. B

    I thought step one was Doom. Everybody always makes Doom run on everything.

  261. A

    Well, yeah. Actually, yeah, if you get SDL running, which is the thing that MAME is built on, you get Doom for free. Because Doom is also built on SDL.

  262. B

    I need to reprioritize my life. Actually, I have

  263. A

    a new version of it. Actually, I have a friend who's working on getting SDL on the boxy. A rooted boxy. Okay. So, anyways, we digress. So, you know, you get the, and the other thing is optimization. Like, you know, Guido is a super smart guy. You know, he did a lot of cool stuff. But he probably, and his team and people who work on the Python VM, probably don't have the resources as the people who work on the Java VM. You know, so the Java VM has just had crazy, and there's also a ton of research and literature on things that people have done with the Java VM to make it, you know, a little bit better. There's many different implementations of it. You know, there's like the Ice-T and the OpenJDK version. There's Suns. There's, you know, et cetera.

  264. B

    Well, that's a good point. Yes, there are multiple JVMs as well. Yeah. So, that's a good point. I think we talked about that before. Yeah.

  265. A

    But anybody who writes this layer

  266. B

    to basically expose, on the one hand, an interface for the Java Virtual Machine spec, and then on the other side, runs on whatever architecture, essentially can do their own JVM. Pending all the proper licensing agreement, whatever. Oh, yeah. There's all sorts of policies. Whatever that, you know. Because Java is partially sort of kind of open-sourced, I guess, right? So, there's all sorts of controversy in court cases, and we're not lawyers, so we won't say that.

  267. A

    No. No, we're not lawyer cats. But the other thing is, you know, a lot of mobile, like Android, runs on Java. So, in theory, Android can run Jython, Clojure, and Scala. I mean, I haven't

  268. B

    Tried it. I know for a fact it runs Scala. Oh, really? We'll talk about that in a little bit. Oh, okay.

  269. A

    But yeah, so you just get a ton of stuff for free. So, you know, writing Python with Jython just gives you a ton of benefits, right? And almost no

  270. B

    problems. I mean, that's good that if you don't have to change anything, you can always try it. Like, if you're suffering a certain problem or want to run it, I mean, it's worth a try, right? Yeah. Especially if you're on a Mac supporter or not great supported platform, then, you know, you don't have a lot of risk trying it, is what it sounds like.

  271. A

    Yeah, totally. So, the second one is Clojure.

  272. B

    Clojure with a J.

  273. A

    So, I think similar to the story, well, your story.

  274. B

    The story with Python, Jython. Wow. Similar to the story with Jython is having Python run on the Java Virtual Machine. Clojure is very similar. Right? So, this is running Lisp on the Virtual Machine. And you get all those nice advantages that we've already discussed: rehashing. And you're able to intermix the niceness of a functional language like Lisp that gets you. Yeah. And still have some of the use of the underlying Java libraries and JVM.

  275. A

    This is kind of like one of those episodes of a show where they go back in time and visit all the old episodes. It's kind of like, it's sort of like, kind of like because of the way that we're talking about all these other languages.

  276. B

    Oh, I see. Because we're all talking about languages we talked about before.

  277. A

    But yeah, definitely, you know, if you haven't heard the Lisp show, give it a listen. But, you know, Lisp is awesome. It does some amazing things. It has incredibly fast hash tables and it lets you lambda express. It has all sorts of super fun stuff. But it's also very niche, right? I mean, there are things that you don't want to write in Lisp. You don't want to write, you know, like a file I/O library in Lisp. It's, like, painful, right? So, you know, you can actually integrate, you can go seamlessly between Java and any of these languages. So you can take the part of your problem that you're trying to solve that's very easily solved by Lisp. And you can do that part in Lisp and then do the rest of your program in Java. And they'll just communicate with each other, and it'll work. It'll work very fluidly.

  278. B

    The other thing is I think Clojure also adds some pretty advanced stuff. I think they add, like, a Software Transactional Memory. Oh, nice. Which maybe we'll talk about one episode. So they do add some things. And Lisp has all these dialects, I guess, are kind of what they're called. But Lisp has all these dialects in Clojure. I don't know if you consider one of them or not. But it does add its own set of flavor to what it kind of does better or different than the existing Lisp, in addition to all of the JVM advantages you get. And having the macros set up where you're able to call Java APIs, you know, from your Clojure code.

  279. A

    Yeah, yeah, totally. I mean, I did a lot of Lisp programming in college and I never did anything with a GUI. Like, there were times I wanted a GUI. But, you know, with Lisp, it's like if there was some way, it'd probably be some Lisp GTK, like, crazy hackery that probably wouldn't work half the time. Right? And it's just kind of super ugly. Right? But, you know, the JVM has sort of taken a lot of that complexity away. So you could write, you know, a Clojure program that has, like, a GUI built into it and lets you, like, visualize results in a way that's more appealing. You know, and you'd have much higher productivity than if you're writing in straight lists.

  280. B

    And I guess, I mean, I remembered a point during this discussion about that running on the JVM also brings us security. So when you run a C++ application, you don't know what that, you're basically letting that, aside from what the OS provides, you're letting that thing do whatever it wants to. Yeah. But the JVM, barring recent exploits that were discovered, I mean, the JVM has this notion of security. So you're supposed to be able to run untrusted code. Right? And if you don't want to let that code access the file system, it's not supposed to be able to break out of that virtual machine. So it's not supposed to be able to do stuff you don't want it to do.

  281. A

    Right.

  282. B

    And so when you run Clojure, for instance, in the JVM, you're getting that added ability to kind of have that feeling of security.

  283. A

    I mean, there are whole teams from many different, like, you know, multi-corporate, you know, consortia that are looking into JVM security. There's probably next to nobody looking into LISP, you know, the CLISP security, right? So, yeah, you get the benefit of all these resources.

  284. B

    So our final language is Scala. Scala takes a little bit of a different bent than these in that it doesn't port an existing language to the JVM or an existing language concept to the JVM. It instead tries to be kind of everything Java is, but even better. So it tries to be its own thing. And so some of the interesting things about Scala is that it's both functional and object-oriented. So you can kind of, like, pick both of whatever you need from the strengths of both of those in your code. It gets all these benefits we've already talked about, about really good compatibility with the existing JVM. And the nice thing about Scala being a new language and kind of trying to extend upon the Java syntax is sometimes writing Scala code, you know, I'm doing air quotes here, is as simple as just, like, making a very few modifications to existing Java code. Right? And then once you do that, you may be able to do some concept that would have taken you many, many, many lines of Java code, and it's just a few lines of Scala code.

  285. A

    Yeah, I mean, anyone who's done, you know, raw Java on Android has been through the pain of runnables. So Java has this thing called Runnable, and the idea is, you know, this is something that you want to run in another thread. So a Runnable, you know, on the surface, a Runnable just has, is just a class with a run function. So there's not much to that. But the idea is many of these thread, like a ThreadPool in Java or, you know, a single Thread, if you want to kick off a thread, will use, will take a Runnable as a parameter and then execute the run function in another thread. The thing about Android is Android doesn't want you to lock the OS, right? I mean, they don't want you to do something that paralyzes the person's phone. And so they really encourage you to do everything in other threads. And what this means is you have just tons of these, like, Runnable, these, like, container classes that don't have any data in them. They're just classes so that you can call a run function. And your code kind of gets kind of ugly. It's very hard to write clean code this way. Well, Scala, because it has the option of being functional, sort of gets around this. I mean, functions become objects, and you can just pass them around to different methods. So you could pass a function to, you know, around to the Android OS, and it'll run it. And it just makes the code look cleaner.

  286. B

    So Scala is being used. The other thing about what functional programming gets you is a lot of, it lends itself to distributed processing more readily, in many people's opinion, than, you know, object-oriented programming, for instance. And so you'll see there are a number of, well, for several of these, but for Scala in particular, there are a number of very highly distributed web apps that use it. So Twitter has come out and said that they use Scala. And they've actually, like, been big contributors. They released a set of learning guides for Scala, if you're interested. So that's actually what they use for their new engineers. People who are experienced software engineers but new to Scala, that's what they use to teach them. So that's a recommended source of learning. Foursquare is known to use specifically one of the web frameworks of Scala, the Lyft framework. And so I'm pretty sure they'll probably help out contributing to that as well. But that's something they've come out and said that they use. And those are something that there are web frameworks for other languages and stuff. But many of these JVM-based languages do seem to have a strong web framework presence, or really good web frameworks that seem really well supported.

  287. A

    Yeah, I mean, one thing Java got extremely well was the whole web, you know, movement. Like, Java was essential to that. I mean, they started JSP. They had, you know, Tomcat, which is a fantastic, you know, web server container. And so, you know, anytime you can hook into Java, you can take advantage of all of this history. So the other thing, you know, in the last episode we talked about Hadoop and HBase and all of these, you know, all of these libraries associated with big data. All of that is written in Java, but if you're using one of these languages, you naturally can hook into those. Oh, interesting. So you could write, you know, a Hadoop job that runs on, you know, 10,000 machines in Python or in Lisp or in Scala.

  288. B

    Nice. Well, I think that wraps it up for this show. I mean, three languages, which are interesting. Maybe that's a little bit of cheating because we kind of handled them together. Well, it

  289. A

    encourages people to go and watch those shows. So if you haven't, you know, listened to the episode on Python, Lisp, or Scala is actually based on Scheme, which is probably something we'll cover in a future episode. But yeah, check out those languages and check out those shows. And

  290. B

    yeah, it's good times. Awesome. Well, I think that's a wrap. Cool. Have fun, everyone.

  291. A

    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

  292. B

    alike in

  293. A

    Kind.