Changelog Interviews – Episode #341

Wasmer is taking WebAssembly beyond the browser

featuring Syrus Akbary

All Episodes

We’re talking with Syrus Akbary about WebAssembly and Wasmer — a standalone just in time WebAssembly runtime aiming to be fully compatible with Emscripten, Rust, and Go. We talked about taking WebAssembly beyond the browser, universal binaries, what’s an ABI?, running WebAssembly from any language, and what a world might look like with platform independent universal binaries powered by WebAssembly.

Featuring

Sponsors

DigitalOceanThe simplest cloud platform for developers and teams Whether you’re running one virtual machine or ten thousand, makes managing your infrastructure too easy. New accounts get $100 in credit to use in your first 60 days.

GoCD – GoCD is an on-premise open source continuous delivery server created by ThoughtWorks that lets you automate and streamline your build-test-release cycle for reliable, continuous delivery of your product.

O'Reilly Open Source Software Conference – OSCON has been ground zero for the open source community for 20 years. This year they’ve expanded to become a “software development conference” — because in 2019, software development IS open source. The program covers everything from open source, AI, infrastructure, blockchain, edge computing, architecture, and emerging languages. Use the code CHANGELOG20 to get 20% off Bronze, Silver, and Gold passes.

GitPrimeDownload GitPrime’s 20 Patterns book, a field guide to help engineering managers recognize achievement, spot bottlenecks, and debug development processes with data.

Notes & Links

📝 Edit Notes

Transcript

📝 Edit Transcript

Changelog

Play the audio to listen along while you enjoy the transcript. 🎧

So there was a tweet by Steve Klabnik that, Adam, I think you were a fan of, where he said that “2019 is going to be a huge year for WebAssembly, even if many people don’t know it yet, and may not see the effects until 2020.” We’re not joined by Steve, we’re joined by Syrus of Wasmer, and I just wanted to pitch that over to you and ask you if you agree with Steve, if you know what he’s talking about… Are you inside on this? What do you think about WebAssembly in 2019?

Completely, yeah. I completely agree with Steve. WebAssembly will be very big this year. We are just warming up. The main reason we believe it’s gonna be big is because there is a lot of agreement in the industry that WebAssembly is the path to go for executing things like universal binaries in a universal way; first across browsers, and then outside of browser environments. Basically, right now there are a lot of companies pushing towards that, and we are one of those.

Wasmer.io is what you’re up to. “It’s a standalone, just-in-time WebAssembly runtime, with an aim to be fully-compatible with Emscripten, Rust and Go.” Can you unpack that description and put it in layman’s terms for me, so I can understand it?

Completely. What we are trying to do is move WebAssembly to the server side. Up to basically one year ago, WebAssembly was mainly a way for executing performant code on the browser; however, we believe WebAssembly will also be big on the server side, and we are trying to do a similar thing that Node.js did, moving JavaScript to the server side, but with WebAssembly instead.

So first we are focusing on creating a runtime that will let developers use WebAssembly on the server side, and second we are adding integrations into other languages. Basically, you can call WebAssembly not just from JavaScript, but also from Python, or from Ruby, or from Rust, or from any other language. That’s basically what we are focused on.

I understand why you would want to run WebAssembly in the browser… I guess where I’m missing it, and where I’m gonna need your help - and I obviously am missing it, because lots of people are excited about this, I just don’t get it yet - is why would you want to run WebAssembly outside of the browser, server-side when you could just write… Like, the example you give is NGINX (let’s just take that) running via WebAssembly. But why can’t I just compile NGINX and run it? Why run WebAssembly in-between, so to speak?

[04:23] The main reason for using WebAssembly there is because it provides a way of running binaries universally. Right now, if you’re using NGINX, to run NGINX in your system you need to compile it specifically for your platform and architecture. That means if you’re in Linux, you need to compile it for your Linux distribution and the certain architecture that you are using; in Windows you need to compile it in a different way… And this is super-tedious.

So that means you need to distribute the source code and let the developer compile the source code itself to be able to use it. We believe it will be much nicer if we provide universal binaries that can be used across any platform or architecture, without actually any further change. So your same nginx.wasm could run in Linux, could run in Windows, in Macintosh, or eventually in your phone, without any change. We believe that’s gonna be really big.

