Thank you. Excited to be here.
So I thought that would be a fun place to start, actually, your entrepreneurial story, because it's super interesting. First of all, you've been at this mission for a number of years now. And second, so many twists and turns and so many lessons to be learned. So let's start with that. So you grew up in Jordan. You studied computer science.
And that's when you started thinking about Replit, or REPL. What is REPL in Replit?
For example, a DOS or Unix command line is a form of a REPL. So it comes from Lisp, actually, in the 1950s at MIT, where you can create the simplest programming environment with one command, which is read-eval-print loop. So read reads the command from the command line, eval evaluates it like a Lisp string, print prints out the results, and then goes back to the start. So this is like the simplest IDE in the world, right? And so when I was building—so the way Replit was born—I was going to school in Jordan, studying computer science, and I didn't have a laptop.
So every time I would want to do some homework, I would have to reinstall the development environment. And it was so annoying, right? You have to download gigabytes of software and packages, and there's always something that goes wrong. And so I was like, I'm using everything in the browser at the time. Google was putting Docs and Gmail in the browser.
This is 2008 we're talking about?
Yeah, 2008, '09. Chrome came out, V8, the JavaScript engine. The web was becoming a real application platform. So I was like, why can't I code in the browser? And then I sort of Googled it, and I was surprised that no one had built it. So, okay, I'll build it. How hard could it be? And I actually got a prototype pretty quickly because you can eval JavaScript in the browser, right? So I put a text box, I put a button, you write a little bit of JavaScript, you run it, and it alerts the results.
And I gave it to my friends, and they were all playing with it and really excited about it. Started adding features like sharing and saving and things like that. And I was like, okay, I need to add more languages. You're studying computer science, you're probably going to be using a lot of different languages: Python, Java. And that's when I hit into problems, because the browser can only run JavaScript. And this became like a multi-year research effort, culminating in having a breakthrough where my friends and I were able to compile a bunch of languages into JavaScript.
We used a library from Mozilla. That library became Wasm, which runs sort of native programs in the browser. Figma is built on that. A bunch of really modern applications wouldn't be possible without that. But at the time, it was just a library and there wasn't anyone using it. And so we were like the first to kind of use it to run all these programs in the browser and put it up on GitHub, and it went viral on Hacker News and a bunch of other places.
And it was really surreal because, yeah, I didn't expect it to be this big. And people were talking about it in conferences. Brendan Eich, the CTO of Mozilla at the time and the inventor of JavaScript, tweeted about it. And that was like the highlight of my life at the time.
Yeah, it was a huge deal. Brendan.
And then one day, as always, I'm lurking on Hacker News, and I see this startup, Codecademy, maybe a couple months after I open-sourced all the infrastructure that we built. And I click on the site, and it was going viral, right? And they built this interactive way to learn how to program. Because learning how to program at the time, it's like textbook and all of that. But they built this thing where the course kind of talks to you and gives you these exercises and you have to code with it.
It was a very novel idea. And at the time, the hype was around MOOCs, massive open online courses.
And I had a feeling that they're using my stuff. I just liked the way the system worked. And then I tried to kind of look behind the scenes, and I validated it. So I put a comment on Hacker News. I was like, oh, you're using this library, my library. And then two days later, I get an email from the CTO, Ryan Bubinski, and he's like, yeah, I'd love to chat with you.
And I don't think they knew I was like a kid in Jordan. And so we started talking.
And had you graduated? At some point you were at Yahoo in Jordan, right?
Yeah. So at that time I had graduated. My time at the university was pretty tenuous because I didn't like sitting in class all that much initially. I also, and I'm sure we'll get more into that, was reading a lot of sci-fi. I was really into AI and really into how do you build a brain? And I was reading a lot about cognitive science and neuroscience. There wasn't a way to study that in Jordan, but that was a personal interest of mine.
And I felt like we're on the cusp of solving intelligence, and I felt like computers will be able to program themselves. So I was like, okay, if computers can program themselves, what can I do with computers? And I was like, okay, well, someone still needs to build these computers and run them. So I went into electrical engineering, computer engineering, as opposed to programming. And then two or three years in, I'm like, I don't think machines are going to be coding themselves anytime soon.
Yes. Well, I just switched back to computer science. But yeah, it took me six years, and then I graduated. I was hacking all the time.
And if I may ask, and I'm asking as a French guy who's been in the U.S. for decades at this point and still sounds the way I do, you sound very American. Like, how did that happen?
Well, we're the YouTube generation, right?
Yeah, I mean, YouTube came out, what, 2005?
I just started watching it then. And so I think—
So it's not like you went to American school in Jordan or—
No, I went to British schools.
Okay. But you don't sound British.
It's fascinating. So that was YouTube.
So Jordan was like a British colony, right? And so the influence was more British. And so we did IGCSE and O-levels and A-levels and things like that. But it was also lame to sound English. Although now it's cool, I think.
But I did, to be a little serious, I did work on the accent a little bit because, I don't know, I guess I just wanted to fit in. And I thought, I really want to be American, and I've always kind of wanted to be here and wanted to be in Silicon Valley. I watched—there's a movie, this very low-budget movie called Pirates of Silicon Valley, and it's about the story of Steve Jobs and Bill Gates. And it's a very overdramatized story, and half of it is wrong, but it really inspired me.
And I was like, oh, Silicon Valley is like a great place. You can fight and yell at each other and build computers and software.
What could be better? Yeah, exactly.
So we grew up with a lot of American culture, and it was very much an interest of mine to really be here.
So Codecademy was the way in?
Yes. But I was also very, very passionate about this because when I built this open-source version of Replit, it was about education. It was about me being able to learn to code and code on the go without needing an expensive computer. And so I was like, okay, if this helped me so much, I think it's going to help a lot of people in the world. And I had this theory that programming could be the thing that democratizes access to wealth and entrepreneurship.
And I think it is playing out that way.
And so I was really passionate about joining Codecademy. And at the time, you saw a ton of people come online in Africa and India, and then Android had just started going, and it felt like everyone's going to be able to get a computer or a phone. And I always wanted to make programming work on the phone, and I tried really hard to make Codecademy work on the phone. Now, Replit, we have a mobile app, actually.
Yeah. So Codecademy, actually, to this day, I still don't know: is this pronounced Code Academy? It was spelled Codecademy, but pronounced—
No, it's pronounced Code Academy too.
It's pronounced Code Academy. Okay.
Yeah, well, anyway, it worked out for Zach and Brian.
If you remember, at the time, it was the hot thing to do at a startup: misspell your .com.
And you mentioned Android, but that was your next stop. When you joined Facebook, you joined the Android team.
Yes, Internet.org, and I was very early to that. Do you remember that?
So the idea, which Elon ended up doing, was beaming internet from the sky, essentially. And again, this fits into this vision that I had of more people connecting to the internet. And I felt that was such an important thing. I had the option to join the Internet.org team or work on mobile. So when I got there, the way Facebook worked is, you go through boot camp for like three months, and then you do team selection. So I didn't know what I was going to work on, but I picked up Android tasks.
And did really well at them. And I picked really the hardest tasks that you shouldn't pick as a boot camper. At some point, I broke the Android app for like 10 million users, the beta users. And everyone was surprised that I was able to do that as someone in boot camp because I was taking a lot of risks to move fast and break things. I joined the Internet.org team, and because we were in New York, almost all the teams wouldn't take me.
They were like, you have to move to the Bay Area.
And I wanted to stay here. So I ended up on the Photos team for about six months. And that was the only team that would take me, essentially. And then on the nights and weekends, I was contributing to React, and I was interested in this team that was trying to make mobile programming more accessible because Java was this heavy, brutal thing.
Every time you change a line of code, you need to recompile the entire app. So this project called Catalyst at the time, which became React Native, and I was one of the first three or four people to work on it. And I was tasked by the founder of React and the founder of React Native, Jordan Walke, to build the JavaScript toolchain for React Native. So I started building it here initially on my own.
And they told me, all right, go out and build a team. So I was here in New York, interviewing who's who in the JavaScript community, and I met a lot of friends that I'm still in touch with today.
Which was a big thing because at the time there was, what was it called, Glitch and Joel Spolsky doing this big thing around JavaScript, right?