WEBVTT

0:00:15.539 --> 0:00:22.120
<v A>Programming Throwdown Episode 128: WebAssembly with Kevin Hoffman. Take it away, Jason! Hey!

0:00:22.960 --> 0:00:39.974
<v B>Everybody, how's it going? We have a really killer episode here. I've heard the term WebAssembly a lot. I've done a little bit of studying on it, but we have an expert, Kevin Hoffman, the CTO of Cosmonic, on the show to really dive deep and

0:00:39.974 --> 0:00:48.099
<v A>explain kind of what WebAssembly is, how it's useful, why it exists, and what kind of things it can provide for you. So thanks so much for coming on the show, Kevin.

0:00:49.069 --> 0:00:50.757
<v C>No, thanks for having me.

0:00:51.516 --> 0:01:04.290
<v A>Appreciate it. Cool. So, how has Cosmonic been handling the pandemic? Has it changed the sort of work style? Like is Cosmonic remote already, or did you have to go remote? What was

0:01:05.016 --> 0:01:10.332
<v C>That? I think technically Cosmonic may have actually been formed after the pandemic started.

0:01:10.551 --> 0:01:11.850
<v A>Oh, nice. Okay.

0:01:12.104 --> 0:01:22.515
<v C>We would have been entirely remote regardless, so it really hasn't changed too much of our team dynamic. We just spend all day on Zoom and Google Meet. So what

0:01:23.005 --> 0:01:33.940
<v A>is it like to start a company in the middle of a pandemic? I mean, it's kind of hard to get that firm handshake, like with among the co-founders, and kick off everything really just has to be done over Zoom, right?

0:01:33.940 --> 0:01:47.237
<v C>Yeah. When we first got going, we had an offsite with, you know, the founding members, and so we got a little bit of in-person contact, although it was, you know, six feet apart. Well, there

0:01:47.895 --> 0:01:54.966
<v B>might be advantages to that. I mean, I think that if you're six feet apart, you know, you can't reach over and strangle that person when

0:01:54.966 --> 0:02:10.474
<v A>you know the contract doesn't come in and, and you know the code doesn't work, and you have—I think a startup from what I've heard from friends of mine who have started companies, it's extraordinarily—it's the ultimate test of your bonds with these folks. Yeah, yeah.

0:02:11.706 --> 0:02:18.220
<v C>Six feet, six feet apart gives other people an unfair advantage. You know, they have a head start.

0:02:18.220 --> 0:02:36.968
<v B>Yeah, right. Nice cool. Yeah. So Cosmonic is one of the companies that's—I'd be like I don't want to say sponsoring because it's a CNCF project, but it's sort of what would be the verb you'd use for how you're catering to WASM Cloud?

0:02:37.778 --> 0:02:41.102
<v A>Maybe fostering? Fostering. That's a good word. Fostering.

0:02:41.740 --> 0:02:42.284
<v C>WASM Cloud.

0:02:42.840 --> 0:02:52.915
<v B>Fostering WASM Cloud? So kind of let's rewind the clock a little bit and kind of walk us through, you know, what your career path was?

0:02:52.915 --> 0:03:01.420
<v A>You know what inspired you to say, 'Let's do this,' 'Let's start Cosmonic,' and let's make this a real thing?

0:03:02.871 --> 0:03:09.469
<v C>Sure. So I guess it started—it started with a lot of frustration, anger, shouting. Yeah.

0:03:10.971 --> 0:04:06.321
<v C>You know, I was—I can't even remember how many years now, but I've been doing, you know, building microservices and deploying them in large enterprises in one shape or another for many, many years. I worked for Pivotal, and when I worked for them, my role was to teach other companies that we consulted for how to put stuff in the cloud. And so that was even more, you know, microservices and splitting up monoliths. And I finally just sort of just had it with the amount of repetition and boilerplate and ceremony that was involved in that whole process. And I was just looking for a way to distill what I did down to just writing some business logic and then deploying it and then not having to worry about anything else. And so, a

0:04:08.093 --> 0:04:23.635
<v C>couple years ago, I was working for Capital One, and I was looking for, you know, something that would give me that kind of new developer experience where we just focus on the business logic. And you know, when you're building

0:04:25.740 --> 0:04:42.220
<v C>enterprise apps like—normally you spend like 90% of your time on your non-functional requirements: logging, tracing, networking, clients, servers, routing, metrics, all that stuff. You know, access to databases.

0:04:43.969 --> 0:04:59.005
<v C>All of that stuff gets bolted on to the business logic. And so I was looking for a way to sort of unbolt that. So that's where—that's when I stumbled on WebAssembly, way back in the day when it was when nobody had heard of.

0:04:59.933 --> 0:05:21.972
<v B>It cool. So you mentioned business logic. So when people hear—I mean, when people hear web, you know they'll think of, you know, the front end and they'll think of, you know, the browser and rendering the HTML and laying it out. And maybe, you know, video. And so they don't generally think of business logic. They think, 'Oh, that's going to sit, you know, on the server somewhere.'

0:05:21.972 --> 0:05:28.992
<v A>So yeah, what is the role of WebAssembly with respect to sort of business logic and what's the tie-in?

0:05:29.279 --> 0:07:08.841
<v C>There. Yeah, so what's interesting about WebAssembly is you know it's called WebAssembly, and most people get introduced to it through the browser. You know someone has made some flashy demo that does some impressive stuff inside a browser, and WebAssembly gets the credit for it. And so we just naturally assume that WebAssembly is a browser thing. You know there's all sorts of forum discussions about whether WebAssembly is going to replace JavaScript on the front end and things like that. And I think, and you know obviously, for the last couple of years, I've been banking on the idea that WebAssembly is more than that. At its core, it's portable compute. And so if you think about it, like if you're writing code and that code has a side effect, then you know it reaches out of the sandbox in order to make that side effect happen. And with WebAssembly, it's physically impossible to escape that sandbox. So it's it's portable but it has such a limited instruction set that any side effects from the code that you have in your WebAssembly module, those need to come from the host runtime. So if your side effect is manipulating the DOM, then you know you might have a WebAssembly module that can interact with the browser. In my case, all of my side effects are interacting with you know distributed stuff from the edge to the cloud, but the

0:07:10.512 --> 0:07:30.863
<v C>the core thing to keep in mind about WebAssembly is that it's fast, it's efficient, it's small, it's CPU and OS agnostic, and it has a secure memory sandbox, and it can only do the things that its host gives it permission to do.

0:07:31.656 --> 0:07:43.941
<v B>Oh, interesting. So that reminds me a little bit. Touches a lot of different things. I mean, one is you know definitely we've all written, you know maybe in high school or in college, we've all written that's the first time I implemented a linked list.