So that’s kind of the old promise of “Write once, run anywhere”, only it actually delivers.

Yes. This concept is similar to what Java or the JVM was trying to achieve, with the main difference that right now any other language actually can target very easily to WebAssembly. So it provides a nice transition for projects that already exist, either because they are developed in C, or C++, or Rust, or any other language, and they can be compiled very easily to WebAssembly. That means you can transition or reuse your projects or target WebAssembly very easily.

What makes WebAssembly good for this, this universal binary idea?

What makes it great first is that we have a universal agreement, or agreement across all the industry. That means companies like Google, Apple, Mozilla - they’re all pushing towards a standard that everyone agreed on. This is big.

The second thing is it started from the need of executing performant code on the browser… Actually, this started from a prototype that was actually in JavaScript, asm.js. From that, actually it’s been shaped exactly to fit the needs of executing bytecode in a way that was very performant on the user side.

So in the browser there’s a specific surface area of functionality that needs to be available, and the server on an operating system level - there’s just way more things there, right? I just feel like there’s much more surface area to the APIs, and to the system calls, and all of the different things that need to be bridged, so to speak. So is this a huge undertaking, or is it easier than I’m thinking?

It’s actually not really that hard. For example, one of the projects that I started targeting – or actually created (kind of) WebAssembly, was Emscripten. How Emscripten started was we have a native binary that we wanted to execute on the browser, so basically it provided a bridge between LLVM IR and JavaScript. So it just translated LLVM bytecode into JavaScript bytecode.

With this first bridge, what Emscripten did is basically designing an interface that will help on executing this code on the browsers. And how they did it is by creating wrappers around the syscalls that actually don’t exist in the browser. For example, for opening a file, or actually opening a socket, or closing a socket - all that they did is creating a set of syscalls that work, and are just fake, but reply with the same structure that WebAssembly was suspecting. This set of syscalls is, on the Emscripten side, is something like 200, but there are other implementations that actually require to implement much less syscalls.

[08:24] So the truth of the fact here is at the end, with a set of more or less like 50 real syscalls, you can implement almost all the calls that any native library or native binary will need to do to talk with the operating system, and that will be enough. And in general, this set of syscalls will be, again, like opening a file, closing it, reading its contents, opening a socket… I don’t know, maybe getting a random number, and things like that.

So at the end of the day there’s only about 50 - is that what you’re saying? …that you have to implement for any particular platform.

Yeah. Basically, any other one is just a superset, or is just like a play between these 50. So with 50 you will be very much served.

Is that where Wasmer comes into play - it provides that interface to those system calls? Or how does Wasmer come into – I know you say it’s a runtime, but…

First, before starting Wasmer, curiously enough I just started ruby in all the WebAssembly runtimes, and the fastest ones were actually on the browser side, and there were other implementations, or trying to have like a WebAssembly virtual machine on the server side. I reviewed all of them, and funnily enough, the faster one was Firefox… So I started sneaking into how they were implemented the WebAssembly runtime, and basically what I did is I created a toy project using their WebAssembly engine, but trying to use it outside of JavaScript, so removing all the JavaScript part.

We started kind of just creating the runtime as a pet project, which was a very cool project… And then – can you repeat again what was the question? I think diverged a little bit.

Well, I was just trying to figure out where Wasmer fits into the picture with regard to the system calls.

Yeah, regarding the system calls, how Wasmer fits is we provide different integrations or interfaces. For example, Emscripten defines a set of syscalls on top of Libc, and we just kind of like – rather than creating these syscalls or emulating these syscalls in JavaScript, we do it natively, with native functions… But the truth of the fact is we can plug Emscripten or we can plug any other kind of ABI.

For example, today Mozilla released this new project, a WebAssembly common interface called WASI. They basically redefined the set of syscalls; rather than being 200 [unintelligible 00:11:00.00] I think it’s just like 40-50. And the cool fact of Wasmer is you can plug the ABI that you want to use for a certain binary.

