When Thomas Middleditch (“Silicon Valley”) committed to long-form improv performing at Second City and iO in Chicago, he calls it his “comedy college,” also meeting then-studying, now-famous comedians like TJ Miller, Kumail Nanjiani and Pete Holmes. When Adam Pally (“Happy Endings”) lived in north suburban Skokie, it shaped him differently: specifically, his accent.

“I lived there for four and a half years as a kid from 7 to 11 or 12, so it was very formative ages for your accent,” says Pally, 34, during an interview with RedEye at the Sundance Film Festival. “And now I sound like if you were going to animate a movie about a Vienna beef.” [Laughs]

During our interview about “Joshy”—in which the title character (Middleditch, 34) deals with the loss of his fiancée by using what would have been his bachelor party as a guys’ weekend with his friends (including Pally, Nick Kroll and Alex Ross Perry)--the actors improvised together and talked about bachelor parties. And bachelorette party porn.

Thomas, did you have to work on Joshy’s Harry Caray impression for the movie, or did you already have that?

AP: [Laughs.]

TM: Well, a common question so far has been what of you is in the character, and that’s very much me. Joshy, I always pictured him as kind of a nice guy but a quieter guy, and I am that. But I’m always slipping into voices, like my own private Robin Williams.

AP: That was one of my favorite parts of the movie when I watched it last night. It’s such a small, subtle thing, but any time you see us, the friends, Josh and Ari [Pally’s character] in the movie, they’re doing voices.

TM: Yeah. I wanted that to be his thing. Because I didn’t want him to be just this sort of—

AP: Mopey guy. Coming out of the bar with the Jamaican voice, and at the end—

TM: I think it’s a big release actually after the emotional climax of the film there, where everyone’s kind of feeling pretty solemn, to break into some voice stuff. I don’t want to say [too much], but it helps.

AP: Yeah. It’s great. That’s definitely Thomas. [Laughs.]

The movie really made me think about the ways that as people get older, what you need from your friends changes, and if it doesn’t develop and grow with you it can fade away. What’s something you guys have learned about that as different friends have come and gone?

TM: Up until a little while ago, I would have made some blanket statement about how the friends I grew up with, we have such different lives--how can we be friends anymore? Until I had some kind of weird random reunion; we just all happened to be in the same city and we went out and it was like, “Oh, man, I get why we bonded back then.” But I do think that life if you’re lucky is pretty long, and you’re going to change many times throughout that, and to expect everyone to change at the same pace in the same ways is kind of ridiculous. So, yes, I think you’re going to have great friends for sections of your life, and that is going to change here and there. There may be only a handful you have for the entire thing.

AP: I think as I get into my 30s--

TM: Until I get to my late teens!

AP: Not a day under 29!--

TM: I want a chin reduction!

AP: Freeze this fat! [Laughs.] I would say as I’m into my 30s I have become a better friend because I don’t need as much from my friends, and so when you don’t need as much you can be better at giving. I think I was probably at one point a very needy friend, and as you grow up and you have your own life and get married or not and have kids or not and life goes and it grows, and you grow with it, and I think I’m a better friend now.

Certainly there are exceptions to this but in my experience in my group of friends for bachelor parties the guys usually do a weekend and really blow it out in different cities. The women sometimes do one night in the city or something. I’m not sure if that’s been your experience, but why do you think there is that distinction sometimes?

TM: I had a quiet weekend at a cabin in the woods with a small group of friends and we did play a very complex board game. And my wife went to Cabo with 12 of her girlfriends, and they blew it the fuck out.

AP: [Laughs.] Yeah, to each his own, man. I don’t know if there’s a gender role thing because I went to Las Vegas and tore it up, and my wife the same weekend went to New York and destroyed the city. Maybe that’s just who we are, so you do like that.

TM: Speaking as an improviser who’s done plenty of shows for bachelorette parties where the girls come with the tiaras and the dicks on their head--

AP: Oh my god, that is the worst--

TM: --I would never say that girls and their bachelorette parties are tame. My experience is they are loud and drunk and rather obnoxious, but that’s what it’s supposed to be.

AP: And wild. I watch bachelorette party porn.

TM: [Laughs.]

AP: Have you seen it?

TM: Yeah.

AP: I’m like kind of into it.

TM: I know. And you want to believe it’s real

AP: You know it’s not real, but it’s really hot--

TM: And there’s a guy with a big stuffed teddy bear head on and they’re clapping--