0:07:44.093 --> 0:09:17.024
<v A>didn't know what I was doing. And all of a sudden, you know, the characters on the console were you know some like weird, you know acrylic characters, like I had somehow like broken the terminal or just I'm writing to random memory and getting really weird errors. And so, and so that's that's because you know in something like really low level like C, you just have total authority to do anything in that process, access anything. And so you can easily kind of shoot yourself in the foot. And so unless you're doing things like like what Patrick does where it's it's really low level and and you need really speed and performance, but for most of us, like we you know have something where you know I couldn't I couldn't really break everything, and that way you can kind of work in the inside of one of these sort of sandboxes. And so so one way of thinking about a sandbox is is you know as you move to something like let's say Python for example, even Java or something where you're not manipulating the memory directly, then you can't just go to or at least like easily go to like a specific point in the memory of the Python VM. Um and so you lose that that that sort of real flexibility, but in exchange, like you have something that you can kind of rely on, especially when you're working in a big group. And so you're saying then you can think of Docker or like a virtual env or these you know Vagrants is like these kind of things too where they're creating these very isolated containers and in that container you get sort of reproducibility and a lot of things because you've limited the number of side effects. And so, and I and I think about

0:09:17.024 --> 0:09:39.974
<v B>sort of like Android where you ask for permissions, and so you can't for example accidentally blow away someone's contact list if you're writing an app that doesn't have the contact permission. And so is that when you when you talk about the the sandbox impressions is that kind of what you're talking about?

0:09:39.974 --> 0:09:44.614
<v A>it. You have access to the microphone that you can't accidentally turn on.

0:09:45.660 --> 0:10:16.896
<v C>microphone. Yeah. So all of the things that you said about sandboxing apply to WebAssembly in some form. So there's there's some low-level stuff and I don't know if you're if you're all that interested in it, but like some of the security stuff that comes from WebAssembly prevents things like the most common causes of CVEs. So you can't do buffer overrun failures. You can't sorry, what's a CVE? A vulnerability? A security

0:10:16.913 --> 0:10:17.892
<v B>alert. Ah, okay.

0:10:18.145 --> 0:11:51.640
<v C>got it. So a common way for people to attack processes is to trick it into reading past some piece of its own memory so that it will start executing instructions that you've placed in there so that you can then you know use it to go and borrow its privileges or pretend to be that process or you know exfiltrate data from it. With WebAssembly, it's physically impossible to do that. There is no way to give a WebAssembly piece of code an arbitrary instruction to run. So if it wasn't compiled into the module when the module was built, it'll never run. It also has when it accesses memory, it never accesses the host's memory; it only accesses what amounts to a big long giant array of bytes, and it's given that array of bytes as a playground, and it can you know the code inside can use it for whatever heap operations it wants, but that's it. The WebAssembly module can't you know reach out through the host and see what the host is doing or access other modules that are running. You know even things like printing text to the console—that's not physically possible like in WebAssembly if you build it in what's called standalone or freestanding mode, you don't even have an instruction to print to the console.

0:11:53.168 --> 0:12:09.280
<v C>oh interesting you have to agree on some protocol with the hosts in order to do your io now there's a sort of a second level standard for web assembly called wazzy the which is the web assembly system

0:12:11.545 --> 0:12:33.752
<v C>interface that has almost like a POSIX-like contract between the host and WebAssembly where you get some low-level Unix-like functionality which includes things like being able to write to the console. But even then the host gets final say. If the host doesn't want the module to write to a particular file descriptor, it's not going to happen. Got it.

0:12:33.870 --> 0:12:44.620
<v B>It, and so, yeah, can you tie in WebAssembly? So you're talking about going to different companies that had sort of these legacy, you?

0:12:44.620 --> 0:13:03.030
<v A>Know. I spin up, you know, eight machines that have a zillion cores, and these eight machines need to run everything, and and so you're going from that to more of like a cloud, you know, microservices, auto-scaling, all these things, and so you're kind of reinventing the wheel over and over again, right?

0:13:03.030 --> 0:13:06.017
<v B>So, how does WebAssembly tie into?

0:13:06.304 --> 0:13:52.390
<v C>That. Yeah. So there's a—there's almost like this discovery path that people have when they first start tinkering with WebAssembly. You look at it when you first start playing with it, and your first example is, you know, how do I add two numbers in WebAssembly and return the value? And that's super easy to do. It's a pure function. There's no side effects. Everything works fine. But then you try and figure out how to do more robust things, like how do you pass structured data into a WebAssembly module and get structured data out? There's no standard for that, so you have to pick one. More—like in the case of the WASM Cloud open-source project, we made one, um, and so...

0:13:54.600 --> 0:14:26.798
<v C>Then you have the ability to work on more complex data structures. And then from there, the next question your people ask is, well, since the WebAssembly module can't—doesn't have instructions for things like writing to the network? Then again, WASI is sort of an exception there, but it doesn't have I/O and it doesn't have access to web servers or databases or whatever. How do you connect this module to the capabilities that it needs?

0:14:28.536 --> 0:14:58.844
<v C>There are a number of open-source projects that sort of each take a different opinion on how you empower these WebAssembly modules. So Cloudflare lets you write WebAssembly modules, but the only so-called power that those—that modules have is the ability to interact with the Cloudflare Edge, and that's it. With a project like WASM Cloud,

0:15:00.717 --> 0:15:17.676
<v C>we use cryptographic signatures to inject claims right into the module that describe what the module is allowed to do. So is the module allowed to access an HGDP server? Is it allowed to access a SQL database? Can it make web requests?

0:15:19.178 --> 0:15:50.582
<v C>So those WASM Cloud is responsible for connecting these WebAssembly modules securely to these external capabilities. But I think the underlying point there is that anything that you see a WebAssembly module doing that is over and above pure calculation—so just running straight-up instructions—is either smoke and mirrors or is work done almost entirely by the host. Got it? So you...

0:15:51.477 --> 0:15:53.974
<v B>Know. You know my background as opposed to Patrick?

0:15:54.440 --> 0:16:22.274
<v A>My background is mostly writing kind of Python and machine learning things. And so for my mental model of assembly, is it's the thing that my compiler does that lets my program run? So when we talk about WebAssembly, is that the right mental model? Is do you write code in something else and then it gets compiled to WebAssembly? Is it like an IDL like LLVM or one of these IDLs, or what actually is?

0:16:22.493 --> 0:18:10.358
<v C>WebAssembly. So the WebAssembly is a bytecode format. So you know the Java Virtual Machine is also a bytecode format, and so WebAssembly is a virtual machine, and the instructions for that virtual machine are bytecodes inside your WebAssembly module. And you're right in that the analogy to assembling sort of makes sense because the instructions that are in that module are fairly low level. Nobody wants to write that stuff by hand. You can, and it's probably a useful learning exercise to at least try it once. But once you've experienced that—that's when you know the college professor says, 'Well, now that you've done it the hard way, here's the real easy way to do it.' And the easy way to do it is to take a high-level language like Rust and compile your Rust code into WebAssembly. There are other languages that support doing that. So you can—you can do it with TinyGo, you can do it with Zig, you can do it with C++, plus plus. There are other languages that are trying to get there, like Python Full Go, that has some issues with WebAssembly, but by and large Rust seems to be where most of the community support is for taking whatever code you've written using a ton of libraries and then compiling it into WebAssembly. Right now Rust has the best experience on that, but everybody else is sort of on their—on their.