There will be some WebAssembly binaries that are compiled using Emscripten, and therefore will use the Emscripten syscalls, and then there will be other WebAssembly modules that are compiled using this new WASI interface. Then you will need to use this WASI interface instead. The cool thing about Wasmer is you can plug any pre-existing ABIs that we already created, or you can plug your own ABI.

Can you explain what ABI means, and what that entails?

[11:41] ABI is Application Binary Interface, but what it really means - it’s an interface that you use for having your syscalls. So it just has a set of syscalls that is defined. There are something like 30 different ways of opening a file; so what is the open function, how many arguments received, and how many types output - that will be the definition of the open function. But then the ABI might have other syscalls. Basically, the ABI will mainly define what is this set of system call functions, what are their inputs and what are their outputs, and that’s it. That’s what an ABI is. A famous ABI, for example, is Libc; MingGW is another one, based on Libc… So there are multiple.

Okay, so an ABI is like an API, but it’s a binary interface, and that means that there’s specific contracts or agreements of how you’re going to access certain functions inside the binaries… Am I understanding it correctly?

Yes, you got it completely right.

Okay. So rewind a little bit, because you might have lost me on the WASI and on the ABI side, just because I wasn’t completely tracking on what ABIs are… Can you explain again how WASI - which is what Mozilla announced today; we’ll have a link to that in the show notes… WASI being a system interface to run WebAssembly outside of the web, is what we’re talking about here?

Basically, they’re trying to standardize this interface.

So is that an ABI that they’re standardizing, or are there multiple ABIs? I just don’t quite understand.

Before WASI, the main way for running C projects on the browser was Emscripten. With Emscripten you have a lot of sets of syscalls, but it was not really designed in the sense of trying to run outside of the browser, or basically on server-side environments. What WASI is doing is trying to redefine this ABI so it’s a much cleaner way of interacting. So WASI is just a cleaner way of having the Emscripten ABI, with much less system calls to implement.

Okay. This is very much bleeding edge, right? I mean, we’re talking about a thing that was just announced, literally today, as we record, March 27th. An ever-moving space, so…

…grab on tight and hold on for as long as you can, because things are moving fast.

Completely! Actually, before Emscripten, one of the things that we were researching on was CloudABI, which was a similar set of syscalls that WASI is doing, with the only difference that it will let you define permissions on top of that. So before opening for example a file, it will check if you have permission, or someone gave you permission for opening the file, and therefore it will let you execute the syscall, or it will fail if that’s not the case.

CloudABI, for example, was another potential ABI for WebAssembly, but regarding WASI, WASI actually fits much better with what WebAssembly needs… Because CloudABI was not designed with WebAssembly in mind.

So it seems like what this direction that was taken is just like being able to not limit certain types of applications to a certain platform. Almost akin, Jerod, to your stop-limiting your open source libraries potential, where you write something for React, or jQuery, or a certain language, and you’re using X, and you can’t use it in Y. It’s almost like we’re going that direction to get to this universal binary, run anywhere, whether it’s NGINX, SQLite, or whatever; being able to be on every platform, and not limiting what it can run on.

Completely. As you said, there are two sides of where WebAssembly can be really successful. One is for having universal binaries that can be run without any modification on any platform, and also in any architecture (that means like any chipset). That means running NGINX in your Linux system, or that same NGINX binary in your Macintosh system, or in Windows, or even eventually on your phone. And the same could go with SQLite, or other binaries.

This is one side of where WebAssembly will be very successful, which is universal binaries. The other one that I think will be also key will be for having universal libraries. What does this actually mean? It means having a library that can be used across any other language.

Imagine you have a face detection library. This face detection actually provided a binary image; it detects the squares of where the face is. So right now, if you search, you will find different implementations. One face detection library will be implemented in JavaScript, then in Python, then in Rust, then in C you will have another one… So depending on the system you are at, you will use one or other library. But what I think WebAssembly will unleash is this generation of universal libraries that can be used across any language.

Imagine you create your face detection library in Rust, and you compile it to WebAssembly, basically using the Rust toolchain. The cool thing is as soon as you have this face detection library .wasm, you can use this library in Python, or you can use this in JavaScript, or you can use it in Rust, without actually needing to reimplement it. I think that’s gonna be really powerful.

