0:00:00There's brief moments of time when I listen to the two of you go back and forth and for
0:00:04a minute I'm like, man, I'm not even here anymore.
0:00:08And I feel ever so slightly sad.
0:00:10But then I continue to listen to you two going back and forth and I just don't even care
0:00:14anymore because I'm entertained as hell.
0:00:17We had recently received an email as recently as about two hours ago about how we say to
0:00:24to each other, or say actually to you, the listener,
0:00:27please email anyone other than us,
0:00:30or please don't send us email, et cetera.
0:00:32Would you like to talk a little more about this email?
0:00:34- All right, so the first sentence is,
0:00:36I'm a little surprised about your whole email topic.
0:00:39Now, this is already kind of like spreading the topic wider
0:00:43because this started with Marco getting specific feedback
0:00:47and bug reports about Overcast, right?
0:00:49But then this sort of expanded into like the entire topic
0:00:52of us getting email.
0:00:53And so this feedback is not about Marco and his bug reports, really.
0:00:57It's really about when we say on the show, please don't email us about whatever.
0:01:02Right. So I already think this is kind of off topic and it's just like it's
0:01:05related to the discussion, but whatever we want this.
0:01:08It's not interested in really discussing how Marco handle his feedback.
0:01:12He's more interested in discussing the joke that we do when we say, please don't
0:01:15send us email.
0:01:16And he says it makes him feel like that we don't appreciate the listeners that,
0:01:20you know, I find a good sentence here.
0:01:22He says he loves us, loves the show.
0:01:23It doesn't make me feel entitled to anything.
0:01:25I know that obviously, and I know that it's impossible to get back to everybody.
0:01:29But what is impossible is to appreciate your position,
0:01:31to appreciate the fact that people devote their time to actually tell you what they think,
0:01:35to appreciate that people are the ones that are attracting sponsors, etc.,
0:01:39to appreciate that a podcast by nitpickers is going to attract nitpickers,
0:01:42to appreciate that so many people really care.
0:01:44And I know you do appreciate your listeners, but the whole email joke,
0:01:46the whole annoyance is neither funny nor respectful.
0:01:48It's strange, off-putting, very arrogant and makes me kind of angry.
0:01:51"It makes my engagement feel pathetic and needy.
0:01:54"It's really not that hard just to say
0:01:55"a few nice words, you know?"
0:01:57To this I would say that we don't have a,
0:02:01ignoring the fact that most of the time we're just joking,
0:02:03right, because jokes can be hurtful too, right?
0:02:05We don't have a blanket ban on email.
0:02:09We don't say, it's like a prohibition.
0:02:11In fact, we encourage, tacitly encourage email
0:02:14by responding to email on the show.
0:02:16And a lot of the followup is about things
0:02:18that people send us, either corrections for things
0:02:21expansions on topics, we take real-time feedback and real-time follow-up from the chat room
0:02:25from people saying the same thing, right? So it's clear that we're not like, nobody
0:02:28ever emails us anything, you know, for whatever reason. We don't say that.
0:02:32I mean, there's a feedback form on our site that I made when we made the site. Like, we
0:02:37have this form on the site that says "send feedback". If we wanted to not actually receive
0:02:42any feedback, we would just take the form down.
0:02:44Like Marco, like Marco and his app doesn't want to imply that he's providing support,
0:02:48just fries the feedback bank.
0:02:49So first of all, I would say the premise of the idea that we just are saying we don't
0:02:52want any feedback.
0:02:53That's not our message at all.
0:02:55We do very frequently though say, "Please don't email us about whatever topic."
0:03:00And that is specifically focused on whatever it was we were talking about.
0:03:04So if it's like, "I'm going to tell you about this toaster oven I got.
0:03:10Please don't send me email about slot toasters."
0:03:13And then I follow up by saying, "I know about slot toasters.
0:03:16I know slot toasters exist.
0:03:17I know that they are different than toaster ovens.
0:03:19I am reviewing toaster ovens, right?
0:03:21- And they're worse.
0:03:22- Right, you know, like, right?
0:03:24And part of that is like, the please don't email thing
0:03:27is a long running gag from any podcast
0:03:29that we've listened to and been on in the past.
0:03:30So if you don't have that context,
0:03:31maybe that doesn't make much sense.
0:03:32It's also kind of a joke like,
0:03:34oh, I don't wanna hear from those people
0:03:35who are just gonna tell me about the slot toasters, right?
0:03:37But it's very specifically focused on this one thing.
0:03:39It is not saying please don't email me ever about anything.
0:03:42If you know something cool
0:03:44about a new DisplayPort specification,
0:03:47Yes, send us the email about it.
0:03:48If you say I've been an Apple genius for X number of years
0:03:51and this is my experience, yes, send us email about it.
0:03:53Like, of course we want that email.
0:03:54Like we read it on the show, we appreciate it.
0:03:56We appreciate our listeners.
0:03:57So I don't want people listening to think,
0:03:59and I don't think most people do,
0:04:00but this person does apparently,
0:04:01that we don't want feedback from anybody.
0:04:05It's 50% of the time a joke
0:04:07and the other 50% of the time very focused
0:04:09kind of exasperation at a particular type of feedback
0:04:13that we expect to get because we said something
0:04:15that we know leaves us open to a particular kind of correction and we're trying to say,
0:04:19you don't need to send us that correction because we are fully aware that we have either
0:04:22intentionally ignored this thing or whatever.
0:04:25Right, it's a way, I use it as a way to preempt getting a whole bunch of emails that begin
0:04:33with "well, you know..." and some big argument about something that like, I know the thing
0:04:37I just said is contentious, or I know there is something that other people are going to
0:04:42want to tell me about what I just said, and I'm just like, I don't want to engage that
0:04:45entire discussion right now.
0:04:47It's a way for me to basically try to preempt
0:04:50getting a whole bunch of duplicate emails
0:04:53telling me something I already know.
0:04:54And that saves everybody time.
0:04:56- And it's not to say it's not annoying.
0:04:57If you're annoyed by it,
0:04:58it's totally your right to be annoyed by it.
0:04:59It can be annoying, I fully admit that.
0:05:02But we are human and we get exasperated sometimes too,
0:05:04and we express that on the show.
0:05:06- Yeah, so this email was from Pell D.
0:05:09I feel like we should attribute, I'm assuming him.
0:05:13And what I had replied to him or her, I'm thinking him,
0:05:17and saying, and what I said was,
0:05:19we don't, or we say don't email us,
0:05:22either because we really don't care about the minutiae,
0:05:24minutiae, minutiae, all the nuance of the topic at hand.
0:05:29- You're gonna get on me about Bezel,
0:05:31but you're gonna go minutiae, okay.
0:05:33(laughing)
0:05:35Minutiae, Kit Tacy, like, touche.
0:05:37- I was pretty sure it was minutiae,
0:05:39and then I was envisioning all the emails of it,
0:05:41saying to me, "No, it's not minutiae, it's minutiae."
0:05:43So should people not email you about the correct pronunciation of minutiae?
0:05:46So please do not email me.
0:05:49See?
0:05:50That's a perfect use.
0:05:51It's a perfect use of it.
0:05:53Anyway, let me try this again.
0:05:56So we say please don't email us either because we really don't care about the minutiae of
0:06:01the topic at hand or because we know we won't be able to respond to everyone.
0:06:05And actually that reminded me as we were talking of another piece of follow-up, which is I
0:06:10I saw a handful of people, generally speaking from Europe, who seemed confused about the
0:06:16whole toaster oven thing.
0:06:18Yeah, someone asked me, "Isn't that just a grill?"
0:06:20And then I realized we had a language barrier between English speakers.
0:06:25I think it was someone from the UK or some other thing that Marco can tell us the correct
0:06:29name of.
0:06:30Can we maybe just put a "U" somewhere in it?
0:06:32Would that make them know what we're talking about?
0:06:33A "touster oven"?
0:06:34Yeah, no, it was great.
0:06:36It was great because someone said, "Isn't that just a grill?"
0:06:38And I replied, "No," because I didn't look up where they were from or something, but
0:06:42I was confused by it.
0:06:43And then another person who obviously speaks the variant of English that that person was
0:06:47speaking, tweeted back to them and said, "I think that what you mean by grill isn't what
0:06:51they mean by..."
0:06:52Seriously, it's like an actual language barrier.
0:06:54We don't know the words for things.
0:06:56But we put links in the show notes, right?
0:06:58You can click on them and see what it is.
0:06:59It's a thing.
0:07:00Toaster ovens are a thing in America anyway.
0:07:02And so if you live in one of these barbaric countries that doesn't really have a toaster,
0:07:07Doesn't have toaster ovens basically. It's like a little tiny oven that can serve either as a toaster or an oven hence
0:07:14Toaster oven and they're extremely convenient if you'd like to reheat something especially something bready
0:07:20pizza being the most obvious example
0:07:23French fries anything like that if you want to reheat something bready
0:07:28But you don't want to do so in the microwave because then it'll end up all gummy
0:07:31Toast oven is a great way to do it now. Yes, you could use a traditional oven
0:07:35but why in the world would you start up what is probably
0:07:38multiple square feet worth of space
0:07:41to heat one slice of pizza or two slices of pizza?
0:07:44And so a toaster oven is the best of both worlds
0:07:46because it's a little tiny oven,
0:07:47big enough for usually a slice of pizza or two,
0:07:50or it's a toaster, big enough for maybe a couple of bagels
0:07:53or something like that.
0:07:54- Right, and it tends to heat up just about as quickly
0:07:57as doing it in the microwave for me.
0:07:58Like if you're gonna, I mean, it's not 30 seconds,
0:08:01but if you're gonna reheat a slice of pizza,
0:08:03A toaster oven has it done in like two or three minutes at most.
0:08:06And so it's way faster than using a full-size oven.
0:08:09Nobody should ever put a pizza in a microwave, I just want to say that.
0:08:13Oh, completely agreed.
0:08:14But anyway, so if you don't know what a toaster oven is, well perhaps it's time to move to
0:08:19a different country.
0:08:22But nevertheless, maybe you could import it or something like that.
0:08:25So you need nationalized healthcare or toaster ovens?
0:08:27I'm going toaster ovens.
0:08:28I think I might too.
0:08:29The brand of my toaster oven Breville apparently that's a proprietary eponym.
0:08:34See I did remember that from the past episode.
0:08:36It's pronounced Brazil.
0:08:38That is a proprietary eponym in the UK like Kleenex or whatever and so someone in the
0:08:42chat room says a Breville refers to something we would call a grill in the UK for sandwiches
0:08:47so they've taken that entire brand and turned it into you know that it's a signifier for
0:08:51the entire category of things like a panini grill type of thing or whatever but anyway
0:08:56that's definitely not what I'm talking about.
0:08:57and follow the links in the show notes.
0:08:59I'll show you exactly what we were talking about
0:09:01last week's show notes, not this week's show notes.
0:09:02- Yeah, we're not gonna put in this week's show notes
0:09:04because it was already there.
0:09:05You should have clicked the links, kids.
0:09:08- Our first sponsor before we've done a single topic
0:09:10is Igloo.
0:09:11Igloo is an internet you'll actually like.
0:09:13It's kind of funny that this is the first tech
0:09:15that we're discussing is the sponsor itself.
0:09:18With Igloo, you can share news, organize your files,
0:09:20coordinate calendars, and manage projects all in one place.
0:09:24This is like taking the best of the web
0:09:26productivity apps, things like calendars, Twitter like micro blogs, file sharing, task
0:09:29management, wikis, and more, all available privately and securely for your company or
0:09:34group intranet.
0:09:35Alu intranets are highly functional, stylish, and easy to use, with a widget-based drag
0:09:40and drop interface.
0:09:41Their latest upgrade, Viking, revolves around documents and how you interact with them,
0:09:45gather feedback, and make changes.
0:09:46They've even added the ability to track who has read critical information to keep
0:09:50everyone on the same page.
0:09:52It's kind of like read receipts in your email, but less annoying, and it helps you
0:09:55track whether employees have read and acknowledged policies, signed off on legal agreements,
0:10:00or confirmed completion of training materials.
0:10:05Igloo is all built on their advanced HTML5 platform.
0:10:08It's a fully responsive platform and offers all these features, even things like previewing
0:10:12and annotating documents, all that is done in HTML5, so it works no matter what device
0:10:20you're on.
0:10:21You have all that functionality, all the annotations, all the admin controls, everything, whether
0:10:25you're on a computer, iPhone, Android phone, or even a Blackberry, and when new devices
0:10:28and screen sizes hit the market, igloo already works on them.
0:10:31So if your company has a legacy intranet that looks like it was built in the 90s, you should
0:10:35definitely give igloo a try.
0:10:37Igloo is even completely free to use for as long as you want if you have a group of 10
0:10:44or fewer people.
0:10:45And then if you get past 10 people, it's very reasonably priced after that.
0:10:48So really, if you have a group of 10 or fewer people, igloo's free for you.
0:10:52Just go try it, it's amazing.
0:10:53Anyway, sign up for a free trial at igloo software comm slash ATP. That is igloo software comm slash ATP
0:11:01Thanks a lot to a glue for sponsoring our show. Once again, they've been a longtime sponsor a friend of our show
0:11:05Yeah, very much. Thank you a glue
0:11:08We should talk about the photos app that we all thought may have kind of gone away
0:11:15Hang on real-time follow up on the Breville. It's not a panini. It's not a panini press look at the thing
0:11:20I just put in the show notes. It's the thing like
0:11:23It's like a a clamshell thing that closes and it has two little compartments for
0:11:28Bread like if you cut a piece of bread on diagonal and it kind of like heats them from both sides
0:11:33Different than a panini breast which is you know the flat surfaces with the little ridges on them
0:11:37This is a common thing like that's what they prefer. I've seen them in the US
0:11:41I just I don't think many people have them, but that's what they call it
0:11:43That's what they call a Breville and if you read the history of the thing, that's that's really peculiar
0:11:47I mean well, I've seen them before but it looking at the chat room
0:11:51It seems like in the UK and Australia everyone has one of these and I cannot think of any one of my friends or family
0:11:56That has one so it's labeled there as a durable stainless steel jaffle maker. So are those jaffles?
0:12:02Is that like that's what we call this thing. I want to try to pronounce that word. I don't think maybe it's jaffa le
0:12:07Jaffle like waffle
0:12:11So quick aside I was at work
0:12:14this is a year ago now and somebody was one of my
0:12:19Co-workers was talking about doing something in JavaScript and at one point he said something about just song and I was like what oh my god
0:12:26I think he was saying it. I you know
0:12:31Comically and or ironically or whatever, but what I heard just saw I was like wait what and sure enough
0:12:38He meant just saw Jason. God. I just did it again accidentally my boss used to say H over
0:12:42What H over that's when you put your H over an item
0:12:46- Yep. - And the H-over style
0:12:49and the links.
0:12:50(laughing)
0:12:51He was just avoiding trying to pronounce that word
0:12:53because he knew it was such a problem.
0:12:55(laughing)
0:12:56- That's true because you never know when that'll go wrong.
0:13:00But for the record, it's hover.
0:13:01- We'll talk about them in 20 minutes.
0:13:03All right, sorry for the derail, photos, back to photos.
0:13:05- Yeah, so let's talk about photos.
0:13:08We had all, not genuinely, but kind of wondered,
0:13:10hey, what happened to photos?
0:13:12Because somebody had pointed out to us
0:13:14that it disappeared from Apple's website.
0:13:16Well, apparently it's back.
0:13:18It's back in a big way,
0:13:19because it's actually in the latest Yosemite beta.
0:13:23Now, have either of you guys tried this?
0:13:25- What, are you crazy?
0:13:26I was actually gonna try it,
0:13:27like not on my computer with my actual photos,
0:13:29but just to load the program
0:13:31and throw some sample photos at it or whatever.
0:13:33But then I realized,
0:13:34and I'm pretty sure this is still the case,
0:13:35that you have to upgrade to the 1010.3 beta,
0:13:40and I wasn't willing to do that,
0:13:41just to try the Photos app, so I'll just wait.
0:13:44- Yeah, that's the reason I'm not using it,
0:13:45because I'm not going to run a beta OS on my main computer, so that's not going to happen.
0:13:50Yeah, I've already put in a lot of time doing stuff like that. I deserve a break.
0:13:56I also feel like this is a good opportunity that I really should take to go back and clean out some
0:14:02of my photo library, because there's so many times—I'm sure this happens for a lot of people—I'll go on
0:14:08a trip or something, or we'll do a shoot with the kid or the dog or both or whatever, and we'll just
0:14:13dump all the photos into the photo library
0:14:15and then just never really pick through them.
0:14:17So I have these giant 30 gig folders
0:14:21full of some shoot or something like that
0:14:22and it's like, if I just took an hour to go through this,
0:14:25I would probably delete 95% of those pictures
0:14:28and just keep the 5% of the best ones
0:14:31that I actually want to see again.
0:14:32And basically I need to apply that process
0:14:35to five years of photos.
0:14:38It's like spring cleaning, I keep meaning to do this
0:14:39and maybe this is my motivation to do it finally.
0:14:43Do you guys have that problem?
0:14:45- I used to use iPhoto,
0:14:47this was, I don't know, three, four years ago now,
0:14:50and I felt it was nothing but a burden.
0:14:53And there's probably a million and seven ways
0:14:56that you can blame that on me,
0:14:57and probably a million and six of them are correct.
0:15:00But for whatever reason,
0:15:01I just didn't have a workflow
0:15:02that really worked well for me.
0:15:04And what I've ended up doing since then is just eschewing,
0:15:06that's how you pronounce that word, right?
0:15:08Eschewing iPhoto altogether.
0:15:10This is the Accidental Pronunciation Podcast.
0:15:12And now what I'm doing is,
0:15:15and I think it was Bradley Chambers,
0:15:17learning to love photo management
0:15:19in combination with some scripts from Dr. Drang.
0:15:23And so basically what I do is I have all of my pictures
0:15:27renamed consistently and stored consistently
0:15:30in my file system.
0:15:30And that's as close as I get to any sort of organization.
0:15:33And I wish I had a better organization system
0:15:36in so far as something where maybe I've tagged pictures
0:15:40that I think are really good
0:15:41or I've grouped them into events or what have you,
0:15:43the sorts of things that I suspect
0:15:45Photos app will be great for.
0:15:47But for whatever reason,
0:15:48it just felt like such a pain in the butt with iPhoto
0:15:50that I never really did it.
0:15:52- I think I've described my system before.
0:15:54I put them all in iPhoto and then I star rate them.
0:15:56And the only cleaning I really do,
0:15:59I tend to be like not want to get rid of pictures
0:16:03of my kids, even if like they're not framed correctly,
0:16:05or even if they're a little out of focus,
0:16:07'cause sometimes they're still cute.
0:16:08But what I do is I do rate them all.
0:16:10And when I feel like doing a little cleaning,
0:16:13I just show all the one stars,
0:16:14and the one stars are basically like,
0:16:15you should really delete these,
0:16:16'cause the lighting is really bad,
0:16:18or it's blurry, or whatever.
0:16:19And I will delete,
0:16:20I'll look at every picture when I load them into iPhoto,
0:16:23I'll delete the ones, obviously,
0:16:24they're like, excellent, I took a picture of my foot,
0:16:25or like something, you know, they're totally bad.
0:16:28But all one star ones, and then when I wanna clean,
0:16:30it's really easy for me to just show a smart album
0:16:32that shows one star, and then just go through
0:16:34and just delete whole swaths of them.
0:16:35- Yeah, but see, then you can't see the ones around them
0:16:37that were better, so you can really know,
0:16:39Like which of these do I need to keep?
0:16:41- One star means, I mean I can look at the pictures.
0:16:43Like it's like these are so blurry.
0:16:45Like they're not, I'm not one starring.
0:16:46If it's in focus and people are in the,
0:16:48like those never get one star.
0:16:50One star basically means you should really delete this.
0:16:52One star is the thing that most people
0:16:53would delete immediately.
0:16:54I just let them stew and then if I feel like cleaning house,
0:16:57I delete all, I think I deleted every one star
0:17:00from my collection a couple years ago
0:17:01and it was a lot of photos.
0:17:02But now I just kind of let them build up.
0:17:04- Maybe you're just letting them develop like a Polaroid.
0:17:06Like figuring maybe it'll get better
0:17:07I just leave it here for a little few more hours.
0:17:10And also, a picture that is actually out of focus, sometimes we do family calendars where
0:17:17you make the calendar for the year with pictures and everything and they have these little
0:17:20collages where you can put the pictures.
0:17:21Sometimes there's little spots on the calendar for small photos.
0:17:24And even a picture that's blurry, like it's not in focus, when you shrink it down to be
0:17:28like one of the small thumbnails at an angle in the corner of a calendar thing, it doesn't
0:17:32actually even look that bad.
0:17:33So occasionally that's why I'm kind of keeping the one stars around.
0:17:36Or if it's like me trying to see a picture of like,
0:17:40what do I have on this shelf in this year?
0:17:44Where was that thing or whatever?
0:17:46- Oh my God.
0:17:47- Yeah.
0:17:48I wish this system was more intelligent about finding things.
0:17:51For example, I do keyword them,
0:17:53but my keywords are limited to like,
0:17:55I have a keyword for each of my children
0:17:56and then one keyword for me and my wife,
0:17:59'cause I'm not gonna do us individually.
0:18:01You know what I mean?
0:18:02And that's about it.
0:18:03And you just think like, why do you need to do that?
0:18:05doesn't the faces feature find all the people that you want for you?
0:18:08Well, I started doing this before the faces feature existed, long before, first of all.
0:18:12But second of all, no, it's not reliable enough.
0:18:15Like me manually keywording them is much more reliable than faces.
0:18:18I wish I could turn faces off because it's always grinding away, making the fans spin
0:18:22up on the MacBook Air to try to detect people's faces.
0:18:25But that's the same thing I do with iTunes.
0:18:28Starring them and basically using the star as a threshold system easily lets me sort
0:18:32get what people are trying to get by cleaning things out, which is just like, "Just show
0:18:36me three stars or better." Those are the good pictures. There's very few of them. Suddenly
0:18:39my collection becomes small and manageable. And if I want to share photos on PhotoStream
0:18:44or send them to relatives, I just show the three stars. It's super manageable. People
0:18:48want their collections to actually be like that. I can't bring myself to throw out the
0:18:51two-star ones, but the one-star ones I do delete.
0:18:53Now, going back to the Photo app for a second, I think, so one thing that we were skeptical
0:18:59of or hesitant or whatever the right word here is.
0:19:02We are disasters.
0:19:04Yeah, right. I'm still sick. I have a good reason. We were wondering like, you know,
0:19:10one of the issues with cloud service backed things and iCloud stuff in particular is that
0:19:15there's pretty much no visibility into the storage and no recourse if it does something
0:19:21crazy like delete half your contacts. Like it's pretty hard to recover from that in a
0:19:25lot of cases for a lot of these services.
0:19:28And if you have this on your Mac and it has all these files sitting there locally, you
0:19:32can back up these files and then hopefully have some way to reimport them if you had
0:19:37to nuke your whole iCloud account and start clean or restore a bunch of stuff that was
0:19:41deleted.
0:19:42And it seems from earlier reports that the storage layout of it, you can import things
0:19:48off disk and it can just leave them where they are and not copy them in.
0:19:51But by default it seems to maintain a very iPhoto-like library structure so that these
0:19:56files are just sitting there as files on your disk.
0:19:59All of your photos are there by default.
0:20:01It will only be smart and try to delete some of the originals or cache things online only
0:20:06if you enable the special low space mode.
0:20:09So you can just have one computer that has the whole library on it and has all those
0:20:13originals sitting there as files and you can always reimport them later.
0:20:16So it does seem like it is durable enough in that way to be used as your main photo
0:20:21app, at least once they work out any glaring bugs.
0:20:24It's actually even better than that.
0:20:25We should explain what the experience of this is.
0:20:27So iPhoto was an app and Aperture was an app that Apple had both discontinued, both being
0:20:31replaced by this app.
0:20:32Both mediocre.
0:20:33Yeah.
0:20:34Functionality-wise, Photos does not include all the functionality of Aperture.
0:20:37It includes most of the functionality of iPhoto.
0:20:39So this application is coming into people's lives with the expectation that you've already
0:20:44got all your photos in one of these other applications or in a folder of crap somewhere.
0:20:49And it handles all those situations.
0:20:51So like if you have an iPhoto library, when you start it up it will import that iPhoto
0:20:55library and it won't actually make duplicates of the files, it'll just make hard links to
0:20:58them.
0:20:59We'll put a link in the show notes explaining the hard links.
0:21:01Basically it doesn't take up any more room on your disk, but it makes a separate parallel
0:21:04structure of its own.
0:21:07At that point your libraries are divorced from each other and if you make changes to
0:21:10either one of them, the changes are no longer visible.
0:21:12So it's a one-time kind of import process that doesn't actually take up much more disk
0:21:17space, but at that point they're diverged, like they're not kept in sync with each other.
0:21:21If you have a file full of pictures that just like you've organized yourself, you can just
0:21:25start photos up, make a new empty library, and import those pictures.
0:21:29I believe it will copy them, no it won't copy them in that case.
0:21:32You can tell it to leave the pictures where they are.
0:21:33There's a preference, kind of like the iTunes preference of copy media into the library.
0:21:37You can tell it, "Don't move my stuff, I have it arranged in folders."
0:21:40Just reference them from where they are, and it will do that.
0:21:42It will leave them in your nice organized folder structure.
0:21:44It will put a little thing in the app that shows you like,
0:21:46oh, by the way, this picture isn't in a library.
0:21:48It's referenced from another location.
0:21:50And if you want to work that way,
0:21:51which I would totally recommend not doing
0:21:53because it's crazy and you're a crazy person,
0:21:56the application will do that for you.
0:21:57You can organize your photos into little folders by date
0:22:01and name them whatever the heck you want,
0:22:02and then just reference them from the Photos app
0:22:04and continue that crazy workflow
0:22:06where you act as a little person
0:22:08putting things into folders
0:22:09and then reference them from the application.
0:22:11And just like iPhoto, you can hold on the option key
0:22:14on launch and switch among different libraries.
0:22:16The only limitation you have is,
0:22:18and this is all just like totally local,
0:22:20forget about network connection.
0:22:21This just all works totally locally,
0:22:22no cloud stuff involved at all, right?
0:22:24If you wanna do some cloud stuff,
0:22:26then you can designate one library as like,
0:22:29the what, the system library, whatever,
0:22:31like the iPhoto, the iCloud library.
0:22:33One library on your system can be cloud backed up.
0:22:36And then you have the choice of,
0:22:38do I want to keep all the originals on my Mac
0:22:40and then also put them in the cloud,
0:22:42or they want to use whatever it calls
0:22:43like smart or advanced storage
0:22:45or whatever some other preference that says,
0:22:47I don't care if they're all on my Mac,
0:22:48you can actually take some of them off my Mac
0:22:50as long as they're in the cloud,
0:22:51and that's the second option.
0:22:52So this is an extremely flexible application
0:22:54that does things in pretty much the smartest way possible
0:22:57given the current file system technology we have,
0:22:59that leaves every person able to do whatever it is
0:23:02that they want with their photos.
0:23:04The only bad thing about it transition-wise
0:23:06is if this app is completely buggy and like erases stuff
0:23:09and destroys your photos and they get lost in the cloud
0:23:10and everything, any changes you made after that initial
0:23:14kind of one-time import process will be lost
0:23:17because once you do that import,
0:23:19you are now leaving iPhoto behind.
0:23:21I suppose you could import your photos into both of them
0:23:23in parallel, but then you will actually be duplicating
0:23:25because the one-time import with the hard linking stuff,
0:23:28it doesn't take up much more space,
0:23:30that's not an ongoing thing.
0:23:32So there is a transition point.
0:23:34And so I suspect if I try out this program,
0:23:36I will try it out and then, I don't know,
0:23:40maybe just like bail out after importing
0:23:42a couple of pictures into it
0:23:43and then reimport those same things into my photo library.
0:23:46Like I still don't have a good transition pan,
0:23:47but spec wise, the photos application
0:23:51seems like it does all the right things
0:23:53to make everybody except for aperture users who are screwed.
0:23:57It will import your aperture library,
0:23:58everybody happy except for the people who use the aperture
0:24:01and will miss all the features that aperture have
0:24:03that this doesn't have in terms of advanced photo editing.
0:24:06Well, the editing controls are actually not that far off.
0:24:09This is one of the reasons I'm very excited about this app,
0:24:11that the actual editing process
0:24:14and the controls you have for editing are very advanced
0:24:17and really are pro-level editing tools
0:24:19compared to Aperture and Lightroom.
0:24:22Lightroom is probably slightly more advanced
0:24:24in certain areas.
0:24:25Aperture, I'm not sure I haven't used it in a couple years,
0:24:26but it's probably very closely matched
0:24:30to those editing tools.
0:24:31Where it falls short is in the organizational tools
0:24:34things like Aperture and Lightroom, and especially if you're coming from Aperture, I think it's
0:24:38going to be, if you were really heavily using those organizational systems of vaults and
0:24:44all these things, most of that is not going to transfer over gracefully. So that's really
0:24:50where Aperture users are going to be very rightfully upset. But besides that, it looks,
0:24:55again, I haven't used it yet, but it sure looks like the editing and processing of the
0:25:01photos is just as good as Aperture was.
0:25:03But they don't have the interface of doing the pics.
0:25:06A lot of Aperture was about professional photographers
0:25:09taking lots of photos and then designating
0:25:12the ones they think are good in an efficient manner.
0:25:15There's no workflow like that, as far as I can tell,
0:25:17built into photos.
0:25:18Whereas Aperture, so much of Aperture
0:25:20was focused on the editing tools, which is one thing,
0:25:23and then this whole, like you said,
0:25:25the vaults and the management, and then the picking process.
0:25:28I forget what they call it.
0:25:28Is that the word they use?
0:25:29I think so.
0:25:30It might be.
0:25:30I don't know.
0:25:31Again, it's been a couple of years since I've used Aperture.
0:25:33But yeah, I mean Aperture and Lightroom are both gonna be way better for what pros actually do.
0:25:38Like my wife, Tiff, is not gonna use this photo app. I can already tell you that. She's not gonna use it.
0:25:42She has, even Aperture and Lightroom are too heavy-handed for her.
0:25:46She just uses Bridge and a bunch of directories because like the one she does client shoots,
0:25:50she doesn't want to bring it into some giant library
0:25:52program and have it organize things for her. Like she does it all in the file system with Bridge and does all the picking that
0:25:58way and it works great for her.
0:25:59Most pros are going to have a system like that where they're going to use one of these pro apps
0:26:03To do all that organizational and stuff and managing the shoots and managing the picking and all that stuff
0:26:08They're not going to use this app, but that's fine. This isn't made for them
0:26:11this is made for the people like me who and and of course everybody else but like
0:26:17People like me who were using
0:26:19Aperture and or lightroom for its advanced editing controls primarily and then secondarily we would occasionally touch some of these library functions
0:26:27but we were mainly there for the editing controls.
0:26:30That's definitely the case for me.
0:26:31I know it's the case for a lot of people
0:26:34who bought SLRs in the last eight years
0:26:38and got into photography as a nice hobby.
0:26:40Just having these nice editing controls
0:26:43built into the main photos library mechanism
0:26:47on iOS devices and Macs is going to be awesome.
0:26:49Because for all these years, we've
0:26:51had to decide between something that's fully integrated
0:26:55into Apple's ecosystem and syncs everywhere
0:26:57and is all in all the photo pickers and all that stuff,
0:26:59or has great editing controls and pro stuff,
0:27:03and there were always these things you'd have to give up
0:27:05one way or the other,
0:27:07and this looks like it's perfect for people like me.
0:27:10Any prosumer who's really into SLR photography,
0:27:13but is not doing pro photo shoots actually for clients
0:27:17every day or on the weekends or whatever,
0:27:19this is for us, and I'm very much looking forward to that.
0:27:22- I think the editing controls,
0:27:23like the adding intelligence to the editing controls
0:27:25is really important because they default for most photo apps, including Apple's, with the
0:27:30exception of the little magic wand enhance button.
0:27:33They give you one button, it's like, "You don't understand all these crazy controls.
0:27:36Press the magic wand and maybe it will make your photo look better or maybe it won't."
0:27:39And if you press that button and didn't like it, you're like, "Whatever."
0:27:41And then you're faced with, "Okay, well, so the magic wand didn't work?
0:27:44Here's 8,000 sliders.
0:27:45Good luck."
0:27:46And if you don't know how to use those sliders, it's daunting to figure out how to just, you
0:27:51know, there's a million different combinations and you're trying like, "I don't know, do
0:27:53I move this and that or whatever?"
0:27:55Well, so Photos has this sort of intelligent thing
0:27:57where they give you sliders that are sort of meta sliders
0:28:00that cause the other sliders to move
0:28:01in what it hopes are pleasing ways.
0:28:03And you're like, oh, well, that's bad.
0:28:04I don't want it to be smart
0:28:05and move those other sliders around.
0:28:06I wanna move the actual sliders.
0:28:07Well, the great thing is you can use these meta controls
0:28:10that influence the other sliders to try to,
0:28:12like most people can do that and say,
0:28:14oh, I would never have thought
0:28:15to put those other sliders in this position,
0:28:17but when I slide this top slider,
0:28:18all these other things move around.
0:28:19But you still have the ability to edit
0:28:21every single one of the detail sliders manually as well.
0:28:24So if you want to use the sliders by hand, you can.
0:28:26But most people have no idea how to get good results
0:28:28with that so they can use those other meta sliders.
0:28:30So it's a big step up from either Magic Wand
0:28:33or you're on your own.
0:28:34- And all these edits are fully synced,
0:28:37not just like burning it into a JPEG and syncing that.
0:28:40The actual edit states are synced so that you can go
0:28:43on your phone or your iPad and make adjustments
0:28:46and that syncs back.
0:28:47- Well, in theory, I mean, let's be serious.
0:28:50- Well, I mean, this is all based on CloudKit.
0:28:52So far, our CloudKit stuff has been solid.
0:28:54- Why didn't my contacts sync, Marco?
0:28:56Contacts, it's like a tiny set of data, why?
0:28:59- That's a good question, I have no idea.
0:29:01- My faith is like, yeah, I'm ready to be impressed.
0:29:04- It seems like, you know, I've heard rumblings,
0:29:08I'm sure everyone's heard these rumblings,
0:29:09that like, Eddy Cue's team took over iCloud,
0:29:13something something, and was really like,
0:29:15revolutionizing and fixing stuff like a year ago.
0:29:17Like that's when all this stuff started, allegedly.
0:29:20and it seems like CloudKit and the Cloud Photo Library stuff
0:29:25and all the stuff that came out of that
0:29:26that's all based on CloudKit,
0:29:28seems like that is most likely to be
0:29:31the result of that rumor.
0:29:33And that we're seeing now,
0:29:34they're doing good things with the cloud stuff now.
0:29:38Rather than the initial iCloud services stuff,
0:29:40which was the document stuff,
0:29:42which is a fairly simple problem set,
0:29:45but it was done kinda oddly, but mostly worked.
0:29:49Key value store, which works all right,
0:29:50and then core data sync, which was a disaster,
0:29:53'cause they tried to tackle this incredibly complex problem
0:29:56that really can't be done well
0:29:57in the way they attempted to do it,
0:30:00and of course, so it sucked.
0:30:02CloudKit was like, we talked about this
0:30:04when they announced it back in the summer,
0:30:05like CloudKit is Apple kind of saying,
0:30:08okay, we're gonna do a cloud service
0:30:09that actually is much easier to do well,
0:30:13and so far, it seems like they did.
0:30:16So I'm pretty confident in this service probably being good.
0:30:21I mean, we'll see what happens in practice
0:30:24once it's launched full scale and everything,
0:30:25and we've all been using it for a few months.
0:30:27But I think all the pieces seem to be in place
0:30:30for this to actually be good and work pretty well
0:30:33most of the time or all the time.
0:30:35- Well, just the fact that they're dogfooding it so heavily,
0:30:37I think is a pretty big change from, say, iCloud
0:30:41with Core Data or Core Data with iCloud
0:30:42or whatever the terminology was.
0:30:45The impression I had was that nobody was dogfooding that,
0:30:48but just like you said, Marco,
0:30:50it sounds like Apple's heavily dogfooding CloudKit,
0:30:55and that's definitely a good thing for all of us,
0:30:58because I think Apple is fairly tolerant
0:31:01of third-party developers having to jump through hoops,
0:31:04and fairly intolerant of their own people
0:31:07having to jump through hoops.
0:31:09- Oh yeah, that's fair, and as far as I know,
0:31:10I don't think any Apple app ever used Core Data Sync.
0:31:15I'm pretty sure we never found one.
0:31:16I know some people were trying to like,
0:31:18they were asking around on Twitter like, you know,
0:31:20a year ago or whenever, like,
0:31:20"Does any Apple app actually use this?"
0:31:21I don't think we ever found one.
0:31:23But anyway, I'm confident.
0:31:25And also, you know, I wouldn't necessarily like
0:31:27be all nostalgic for Aperture,
0:31:29because Apple has been a terrible steward of Aperture
0:31:31since the beginning.
0:31:32Like, it always had delays, issues,
0:31:35it was always pretty buggy,
0:31:37it always had terrible performance.
0:31:39Most of all, it would just go years
0:31:42without any major updates,
0:31:44and everything was always just too little, too late.
0:31:46It was always getting better soon
0:31:48and never actually great.
0:31:50That's why Lightroom does so well,
0:31:52because Apple basically said,
0:31:55"Hey, we're gonna eat at Apple."
0:31:56I think they basically invented the category
0:31:58of apps that work like this, basically.
0:32:01I think, I'm not sure about that.
0:32:02Please email Casey.
0:32:04(laughing)
0:32:05And then Adobe came in with Lightroom
0:32:08and just ate their lunch,
0:32:09because they just iterated so much faster
0:32:11and it was so much better.
0:32:13Apple really, you know,
0:32:14Aperture was always pretty badly neglected.
0:32:16So, you know, rose colored glasses and everything,
0:32:19I don't think we're gonna see people looking back
0:32:21in six months saying, "Oh, I really miss Aperture."
0:32:23Like, I don't think so.
0:32:24And for the few who do say that,
0:32:26I think they're probably gonna be misremembering
0:32:29how good it actually was.
0:32:31- I thought I saw somewhere,
0:32:33and it might have been in Jason Snell's review,
0:32:35but I thought I saw somebody had loaded
0:32:37just a crud load of images, of pictures,
0:32:40into the new Photos app,
0:32:42and they said you could scroll that thing
0:32:44at a solid 60 frames per second like it was nothing.
0:32:46- I will be excited to see that if that's true.
0:32:48That's why I wanted to try it.
0:32:49I'm like, I've gotta see this
0:32:50'cause it is so terrible in iPhoto.
0:32:52I have maybe 30, 40, maybe I have more than that.
0:32:5540,000 photos, 50, and maybe it's up to 60.
0:32:57Anyway, it doesn't seem like that big a number,
0:32:59but I wanna see that scroll nicely.
0:33:01- We are also sponsored this week by H-Over.
0:33:05H-Over is the best way, oh, it's also Hover, or Hova,
0:33:09all of those things.
0:33:10Hover is the best way to buy Manix domain names.
0:33:12Go to hover.com and you can get 10% off your first purchase by using promo code "SLOTTOASTERPEOPLE".
0:33:21When you have a great idea, you want a great domain name that's catchy and memorable.
0:33:24Hover gives you exactly what you need to find the perfect domain for your idea so you can
0:33:28get started actually working on it.
0:33:30Like I've mentioned before, if I'm working on a new project, I need to find a name first.
0:33:34I can't really move forward without a name.
0:33:37That just blocks me until I get a name, and domain names are the very first thing I go
0:33:40to go to search, and hover is great for that.
0:33:43Hover gives you easy to use powerful tools to bio-manage domains so anybody can do it,
0:33:47and the support team is always ready if you need a hand.
0:33:50They're known for their no-wait, no-hold, no-transfer phone service, so when you call,
0:33:54a real-life human being is ready to help.
0:33:57They pick up the phone, that's it, they're ready to help you, you're not put on hold,
0:33:59you're not transferred to anybody, that's it, they pick up and they help you, it's amazing.
0:34:04Plus they have great online tutorials and email support if you hate the phone like me.
0:34:08You can find new domain names that you want to get up and running in less than 5 minutes.
0:34:11All you gotta do is type in a few keywords, and Hover will show you the best available
0:34:15options across all TLDs out there.
0:34:18Now if you've ever used any other domain host before, you know that it can be a pretty unpleasant
0:34:23experience at a lot of these different companies.
0:34:26They make it very complicated to buy just what you need, or they try to upsell you with
0:34:29crazy stuff, or they make you pay extra to upgrade for things that really should be included.
0:34:34Hover does not believe in this kind of approach.
0:34:36Instead of charging you for something that should just be there, Hover includes everything
0:34:39you need with your domain.
0:34:40You get a smart control panel, you get whois privacy, always for free on any domain that
0:34:44supports it.
0:34:45They even offer this really cool service called Valley Transfer Service.
0:34:48Now what they do is, if you will let them, they will log into your old registrar and
0:34:52do any transfers for you.
0:34:55They'll transfer over all your DNS and everything so it's all correct because it's very easy
0:34:58to get that stuff wrong and then your site's down for a few hours, it sucks.
0:35:01They will log in and do it for you if you want because some registrars make it pretty
0:35:05difficult to leave and of course they don't. They also have this great email service. Hover
0:35:10has great solutions for your own custom email address for your domain. 20 bucks a year gets
0:35:14you a fully functional email account at your domain with 10 gigs of storage. You guys remember
0:35:18when Gmail came out, it was 1 gig, this was like in 2004, and that was revolutionary to
0:35:25have a gigabyte. No one could ever use that much. Well, we do. And Hover now offers 10
0:35:31a year for just 20 bucks. Now if you need more than that, for just $29 a year, you can
0:35:36get the big mailbox. It's actually what it's called. It's called Big Mailbox. That gets
0:35:39you a terabyte of storage plus some other nice bonuses. So $29 a year gets you a mailbox
0:35:44that can hold a terabyte of email, which I think sounds like my personal hell. They even
0:35:49have email forwarding for just $5 a year, so you can keep using, if you already have
0:35:53an email account somewhere else like Fastmail, whatever, you can keep using that for just
0:35:57$5 a year. That will forward your email for your domain to anywhere you want.
0:36:00Anyway, all this is great.
0:36:01You can get 10% off your first purchase from Hover
0:36:03by going to hover.com and use promo code SLOTTOASTERPEOPLE,
0:36:07all one word, SLOTTOASTERPEOPLE.
0:36:10Thanks a lot to Hover for sponsoring our show once again.
0:36:13- Okay, so there was a little bit of a surprise
0:36:17within the Photos app, and some people went spelunking.
0:36:20I'm assuming it was Steve Troutonsmith.
0:36:23Is that right, Steven Troutonsmith?
0:36:24I'm sorry, but that guy.
0:36:27and we have, he, they, someone has discovered UXKit.
0:36:32So UXKit appears to be sorta kinda UIKit for the Mac.
0:36:37Marco, do you wanna talk about this a little bit?
0:36:41- Yeah, so it's a private framework that is used
0:36:43only by the Photos app at the moment
0:36:45that Apple shipped with the Photos app beta.
0:36:47And it appears, you know, you can't,
0:36:49no one's like disassembling it, I don't think,
0:36:51but you can class dump it and you can kinda see
0:36:53just like what classes and methods are contained within it
0:36:56from the Objective-C runtime.
0:36:58- It's not just photos, by the way.
0:37:00People say that Xcode 6.3 beta also uses UXKit.
0:37:03- That's interesting if that's true.
0:37:05I do not know that.
0:37:05- Yeah, there's a tweet from Don Mowry saying that.
0:37:08I suppose it's easy enough to confirm,
0:37:10but I put a tweet in the show notes.
0:37:12- That is interesting.
0:37:13Well, anyway, so, and what it appears to be
0:37:16is a subset of UIKit ported to the Mac,
0:37:19and so there are things, and just like, you know,
0:37:22with the UI prefix replaced with UX,
0:37:25And so there's things like, I think there's a UX navigation
0:37:28controller and stuff like that.
0:37:29And there's UX color or UX-- all this.
0:37:33Because normally, between UIKit on the iPhone
0:37:35and AppKit on the Mac, there are a lot of big differences,
0:37:39but a lot of also just little superficial differences.
0:37:42The prefix for UIKit is just UI.
0:37:45The prefix for AppKit is NS.
0:37:47And so you have some classes like UI color versus NS color,
0:37:51and UI image versus NS image.
0:37:53And many of these classes that have these superficial name differences aren't that
0:37:58different, or the Mac version supports some ancient stuff that no one really uses anymore,
0:38:03so you might as well just unify them.
0:38:06So there's a lot of overlap that seems trivial, and many people have written C macros or utility
0:38:14classes to have a unified codebase that shares some of this code between iOS and Mac more
0:38:19easily.
0:38:20So this appears to be Apple's version of this on this one app in this one team, where this
0:38:27is their translation layer to have the same code, probably, to have the same code running
0:38:32on iOS and Mac.
0:38:35So the question is, is it just this one team?
0:38:38Is it just this one app?
0:38:39Or is this going to be a more widespread thing?
0:38:41Is it going to become public?
0:38:43And is this going to be the new unified UI framework so that you can share a lot more
0:38:47code between iOS and Mac?
0:38:49That's all, basically nobody knows anything about that yet, everyone's just speculating,
0:38:54but that's why this is interesting. What do you guys think?
0:38:58Guy English had a good point, and it's the analogy that came to mind when I thought it
0:39:02was well. So, setting aside that Xcode 6.3 also appears to use it according to this tweet,
0:39:09Guy pointed out ProKit.framework, remember that?
0:39:11Yeah, all the pro apps, Logic and everything, Aperture.
0:39:15What are the other apps that used it?
0:39:19Maybe Shake when that was out.
0:39:21Not Final Cut.
0:39:22Well, maybe Final Cut.
0:39:23Anyway, a whole bunch of Apple's apps that look different, like the window chrome was
0:39:26different, it was darker and sometimes it was smaller and they had their own little
0:39:30weird set of controls and everything.
0:39:31They used ProKit framework, which was a framework shared among Apple applications that gave
0:39:39a different UI.
0:39:40I mean, I assume it wasn't just look and feel.
0:39:42I assume it had other features as well.
0:39:43But the point is that it was a framework that was not for public consumption
0:39:47That Apple used on multiple applications that never became the future of AppKit, right?
0:39:53So the idea that UXKit could just be a thing that Apple uses internally to make its applications
0:39:58This is a completely viable idea. It's not crazy to think
0:40:02Oh, well now once they UXKit like because Apple also does the opposite they they take
0:40:07Frameworks they use them privately for a release or two and then make them public, right?
0:40:12So now we can't tell whether this is going to be one of those things that's used privately
0:40:16and becomes public, or is it just another ProKit that Apple will use internally to make
0:40:20its life easier when it makes its applications, but it is not the future of making UIs on
0:40:25the Mac.
0:40:26There is some debate around this from smart programmers who are saying, "Look, you really
0:40:30don't want to have the unified framework because the Mac and iOS UI-wise are different."
0:40:37And the very low-level stuff, the foundation classes, that's like the data structures,
0:40:41the networking, stuff like that, that all is unified already.
0:40:45And what's mainly not is UI stuff.
0:40:49And there is a great argument to be made there that many people have made that that should
0:40:53be separate because just porting an iOS app directly to Mac and using a lot of the iOS
0:41:00interface paradigms like navigation controllers and things like that, it doesn't really work
0:41:04well on the Mac.
0:41:05It's really not like that's kind of a waste of what the Mac is good at and it just kind
0:41:09and it feels like you're clicking an iPad app basically.
0:41:11- But what about things like collection views,
0:41:13like the fancy iOS collection views
0:41:14that sort of reflow themselves,
0:41:17or even just something like a better table view.
0:41:19I mean, I know they've improved table view
0:41:20getting rid of NSL and everything.
0:41:22Those type of things kind of span the range.
0:41:24I mean, they might still have weird APIs
0:41:26like touches begin inside cell,
0:41:28and it's like, what do you mean touches?
0:41:30There's no, you know what I mean?
0:41:31What you have to think is, look, this framework exists,
0:41:34and the class names make you think it's very UI,
0:41:37Like why would Apple bother making this?
0:41:39And for the Photos app, the obvious answer to me is,
0:41:42the photos for the Mac app looks like photos for iOS,
0:41:46right down to zooming out and seeing that giant grid
0:41:48of like photos for this month or week or year.
0:41:50Like it is very clearly a Mac-ification
0:41:54of the iOS Photos app.
0:41:56So UI wise, you know, ignoring like the backend
0:41:58and how it stores photos and the iCloud
0:42:00and everything like that.
0:42:02So much, it looks much more like,
0:42:04hey, someone ported iOS photos to the Mac
0:42:05in anything like, "Hey, someone made a new version of iPhoto."
0:42:09So if you have the existing Photos app, which presumably uses UIKit, and you wanted to make
0:42:15a Mac version of that, being able to reuse, if not that code directly, then that code
0:42:23indirectly or the structure of the program, it would be really convenient to have something
0:42:27like UXKit where you can get the benefit of all that UIKit code and get some semblance
0:42:33of a Mac version up and running faster.
0:42:35That doesn't answer the question of why it would be used in Xcode, but historically Xcode
0:42:39has been used to dogfood all sorts of weird stuff like garbage collection and, uh, what
0:42:43was the other one, it was dogfood-arc, I think?
0:42:45Did it dogfood-arc first?
0:42:47Anyway, that could also just be Xcode dogfooding things, because if you're gonna experiment
0:42:51with weird technologies you should definitely do it on the application that developers use
0:42:54to write programs.
0:42:56The argument of "you should keep them separate" is weakened once you start looking at, like,
0:43:02What things in iOS would you not have on the Mac, and vice versa?
0:43:07And I think that list is actually a lot smaller than you might expect if you're starting to
0:43:12make this argument.
0:43:13And if you look, like, as you said, Collection View, that's applicable to both.
0:43:19So many little components.
0:43:20UI Control, UI Image, UI Image View, UI Label, Table View, Text View, so many of these things
0:43:27actually, like, there's not a great argument that they shouldn't be the same on both.
0:43:32It's really just the very high level structures, the very high level navigation concepts, navigation
0:43:38layouts, that kind of stuff should be different on both.
0:43:41But that's really a very small part of UIKit in the grand scheme of things.
0:43:44And you don't even know, like you say "Oh, navigation controller, we don't really push
0:43:47new things on it."
0:43:48But there's no reason you couldn't make a Mac app that in one of its windows does a
0:43:52sort of UI navigation controller thing of pushing a new view on and popping it off.
0:43:57It might be weird, but arguably a lot of the existing OS X apps do a lot of iOS-y type
0:44:04things.
0:44:05Hell, I think in Messages it has buttons that aren't buttons but are just colored text.
0:44:09I think I pointed that out in my Yosemite review if I meant to.
0:44:12There's a details button or something in Messages that is not a button, it is just blue text.
0:44:15It's like, "This is not iOS, what do you think you're doing here?"
0:44:17But people accept it.
0:44:19It's like, "Alright, whatever, I know when I click that I get details."
0:44:23serving certain interests, as an iOS programmer who doesn't know much about the Mac, it
0:44:29would make me way more likely to start tackling a Mac app if this stuff was more consistent.
0:44:34And I know, like, if I just dive into the Mac and really am committed to it, I could
0:44:38work through AppKit pretty well, I could figure it out, you know, that's not the only reason
0:44:44I'm not making a Mac app, but it would definitely make me a lot more likely to make a Mac app
0:44:48sooner and it would make it a smaller undertaking if a lot of this stuff is unified, instead
0:44:53of having all these little superficial differences, some big, some small.
0:44:58That has to play in somewhat to any decision they make to this.
0:45:02If Apple wants to encourage more Mac apps, if they want to populate the desolate, awful
0:45:08landscape of the Mac App Store, which is really sad in a lot of places, if they want to help
0:45:13populate that with more, better apps, if they want to get more people making Mac apps, more
0:45:18people using the Mac for a lot of this stuff. They have to make it easier for developers.
0:45:22Right now, all the people who are saying this shouldn't be unified are all long-time Mac
0:45:30programmers. Long-time iOS programmers, I think, are very excited about this idea. We
0:45:37look at the Mac as like, "Well, we could go here fairly easily, but all this stuff
0:45:41is needlessly different."
0:45:43Yeah, and like even if you made the core of your app like oh it's all written in
0:45:48sort of completely platform agnostic manner and it doesn't really matter or
0:45:51I'm using some framework that's on both places like core data or something, the
0:45:55UI part is like you see like oh and just we'll just put a different UI on top of
0:46:00it. I'm not gonna say it's the hard part but it's a surprising amount of work and
0:46:03if you have to repeat it and keep them in sync and every time you want to add a
0:46:06feature you have to add it in both places of a totally different code
0:46:08using different APIs it's just it's a lot of extra work. I'm not sure UXKit
0:46:13it makes it, you know, lowers the barrier enough to really move the needle on the Mac
0:46:19App Store because it has other problems, you know, and it's just there's so few Mac users,
0:46:25like I think you'd have to really make it a low barrier for someone's, "Hmm, I can address
0:46:28the market of like hundreds of millions of iOS devices or like a couple of Mac people
0:46:33like there's like a million or two or five or whatever."
0:46:36So the iPhone is just such a monster and that's just one iOS device compared to the Mac, right?
0:46:41But if this was their goal, like their long-term goal, like we're going to dog food this, we're
0:46:46going to see if it's possible, because we as Apple have a bunch of iOS apps that we've
0:46:50decided this is the right way to do photos with the stupid view where you zoom out and
0:46:53see everything as a big thing and you put your finger or your cursor over it and see,
0:46:57you know, that's the future of photos.
0:46:59We already wrote that app.
0:47:01Can't we just get that to run on the Mac?
0:47:02Well, no, because X, Y, and Z.
0:47:03It's like, well, okay, so we have a job to do.
0:47:05We can use this UX Git framework to be the first people to try to do that.
0:47:09But Apple has way more resources to throw towards the successor to iPhoto than the average
0:47:15developer with an iOS app who might be thinking about making a Mac app.
0:47:18So if Apple runs this experiment and decides, "Boy, this really makes porting much easier,"
0:47:23then what do they do about it?
0:47:24Do they just say...
0:47:26How would they...
0:47:27Assume that this is a successful experiment inside Apple and assume that the goal of it
0:47:30was to see if this is something that developers might want for the reasons that Marco stated.
0:47:34How does Apple then at WWDC announce this as a thing?
0:47:38And tell, like, what is the messaging?
0:47:41It's like, so you're thinking of writing a Mac app.
0:47:43If you have an iOS version, then look at UXKit,
0:47:47'cause you could reuse a lot of that same code,
0:47:48changing all the capital I's to capital X's or something.
0:47:51But otherwise use AppKit, or is the message like,
0:47:54this is the future of writing Mac applications.
0:47:57It just happens to look like the iOS one.
0:47:59But even if you never write an iOS Mac,
0:48:00we're telling you you should use UXKit
0:48:02to write your Mac apps.
0:48:04- Well, honestly, I think if they actually unified it,
0:48:07it would just be called UIKit Everywhere.
0:48:09- Yep.
0:48:09- Like that's the direction they would go.
0:48:11They would work from iOS back to the Mac,
0:48:14and they would just bring over everything named UIKit
0:48:17that makes sense to have on the Mac.
0:48:19And also, one advantage they would have here is right now,
0:48:22they're maintaining two different frameworks.
0:48:24They're maintaining two different UI libraries,
0:48:26and AppKit is very, very old,
0:48:30and there's a lot of cruft in there from the olden days.
0:48:33UIKit was kind of like a rewrite of AppKit for the iPhone,
0:48:38and to be more modern and to be more efficient
0:48:42and have all these new capabilities
0:48:44and be simpler in a lot of ways.
0:48:46UIKit is like, it is the rethink of AppKit,
0:48:49it is the rewrite of AppKit.
0:48:51They just didn't replace AppKit with it quite yet.
0:48:53- If they were gonna call it UIKit everywhere though,
0:48:55doesn't that count?
0:48:56Because the code is not the same.
0:48:58Like UXKit, I'm led to believe,
0:49:00is more or less just a wrap around the existing App Kit
0:49:03APIs to begin with.
0:49:04And maybe they would gut that out later.
0:49:06But I don't think you can pull that out
0:49:07because you have to maintain support for App Kit
0:49:09for a long, long time into the future.
0:49:11So linking against the--
0:49:13if they called it UI Kit, you couldn't link against
0:49:18that framework if one set of code
0:49:21is the native code for the iOS devices, and another set of code
0:49:24is the wrap around App Kit.
0:49:26I don't know how you could do that with the same name.
0:49:29I think the reason the X is there,
0:49:32it just doesn't make sense to me.
0:49:34It's not going to be a single unified code base.
0:49:36It's going to be two separate code bases.
0:49:38And having two separate code bases in a framework
0:49:40with the same name on two--
0:49:41I mean, I suppose you could pull it off,
0:49:42because the SDKs are in different folders.
0:49:44This is the iOS SDK, and this is the Mac SDK.
0:49:46But it just looks like--
0:49:47I mean, think about looking up documentation for it.
0:49:49Surely there would be differences.
0:49:50So I don't know.
0:49:51Messaging-wise, though, that's--
0:49:54we'll get to those after the next sponsor.
0:49:55but that is a weird message that like AppKit,
0:50:00we've been evolving and improving for a long time,
0:50:02but now, you know, it's like,
0:50:05I always wonder that when they bought Next,
0:50:07like how, I wonder how long the NS prefix will keep,
0:50:09I wondered initially,
0:50:10would they keep the NS prefix and everything?
0:50:11'Cause it's kind of weird, you know, NS next step,
0:50:13like why do all these KOHO classes have NS prefix?
0:50:16I bet there's tons of people just starting out programming
0:50:18for the Mac and wondering what the hell
0:50:19this NS crap is about, right?
0:50:21But it's held on for a surprisingly long time, right?
0:50:25And if they get out from under it and say,
0:50:28all right, this is the new thing, and we call it UXKit,
0:50:32and maybe in the future it'll be unified,
0:50:34but for now we have UIKit and UXKit.
0:50:36And I still think they would be stuck
0:50:39maintaining three things--
0:50:41AppKit, UXKit, which is on top of AppKit, and UIKit.
0:50:45So it wouldn't be-- maybe long, long term it's a unification.
0:50:48But I don't know, the messaging just-- it seems weird to me.
0:50:51Yeah, I mean, that's fair about maintenance.
0:50:53The messaging I don't think would matter.
0:50:55I mean, look, they have two languages now.
0:50:57- Well, but one of them is clearly a successor to the other.
0:51:01- Yeah, I think it's gonna be long-term.
0:51:02And by the way, a lot of people are speculating
0:51:04that UXKit might be Swift-only or Swift-native.
0:51:08I think we can already tell it's not
0:51:10just by inspecting the file and everything,
0:51:13but if you look at the timing of this,
0:51:18the Photos app was introduced at the same time
0:51:20as Swift Beta 1.
0:51:21When Swift Beta 1 was announced at WWDC last year, very few people inside Apple had even
0:51:27used it yet.
0:51:28So I think it's extremely unlikely that there's any Swift code in the Photos app.
0:51:32Well, there's probably some Swift code.
0:51:35That's the way they would, you know, but I don't think it's written from the ground up
0:51:38in Swift, and I think you're right that this is an Objective-C framework.
0:51:41The whole point of Swift is you can call through to the Objective-C frameworks, and half of
0:51:45the stuff they did in Swift 1.2, which we didn't even talk about, was making it less
0:51:49painful and less awkward to interoperate between Swift and Objective-C stuff by adding a whole
0:51:54bunch of annotations that you can mark up an Apple. I'm assuming it's marking up its
0:51:57own Objective-C APIs with all these annotations that mean nothing to Objective-C but totally
0:52:01let Swift know how it needs to write the adapter classes to be less annoying.
0:52:05Exactly, and I think that's the biggest sign as anything that Objective-C is not going
0:52:10to go away two years from now. This is going to be a very long-term replacement. Right
0:52:17now, look at how many Apple classes are still using C++, as there are so many APIs that
0:52:23are still in C++ that I don't think we have to worry anytime soon that Objective-C is
0:52:28going to be just ended.
0:52:29Well, I mean, it could be ended in the sense that they tell you when you're writing your
0:52:33application the only code you will ever write is Swift.
0:52:35You could get away with that, but it's like, "I'm not limited.
0:52:38I can call all the existing frameworks and APIs.
0:52:40I can call them all from Swift, right?
0:52:43I can do weird C-style stuff too."
0:52:45So you could say, third-party developers, if you were starting a fresh new application
0:52:49and opening a new project in Xcode, write all your code in Swift, and you'll be fine.
0:52:54They're not at that point yet, but that's where they want to get.
0:52:56And that point could come way before all the Objective-C code is gone, because that's going
0:53:00to take forever.
0:53:02People at Apple are going to be writing Objective-C for a long time, but they could be telling
0:53:04all third-party developers, "We would like it if you just wrote all your code in Swift,
0:53:10and you won't be limited in which APIs you call."
0:53:13The idea of a Swift-only or a Swift-native API, what's the selling point of that other
0:53:18than ideological purity at this point and in the near future?
0:53:24Surely that day will come, but unless there's some big advantage in terms of speed or interface,
0:53:31it's going to be difficult to justify it because then you'd be cutting off all the people with
0:53:34existing Objective-C apps and there's a lot of them.
0:53:38I would not expect a Swift exclusive API
0:53:41for anything important to be available in the next,
0:53:45I don't know, two years at least.
0:53:46I mean, I think it's gonna be a while.
0:53:49- Apple likes to move fast.
0:53:50They like to like, "Oh, it's sooner than I expected.
0:53:52"I didn't think," you know, and in fact,
0:53:54they will probably do it with something important
0:53:56when they decide to do it,
0:53:57but it seems like it's just way too soon now.
0:53:59So that probably means that whatever your estimate
0:54:01was two years, like maybe cut that in half.
0:54:03'Cause don't they always surprise us where it's like,
0:54:06You know, the way they herd everybody into whatever new thing they want to do is like
0:54:11the new hotness is only available with X and...
0:54:13Yeah, but not necessarily... first of all, not necessarily on this level of like the
0:54:18language level of what you're doing with the API level, not necessarily on that level,
0:54:21and also I think the last time they did that, like with, what was it, with Carmen, like
0:54:26when was the last time they did that?
0:54:27Oh no, the best example I think is how you can't build applications for older versions
0:54:31of OSs with the newest version of Xcode.
0:54:34They want to push everybody to the newest version of Xcode.
0:54:37And that's why people have to keep seven versions
0:54:38of Xcode running on old machines.
0:54:40Like they're like, you can't even target, you know,
0:54:43Snow Leopard anymore with this thing.
0:54:44And like they are pushing people up their OS support chain
0:54:48forcibly by saying, look, you're gonna have to have
0:54:50this version of Xcode, 'cause it's the only way
0:54:51you can develop for the iPhone 5,
0:54:53but you can't develop for Snow Leopard with it.
0:54:55So, you know, all these people keeping these VMs alive
0:54:58with ancient versions of Xcode and the old SDKs,
0:55:00that is Apple aggressively pushing people way too fast.
0:55:03Like as soon as people are running VMs
0:55:05with old versions of your IDE,
0:55:06you know you're going too fast.
0:55:07And that is a very common thing that people do.
0:55:10- Yeah, actually a lot of Mac developers need to do that.
0:55:13- I think it'll be sooner.
0:55:14I tend to come down on this closer
0:55:16to Jon's point of view than Marco's.
0:55:18I think the push to Swift is going to be more aggressive
0:55:21and sooner than any of us expect.
0:55:24I think I'm on the edge.
0:55:27I almost want to say something will be Swift specific
0:55:31or this year, maybe at the end of the year,
0:55:35I think perhaps it's more reasonable
0:55:37to say sometime in 2016, but I think it'll be soon.
0:55:39I think it'll be really soon.
0:55:41And certainly Swift is making
0:55:43some really significant steps in doing so very quickly.
0:55:48What I keep thinking is, you know,
0:55:51Swift is supposed to make a lot of the dangers
0:55:54of Objective-C go away.
0:55:55And that's of course causing a lot of,
0:56:00I don't know about drama, but maybe doubt in the community, especially amongst those
0:56:05who have worked with Objective-C for a long time.
0:56:08But I think that if Swift prevents really silly programming errors, and if it's a little
0:56:16more stable eventually, and it runs faster eventually, it's in Apple's best interest
0:56:21to push everyone that direction.
0:56:23And I think they will, and I think they'll do so really aggressively.
0:56:25Yeah, but I mean, honestly, I think most of the drama is already really fizzling out,
0:56:33and I think it's only a matter--it's only a couple more Swift revisions.
0:56:37I mean, look at how much they did in 1.2.
0:56:39It was a pretty substantial upgrade in a lot of ways, and I don't even use it yet, but
0:56:44I can tell just by looking at what they changed and other people's reactions to it, it's a
0:56:47pretty substantial upgrade.
0:56:49I read a bunch of these blog posts of like, "We switched our big project to Swift," or
0:56:53rebuilt a big project in Swift and here's how it went."
0:56:56And overall it seems to be, people are mostly okay with the language itself, with a few
0:57:04minor differences here and there, but mostly okay with the language itself, but they just
0:57:09complain that the tools are immature still.
0:57:11That's working itself out pretty quickly, really.
0:57:13They just added the incremental compilation, which was probably the biggest complaint in
0:57:18its absence before.
0:57:20In less than a year, Apple has eliminated most major complaints about the language.
0:57:28There's still some minor complaints, and there's still some people who really object to certain
0:57:32things about it that will probably never change, but for the most part, they've already addressed
0:57:37many, many good complaints about it in less than a year.
0:57:42And they're moving really fast.
0:57:43They're making big, big breaking changes, almost so much like it's frustrating reading
0:57:48the documentation for the language and trying to learn the language just to the point you
0:57:51think you're actually learning things, they change it all.
0:57:53And you're like, "But I just learned how it worked before, now it's totally different
0:57:56again."
0:57:57And they don't do it in minor ways.
0:57:58Like, "Oh, we tweaked this little syntax here, but there's big fundamentals."
0:58:02Just wait until they add exceptions and regular expressions, people's brains are going to
0:58:05explode, right?
0:58:06This is why I haven't learned it yet.
0:58:07This language is moving fast.
0:58:10And it's like, "Wow, at one point it was a big change.
0:58:13I feel like, well, my program got five times faster and I didn't change anything.
0:58:17might compile times are lower.
0:58:19It's still super young,
0:58:21and I think it's probably still super buggy,
0:58:22and they've got a long way to go.
0:58:23But I think the inclination is to think,
0:58:26well, it's young now, and there's these big changes,
0:58:29but the rate of change will slow down.
0:58:30And I expect it to not slow down,
0:58:33to make people uncomfortable with the amount
0:58:35that it doesn't slow down for the next couple of years.
0:58:38At a certain point, it's gonna be kinda like
0:58:40the change fatigue with the OS.
0:58:41Go like, all right already.
0:58:43My annoyances with whatever features in Swift
0:58:46are now dwarfed by my annoyance that you keep changing
0:58:49the language every three months.
0:58:51We understand you're addressing all of our problems
0:58:53and trying to make things better,
0:58:54but now I just want it to be stable so I can write some code
0:58:56and feel like I actually know the language.
0:58:58That's gonna happen in like eight months
0:59:00if they keep up this pace.
0:59:02- Yeah, hopefully.
0:59:02I mean, I said last year I was gonna wait about a year
0:59:05before I even looked at it,
0:59:07and so far that's working out very well.
0:59:09I can see in passing, oh, they're making
0:59:11all these big changes, but I have no investment in it.
0:59:14I haven't even read the Apple Swift book yet,
0:59:17the thing they release on iBooks for free,
0:59:18I haven't even read that yet.
0:59:19- That's good because every page of it has changed by now.
0:59:22- I know.
0:59:23And so I'd rather just wait until it settles down,
0:59:26at least most of the way.
0:59:28I would expect within the,
0:59:30you said within the next couple years,
0:59:31I think it will be pretty stable even in a year from now.
0:59:35- But I think the reason I don't think
0:59:37it'll ever really stay is just like,
0:59:39built into this language is the idea
0:59:41that it is a versioned language,
0:59:42and there's no backward syntax compatibility,
0:59:46their entire path forward, and we'll see how this works,
0:59:48is that the IDE is going to update your source code.
0:59:51They're not going to support Swift 1.0, 1.1,
0:59:54for the source.
0:59:56It's not like I wrote this in Swift 1.0,
0:59:58and I'm gonna be able to compile it in Xcode 9
1:00:00many years from now.
1:00:01No, you won't, no, you can't even compile that now probably.
1:00:04Their whole strategy is source compatibility, forget.
1:00:06I mean, maybe they'll change their policy.
1:00:08When it comes to the maturing point,
1:00:10they're gonna say, okay, now the new policy is
1:00:11we will actually respect the sanctity of your source code
1:00:13and not require you to like, you know,
1:00:15use our refactoring tools to upgrade the syntax.
1:00:18But they're not in that phase yet.
1:00:19They're in the phase that says,
1:00:21"We told you we're gonna break syntax compatibility.
1:00:23"We are going to.
1:00:24"We're never gonna compile your Swift 1.0,
1:00:26"1.1 stuff anymore.
1:00:27"So just get used to it and you better upgrade to Swift 1.2.
1:00:30"And by the way, 1.3 will do the same thing to you."
1:00:33- Our final sponsor this week is Automattic,
1:00:35your smart driving assistant on your smartphone.
1:00:38go to automatic.com/ATP.
1:00:41So, automatic is this little dongle
1:00:43that plugs into your car's OBD2 port.
1:00:46It's the same port they use at the mechanics
1:00:48or the dealers where they check it for error codes.
1:00:50It's usually in the driver footwell.
1:00:52Automatic plugs into that, and so all the information
1:00:54that the dealers can get and the mechanics can get
1:00:56out of your car, automatic can get,
1:00:58and it has a smartphone app that integrates with this
1:01:00and does cool stuff.
1:01:01So, one thing it does, so by the way,
1:01:03this works on iPhones and Android phones,
1:01:06which is pretty great.
1:01:07And it can show you by combining the smarts in your car
1:01:10with the smarts in your phone, it shows you things like where
1:01:14you've driven and how efficiently you drive.
1:01:16It gives you feedback on your driving in real time that can
1:01:19save hundreds of dollars a year on gas.
1:01:22They can even call emergency services for free in a serious
1:01:26crash, so if your car crashes and your phone is at all
1:01:30workable, it can use your phone to call emergency
1:01:33services for you.
1:01:34This could really seriously be a benefit here.
1:01:37Automatic also can diagnose any check engine light code.
1:01:41So because it's in that port that all the mechanics use,
1:01:44if there's any kind of error code
1:01:45that causes the check engine light to come on,
1:01:47the car has a lower level error code than that.
1:01:50It's just not showing you
1:01:51'cause it usually just lacks the display for that.
1:01:53That's why it just says check engine.
1:01:55But usually there's some lower level code.
1:01:57And a lot of those codes are really obvious things
1:01:59that you can fix.
1:02:00Things like the gas cap isn't sealed all the way.
1:02:03stuff like that you can just fix that yourself or you know minor parts swaps
1:02:06you can do you know you can go to a mechanic instead of going all the way to
1:02:09the dealer and paying all this money so it can save you lots of money with check
1:02:12engine light codes it can give you lots of money savings on gas it can call the
1:02:16emergency services for free in a crash and it even has little useful things
1:02:20like parking reminders again it's combining your car with your phone so it
1:02:24knows where you parked and you can use the automatic app on your phone you just
1:02:28go find your car again they even have integration with a few different things
1:02:32So they integrate with the Nest learning thermostat.
1:02:35So for example, if you're headed home,
1:02:37and Nest has you in away mode, so your house is cold
1:02:40in the winter, Automattic knows you're
1:02:42getting close to your home, so it will tell the Nest
1:02:45to turn the heat on.
1:02:46And so then by the time you get home,
1:02:47your house is nice and warm for your arrival.
1:02:50And even if you don't have a Nest,
1:02:52they have integration with IFTTT, if this, then that.
1:02:55So with that integration, you can integrate
1:02:57countless other online services with your Automattic device.
1:03:00So it's really great.
1:03:01There's also an API.
1:03:02You can download your driving data.
1:03:04You can subscribe to events, like when you start and stop
1:03:06the car, when your check engine light comes on, et cetera.
1:03:08There's a whole API for use for whatever you want.
1:03:11And if you have an Android phone,
1:03:12they even have a feature called Do Not Disturb mode,
1:03:15so that if you want, you can have it automatically mute
1:03:17your phone buzzing or beeping while you're driving,
1:03:20so you don't get distracted by those notifications.
1:03:22So great stuff here.
1:03:23automatic.com/atp.
1:03:26And this is normally about $100.
1:03:28There's no subscription fees.
1:03:30This is one time up front, just $100.
1:03:33There is no monthly fee.
1:03:35You can buy the device, that's it.
1:03:37Now there's a special offer for the podcast listeners, 20% off.
1:03:40So for you guys, by going to automatic.com/atp, it's just $80.
1:03:4520% off.
1:03:47So just $80.
1:03:48Free shipping in just two business days, and they have a 45 day return policy.
1:03:54This is really risk free.
1:03:55Fantastic deal.
1:03:57$80.
1:03:58free shipping in two days and a 45 day return policy.
1:04:01Automatic.com/ATP.
1:04:03Thanks a lot.
1:04:05- And speaking of different ways
1:04:08of writing your user interfaces,
1:04:11a couple of things have happened over the last weeks
1:04:13or months that a few listeners have asked us to talk about.
1:04:17And the first, actually might have even been a year ago now,
1:04:20is Async Display Kit.
1:04:22Do you wanna tell us about that, John?
1:04:24- Yeah, all this talk about UX Kit has,
1:04:26Like the idea, oh, UXKit is a successor to AppKit,
1:04:29and AppKit has this corrupted UIKit,
1:04:31you know, learned from AppKit and did things better,
1:04:34which is why it seems nicer to do a lot of things in UIKit
1:04:37than it is in AppKit and everything.
1:04:38And AsyncDisplayKit and the other topic we'll go after
1:04:43about React, or React Native, rather,
1:04:47point to sort of a larger leap above both the AppKit
1:04:52and the UIKit paradigm, particularly having to do
1:04:55with the requirements that certain things only be done on the main thread, laying out
1:05:00the UI drawing, and there's some exceptions to that, where you can try to do some of those
1:05:04things off the main thread, but generally that leads to sadness, unless you're super
1:05:07careful and know what you're doing.
1:05:10And that's a limitation kind of built into the framework, a framework that if you trace
1:05:15its lineage through, you know, OpenStep and NextStep, AppKit going way back in time, made
1:05:20sense when you didn't have a multi-core CPU in your little handheld crazy phone.
1:05:24Symmetric multiprocessing was barely a glimmer in people's eyes back then.
1:05:29Forget about these 12-core CPUs and everything like that.
1:05:34But the reality is that now we do have multicore in everything, and even if you just offload
1:05:40some of that work to another core, it can be a big benefit.
1:05:43So AsyncDisplayKit is a thing, I think it's a thing that Facebook made for its native
1:05:47applications, the paper application, where they wanted to do layout calculations.
1:05:52basically math of saying how wide is this,
1:05:53how much room is it going to take up, blah, blah, blah.
1:05:56And they wanted to do it in parallel,
1:05:57not on the main thread,
1:05:59because they didn't want to block the main thread.
1:06:00They wanted the main thread to be available
1:06:01to pick up events and process them
1:06:03and make the UI, you know, reactive,
1:06:06not to use that word, the next thing.
1:06:08And so they made AsyncDisplayKit,
1:06:11which is a thing on top of AppKit
1:06:14that lets you do UI type calculations
1:06:17in asynchronously and possibly in parallel
1:06:21and other threads and then do it in a nice way
1:06:24so that the actual layout gets done on the main thread
1:06:26as it has to to work with the thing,
1:06:28but you can actually do the calculations elsewhere.
1:06:30And that's what makes me look at UXKit and think like,
1:06:34this can't really be the future of anything.
1:06:36It seems just like an interim step
1:06:38because I would wanna see a leap,
1:06:40like UIKit was a nice step up from AppKit,
1:06:42but it was kind of like more like a cleaned up AppKit,
1:06:45but it didn't revisit some fundamental assumptions
1:06:48in light of the hardware realities that we have today.
1:06:52And I think something like,
1:06:54something that incorporated something like Async Display Kit
1:06:57into the fabric of the framework would be much better
1:06:59than someone taking AppKit or UIKit
1:07:01and layering another framework on top of it
1:07:03to offload stuff to other threads and stuff like that.
1:07:06- Yeah, so Async Display Kit was most,
1:07:10gained most of its fame, I guess, from paper,
1:07:14which was, is an app that Facebook wrote
1:07:17as a kind of alternative to their traditional Facebook app.
1:07:21And it's actually the app that I use on my phone
1:07:23because it freaking supports sending messages,
1:07:26which is nice.
1:07:27You don't have to have a separate app for that.
1:07:28But anyway, it's very pretty
1:07:29and the animations are very cool and it's very nice.
1:07:34And that and Async Display Kit powers it.
1:07:36Now lately, Facebook has taken a different approach
1:07:40'cause React Native is Facebook, right?
1:07:41I'm not making that up, am I?
1:07:43- I think you're right.
1:07:45- All right, well, we'll just assume I'm right, why not?
1:07:47email me and tell me if I'm wrong.
1:07:49Anyway, so React Native is also by Facebook
1:07:53and React originated as, or at least to my knowledge,
1:07:58as a JavaScript front-end framework,
1:08:01kind of, sort of, but not really at all like Angular.
1:08:04And then somebody at Facebook said,
1:08:06"Well, you know what?
1:08:07We could do something on the Native side with this."
1:08:12And so there's an unbelievably good video
1:08:16that I had seen by way of Andy Matuszak,
1:08:20who has been coming up a lot lately, actually, on the show.
1:08:23And it's an overview by one of the developers
1:08:27of React Native at Facebook,
1:08:29talking about how it works and kind of what it does.
1:08:32And I haven't watched it for a week or two
1:08:35since whenever it came out.
1:08:36And so I can't really get into the specifics
1:08:39'cause I'll steer us into a black hole of incorrectness.
1:08:42But some of the stuff that it does was just unreal,
1:08:46including being able to mess about with your UI
1:08:49without doing another build.
1:08:52And so you can have your app running in the simulator,
1:08:57fart around with some stuff in Xcode,
1:08:59and it will refresh itself in the simulator
1:09:02without recompiling.
1:09:03And additionally, you could actually connect Chrome
1:09:07to the app, the running app,
1:09:09kind of like we talked about, I think, last episode
1:09:11with web views, but this isn't a web view.
1:09:14This is all real honest to goodness native stuff.
1:09:17And so you can connect Chrome,
1:09:19they have some sort of interpreter connector, whatever,
1:09:21and you can connect Chrome to your native app
1:09:24running React Native and go inspecting it.
1:09:27Kind of like, what was the third party thing
1:09:29that got Sherlock this year?
1:09:31Do you know what I'm thinking of?
1:09:32- Oh yeah, the thing that exploded all the views.
1:09:34- But yeah, so it's kind of similar to that.
1:09:36And I haven't played with it yet,
1:09:38But just watching this half an hour video,
1:09:41my mind exploded probably 15 times.
1:09:44Reveal, thank you for the chat room.
1:09:46It was revealed that I was thinking--
1:09:47- You're not gonna try and pronounce that?
1:09:49- No, thank you person in the chat room.
1:09:51Marius Sirachi, that's totally wrong.
1:09:54Anyway, this video is really, really incredible.
1:09:59And Marco especially, I'd be,
1:10:02well, you haven't seen this, have you?
1:10:04- No, of course not.
1:10:04- Okay, nevermind.
1:10:05So you're useless.
1:10:06- Hey, in my defense, I did spend all day today
1:10:08making another Go program.
1:10:10So I was in this century.
1:10:12- Okay, well that's good.
1:10:14I would like to hear about that if we have time.
1:10:15But John, what are your thoughts on this React Native thing?
1:10:18Have you done React, the JavaScript framework at all?
1:10:21- I retweeted a thing from like,
1:10:23someone was making a joke, like a sign of the W3C
1:10:25and it was one of those signs of the library.
1:10:27I said, there have been blank days
1:10:31since a new JavaScript framework
1:10:32and it had zero whiteboard.
1:10:35Like, I'm pretty sure I know what React is
1:10:38and have seen it, like the JavaScript version
1:10:40for web applications.
1:10:41You can correct me if I'm wrong, Casey,
1:10:43'cause you've watched the thing,
1:10:44'cause I haven't watched it yet.
1:10:45But React is the one where they do,
1:10:47where they have all,
1:10:49is it the one where they have like the DOM
1:10:51sort of as a structure not actually connected to the DOM
1:10:54and they do diffing against it
1:10:55to figure out what actually needs to be updated
1:10:57and that ends up being faster?
1:10:58It's like, it's one of those crazy solutions
1:11:00that has to do with,
1:11:01it's not Shadow DOM, Crystal, TD, and the thing,
1:11:03although that's a separate thing.
1:11:04and web components are related to this,
1:11:06but it's like, you would think it would be so much slower
1:11:09to build these parallel structures in memory
1:11:13that aren't the DOM,
1:11:14and then figure out what the changes are
1:11:16by diffing it against something else.
1:11:17And then only at the end,
1:11:19after you've done this crazy diffing thing
1:11:21and it's just these abstract memory structures
1:11:22that have no connection to the browser that you say,
1:11:24now, finally, I know what I have to update in the DOM,
1:11:26and you do the minimal update to the DOM,
1:11:28but updating the DOM is so damn slow
1:11:30that doing that diffing ends up being way faster
1:11:32than doing it like the quote unquote direct way.
1:11:36- It's worth pointing out also the Flipboard thing
1:11:38on this topic, where Flipboard came out,
1:11:40I think it was yesterday or the day before,
1:11:42it was very recent, and they launched a web version,
1:11:45and then their engineering department posted
1:11:47this whole thing, how they're basically doing
1:11:49a React-like diffing system in the middle
1:11:54of this whole system where they're basically,
1:11:55they basically rewrote part of WebKit
1:11:58that just runs on a canvas.
1:12:00And it's a very small part, but still.
1:12:02Yeah, they call it a web version.
1:12:04I put scare quotes around a web, because once
1:12:06your entire application is just a big Canvas tag
1:12:08that you draw stuff in with your own framework,
1:12:10yeah, I guess that's the web.
1:12:11But you've just reinvented ActiveX controls.
1:12:14Like you're--
1:12:15Oh, no, that's terrible.
1:12:17That's really insulting.
1:12:17Come on.
1:12:18You know what I mean.
1:12:19But you are not-- it's a difference.
1:12:20We used to talk about this with Flash.
1:12:22The web is-- we know what the web is.
1:12:24And anything that is a rectangle in a web page in which
1:12:27some other program runs is not the web.
1:12:29And Canvas is like the borderline of that.
1:12:31It's like, well, is that the web?
1:12:33Or is it like you've written, you know, yes,
1:12:36that you have a nice display layer
1:12:38and you could in theory do everything yourself.
1:12:40And they're not doing everything themselves,
1:12:42but it's like, as many people pointed out
1:12:44in terms of like accessibility
1:12:46of a Canvas native application,
1:12:48like unless you're signing up to re-implement,
1:12:51you know, UI kit or app kit
1:12:52with all the accessibility things
1:12:54that are inherent there and support for all the tools,
1:12:57it strikes me a lot as a big rectangle on a webpage
1:13:00where other things happen,
1:13:01which may be fine for Flipboard, but I don't think it's--
1:13:03- That's fine for Flipboard.
1:13:04- Yeah, right, but React is more like,
1:13:07we're going to take the web as it exists
1:13:09and we're just going to find out a nicer way
1:13:11for you to write applications
1:13:13or what they think is a nicer way.
1:13:15React has some weird stuff going on.
1:13:17They violate, they sort of sacrifice a lot of sacred cows.
1:13:21They're the big things, I think,
1:13:22also where they like mix JavaScript handlers in line with these fake things that look like
1:13:28tags but really aren't and freaks people out because it looks like you're doing like the
1:13:31old style on mouse over equals whatever but you're not really because that's not actually
1:13:35DOM markup that's just a way to communicate with the like there's a lot of weird things
1:13:40about React but I think that's all besides the point because I think the important part
1:13:43of it is that it is a different model and it's a very different model from AppKit and
1:13:47UIKit of how to make GUI applications and it's like well that's for the web the web
1:13:52is so different than native, it has to be different.
1:13:54And React Native is like, what if we take that same model
1:13:57and apply it to native things?
1:14:00Does that work?
1:14:01Is it actually better than using UIKit or AppKit?
1:14:03And some people apparently think it is.
1:14:04I think the jury's still out on whether this new paradigm
1:14:08is the way to go, but I think this combined
1:14:10with AsyncDisplayKit show two different
1:14:13potentially complementary approaches
1:14:16that show, that are so different from AppKit and UIKit
1:14:21and UXKit that it's like, it makes UIKit and UXKit
1:14:25and AppKit look like Objective-C 2.0,
1:14:28and it makes these things look like potentially Swift
1:14:30or something like, I just feel like there's a bigger leap
1:14:32to be had and it's like, I would recommend that Apple
1:14:36not invest some huge amount of time pushing some unified
1:14:41UIKit, UXKit type of thing for the future
1:14:43because that transition will take a long time
1:14:44and when you're done with the transition,
1:14:45what you've got is basically,
1:14:46now everything's as good as UIKit.
1:14:48And UIKit may be nicer than AppKit in important ways,
1:14:50but it is not sort of a large,
1:14:55it's not as big a leap, potentially as big a leap
1:14:57as Swift potentially is over Objective-C.
1:15:00Like I'm looking for the next big step.
1:15:01And I would say refine what you have now,
1:15:03make AppKit better as you've been doing,
1:15:05make UIKit better as you've been doing,
1:15:07and get busy working on whatever the next big thing is.
1:15:10And if it's something like React Native, fine.
1:15:11If it's something that incorporates the ideas
1:15:13of Async Display Kit, fine.
1:15:14If you think you can retrofit those to both UIKit
1:15:17and AppKit and let people do more things
1:15:18off the main thread, maybe try that too.
1:15:20but I'm not going to say this is my next Copeland 2010 type of thing, but I do look at these
1:15:27other frameworks and I'm not convinced that they're the future, but they look different
1:15:31enough from the present that I'm interested in potential ideas for the future.
1:15:35Yeah, I agree. I think you're totally right that if you're going to make everyone do a
1:15:40big transition, if there is this other thing that has come up in computer science-y type
1:15:46circles and everyone thinks this is a really great idea and it turns out in practice to
1:15:49to really be a really great idea,
1:15:51it is definitely worth considering.
1:15:53Is it worth, if you're gonna force people
1:15:55to go through a transition,
1:15:56to make a bigger leap, like Swift?
1:15:58- It's not even like computer science-y,
1:16:00just recognizing the hardware.
1:16:01The hardware is so different now.
1:16:03The frameworks we have are not a good match
1:16:05for everything being multi-core
1:16:06because of the main thread constraints.
1:16:08And GCD helps that a lot.
1:16:10GCD does help, but for UI code, it doesn't help
1:16:13because it's like certain things you have to do
1:16:15on the main thread or bad things happen.
1:16:17And so that's like the Async Display Kit.
1:16:18is like we're going to hack around that limitation
1:16:21of Apple's frameworks and say,
1:16:22you just sit there framework, don't worry,
1:16:24we'll actually do the UI updates on the main thread,
1:16:26but we're gonna do a whole bunch of other math over here
1:16:28in our sort of play world.
1:16:30And same thing with React, our sort of play world of,
1:16:33this is not the UI,
1:16:34but this is our little fake model of the UI
1:16:37so we can actually take advantage of parallel processing.
1:16:39And then we'll get back to you with like,
1:16:40okay, now that your actual UI,
1:16:42or now your actual DOM, please do this change.
1:16:44And that is hacky and clever,
1:16:46but it shows that the current frameworks
1:16:49are just not a good fit for current hardware.
1:16:51- Well, I think the multi-core hardware rendering
1:16:54on main thread thing is kind of red herring.
1:16:57In practice, the reason why a lot of UI code now
1:17:02is tricky to write is not because drawing calls
1:17:06have to happen on the main thread.
1:17:07It's because, jeez, is it declarative versus procedural?
1:17:12Whatever the, it's a different paradigm,
1:17:15is what I'm saying.
1:17:16It's not that it's tricky to write.
1:17:17It's just that if you have performance concerns,
1:17:20like you want to treat it more like a game engine, where
1:17:23it's like, if you're going to do anything,
1:17:26you have to be done, because I have to pull the next event off
1:17:28the queue.
1:17:29You need to leave the main thread alone.
1:17:31Do not-- that's the whole thing of GCD.
1:17:32Stop blocking the main thread, for crying out loud.
1:17:34I don't care what you have to do.
1:17:36Get in, get out.
1:17:37I need to get the next event, because if it's
1:17:39stuttery when it's scrolling, it's super bad.
1:17:41And that's why AsyncDisplayKit has this cool--
1:17:44one of the classes they have is like,
1:17:45Say you're gonna show a big giant grid of images
1:17:47and they're coming from the internet.
1:17:48You can't wait to get all those downloaded
1:17:50to figure out what sizes they are so you can lay it out.
1:17:52It'll take forever.
1:17:53So there's like this procedural thing
1:17:55where like we'll download super low res versions of those
1:17:59and asynchronously bring in the higher res versions
1:18:01but just so you can get a scrollable correctly laid out
1:18:04thing as soon as possible so you can start scrolling it.
1:18:07That's the type of thing that's very difficult to do
1:18:09with the existing framework
1:18:10which it's like they don't expect sort of asynchronous
1:18:12updates to all these features.
1:18:16It should be easier than it is.
1:18:17And it's not because of, like you said,
1:18:20declarative versus procedural, that's part of it.
1:18:22And you could say, oh, it's easier if I could describe
1:18:24my UI in this way instead of writing a bunch of code
1:18:25to make my UI in this way.
1:18:27But it's like for large grids with lots of things on them,
1:18:32I don't want to block the main thread with the amount,
1:18:34I don't want my main thread to be blocked
1:18:37if N is really large for something that's performance
1:18:41is dependent on the number of items.
1:18:43- Yeah, but I think it's more, you know,
1:18:45like you said, like with GCD,
1:18:46we can already step off the main thread, come back later.
1:18:49Like, it's more of a paradigm shift.
1:18:52It's not that like the APIs have to happen
1:18:55on this main thread, it's that like,
1:18:56the paradigm for how you update the UI,
1:18:59like, 'cause the way React does it,
1:19:01like if you look, like I don't know React,
1:19:03so whenever I see snippets of React code,
1:19:05it just breaks my mind.
1:19:07Like, I'm looking at it and I'm like,
1:19:08oh my god, this is totally backwards, inside out,
1:19:12upside down, and in French.
1:19:14Like it's so, it looks so foreign to me
1:19:17'cause it's so different from what I'm used to.
1:19:20- Yeah, so let me jump in here.
1:19:21So one of the links is,
1:19:23that we're gonna put in the show notes,
1:19:24Why React Native Matters, and this is by Joshua,
1:19:28I'm guessing that's Josh Haber.
1:19:30Anyway, he says, right now we write UIs by poking at them,
1:19:34manually mutating their properties when something changes,
1:19:37adding and removing views, et cetera.
1:19:39This is fragile and error prone.
1:19:40Some tools exist to lessen the pain,
1:19:43but they can only go so far.
1:19:45UIs are big, messy, mutable, stateful bags of sadness.
1:19:48React lets us describe our UIs for a given state,
1:19:51and then it does the hard work of figuring out
1:19:54what needs to change.
1:19:55It abstracts all the fragile error prone code
1:19:58out away from us.
1:19:58We describe what we want,
1:19:59React figures out how to accomplish it.
1:20:01UIs become composable, immutable, stateless value types.
1:20:04React Native is fantastic news.
1:20:06And that's building, oh, it's Josh Abernathy, I'm sorry.
1:20:09That's building on what you were saying, Marco,
1:20:11where this is just a whole different model
1:20:14of how you interact with user interfaces.
1:20:17And it makes a lot of sense.
1:20:20Maybe the particulars are a little bit wonky
1:20:22and I'll concede that.
1:20:23But the premise of really this is just moving
1:20:27from one concrete state to another
1:20:29and it should just be a finite state machine,
1:20:31hopefully in theory.
1:20:33That is a really cool premise.
1:20:34And building on that, going back to Andy Matuszak,
1:20:38he tweeted a few days ago,
1:20:39put a link in the show notes,
1:20:40"I say with confidence as a former UI kit author,
1:20:43"React's model for the UI layer
1:20:44"is vastly better than UI kits.
1:20:46"React Native is a huge deal."
1:20:49In another tweet, "They've just got to figure out
1:20:50"the interaction and animation pieces."
1:20:53And so he goes on just briefly,
1:20:54"To all asking me what's React, filter bubble danger,
1:20:57"you must watch the broader development landscape
1:20:59"don't get trapped in one platform."
1:21:00And I think that's a really good call.
1:21:02And this is something very interesting
1:21:04that's influenced from a web framework coming into native
1:21:09and it's making some really interesting moves.
1:21:13And I wouldn't be surprised if something along these lines
1:21:17gets adopted by Apple in the same way
1:21:19something along the lines of Reveal,
1:21:20which isn't an apples to apples comparison,
1:21:22but, you know, Reveal was kind of Sherlocked.
1:21:24It wouldn't surprise me if they took a very similar
1:21:27spiritual, spiritually similar approach
1:21:29to whatever replaces UIKit and AppKit
1:21:32eventually one day maybe. Oh yeah, because you know React, I mean it's making big waves,
1:21:37and it's making waves with a lot of the people who matter with such decisions. People like Andy Matuszak,
1:21:42and like people who are developing these frameworks, people who are in important positions, or were, or know people, you know like, or those
1:21:50you know the new people in those positions. These are, it's making big waves. I've heard so much about React.
1:21:55Every JavaScript framework out there besides React that's come out in the last decade, I hear nothing about because I don't care.
1:22:02React makes big enough waves that I keep hearing about it.
1:22:05Like, I don't know anything about Angular.
1:22:07Is that the one that has like a million different levels
1:22:09of factories?
1:22:10- Yeah, Ember and Angular, yeah.
1:22:11Like, you don't, those are confined to the client side.
1:22:14React is coming over to the native side.
1:22:16Like, I think to tie this together with AsyncDisplayKit
1:22:19was like, you know, we were talking in two different things.
1:22:21Like, I was mostly talking about AsyncDisplayKit
1:22:23with the performance concerns,
1:22:24and you were talking about React as the paradigm thing.
1:22:25They're connected though, because React's functional thing,
1:22:29where like, you know, you operate on state
1:22:30and it's a value type thing, that sort of, you know,
1:22:34lack of side effects where you just operate
1:22:36on your arguments and return a value
1:22:37and everything is sort of, you know,
1:22:39like just a value type and all that stuff,
1:22:41that you see a lot of that in Swift as well,
1:22:43that allows you to parallelize that stuff.
1:22:45Because if you don't have side effects,
1:22:46if you're not, if it's not just one giant big ball
1:22:48of mutable state, then you can only update
1:22:50one thread at a time, otherwise you get crazy conflicts.
1:22:52That's what, one of the many things that ties AppKit
1:22:54to its current paradigm.
1:22:56React, so, you know, React and AsyncDisplayKit
1:22:58are connected because if you use the React model,
1:23:00It doesn't matter what thread you do these mutations are,
1:23:02it doesn't matter, you can do them all in parallel,
1:23:04the same, like, they're side effect free,
1:23:06they're pure functional, and so it lends itself
1:23:09to that type of UI model, as opposed to the current model,
1:23:13which is, we have this one thing, it is the state of the UI,
1:23:16be super careful with it.
1:23:18- And going back a sec to what Casey just said,
1:23:20like, it is not past Apple to steal good ideas,
1:23:24they do it all the time.
1:23:26And if something is making this big of a wave,
1:23:29and Apple's engineers and top people,
1:23:32if Apple thinks it's a good idea, they will do it,
1:23:36or they will do something similar to it.
1:23:38And something like this, this is a pretty big deal,
1:23:41like to change your entire UI API paradigm,
1:23:44or to add a new one is a major deal.
1:23:47And this is not something that can happen in a year.
1:23:50This would be a big undertaking.
1:23:53- It would have to be a Skunkworks,
1:23:54but I think that the exciting thing about Swift is it showed
1:23:56us, yeah, it was a Skunkworks,
1:23:58But it was essentially one guy, one very powerful guy,
1:24:02who had proven himself with many other things
1:24:03that he had done in the company.
1:24:05It's not just some random employee
1:24:06off in the corner somewhere.
1:24:07But for a long time, it was just one person.
1:24:10And I'm sure there's lots of those one person type projects
1:24:12that may or may not go anywhere.
1:24:13But it just goes to show that you don't need buy-in
1:24:16at the VP level to get the ball rolling
1:24:18or something like this.
1:24:19And maybe the ball starts rolling and then stops rolling,
1:24:21like has happened with ZFS or whatever, other things.
1:24:24It's not guaranteed that it's going to happen,
1:24:26but it seems like Apple is currently an organization
1:24:28in which something like this could start happening
1:24:31and get killed before we ever see it
1:24:33and something else comes along
1:24:34and maybe React is just the hotness today
1:24:36and then two years it's something else.
1:24:37But it's not outside of the realm of possibility
1:24:40that Apple can innovate in this way
1:24:42on any subject other than file systems
1:24:43which they seem insatially incapable of ever changing.
1:24:47Not that I'm bitter.
1:24:48- And tying it back, even though I really wanna end on that,
1:24:52but tying it back, if they're gonna do something
1:24:55like a React-style UI framework, that would be a really good thing to start with Swift
1:25:01and to make Swift only. One of the things that makes React code look so weird is that
1:25:07it fits in very weirdly with existing languages, which is like the syntax of declaring it and
1:25:12using it.
1:25:13The fact that it's using JavaScript, like this is...
1:25:16Yeah, it's really badly bolted on. I mean, not by its own fault, but by the fault of
1:25:20the language really, but Swift is still squishy and generally more pokeable.
1:25:27But Swift is a much better fit.
1:25:28The whole idea of so many things being value types in Swift, not that that is a direct
1:25:32parallel to the idea of the UI state being a value type and everything, but it just shows
1:25:36that the headspace, like where is Swift at in terms of immutable data, well it is much
1:25:41more on the React side of things than Objective-C is, because Objective-C is all about everything
1:25:45and be mutating and, "Hey, just declare this type ID.
1:25:48"Whatever, guys, it's all right."
1:25:50Whereas Swift is like, "No, we're gonna pin things down."
1:25:53Lots of things that were reference types
1:25:55are becoming value types just because we've learned
1:25:57that making NSString reference type
1:25:59just leaves no more headaches
1:26:00and people forget to copy them.
1:26:02It's like that is the mindset of Swift.
1:26:05And so something using the good ideas
1:26:09in React and Async Display Kit,
1:26:11written natively in Swift,
1:26:12would be a very interesting successor
1:26:14to both UIKit and AppKit from Apple,
1:26:16so someone should start writing that now
1:26:18and in four years get back to me.
1:26:20- And it'll give me a reason to learn Swift.
1:26:22- Yeah, that'll be eight years later.
1:26:24- Yeah. (laughing)
1:26:26All right, thanks a lot to our three sponsors this week,
1:26:28Igloo, Hover, and Automattic,
1:26:30and we will see you next week.
1:26:31(upbeat music)
1:26:34♪ Now the show is over ♪
1:26:36♪ They didn't even mean to begin ♪
1:26:39♪ 'Cause it was accidental ♪
1:26:41♪ Accidental ♪
1:26:42♪ Oh, it was accidental ♪
1:26:43John didn't do any research, Margo and Casey wouldn't let him
1:26:49'Cause it was accidental, it was accidental
1:26:54And you can find the show notes at ATP.fm
1:26:59And if you're into Twitter, you can follow them
1:27:04[music]
1:27:34What are we talking about?
1:27:35Oh, your Go thing.
1:27:37What is this about?
1:27:38You're really getting into this Go thing.
1:27:40- Yeah, I'm getting faster with it now.
1:27:42And today was the first time,
1:27:44my previous, the polar, the feed polar,
1:27:47that's just one giant file.
1:27:49'Cause I didn't want to figure out
1:27:52how do I break up things into different files
1:27:54and manage that in Go,
1:27:56because it fit, it's a pretty long file,
1:27:58and I should break it up now,
1:28:00'cause it got longer once I finalized
1:28:03all the stuff I actually needed to be in the system fully.
1:28:08So tonight I was working on something else.
1:28:11So I have these two servers at high velocity that I bought, or that I started leasing per
1:28:19month about a month ago, and I haven't done anything with them yet.
1:28:22I bought them because they were having an insane sale.
1:28:25That was just ridiculous for what you get for both hardware and bandwidth, where now
1:28:31a few hundred dollars a month, I now have an unmetered gigabit of transfer. A gigabit
1:28:37per second unmetered of transfer.
1:28:39What?
1:28:40And I asked them, before I bought it, I'm like, "Alright, so what's your actual policy
1:28:44here? If I actually use all this, what if I was hosting big podcast files? If I made
1:28:49a podcast file host for us or whoever else, if we actually used all this bandwidth, would
1:28:56you cut it off." And they're like, "Nope, you can use it, that's the point." It's a
1:29:05pair of machines that are each 500 megabit, and they're each roughly as good as a 6-core
1:29:13Mac Pro. They have dual SSDs with RAID 1, 64 gigs of RAM. I mean, these are insane machines!
1:29:216-core Xeon 1660v3s, which are actually faster than the current Mac Pro CPUs because the
1:29:26Mac Pro seemed to have skipped generation, which they sometimes do, so I'm not surprised.
1:29:32There is a newer version of the Xeon chips that the Mac Pro uses that is out right now
1:29:36that Apple has not updated to and seems like they're probably just not going to at this
1:29:39point.
1:29:40Anyway, so I have these servers that I bought because one thing I want to do, and the reason
1:29:47why I was so interested in having tons and tons of bandwidth available is I want to be
1:29:53able to launch a Twitter card for overcast player pages so that people who are browsing
1:29:59the Twitter app can play the podcast right there in Twitter cards. Twitter cards require
1:30:03that all assets that are loaded within them, including media files, are served over HTTPS.
1:30:10Some podcast hosts support HTTPS for their files, but most don't. So the first thing
1:30:17wanted to write was an HTTPS proxy. And there are a few of these that exist. There's one,
1:30:23I forget what it's called now, there's one that GitHub wrote in Node. Oh man, I'm sorry
1:30:29I forgot the name. Anyway, so there's that one, that's fine. I looked at it briefly.
1:30:34It's mostly made for images, but fine, it would work the same way. I decided to try
1:30:40to write that in Go, a basic SSL proxy. And it's so, it's nothing, it's like a hundred
1:30:45I mean, it's almost nothing, it's great.
1:30:48And I also have a few other things I wanted to try.
1:30:52I mentioned last week that I was using Imageix for my thumbnailing, but it was costing me
1:30:56a fortune, so I'm moving my artwork thumbnailer to these boxes as well.
1:31:03So I wrote just one Go program that contains those two functions, the SSL proxy and the
1:31:09artwork thumbnailer.
1:31:11Just those two functions implemented in Go, it listens over HTTPS and is its own server.
1:31:15There's no server in front of it,
1:31:16there's no Nginx or Apache or anything reverse-proxying to it
1:31:19it's just its own server, raw, right to the internet
1:31:22and that's all these boxes do is run this program.
1:31:24So I'm hopefully going to be deploying that
1:31:26in the next day or so.
1:31:28- Cool, and it didn't take you that long to write
1:31:31it sounds like?
1:31:32- Nah, a few days, I mean I've been sick
1:31:33so my work hours, I can only really work a few hours
1:31:36at a time before I gotta go lay down,
1:31:38which really sucks, but I'm extremely annoyed about that.
1:31:44That is by far the worst part about being sick is not how I feel, it's that I can't
1:31:49work.
1:31:50That's what drives me nuts the most.
1:31:51Anyway, so that's on its way out at least.
1:31:56If I was working full-time at full capacity, it probably would have taken only two days.
1:32:00It has actually taken something like four days, but oh well.
1:32:03So how does your Go server handle the, I still don't quite understand the concurrency model
1:32:08But how does it handle like you know if there are more incoming connections than then like it does it does it do multiple?
1:32:14Processes or a single process event driven. What does it look like on the machine it can do multiple cores?
1:32:20But it is it is all seen it's for the most part at single process event driven
1:32:24It's they use this concept and forgive me anyone who's an expert listening
1:32:28I'm not an expert yet on this so this is a a newbie overview of what of the way it works, but
1:32:34They use us they use this thing called go routines which are which are these you know kind of threads
1:32:39cooperating sequential processes or something like that yeah something like that
1:32:43So it's those things and so there it's basically a very lightweight thread that exists within the app space
1:32:49It is not an os level thread
1:32:51So so how does it behave like at the limits like if you overwhelm it with connections to the other connections?
1:32:56Just wait does they do you exhaust like the number of like?
1:33:00You know I always look at what the behavior at the limits like that's the only reason I would ever put another
1:33:04server in front of us like, "Well, I know how whatever will behave.
1:33:07I can set these limits on number of connections.
1:33:09I know people will wait.
1:33:10I know what will happen.
1:33:11I know when people will start getting timeouts or connections."
1:33:14Whatever the failure mode is, I can choose my failure mode, and I don't know what the
1:33:17failure modes at all are for Go because I've never used it.
1:33:21So I was trying to do some research on that earlier today to try to figure out, like,
1:33:24do I need to put Nginx in front of it or something, or can I just go without it?
1:33:29The responses to that question were, for the most part, a few people who did it, who just
1:33:33did it rath the internet who said it's fine. A few people who said you should put Nginx
1:33:40in front of it because of separation of roles, which I think is total BS, honestly. The way
1:33:48those arguments were presented, none of them convinced me that they were valid arguments.
1:33:54There's nothing saying that having Nginx reverse-proxy-ing to this Go server is any more of a purity
1:34:01of roles than having the Go server serving itself.
1:34:05It has this functionality built into the language.
1:34:08The only reasons I could think of are the older reasons that we used to run proxy servers
1:34:11in that if you don't want to slow down the process, if a bunch of your clients have slow
1:34:18connections you don't want to tie up your backend process doling out bits to the slow
1:34:24connections but with an event-driven thing that's not really valid anymore because you're
1:34:27not tying it up, when it's dulling up it slowly it's doing other things because it's multi-threaded
1:34:33and moving on to the next thing.
1:34:35Right, and the way, it seems like you would, the difference between Nginx being tied up
1:34:42with all these connections and Go being tied up with all these connections because they
1:34:45both have that same event-driven style model, I don't think one would be substantially better
1:34:49than the other at that.
1:34:51Yeah, and the failure mode is the other option, but the real question for me is, does Google
1:34:55Google put anything in front of its servers when it runs them, and if Google doesn't do
1:34:58it, which I suspect they don't because it seems like Go is designed to do this, then
1:35:01it's like, "Well, if Google's not doing it, you don't need to do it either."
1:35:05If it's designed to handle the traffic that Google expects, surely you can do your podcast
1:35:11image thing by having the Go app talk directly to the web.
1:35:13But I know nothing about this, so I'll be interested to see what the results are of
1:35:17your experimentation.
1:35:18That's probably a bad example, just because Google is such an incredible scale, they probably
1:35:22lots of stuff in between the public internet and their application servers, so that's probably
1:35:28a bad example, but I would be interested to see medium-sized sites, to see what they do.
1:35:35Right, well, no, but I'm saying, like, Google, do they intentionally put a layer there whose
1:35:38only purpose is to be, you know what I mean? Like, I would suspect that the machines that
1:35:42their things are running on, the Go process is listening on the ports, and yes, there's
1:35:46stuff in between, but it's like, do they shove Nginx in there as essentially a proxy server
1:35:51for some reason.
1:35:52It makes much more sense to do that
1:35:54if you have a multi-process backend,
1:35:56because then you would be tying up an entire child process
1:35:58when really you should just shove the,
1:36:00put a big buffer on the proxy,
1:36:01have the child process shift the bytes out to the proxy,
1:36:03and then that child process is free to serve another request
1:36:06while the proxies have redolled out those bits
1:36:07to the slow client.
1:36:08That's like 1990s error, state-of-the-art web technology,
1:36:12but we've moved on from that.
1:36:13- Right, and there was, I saw there was one benchmark
1:36:16that somebody posted where they,
1:36:17and they showed all the code they used,
1:36:19and there were a few complainers in the comments,
1:36:21but it seemed pretty valid, where they benchmarked
1:36:25a simple Go program, like a Hello World kind of thing.
1:36:27They're like, simple Go program, raw versus Nginx
1:36:31with a few different configurations and tweaks,
1:36:34and the Go program just had, it destroyed Nginx
1:36:38in request rate per second with either A/B
1:36:43or one of the other similar tools.
1:36:45It was way faster with just pure Go,
1:36:47'cause of course it's doing less.
1:36:48- And you're synchronizing two event-driven things.
1:36:51Like one thing is handling,
1:36:52and they're not gonna be in sync of like when,
1:36:54when I'm doing the work on behalf of this request,
1:36:56and then handing back, like it's just, you're just, yeah.
1:36:58It's not just adding overhead,
1:37:00it's like two desynchronized event-driven things
1:37:02trying to talk to each other.
1:37:04- Exactly, so that's what, I'm gonna, I mean,
1:37:06so what, the way these servers are set up,
1:37:09they actually have none of my app on them,
1:37:12they don't have any access to my main infrastructure,
1:37:14they don't even read the database,
1:37:16they don't have anything on them,
1:37:18accept this Go program. They don't even have PHP installed. They don't even have private net access
1:37:25back to the Linode servers that are running the rest of the app. They have no connection
1:37:28whatsoever to the app. My app is able to write its files into it, and it only has the Go files.
1:37:35The risk if these things get compromised is pretty small. If they go down, these are kind of
1:37:41accessory features. I'm going to have a CDN in front of the artwork thumbnail or anyway.
1:37:47I'm not doing a CDN in front of the podcast bandwidth thing, or the podcast SSL thing,
1:37:52for two reasons. Number one, the bandwidth cost would be extraordinary, and I don't think I would
1:37:57be able to afford it. Number two, the way this is working, you know, Overcast does not proxy the
1:38:03files normally, and I only want to use this in areas where SSL is really required for usability
1:38:10or for functionality. So that would be things like Twitter cards, the web player to avoid mixed
1:38:15content warnings, things like that.
1:38:17In reality, that's not most uses of Overcast.
1:38:20That's not most plays, and it probably will never be.
1:38:23But regardless, I still don't wanna steal hits
1:38:27from people's files, and so the way I've set it up
1:38:31that there is absolutely no caching
1:38:33of that SSL proxy's assets.
1:38:35Every request that is made through that proxy
1:38:38has a corresponding request back to the origin server.
1:38:41And I know they're probably not gonna count my IP
1:38:45as unique. I am sending the X-forwarded for and X-real IP headers that, you know,
1:38:50that's standard for proxies. I would imagine, like, to prevent fraudulent
1:38:54download count increases, most stats services probably ignore those. For some
1:39:00of the big hosts, like, I already talked to Libsyn and I know SoundCloud, I won't
1:39:05I won't need to use it with them because I know how to do secure URLs for them
1:39:09reliably, so that that should be fine. But either way, I still want, like, I still
1:39:14the downloads to be counted in some way as much as possible for the Origin servers.
1:39:20So anyway, there's no caching involved there, that's intentional.
1:39:24But for the artwork, there is caching involved there, there's going to be a CDN in front
1:39:28of it, so if these servers go down for any reason, it's not going to be a massive deal.
1:39:35It's not going to be like the whole app stops working, or something big is like ugly and
1:39:39broken.
1:39:40It's going to be a really small deal.
1:39:41And so I'm just going to try it.
1:39:43I have just this one seven megabyte go binary
1:39:47to put on the servers and that's it.
1:39:49There's no dependencies.
1:39:50There's no, this very much appeals to me.
1:39:52There's no configuration really.
1:39:54The only sensitive thing on there is gonna be
1:39:57the private key to the SSL certificate that it uses.
1:39:59That's it.
1:40:00So I think it'll be interesting.
1:40:03- That was much more in depth than I expected.
1:40:08That's excellent.
1:40:09What else is going on?
1:40:10You wanna do titles?
1:40:11- I think minutiae.
1:40:12That has to be it.
1:40:15- Yeah, but the AE, the combined AE,
1:40:17I don't know what that's called,
1:40:18that's gonna break a whole bunch of podcast clients,
1:40:22isn't it?
1:40:22- My shell script might break to embed the title.
1:40:25(laughing)
1:40:26I'll have to--
1:40:27- That's a different issue.
1:40:27- Yeah, well, it's not really.
1:40:29I'll just do, I'll use iTunes to edit it or something else.
1:40:32Can you believe how, like, a lot of podcast producers,
1:40:34that's how they embed the ID3 tags,
1:40:36is they import the MP3 into iTunes
1:40:40and hit command I for the info panel
1:40:42and type in the stuff and then export.
1:40:44Like that's crazy to me that anybody does that.
1:40:46- They should use mp3 rage and pretend it's 2002 again.
1:40:49- Well I'm using lame on the command line
1:40:52which is pretending like it's 2004.
1:40:54- Similar error.
1:40:56- Yeah, exactly.
1:40:57- Why don't you use a hex editor?
1:40:58- Wow.
1:40:59- Yeah then you have to know UTF-8
1:41:01for converting that character.
1:41:03That's not gonna work.
1:41:03- Easy enough.
1:41:04- Yeah I think nouche is probably the best one here.
1:41:08Is that little A-E symbol actually pronounced?
1:41:13Like, che, T-A-T, little,
1:41:16I don't even know how to pronounce the little.
1:41:17- Well, it depends on what language you're talking about.
1:41:19If you're talking about Latin or Greek,
1:41:20which is probably where it's from,
1:41:22the answer is nobody actually knows,
1:41:24and everyone's just gonna think they know,
1:41:26and they're making it up.
1:41:27And so, I think we'll use the wonderful A-E ligature,
1:41:32and we will just tolerate the emails that come in,
1:41:36because we love everybody's emails so much.
1:41:38including the people who tell you that's not a ligature.
1:41:41I think it is a ligature, isn't it?
1:41:43I don't know.
1:41:45I'm just speculating about potential email we could get.
1:41:47Yeah, as Holgate in the chat room
1:41:49points out, the HTML entity named for it is ae-lig.
1:41:53So I'm pretty sure it's a ligature.
1:41:55Yeah, I don't know.
1:41:56I don't know the technology.
1:41:57You know, the font and typeface and everything?
1:42:00There's lots of distinctions that I have apparently not
1:42:03cared enough about to memorize.
1:42:06I know they exist, but I don't know what's right.
1:42:08[BLANK_AUDIO]