0:18:11.573 --> 0:18:24.972
<v B>Way to it? Got it. So this is so this is like a separate compiler that you would run and instead of I'm assuming that like the traditional, you know, Rust compiler actually?

0:18:24.972 --> 0:18:52.664
<v A>executable and whatever OS it's running on. And so you're saying you can take potentially at least some of the same code—I imagine you had something that was that was that didn't depend on any IO or anything, as you said, the add function or something? You could take that same add function and compile it with the WebAssembly Rust compiler. And you—and what would you get? You would get a binary that can run on the WebAssembly VM, is that correct? Yep. So,

0:18:53.339 --> 0:20:15.351
<v C>In Rust terms, what you would end up doing is choosing WebAssembly as your target. So with Rust, you can target certain platforms or cert—or you know certain other environments. And so Rust has a target called wasm32. Use that target and you get a .wasm file as your output instead of an executable. If you want to target WASI, which is where you get operating system like access, then you just use Rust to target the WASI target. Different compilers are different in terms of how you can use them in order to get your WebAssembly code, but what you should get from compiling to WebAssembly is a binary that can be executed by any host on any operating system under any CPU architecture and without modification. And so one of the big promises there is that you get these really small modules that you can just pick up and move wherever you want to move them to. And you know, one of—I think the creator of Docker said that if WebAssembly had been around when they were building Docker, they would have just used WebAssembly.

0:20:16.904 --> 0:20:31.973
<v B>Oh, interesting. So how is WebAssembly then different from Python? Right. So Python has a VM and you can compile down to these pyc files, and the pyc files can run on—should be. Yeah, it can definitely run on.

0:20:31.973 --> 0:20:37.862
<v A>any Python VM. So you could just build it on a Windows machine; it should run on a Linux machine, and so,

0:20:38.031 --> 0:20:40.697
<v B>it sounds similar. What are the what are the differences there?

0:20:42.081 --> 0:20:51.902
<v C>So what's interesting there is kind of a dichotomy where you have power that you get from limitations.

0:20:53.860 --> 0:21:10.127
<v C>So the WebAssembly virtual machine format has no instructions in it that—so it has no native instructions that are CPU specific or OS specific or even make assumptions about the host runtime. So,

0:21:12.051 --> 0:21:32.774
<v C>when you compile Java down to bytecode, you still have bytecode instructions that tell Java to access your operating system, that tell it to do things that might need to be translated from, you know, Windows to Linux. And so the VM needs to know how to do those translations, right? Like,

0:21:33.195 --> 0:21:53.682
<v A>you create a JFrame for example, and so that will have to do something very different on Windows because actually you'll actually draw a frame on your screen. And so that JFrame—you know, whatever that bytecode that new JFrame call turns into, that bytecode now needs to know how to do that on every OS. So the different VMs have to know how to do that. Yeah.

0:21:54.070 --> 0:22:42.299
<v C>And so what you end up with with WebAssembly is you have this pure compute, but then if your code needs to access some host function, there are native instructions in the WebAssembly instruction set for sort of asking the host for help to do—to invoke functions on the host. But like I said, it's still entirely up to the host whether or not it's going to allow you to invoke that, and the host chooses how it invokes it as well. So what you're starting to see with WebAssembly and these compilers is some of them are building in this kind of tight coupling between WebAssembly module and the host. So with Rust, there's this thing called bindgen that,

0:22:44.239 --> 0:23:11.965
<v C>allows you to compile things that would normally violate the WebAssembly instruction set—things that wouldn't normally exist. You can compile them in there because it's baking in assumptions about the list of functions that are exposed by the host. So when you run Rust bindgen for your WebAssembly module, it then puts a bunch of things in that module that assume that the host is a JavaScript runtime.

0:23:13.990 --> 0:23:44.955
<v C>So if you are fine targeting JavaScript as a runtime—like if your goal to use WebAssembly is to just build browser stuff—then things like bindgen can be a huge time saver. If your goal is to run compute in the cloud on servers, on edge devices, on, you know, edge networks, then you can make fewer assumptions about your host and so you need to get to bake less and less of that in there.

0:23:46.069 --> 0:23:48.972
<v B>Yeah, that makes sense. I think the WebAssembly thing that

0:23:48.972 --> 0:23:58.034
<v A>That and tell me you know if this makes sense, but it sounds like it's just much more productive and much more efficient, like when one of

0:23:58.034 --> 0:24:14.900
<v B>the challenges that I had when writing Lambda functions on AWS and Python is you have to package up the Python, and if you're using something like Docker, you have to just constantly be sending Docker images over, and you have to worry about layers, and oh, you know, I put

0:24:14.900 --> 0:24:20.020
<v A>my code in the first layer, and so now it's rebuilding the entire image. I need to put in the

0:24:20.039 --> 0:24:29.978
<v B>other layer, and so a lot of these things just are very complex. And thinking about Java, you know, Java had Applets back in the day, and that was also just a total nightmare. You

0:24:29.978 --> 0:24:54.025
<v A>know, like you would wouldn't really know what functions you could call and what functions you couldn't. You know, I try to open a TCP connection, and then it's like, oh no, the—you know, it would throw a Java Runtime Exception. And in hindsight, okay, it's obvious you can't make TCP connections from the browser, but when you're just getting started, you know, there no one's really there's no guidance, nothing nothing's really telling

0:24:54.260 --> 0:25:04.977
<v B>you what you can and can't do in all these different environments. And so it became really painful, and then getting people to install the thing so they can run the Applet—I mean, all of it was just super painful.

0:25:04.977 --> 0:25:17.987
<v A>And it sounds like you know WebAssembly is building on top of a lot of these things that we've had, but just making it more secure and making it just quicker, faster, less painful. Yeah, I

0:25:19.118 --> 0:25:27.944
<v C>mean another way to look at WebAssembly is that it's just a secure portable way to run untrusted code, and

0:25:29.580 --> 0:26:13.034
<v C>so that could apply to anything from building a plugin framework to running pluggable modules in a browser to using it for cloud compute. It's interesting that the fact that its instruction set is so small and it does so little on its own—that is actually what makes it work in situations where things like Flash and Silverlight, and all those other predecessors to it, where those things failed. And I think a lot of the reason why those things fail is they run times spread their tentacles out too far and tried to do too much, and so it tightly coupled them to too many things.

0:26:13.725 --> 0:26:40.979
<v B>Yeah, that makes sense. The WebAssembly—so you know, thinking back about the Java Applet thing, it was a huge pain to get people to install. I forgot what it was called. Maybe it was just Applets, but whatever it was that they could run the Applet, right? Basically install the Java VM browser extension thing, right? And so WebAssembly is that is that built in or is that because I've never seen anything ask me to install WebAssembly? It's just built in. Yeah, it's