Having that power is really interesting. When you’re at that language - let’s say in JavaScript - trying to use this face detection library that’s written in Rust, compiled to WASM, what’s the dev experience like from a JavaScript developer’s perspective to interface with these libraries?

From the JavaScript perspective, the cool thing is JavaScript has actually a WebAssembly engine already embedded. So if you are using Node.js, you will have already a way for interacting with WebAssembly very easily. The only thing that you will need to do is first point to where this WebAssembly file is located, then create a WebAssembly module, and then from that, instantiate it.

The difference from a WebAssembly module and a WebAssembly instance is you can see one is the program, and the other is the process running that program. Basically, one module can have multiple instances running, or multiple processes running that code. The cool thing is JavaScript already has a way of using WebAssembly, but it’s actually the only language that right now is able to do it.

One of the things that we are doing here at Wasmer is trying to make it very easy to call WebAssembly or to use these WebAssembly modules outside of JavaScript. We’ve just integrated an extension into PHP, so you can for example take this face detection library .wasm and use it from your PHP code, just instantiating the WebAssembly module and then calling a function that exists on this WebAssembly module, for instance.

[20:07] I’m sitting over here, thinking about graphical interfaces…

…because I would love to have something like Slack, where they could write it once, run it on all these different platforms, but not have to ship Chromium and all the overhead of Slack. Maybe they could run the exact same binary in the browser and have a web app, although in the web I would like to have a regular web app. That being said, what about graphical interfaces? Are we pretty far away from that? Is there a lot more filling to do that, or are we pretty close?

Actually, we are not really that far. UIs in general are a little bit more complicated, because they require an interface to touch the graphic system… But in general, I would say we are not really that far.

One other thing that right now the industry is pushing towards that direction is with Electron. Electron embeds/uses Chromium under the hood, and then you can have your application running like in any system… But the cool thing - with WebAssembly you can do exactly the same, with the difference that rather than having a JavaScript runtime, you will have a native runtime, running at native performance. Then the RAM usage will be much lower, the performance will be much higher, and I think it’ll also be a super-attractive area for WebAssembly. I think we are really not that far… Probably like a few months off.

Well, that will be awesome. And you can do it in any language you want. There’s no limit. As long as your language has WebAssembly support…

Yes, as long as your language actually can compile to WebAssembly.

Right.

Cool thing right now - we have C, or C++, or Rust, that actually can target WebAssembly super-easily… But we have other interpreted languages - for example Python - that cannot compile directly to WebAssembly. So the way to go there is actually compiling the interpreter itself to WebAssembly, and then execute the interpreter in the machine.

Whaat…?

Yeah. [laughs]

That’s a nice hack. Is there first-party support coming? I’m thinking of Python, Ruby, Elixir… Is there a place where you say “Can I WebAssembly it yet?” A .com, and all the languages are there, with what kind of support they have, or… What’s the situation with these other languages?

There is one great repo created by one of our ex team members, Steve.. I think it’s Awesome WebAssembly Languages, or something like that… And you can see all the languages that can compile, or any language that can be executed or compiled to WebAssembly. So the list is actually pretty big.

One cool thing that we did in Wasmer was being able to run Lua, the Lua interpreter. We have a Lua-compile-to-WebAssembly, the Lua interpreter, and now you can just do “wasmer run lua.wasm”, and you will basically run the Lua interpreter. But almost any other language that you can think of, even Java, can compile to WebAssembly very easily.

Talking about Java, there is a very interesting project called TeaVM. This VM actually compiles Java bytecode to WebAssembly bytecode. Then you can have your universal WebAssembly bytecode, with your code that is actually written in Java, but targets WebAssembly. I think that’s a very interesting idea.

We have found Awesome WebAssembly Languages repo, link in the show notes… Lots of languages listed here, and then each one has a little emoji; it’s either an egg, or a baby chick, or a hatching out of the egg, or a full-on chicken. There’s no legend, so I’m not sure exactly what these indicate; I guess it’s just starting to support it, or it’s – I don’t know. There’s a lot of them, a lot going on there. That’s interesting.