0:26:41.147 --> 0:27:00.604
<v C>built in you don't actually have to install web assembly because uh at least today uh all of the major browsers have web web assembly support built in and they all support the javascript api for uh instantiating and executing web assembly modules got

0:27:02.140 --> 0:27:15.977
<v B>It, and so I have used something for running code in the browser called MScripten, and what I found is it's really, really hard to debug. You know, basically if your code doesn't work, good luck. You know.

0:27:15.977 --> 0:27:49.170
<v A>And even the interop with, you know, the browser JavaScript is also, you know, really difficult to get right. I know some folks who work at Zynga, who this is their whole life or at least it used to be, and it's extremely difficult stuff. So does what WebAssembly make that a lot easier? I mean, if I have a C++ uh, you know, huge like library of business logic and I want to move that onto the browser and then I want to interact with that business logic from JavaScript code, what's that developer experience like? So I

0:27:49.609 --> 0:28:06.660
<v C>Guess it depends on which frameworks you're using and what toolset you're using. So if you're just using just a straight compiler and you're not doing anything fancy or putting any shims or layers on top of that WebAssembly module,

0:28:08.796 --> 0:30:06.685
<v C>then what you're going to get is, you know, pure compute. So, you know, you'll be able to do math and run calculations and things like that, but it won't be able to do anything else. So when you talk about connecting a WebAssembly module to the stuff that it needs to in order to do its work, that's when you need to have different hosts. So the browser is one potential host. There are hosts that run inside AWS Lambda. There are hosts that run, you know, like I said on Cloudflare, and then you also have frameworks, open-source frameworks like WASM Cloud where the developer experience there is you encode your business logic and you interact with your non-functional requirements through abstract contracts, and then the host runtime then takes care of scheduling and running your WebAssembly module and scheduling and running the things that satisfy your non-functional requirements. But because of the the abstraction and the pluggability of WebAssembly, you can do things like hot swap your business logic without losing messages. You can do things like hot swap your database client without losing messages. So you can at runtime literally switch from like Redis to Cassandra without your actual business logic being aware of that change. You can move your compute closer to the source of the data that you're computing against, which, you know, does, you know, that enables models like being able to do sensor aggregation inside a car without having to ship data off of the vehicle, things like machine learning models where you want the compute to run closer to the stream.

0:30:07.056 --> 0:30:27.306
<v C>of data. So all of those types of scenarios are just made easier when your business logic is this tiny little thing that can run anywhere. You know, it enables a ton of extra scenarios that were just not really all not really possible or practical without technology like WebAssembly. Yeah, that

0:30:27.812 --> 0:31:23.972
<v B>makes sense. So so let's let's try and like dive into an example here. So let's say I don't know what you'd call it, like I guess a service I have. I have something running in WebAssembly, and, you know, I want to send, you know, JSON, you know, objects to that to talk to it, like an RPC type thing. So I want to send JSON objects to it. It's, you know, it'll do some machine learning or something like that, and it'll come back with the JSON response. And so if I want to do that, you know, let's say we want to do that on the browser and on the desktop, you know what does that look like? I mean, um I guess you said something about contracts. Is there some sort of contract you define that says this is almost like, I mean, I'm thinking about Swagger here, like OpenAPI. It says like this is the JSON I expect, and then this is a JSON you're going to get back? And is it something like?

0:31:25.137 --> 0:33:19.220
<v C>that. So again, it's it's important to keep in mind where WebAssembly stops and then the layers that other people have built on top of it begin. So you can't do what you just described with straight-up WebAssembly because, you know, you can't send a WebAssembly module arbitrary blobs of data, let alone JSON that it can interpret and send back to you. So like I said, there's that path where, you know, people start at the core of what WebAssembly can do and then they start figuring out the things that they need to add to WebAssembly in order to do things that they're trying to do. So the first thing you need to do is figure out how to get complex data in and out of a WebAssembly module. There are some standards that aren't really, they're not fully baked into all the engines yet, that will help with that. So today you basically have to either come up with your own or use a framework that lets you do that. You know, Microsoft had they built an open-source tool called Waggy which lets you build WebAssembly modules that run as a CGI interface. So you can build little tiny web servers with them, but like I said, the things once you get past them, that isolated sandbox of WebAssembly, everything you're doing beyond that uses frameworks and runtimes, and so you just sort of have to pick which Lego blocks you want to use in order to build what you want. So the scenario you described where you know you've got some business logic that you built and you want it to run on a desktop and you want it to run in a cloud and you want to be able to send it some JSON and get some JSON back, that's exactly what frameworks like WASM Cloud do.

0:33:20.419 --> 0:33:25.379
<v C>and, you know, there are others out there as well that'll enable that scenario in one way or

0:33:26.890 --> 0:33:37.977
<v B>another. Got it. So to contrast this with Python. So with Python, you have an interop library that's built into the and this is stretching really stretching the

0:33:37.977 --> 0:34:04.032
<v A>bounds of what I know, but built into like the VM/language of it. And so if I for example want to, you know, call a Python module from C++, then I could actually use the Python C++ you know the binding to go in and call Python. So all of it is sort of built in. You're saying for WebAssembly it's like no? You need a module?

0:34:04.032 --> 0:34:20.974
<v B>that would sort of define, you know, maybe that module has C++ headers and and then also has something on the on the. Actually, yeah. So I have to think about that. So the module would somehow have to so your was your WebAssembly program could have been anything. It could have

0:34:20.974 --> 0:34:33.300
<v A>been Java or Python or C++ or whatever, but it needs a way to talk to that module which then has an interface in C++. Did I get that right?

0:34:34.659 --> 0:34:54.353
<v C>Yeah, so there's a number of things going on there. And you know, I didn't mention it earlier, but like when you build a WebAssembly function, the only parameters that it can receive or return are numbers. There's no other data type inside WebAssembly other than

0:34:55.872 --> 0:35:06.621
<v C>numbers. And so, like I said, there are limitations in there that need to be overcome somehow. There's standards like Interface Types which are going

0:35:08.444 --> 0:36:30.180
<v C>to help translate the data that you are working on in a way that's native to you. So if you're in your C++ code or if you're in your Rust code or whatever and then you want to call a function that's been built in a WebAssembly module, there'll be a translation layer there that will sort of get that job done. If you want to do more than that, WebAssembly has these, you know what are called imports and exports, and that's where you get that sort of interop layer. So in Python and in other languages, you have this thing called FFI, or the Foreign Function Interface, and that is a standard that languages use in order to talk to one another from one another. And something similar has to happen with WebAssembly. So you need an import and an export in order to have that communication in and out of the module. But again, those imports and exports can only deal with numbers. So you need a layer on top of that that translates your high-level data—your arrays, your structs, and you know blobs and things like that—into just numbers.

0:36:35.380 --> 0:37:18.980
<v A>Today's sponsor is Rollbar. Rollbar is the leading platform that enables developers to proactively discover and resolve issues in their code, allowing them to work on continuous code improvement throughout the software development life cycle. Rollbar has plans for all situations from free to large enterprise. With Rollbar, developers deploy better software faster and can quickly recover from critical errors as they happen. We have a special URL at https://try.rollbar.com/pt-for-programming. There you can find two free ebooks: How Debugging is Changing and How Dev Experience Matters, as well as sign up for a free trial of Rollbar.

0:37:24.100 --> 0:37:41.972
<v B>Got it. So you're building a program in Rust and you target WebAssembly, and your Rust program provides some kind of interface, and as you said FFI, or maybe it's running a web service or something like that. And so I guess as part of compiling

0:37:41.972 --> 0:37:50.072
<v A>it to WebAssembly, you need to provide—I think modules, right? You have to provide modules that can fill in some of those gaps. So

0:37:51.085 --> 0:39:45.683
<v C>when you compile your program, when you compile your WebAssembly module in Rust, you're compiling, you know, some subset of Rust that that can be converted into WebAssembly bytecode without invoking functions that don't exist. So you can't just take Rust and compile a web server and then think it's going to work in WebAssembly. You can get closer if you use WASI, which is the, you know, the system interface on top of regular WebAssembly. And you know that's also kind of smoke and mirrors because WASI is really just a set of imports that a host needs to provide to give a module access to low-level operating system type stuff. So even when you're just compiling the simplest of things, some of that stuff just isn't going to work out of the box. And so, you know, the imports and the exports—those are all runtime. They are not compiled into a WebAssembly module. So, you know, the WebAssembly module expects its host to provide all of the all of its dependencies at runtime through imports. And how the hosts and the guest module communicate with each other is entirely up to the host and the guest module. And so there's this gap there where we don't really have any high-level standards for how hosts communicate with guest modules. So people are building them. You've got WASI, which is your system-level interface. You have interfaces that frameworks like WASM Cloud build. So there's an interface for a web server, there's an interface for a database client, there's an interface for Telnet, even there's an interface for a message broker.

0:39:47.590 --> 0:40:02.625
<v C>But that agreed-upon contract between the host and the guest—that's something that you know both sides of that half need to agree on. So you can use compiler tricks and, you know, macros and code generators like Bindgen to take

0:40:04.178 --> 0:41:07.712
<v C>care of generating code on both sides of that line so that they build that contract for you and you don't really have to know it's there. Like I said, if you're building—if you're using Rust to build code that you know is only going to run in a browser, there's tons of stuff that you can do to make your life easier to pretend that WebAssembly isn't as low-level as it is. You know, you can make it look like you can allocate a JavaScript object that's actually an object inside your WebAssembly module, but that's all just generated code and shims and wrappers doing that for you. When people start looking at WebAssembly, the first thing they see is all this JavaScript stuff, and so they just assume that WebAssembly is responsible for all of this power when what's really driving some of the really impressive scenarios is the clever wrappers and shims and layers that people are putting on top of the WebAssembly modules in order for them to do these powerful things. Got it?

0:41:08.303 --> 0:41:21.027
<v A>Got it. So I think—I mean, I remember this might be a while ago, but someone used WebAssembly to get, I think it was Doom or Quake or one of these games running in the browser. And so if we dive into that, you

0:41:21.600 --> 0:41:28.819
<v B>know, if you're making let's say Doom, you know you have logic—you say when I walk forward, you know my character X coordinate Y

0:41:28.819 --> 0:41:38.037
<v A>coordinate changes like this. And here's, you know, the how often, you know, like I'm going to update my game tick and my imp throws a fireball, and all these things.

0:41:38.037 --> 0:42:08.969
<v B>um and all these functions if you if you drill down if you were to sort of really drill down or even you could do this in any program you know out there you're writing right now you know if you call like you know list dot sort or something like that in let's say c plus plus your act that function is also going to be written in c plus plus right and that function is going to be made of other c plus plus but eventually you get down to the point where you're either doing something really fundamental like arithmetic um or you're making you're making calls that um that that

0:42:08.969 --> 0:42:51.038
<v A>are that are in in sort of assembly a really really low level and so some of these calls like um um like open a network connection you know at some point you're not in c plus plus light anymore you're going and like telling the kernel to uh to give me a network connection and so that is that is that sort of import you're like you're importing that function into the c plus plus language so you're saying you you know between this this negotiate with with guests and hosts you say well you know this host and and i have agreed that you have the you know open tcp connection uh you know function that was super low level and so when you go to compile your code you know you

0:42:51.038 --> 0:42:57.060
<v B>either have that or you don't and so do you know that at compile time or or you know if you compile on your desktop

0:42:57.060 --> 0:43:01.620
<v A>and run on the browser could could you be in a situation where the function actually doesn't exist

0:43:02.665 --> 0:43:37.495
<v C>anymore yeah so uh what you're describing is part of it is uh you know what in compiler terms is called linking so when you when you compile all the way down to sort of the lowest level primitives at some point one of those primitives is going to need to access some function that isn't inside your code that is either you know it's like inside a kernel or it's inside a host or it's it's somewhere that your code can't find it so it needs to cross that boundary somehow and

0:43:40.077 --> 0:44:25.319
<v C>a linker will embed the desk the target of your function call into the thing that you're building so you get like an executable or something like that what happens with web assembly is when you're compiling these things sometimes the compilers are clever enough to replace the call that goes across a traditional link boundary with something like executing a web assembly import function but what happens is because it's replaced those functions instead of being able to link the real implementation of it at compile time you now have the reliance on the host to have that function for you at runtime there are things

0:44:28.500 --> 0:44:42.025
<v C>you can do where you can you know you can read the web assembly module to get a list of the functions that it imports and see if you're ready to provide them all so you can you know kind of pre-validate that you can do where you can do that but

0:44:43.780 --> 0:46:07.193
<v C>like with the doom example you know you'll you'll compile this core nugget into a web assembly module and then i haven't seen the code for this but one way to do it would be you might have the game loop running inside javascript and then inside that loop javascript then makes a call into the doom web assembly module to generate the applicable content for that frame and inside the doom code there were functions that used to render directly to a video card that now ask the host to render maybe through some abstraction and then the javascript host has functions that you know that satisfy those imports and instead of rendering to a video card now render to uh a canvas and things like you know opengl type support in a javascript library make those kinds of translations super easy so with a combination of shims wrappers and very smart compilers you can do things like compile distill doom down to its core calculations and then externalize the rendering into something that javascript does and

0:46:08.948 --> 0:46:31.540
<v C>that pattern of putting the pure business logic and you know for doom the pure business logic is you know calculating damage and location and range and who's where and where the projectiles are and things like that and then converting that into a static image of what one frame looks like

0:46:33.062 --> 0:46:38.900
<v C>but then the external function that isn't in the web assembly module that's the responsibility of the host