Yeah. For example, right now we are actually working on having the PHP interpreter in WebAssembly. There is already a project that targets web, so we are trying to just complete the syscalls needed to actually get the PHP interpreter in WebAssembly. And we are super-close.

[24:08] Then you can start seeing how the ecosystem will grow into a place where you can install these universal libraries - PHP, Python, or whatever - in a way that is super-localized and doesn’t require you to compile the project itself for using it.

That’s a good point. What is the installation process currently? Will we ever see a package manager for this, or is there a package manager for this?

Cool! Good thing that you asked that. We are working on the first package manager for WebAssembly, and it will be released very soon. Hopefully, at the same time that this show is aired.

So this is like breaking-breaking.

Breaking news.

Yeah, it’s super-breaking. We are actually very excited, because for example now we have SQLite compiled to WebAssembly and uploaded to our WebAssembly package manager, and you can just do “wapm install sqlite”, and then “wapm run sqlite” and you will run SQLite locally, but at native speed. That means with all the things that SQLite has.

Let’s say you’re on Mac - will this replace someone using Homebrew to install SQLite?

Yeah, that will probably be it. And the cool thing is it will work in Linux, and then Windows as well. Exactly the same binaries will work in Windows, Linux, Mac, and could work also on your phone; we just need to build the integration, but that should be not really hard.

So what’s the UX for installing currently? Is it a cURL command, or something like that, to install?

It will be similar to what npm is doing.

But I mean now - what’s the way it is now, and how it will change, I guess.

Oh, okay. Right now, the way you have to do it is you will first need to compile whatever you have to WebAssembly, then you will need to upload this WebAssembly package or module somewhere, and then from that, when you wanna use it, you need to download it manually, and then for running it, you will need to use Wasmer, for example, to target this file that you downloaded, and try to execute it. This is how it was done until now. How it will be done in the future will be - you’ll just do “wapm install sqlite” and then “wapm run sqlite”, and that’s it.

I might be splitting hairs here, Jerod, and correct me if I’m wrong, but I’m kind of feeling like WebAssembly might not be the best long-term name. Thank god for the acronym, Wasm…

Oh, yeah… [laugh]

Because at some point we might just digress to Wasm and move on, because WebAssembly will eventually not make sense anymore.

Yes, completely. Actually, I completely agree with that. But WebAssembly actually started from the web, so that’s the reason behind the name… But yeah, I guess in the future we’ll just call it Wasm. WebAssembly is actually not really tied to the web anymore, but we can see a lot of applications on the server side.

So the potential to replace Electron-style applications, the potential to replace all package managers, AppGet, Homebrew, whatever your distribution or operating system-specific package managers, because it’s universal; there’s one SQLite, and it doesn’t matter what system you’re on, it’s gonna work.

That’s a pretty bright future, if you ask me… If it delivers, that’s a bright future.

Yes. Actually, I’m super-sure it will deliver. Funnily enough, before starting Wasmer, I was kind of like sneaking to this idea of what could be possible, and when I realized what are all the possibilities that we have with WebAssembly, I was like “I need to create something. That’s gonna be really, really big.” And the truth is we are not really that far from that future.

How long have you been working on this stuff, and how did you initially get that insight? What were you up to when you stumbled upon this When did you see the light, and why?

[28:04]First, I started developing on open source for a long time. Funnily enough, I released a graphical library for Python. That was about three years ago. While I was trying to create this framework, at some moment basically I dropped my job and I created a company solely focused on this graphical framework for Python. So at that moment I was trying to compete with companies that actually were much more funded than me, because I didn’t get any money from investors… So at that moment - the way to compete against them is “Okay, I’m gonna make this library available in more languages, but without making the effort of recreating the same framework in another language.”

I was taking a look at writing to WebAssembly, and I started basically researching more into WebAssembly and what I can do with it, and what can be done, and I then realized that WebAssembly can be the perfect bridge to compile my framework to WebAssembly, and then be used across any language. So that’s what was the first idea. Then from that I started realizing WebAssembly can also be big not just for universal libraries, but also for universal binaries.