0:46:41.483 --> 0:47:30.580
<v C>is you know rendering that bitmap onto you know a canvas inside your browser and where the the port of the portability power of that comes from is let's say that that that function interface for rendering uh things like a frame buffer let's say that that was a standard that many different hosts supported so now you can then take this tiny doom web assembly module and run it anywhere that can supply it with a renderable frame book and so this is where you start to see some of the promise of what web assembly is going to look like in the future when tooling makes a lot of this stuff easier or automatic so you now just have

0:47:32.445 --> 0:47:33.525
<v C>these bits of compute

0:47:35.449 --> 0:48:01.521
<v C>that runs anywhere you want them to, at any scale you want them to, as far or as close to—you know—you want them to. Be able to use the data sources as you want them to that can consume portable services that may act differently, like another scenario that I love and I've gone—I've done a number of times with WebAssembly is, you know, you have a WebAssembly module as a

0:48:03.293 --> 0:48:13.806
<v C>contract for turning on or off the voltage in wires. So let's say you have five wires and on those five wires that contract can say, you know, that that pin is

0:48:15.359 --> 0:48:23.300
<v C>either up or down. And so when you have, you can put logic in a WebAssembly module that controls

0:48:25.112 --> 0:49:15.180
<v C>the abstraction of those pins. And then, so when you run that module on a Raspberry Pi, you could be controlling—you know—you could be controlling, you know, a big bank of LEDs where you're setting the color and you're setting, you know, which ones are on, which ones are off. You can make all sorts of patterns. You could use it for like an alert indicator for different conditions, but you could also take that same module out of the Raspberry Pi, put it on your laptop and run simulations and tests because you have this abstraction. Now you could then also take that same module, stick it in a browser, and then, you know, when the module says, you know, I want, you know, LED one to be red, you can just turn a box somewhere in the browser on and color it red. Cool, that.

0:49:16.210 --> 0:49:58.279
<v B>Makes sense actually. So okay, now I think it's really starting to come together for us. So okay, one thing I'm trying to wrap my head around—so I think WebAssembly, we've—we've, I think got it nailed down. I'm trying to wrap my head around WASM Cloud now. So you talked about—you're talking to a database and and some of those things. It feels like I'm not totally grokking why WASM Cloud would be at that level of talking to a database and not at like a much lower level of, of, you know, like a TCP socket or something like that? So how does—like why is Assembly kind of like going up the scale there? And how is that

0:49:58.887 --> 0:50:43.926
<v C>useful? Sure. So if you think about, you know, what the daily experience is like when you build microservices, think about, you know, somebody says, you need to build this microservice that does a handful of things, and what you end up with is you copy in the boilerplate for starting a web server, then you paste in the boilerplate for configuring the routes, then you paste in some more boilerplate for consuming a database client. And that database client is tightly coupled. So, you know, you might have a Postgres client library in there or something like that somewhere in that giant pile of boilerplate is like 10 lines of business

0:50:45.479 --> 0:50:49.860
<v C>logic, and then when you deploy, you're deploying that 10 lines of business

0:50:51.992 --> 0:51:05.205
<v C>logic bolted and duct-taped—and duct-taped onto all of those other things that you just jammed into that module. You know, there's a there's a reason why a Hello World microservice in Java can consume a one gig container.

0:51:06.792 --> 0:51:26.282
<v C>So what we wanted to do was separate those five lines of business logic from all the other non-functional requirements that are crammed into your typical microservice. And so a runtime like WASM Cloud sits above the WebAssembly engine level and

0:51:28.139 --> 0:52:11.710
<v C>it provides—like I said—that mutually agreed upon. The web server is a very important one of the things that you can do is to make a lot of the web server, and you can do that in the web server, and you can do that in the web server. So there's a contract for receiving messages from a web server, there's a contract for interacting with a message broker, there's one for talking to a SQL database. You can make your own contracts in which case you can also make your own capability providers. So you can add as many abstractions as you want to create a connection to the WASM Cloud ecosystem, and what you'll end up—what you build as the developer is an actor. We follow the Actor pattern, but it's a little WebAssembly module, and

0:52:13.245 --> 0:52:15.996
<v C>the units of deployment that we have

0:52:18.072 --> 0:52:50.339
<v C>are, you know, from the biggest language target at around 1.5 megs down to 64K. So if you think about going from deploying one gig mammoths to do a small amount of work to deploying these tiny little things to do the same amount of work in a more portable, more loosely coupled way, then we start gaining all sorts of advantages that we didn't have before.

0:52:52.834 --> 0:53:24.279
<v C>So now that we can write business logic that consumes these contracts, we know that the thing that fulfills that contract can change. And so that same scenario where in one situation, your code is controlling real hardware and another situation, your code is in a simulator, that also applies to going from dev to prod. But when you build your Hello World code in the regular microservices way, you get your Hello World code working and it's fantastic.

0:53:25.892 --> 0:53:46.100
<v C>And then when you have to go take it on that pipeline to running in production, chances are you're going to have to rip out three quarters of that boilerplate because your local environment test doesn't match all of the cloud tentacles that your code needs to run in when you deploy it to AWS or Google or wherever.

0:53:48.218 --> 0:54:20.000
<v C>But with that abstraction, you can use an in-memory database when you're developing on your workstation. And then when you push the same code without ever recompiling it, the same sealed cryptographically signed unit of compute out to production, the production version of that environment can supply a Postgres database or Cassandra or Redis or whatever. And the logic that you wrote doesn't change.

0:54:20.799 --> 0:54:39.974
<v B>Got it. So let me unpack this. So, for example, if you were trying to spin up a web service, and I'll stick with Python because that's the one I know best. But if you're trying to spin up a web service now, you would get a FastAPI server. You'd write, as you said, a bunch of boilerplate for different routes. And then you

0:54:39.974 --> 0:54:49.035
<v A>would use something like SQLAlchemy, which has clients for—it's basically a multiplexer for all these different clients. And so

0:54:49.035 --> 0:55:07.900
<v B>you can tell SQLAlchemy, you know, I want to access this SQLite database for development. And, you know, you can run locally. And then you have some config somewhere that's saying, 'Okay, when I'm in the cloud, my SQLAlchemy connects to Postgres.'

0:55:07.900 --> 0:55:15.023
<v A>And when I'm local, it connects to, you know, this SQLite that's on my laptop. And so

0:55:15.023 --> 0:55:49.971
<v B>The issue there is that, you know, SQLAlchemy has to do a lot of heavy lifting. And it also has to know about every single database. And then I have to get really clever about, you know, when I pip install it, I have to pip install just the databases I want, or I end up with this massive binary. And it all kind of, you know, blows up. And then also, I'm really relying on SQLAlchemy to use that language. I'm sort of like expecting a contract from SQLAlchemy that if I call my ORM, if I call my object relational mapper functions,

0:55:49.971 --> 0:56:01.660
<v A>that they're going to do exactly the same thing for every database. And there's just a ton of work that goes into on there and that goes into that. And that work translates into a large binary.

0:56:02.290 --> 0:56:23.974
<v B>And so you're saying Wasm Cloud is trying to move that problem across the, I guess, the VM boundary. And so you can imagine now, like Cloudflare has an implementation of a Postgres client and a SQLite client in it. And so now you don't have

0:56:23.974 --> 0:56:44.300
<v A>you know, my binary running SQLAlchemy and your binary running SQLAlchemy and Patrick's binary running SQLAlchemy all in the same cloud running different versions. My version hasn't been patched yet and hasn't exploited, et cetera, et cetera. Like you can move that to, you know, Cloudflare, for example. And that makes our binary small, you know, and makes their load also smaller.

0:56:45.220 --> 0:57:41.340
<v C>Yeah, that's a really good point. And, you know, it's one of the things that, you know, not everybody sort of sees on first glance when you look at what Wasm Cloud does. So, you know, decoupling things is just sort of part of the picture. But the way that it gets decoupled is also saving you a lot of time and effort as well. So, like you said, you could have, let's say you have a web server and you're a huge enterprise. You've got a web server that everybody has been using. It's a Java dependency. And all of a sudden, someone publishes a vulnerability saying that, you know, you need to immediately upgrade all of these web servers from this version to some other version. So, you know, you now have this entire enterprise that has to stop all of its current work and have each one of those dev teams that has taken that dependency.

0:57:43.709 --> 0:58:18.480
<v C>Then, you know, blow a sprint or more, upgrading their code to the newest version and then repackaging, redeploying, recertifying, retesting, all of that stuff. Like those pipelines to go from a minor code change to production, while we would love those to be, you know, an hour, they're certainly not. And in many cases, it can take weeks worth of paperwork or, you know, bureaucracy to get your code from fixed to deployed in production.

0:58:22.200 --> 0:59:06.680
<v C>But if you have something, a framework that has decoupled those things for you, like Wazzle Cloud, then what you can do is while your code is running, while your business logic is still actively running, deployed and scaled in a cloud, you can live patch the web server from one version to the other. And you do it once and the problem is no longer an issue. It's because those modules are no longer tightly coupled to those dependencies. There's a saying that, like, when you build these microservices, you own your dependencies. And that's not really the case anymore with something that gives you this level of abstraction.

0:59:08.400 --> 0:59:21.040
<v B>Yeah, that is really, really cool. I mean, you see examples of this pattern. You know, like, I know a lot of loggers have different backends. And so you swap out the backend, you get different functionality with the same API.

0:59:21.540 --> 0:59:41.520
<v A>Or I think of SDL, like going back to Doom example, you know, someone ported Doom to sit on top of SDL. And so now SDL has a million different backends. And so it's, so yeah, I think that pattern works really well. And so you're just taking that to the next level, which is really cool.

0:59:41.940 --> 0:59:56.680
<v C>But yeah, and exactly. Like you were saying with the Python libraries and with some of these other things that have pluggable backends, you know, with the stuff that we're doing today without those hard boundaries of a WebAssembly sandbox,

0:59:58.506 --> 1:01:08.120
<v C>you can't, you know, swap those backends without, you know, either changing a config file and then rebuilding a release or changing your code and recompiling it and then redeploying it. Like being able to swap that stuff is a compile time decision for too many people. And it shouldn't be. Like I shouldn't have to architect my services based on the suite of arbitrary stuff I just happen to have lying around on my workstation. But that's what happens, right? I make, when I'm in experimental mode, you know, I build my service so it works on my machine. And I make a whole bunch of architectural decisions at compile time that are baked into my work product. And I don't think that's a good enough model. I think we should architect our solutions based on the problems that we want to solve. And then all of this other boilerplate, you know, 90% of our work, I don't want to have to care about that anymore.

1:01:09.360 --> 1:01:38.460
<v B>Yeah, that makes sense. Yeah, I love the hot swapping code idea because, you know, you have like, you know, using the logging framework, for an example, you know, you have like in Python logging, you can log to a file, you can log across the network, you can log different things, but all of those different things have to be baked in. And, you know, even if you have 10 different options and you can write a config file to choose which one of the 10 you want, all 10 are in your source code and they're all locked in.

1:01:38.540 --> 1:01:45.220
<v A>And you're not able to, you don't really have that flexibility to swap them out or definitely not to upgrade them.

1:01:47.360 --> 1:02:09.060
<v B>That is super, super cool. Yeah, that is awesome. So, yeah, you know, I think we have a really good handle on WebAssembly and WasmCloud. So what's the connection? I know you said that Cosmonic is fostering WebAssembly. And so what does that mean day to day? So are you the biggest contributor?

1:02:09.480 --> 1:02:13.400
<v A>Are you managing like the community out there? I guess a little bit of everything.

1:02:13.400 --> 1:02:57.314
<v C>Yeah, so we are, we're running the WasmCloud Slack community. And we're, at the moment, we're the largest contributors. But, you know, like I said, we're, it's in everyone's best interest to see the set of tooling and not just the stuff that we're building, but the stuff that everybody is building. It's in everybody's best interest for WebAssembly to gain more traction, to gain more adoption, to get better known so that these tools can be built around it so that the compilers can get smarter to build better hooks into WebAssembly. And then, you know, the network effect grows and the WebAssembly ecosystem gets to a mature

1:02:59.744 --> 1:03:26.400
<v C>level where people don't have to worry about, you know, does this thing support this thing I want to do with WebAssembly? They just pick their favorite compiler and go and they pick whatever runtime they want. They choose between, you know, WasmCloud or some Lambda thing or whatever. And it's no longer a big deal. Making that decision is more a personal preference than anything else.

1:03:27.660 --> 1:03:35.974
<v B>Cool. And so what is Cosmonic like as a company? So how many folks do you have there? And is it?

1:03:35.974 --> 1:03:46.280
<v A>Sort of, is it distributed? I mean, I'm sure everyone or, well, there's folks working from home. But like, what's the general situation like over there?

1:03:46.780 --> 1:04:14.800
<v C>So there's seven of us at the moment, and we are all distributed. And like I said, there isn't really much I can discuss yet, but, you know, it should be fairly obvious that we're building a product built on top of WasmCloud. And we're pretty close to being able to start getting some people into some private testing setups so that we can get some early feedback.

1:04:14.800 --> 1:04:42.968
<v B>Cool. So, there's two sort of threads there. One is, you know, if you're out there and you're interested in WebAssembly, the idea sounds really cool. And you want to try it out, definitely try out WasmCloud and also get on the Slack channel. I think as you build things and show that you have, kind of something really cool and you have the passion, then I think that would be the best way to get onto one.

1:04:42.968 --> 1:04:55.034
<v A>of these, you know, private alpha tests. And, and really work kind of hand in hand with the folks at Cosmonic to see kind of what that future looks like. Cause this is really, really cutting edge. I mean, I