What I eventually saw is “This is gonna be big for edge computing, or in general for localized computing.” Right now, for example, if you have a website that is running on Docker, for example, the way it will work is maybe you set up with Kubernetes, or something else, and then you will have an instance that is running all the time, all day long; even if you have three requests a day. So that means if you have a total of 90 requests in a month, you will need to have a server running fully for 30 days. The cool thing is with WebAssembly we have much more optimized times, so rather than having a startup time compared to Docker of 1 second, it’s 5 milliseconds, and rather than having a container focused on the operating system, that has an operating system and then your application, it’s just the application itself.

So what I saw is because of these startup times were super-low, and because the container sizes rather than being in the order of hundreds of megabytes, will be in the order of just a few megabytes, so it will enable the next generation of edge computing. That means we can start thinking of having servers that run only when you request them. So rather than having to pay for full 30 days of usage, even if you’ve got a server with 30 requests, you might just need to pay for 30 seconds. And we can afford to do that, because we can spin up and spin down WebAssembly instances in a very performant way. Actually, that’s our long-term business.

I was gonna ask what your commercial angle was, and it sounds like you’ve just described it right there.

Yeah. One of the things that we are seeing now is – I’m not sure if you saw how Google released this gaming platform, which was ultra-cool… It lets you run very cool games, that will be streamed to your laptop, or your phone, or whatever… So actually the game is executed somewhere else, but you will see the UI, the video, the streaming on your laptop itself, or whatever device you are using.

We can see this, for example, is a very compelling thing for WebAssembly… But not just in this case. You can start thinking on running things localized, of where you are at right now. And the cool thing is this binary can be shipped very easily to the remote place where it will be executed. I believe that’s also gonna be big, and we are seeing a lot of pushing from the industry towards that.

The way we had connected with you was through Joseph Jacks; go back to the show we did with him – Jerod, what’s the number of that show, by the way? Look it up for me real quick… He introduced us to you, I’m assuming, because of his interest in the funding of future commercial open source companies, and things like that that he has a general interest in. I’m curious what the back-story is into that.

How I got connected with Joseph - basically, when I started pitching the idea to investors, almost all investors were looking with candy eyes to the product… So then I knew I had something big between hands. So at that moment I started researching into what kind of investor I want to bring on board, and how they can help us. At that moment, I started looking into OSS Capital, which was the firm that Joseph was directing.

Basically, they are a VC firm that is completely focused on open source projects, because they believe in the long-term open source is gonna win. It’s gonna win regarding companies using it, regarding how right now a lot of open source projects are able to monetize or to have value from the industry… And the thesis is actually open source is gonna be big, we are gonna have a lot of interest in the industry, on monetizing or spending money on certain tooling. And as long as basically we create a powerful platform, then probably the company eventually will be able to capture a certain percentage of that value generated; maybe a 5%, or a 2%. But 2% of a market that is gigantic can be super, super-big.

Sure. Getting there is the hard part though, right? You’ve gotta put the work in - not just you, but others - and it is open source, so that means you tend to come in free, or funded, in the case of commercial open source. What’s your state now - are you working somewhere, do you freelance? How do you and your team make money?

Right now we are not making money. Right now, our goal for this stage is just trying to get adoption, trying to improve WebAssembly, trying to basically make the barrier for entry in people or developers to WebAssembly much lower; make them tools so they can use WebAssembly in a very easy way.

In the long-term, how we will make money will be more on the decentralized computing platform, or we can call it edge computing. That’s how we’ll make money. But that’s not something that we are focused on right now.

[36:01] We are a team of six engineers. The cool thing… Fun fact - before working as CEO of Wasmer, I was CTO at Try.com, and in there it was so hard to find good developers… Because we were in the fashion industry, and developers in general are not interested about fashion… But with Wasmer instead I got much more reach from people that were interested in working in this area. So the cool thing is it was very easy to get people that are very passionate into WebAssembly, and trying to attract them. It was actually not a very challenging thing… I guess because people can foresee what WebAssembly will be in the future, and they wanna be part of that.

So is it safe to say that this discussion we’ve been having – we’ve just discussed in the last section how we’re seeing a potentially bright future of universal binaries and libraries, and this beautiful world that could potentially take over the Electrons, the Homebrews, or the AppGets, whatever… That between now and then, you and your team are sacrificing and investing into a long-term future. I think that’s one interesting area of open source – obviously, open source is free, but you’ve gotta somehow sustain yourselves until that day comes, right?

Yeah, which can be tricky. But the cool thing is if we are aligned with the investors into how we are gonna approach this space, how we are gonna eventually monetize it - if we are aligned with them, then we should be in a good place.

There are certain industries, like Uber or Lyft, that takes longer to monetize, but once you do, you will be in a very good spot. So I guess it’s just a matter of trying to pitch the right idea and trying to get the right investors on board.

So has the idea been pitched then? Do you have investors on board? What’s the state?

We pitched to a few investors. In general, everyone is very interested. We’ve got some cautious investors which are not sure yet if WebAssembly is gonna take off, or how it’s gonna take off, and they wanted to stay a little bit more cautious about that. But in general, we are in a good place regarding investment, and we are more on the side of deciding who we wanna bring on board and what they are gonna bring - either if it’s networking, or knowledge, or what they are gonna bring. And based on that, we are choosing them.

By the way, that episode number that I could not get, and I gapped… Thanks, Jerod. Episode 320, “Venture capital meets commercial open source software, with Joseph Jacks.” Great conversation. We went through the growing landscape of commercial open source, in particular this spreadsheet that he created of 100 million dollar plus revenue companies, 13 years in the making; it seems to just now be getting some serious attention. We kind of asked the question of “Why open source now?” and it kind of makes sense, because hey, this last year we had so many billion-dollar acquisitions in the open source space; it makes sense why there’s so much more people coming.

I’m curious though, because when the herds form, people get slaughtered. Hopefully that didn’t happen here. You know what I’m saying…

[laughs] Wait, “When the herds form, people get slaughtered?”

Well, if you’re leading, you get ahead; if you’re following, then that’s when – in terms of blue ocean or red ocean, for example. Blue ocean means that the landscape is open, water to be had, whatever; when you’ve got a red ocean, that means there’s lots of people feeding off of what’s there, in terms of this metaphor that’s out there, around blue ocean and red ocean… You’ve got some blood in the water; once more and more people come into a blue ocean, it gets red.

Yes, completely. I think as a business, what we are trying to do is trying to get as much a stake of that as you can, so that when people are trying to come in, you will really have a very good position, so you can remain stronger. I guess that’s one of the attractions of WebAssembly - is this starting to take off? Is this still early? But we will start seeing more companies and more companies approaching this space; we’ll see how the ecosystem improves and matures… And from that, the companies that are there from the start probably will be in a very good place.

[40:11] One thing I’d like to revisit is you talking about this package manager that you’re excited to be releasing. You said there’s “wapm install” or whatever it is, and you download sqlite.wasm from a repository… Is this an attempt of becoming the npm for WebAssembly? Because I think npm would like to be the npm for WebAssembly.

Yes. I mean, npm is actually trying to be the package manager for WebAssembly… But the truth is npm is designed with JavaScript in mind. The way packages work in npm is very different from how we think it should work with WebAssembly. We are designing a package manager from the ground up, designed explicitly for WebAssembly. That means what kind of ABI you wanna use for your WebAssembly module, how they are going to interoperate… Because of that, we believe we cannot reuse a package manager that already exists, and we need to create something that is completely tailored to the WebAssembly needs.

Plus, we don’t need no JavaScript, Node.js, and basically we wanna make this package manager friendly for people that wanna use a package from Python, or wanna use a package from Rust, or from PHP, without the need for them to have to install Node.js on their servers.

So will this be a centralized service, or are you thinking decentralized? We were talking decentralized during the break, so we’re just curious what the plans are, if this will be a centralized repository.

The registry will be centralized, the main one… But the cool thing is you will be able to plug into any registry that you want. And another cool thing that we are investigating is actually to move packages to be stored in a decentralized manner, so that you actually don’t depend on any explicit registry. But news to come on that a little bit later, probably in a month or so.