1:04:55.034 --> 1:05:20.759
<v B>don't think a lot of people out there are thinking about moving things across the VM boundary. But what I can tell you personally, and I know that a lot of people have shared this story is it is painful to upload giant Docker containers to get something done. Like I have a project now that we're using serverless, you know, at work, we use Terraform, and just, you know, the scripting is not hard.

1:05:20.960 --> 1:05:27.620
<v A>It's just the bloat and just the wasted time and cycles and network packets to do anything.

1:05:28.540 --> 1:06:14.439
<v C>Yeah. I mean, if you think about that, right? Just the fact that the Docker images themselves are so large and unwieldy prevents a bunch of scenarios. Like you don't really have the concept of being able to ship a Docker image dynamically at runtime from one place to another in order to make it so that the Docker image runs closer to whatever you want it to run closer to. Cause you just can't, you can't be pushing around one gig blobs like that. Yeah. And then when you think about compute density, right? Compute density is like that's the Holy Grail of cloud stuff right now—is just being able to pack all of your stuff into as small a footprint as possible and waste as little rented compute as possible.

1:06:17.519 --> 1:06:54.525
<v C>And when you've got, when the thing that you're pushing is a one gig Docker image, then, you know, that's going to force you into certain decisions about the underlying VM, about the memory capacity of that VM, because often CPU and memory are coupled when you buy your cloud resources. And when you compare things like the one gig or worse, I've seen eight gig Docker images. When you come, when you compare that size Docker image to portable business logic, that is, you know, a hundred K

1:06:56.804 --> 1:07:11.840
<v C>you can ship those around dynamically at runtime on demand and not worry about it. You can run thousands of those in a single process on a single VM, you know, in the same space as you were running your one gig Docker image.

1:07:12.400 --> 1:07:46.349
<v B>Yep. Yep. And the idea of the Docker layers is extremely powerful, but it's also kind of a crutch, right? Because now you're putting the onus on the developer to say, okay, you know, I want to first do, you know, all of my pip installs and get all of my packages before I, you know, do a git clone. Because if I do it in the other way, then Docker will constantly be rebuilding that thing. So you have to kind of stagger everything and ends up being this really unnatural thing where your Docker file, if you

1:07:46.973 --> 1:08:04.420
<v A>were to read it top to bottom, it's like the things that change the least down to things that change the most, which is not really a natural way of writing code. Versus something like this, where you say like, it doesn't matter because all of that external stuff is not even going to be in the Docker image. So we don't have to play all of these games.

1:08:04.759 --> 1:08:21.180
<v C>Yeah. When you think one of the other things that comes up a lot is the concept of reason to change. So when you build a thing and you deploy it, like what is, what's the main reason why, I'm sorry about the dog.

1:08:21.399 --> 1:08:22.140
<v A>No, it's fine.

1:08:22.225 --> 1:08:57.426
<v C>What's the main reason why you have to deploy a new version of that thing to production? Is it because your business logic changed or is it because something in one of the dependencies that you didn't even want in the first place changed? Yeah. 99% of the time it is not in your business logic. So that's right. When you free yourself of that, and so now not only do you have these tiny little portable images, you that are secure. You know, like I said, we're embedding signatures inside those modules.

1:08:59.350 --> 1:09:25.480
<v C>But those things don't need to change. They don't need to change. They don't even need to change when their dependencies change. So if you want to swap the database that one of your WebAssembly modules is using from one thing that implements a SQL contract to another, you can do that in runtime without having to rebuild or recompile your code.

1:09:27.060 --> 1:09:38.972
<v B>Yeah. That totally makes sense. Cool. So for folks, so Cosmodic is just getting started. Are you trying to hire folks or are you really just focused on getting that MVP out? Uh, yes.

1:09:41.040 --> 1:09:49.859
<v C>Okay. Yeah. We're always looking for good people and we're also heads down trying to get the first MVP out. So.

1:09:50.479 --> 1:09:52.840
<v B>Got it. What kind of skills are you looking for?

1:09:53.920 --> 1:10:36.179
<v C>So, like I said, we're looking for good people. And so we look at the people that we would want to hire rather than a certain subset of skills. I mean, obviously people need to know how to code and they need to understand distributed systems and things, but you know, language syntax is stuff that can be taught, stuff that can be picked up on the job. So, you know, we are definitely not the type of people that will make you do a bubble sort on a whiteboard. Yeah. Because bubble sorts on whiteboards are not compiled code that runs in production. Yep.

1:10:37.179 --> 1:10:53.222
<v A>Yep. Yep. The best interview I think is to spend an hour, spend a day with the team. Like you're here's, here's, and the nice thing about something like WasmCloud is you can your interview could be, you know, here's an issue. You know, give me a pull request, you know, I'll see you in a week or something. Yeah.

1:10:53.880 --> 1:11:06.280
<v C>You can learn more about a person by listening to how they rubber duck their way through problems, through solving a problem than you do by knowing what language they choose to solve that problem in.

1:11:07.020 --> 1:12:17.320
<v B>Yep. Yep. Totally agree. Cool. Yeah. So if you're out there and this sounds awesome to you, it should take the time, learn it. And I think this is going to be really, really cool tech. It sounds amazing. Definitely take the time to build something in WebAssembly. If you're out there, you build anything, hit us up on Twitter. You can add us and show off what you've built. It's really cool. If you get Doom working in the browser, I know it's been done, but follow along. If you get it working yourself, let us know. And if this sounds like things, you know, the edge—not to abuse that term—but if it sounds like you want to be kind of right on the cutting edge of some really amazing tech, then you'll get into the Slack channel, get engaged in the community. And then ultimately, you'll reach out, reach out to Cosmonic. You might be the next person they're looking for. So, cool. What is something that is unique about Cosmonic, the company? So do you have like a certain offsite? Do you have like a certain story or something that kind of really sets you apart?

1:12:18.920 --> 1:12:29.920
<v C>So there's a lot of unique things. One interesting thing is, you know, all of our internal release names are from autocorrect mistakes.

1:12:31.502 --> 1:12:47.620
<v C>Nice. Another, I would say is that all of us are ruthlessly focused on developer experience. Every one of us has suffered through horrible developer experiences.

1:12:50.183 --> 1:12:58.660
<v C>And so we're basically developers building the product we've always wanted to use, making the company we've always wanted to work for.

1:12:58.660 --> 1:13:23.139
<v B>Very cool. Really well said. Cool. Well, this was amazing. I mean, I feel like I actually have a really good grasp of WebAssembly, which, you know, I think is hard to do over audio in an hour, but you've been able to do it at least for me. So, and I know for a lot of folks out there. So, I really appreciate your time, Kevin. This is really, really awesome. Thanks so much. I was glad to be here.

1:13:35.577 --> 1:13:37.889
<v A>Thank

1:13:39.171 --> 1:14:28.639
<v B>You. Thank you.