Do we have an official name for this package manager?

Maybe a website, since it’s coming soon?

Yes, it’s gonna be wapm.io (WebAssembly Package Manager). And yeah [unintelligible 00:42:07.14] is also super-cool. I believe the community is gonna take it with a lot of attention, and I think it’s gonna be really great for developers that want to start using WebAssembly, or publishing WebAssembly modules from Rust, or from C, or whatever, and they wanna create these universal libraries that can be used across anywhere.

Dream a little bit for us. Paint us a picture. Take us a couple years in advance. Everything that you’re talking about works out great; WebAssembly continues to rise and shine. Edge devices, Fastly, all these people that are really into this edge computing stuff. What you’ve built is amazing. What does that future look like?

I believe in general what we will start seeing is more applications or more libraries will compile to WebAssembly, and will start using WebAssembly as the main way of running things, either locally or remotely.

I think in the future we’ll start seeing – maybe the next generation of a browser are like “We actually don’t depend on HTML or JavaScript”, and maybe the UI is a little bit different. Or maybe an operating system where your programs load from the cloud and execute securely in their own Windows, but at a native performance, in a native way. So I foresee we’ll start using WebAssembly much more for these use cases in the long-term, and we wanna be there to be the provider/platform that empowers that.

And what about the community getting involved? Is there any inroads for – I know you’ve got Spectrum.fm, or was it something else?

.chat, isn’t it?

[43:45] Yeah, .chat. Yes, we’ve got a Spectrum.chat where we are talking with the community. I think the URL is wasmer.spectrum.chat. If anyone wants to enter, that’s one way we communicate. The other thing that we’ll start doing is start being more [unintelligible 00:43:59.09] into the WebAssembly specification itself, to help shape it for the future. But in general, all these things – because we are also users, so for our own libraries. Basically, what we ship, we use it internally. And because of that, it helps us to shape it in a way that actually will feed a lot of different scenarios… And the way we approach this is we create a prototype, and from there we gather information from the community, to see if basically the designs that we are doing matches different scenarios that I think we should cover… And from that, it’s just a conversation, and trying to do something that will fit a lot of use cases in the long-term.

Do you wanna give any shout-outs to anybody that’s been on your team, that’s really done some amazing stuff? It sounds like you’ve got a pretty solid team going on there, maybe even some dream collaborations, other organizations really digging into WebAssembly that you wanna give a shout-out to, or say “Hey, reach out and talk to us!:

Regarding my team, I got very lucky. Everyone in my team is super-talented. They know they are much more expert on compilers, or memory utilization that I actually have ever been. I’m super-happy about everyone of them. I will name them, just because probably it will make them happy: Lachlan, Mackenzie, Ivan, Brandon, Steve (who is no longer with us, but he was also very key for us), Yang, Mark… And then a lot of other people that have been contributing on the outside.

In general, companies have been reaching out and using it. One of those is NEAR Protocol. That was one of the first companies [unintelligible 00:45:42.16] our runtime. Right now we have other edge computing platforms that are gonna use our runtime as well, which is awesome. Basically, for the listeners - if you know any use case where you think WebAssembly can be compelling for you, and you are not sure yet how to approach this space, feel free to send me an email at syrus@wasmer.io. I will be super-happy to see how we can use the power of WebAssembly to fit the needs that you have.

Very cool. Well, Syrus, thank you very much for your time today. Thanks for sharing what you’re doing. It’s super-cool to see what’s happening here. I don’t know, will I at some point bail on Homebrew…? That would be a shame, right Jerod? That’d be a sad future; but maybe a happy future, who knows…?

We’ll wait and see.

Yeah. Maybe we can start having Homebrew in Windows in the future itself. Or maybe on the phone. I think that will be something super-interesting. When I say Homebrew, I really mean Wapm (the WebAssembly Package Manager).

Gotcha. Well, thanks again for your time. It’s been an awesome conversation. Thank you so much.

Thank you. I really enjoyed our conversation as well.

Changelog

Our transcripts are open source on GitHub. Improvements are welcome. 💚

Player art
  0:00 / 0:00