[00:00:01] [music] [00:00:06] >> Thanks, Matt. We're excited to be here. [00:00:09] I am Maddie Montequila. I am the PM for [00:00:10] Aspire. [00:00:12] >> And I am Jose and I'm the engineering [00:00:13] manager of the Aspire team. [00:00:15] >> Yeah, he is actually the one who keeps [00:00:16] Aspire on the rails, which despite [00:00:18] popular belief, and we pulled him out of [00:00:20] releasing the product today and stuck [00:00:22] him in this chair to talk to all of you [00:00:24] because this is not so much to talk [00:00:26] about Aspire, but customer study for [00:00:28] Aspire as a .NET customer because Aspire [00:00:32] is this distributed app toolchain and we [00:00:34] have to solve a lot of problems. We have [00:00:36] to describe relationships in your app [00:00:38] host. We have to [00:00:40] work across all different languages. We [00:00:42] have a dashboard. We have all of this [00:00:44] live state and processing and there's a [00:00:47] bunch of different pieces to the puzzle [00:00:48] and then we have to ship it to anywhere [00:00:50] you can run anything. [00:00:52] And of course, we're built almost [00:00:54] entirely on .NET, which is your platform [00:00:57] for building anything. So we're going to [00:00:59] talk about three distinct parts of [00:01:01] Aspire and what parts of .NET, [00:01:03] especially the newer .NET features that [00:01:04] exist, we use to make all of them [00:01:07] happen. [00:01:08] We have a ton of content. So maybe you [00:01:10] can come back and watch this in like [00:01:12] half speed if we go [laughter] too fast. [00:01:14] >> That's one thing I don't usually do. I [00:01:15] usually do the opposite, but this one is [00:01:17] going to be packed. [00:01:18] >> Yeah, this one's going to be. We're [00:01:19] going to have a good time with this. [00:01:21] First and foremost, so last year we were [00:01:23] here, [00:01:25] Jose was pushing buttons to release [00:01:26] Aspire 13 and Damian and I were sitting [00:01:29] here and we were like, it's not .NET [00:01:31] anymore. It's everything. And making [00:01:33] that happened was actually quite an [00:01:35] interesting engineering challenge. [00:01:37] >> Oh, yes. [00:01:38] >> And it went through quite a few [00:01:38] iterations. I think the, you know, when [00:01:41] Aspire launched, we had this CS proj [00:01:43] that was everybody's the normal .NET [00:01:45] thing, but we heard from you folks like, [00:01:47] hey, I have a JavaScript front-end team [00:01:49] and they want to use Aspire too and it's [00:01:51] great, but they don't want a CS proj [00:01:52] because they don't know what that is. [00:01:54] And we were like, you know what we'll [00:01:56] do? We'll just give you the single, the [00:01:57] file-based, file-hyphen-based app. [00:02:00] >> Yes. [00:02:00] >> The single file app host CS. Um and [00:02:04] that's around the time that this meme [00:02:05] came out, the Trojan horse meme, where [00:02:07] we were like, look, we're just we're [00:02:08] just sneaking in. But it was not enough. [00:02:11] Uh people were still like, C# that only [00:02:13] runs on Windows. Uh and we were all of [00:02:16] us, C# developers of the cultured type, [00:02:19] were like, no, that's not true. But [00:02:21] convincing [00:02:23] everybody you work with to believe that [00:02:26] was tough. So we were like, what if we [00:02:28] could just write the app host in [00:02:30] TypeScript? [00:02:31] Uh but [00:02:32] we're a C# team. We build C# stuff. [00:02:35] Aspire is C# We weren't about to build [00:02:37] Aspire in 10 languages. [00:02:39] Um [00:02:41] and so yeah, so Jose and and a couple [00:02:43] folks on the team went and tried to [00:02:44] figure out like how to do this. The [00:02:46] first pass was could we just take [00:02:49] TypeScript and use source gen and just [00:02:52] turn it into C#? [00:02:54] >> Protect it, yeah. [00:02:55] >> yeah, you almost could, almost. [00:02:57] >> Almost, yeah. [00:02:59] There was one big problem. [00:03:00] >> Yeah, which we use literally everywhere [00:03:03] in Aspire, both in our codebase and in [00:03:05] how we expect you to write your app [00:03:06] host, which is callbacks. [00:03:08] >> That's right. [00:03:08] >> you couldn't call you couldn't generate [00:03:11] the C# code [00:03:13] from a TypeScript callback. So we were [00:03:15] like, okay, we can't just like [00:03:16] one-to-one map this. [00:03:19] Uh and we started looking at like could [00:03:20] we define something in there that's like [00:03:23] a type system maybe uh where we write C# [00:03:26] and we get to use all the benefits of [00:03:27] .NET, but then we generate what we [00:03:29] started calling guest languages. So [00:03:31] anything else you wanted uh to write [00:03:33] your app host in. [00:03:35] And that's the journey we we [00:03:38] went down. We have this Aspire type [00:03:40] system, ATS we call it. Um [00:03:43] and then what we do is we generate a [00:03:45] bunch of SDKs and we execute a bunch of [00:03:47] calls and we send it over a back [00:03:49] channel. There's a bunch [clears throat] [00:03:50] of all of Aspire's environment variables [00:03:52] and JSON RPC. Fun fact, it's pretty much [00:03:55] all it is. Um and there's a lot of that [00:03:57] in here. [00:03:58] >> Yeah. [00:03:58] >> So instead of me trying to explain this [00:04:01] diagram, we're going to flip to Jose's [00:04:03] machine. [00:04:04] >> Yeah, we can go over. [00:04:05] And one of the things that actually we [00:04:06] didn't uh [00:04:07] >> Zoom that. Can control shift zoom zoom. [00:04:10] Yeah, I got you. [00:04:11] >> Zoom zoom. Is that better? Okay, [00:04:13] perfect. [00:04:14] Uh so one of the things that we [00:04:15] mentioned as part of type system, like [00:04:17] the reason for that is also that um [00:04:20] we like C Sharp is an awesome language, [00:04:22] right? And it has a whole bunch of [00:04:23] things like generics, like overloads, [00:04:26] like extension methods, uh like even [00:04:28] delegates, right? And and those are [00:04:29] things that not every other language [00:04:31] that we probably wanted to support [00:04:33] uh actually supported itself. So that's [00:04:35] why we had to come with the least common [00:04:37] denominator, which we call ATS, uh the [00:04:39] Aspire type system. [00:04:41] Uh so I'm not going to like go through [00:04:42] the very beginning. I'm I'm kind of [00:04:44] assuming that you're already familiar [00:04:46] with Aspire when I go through this [00:04:48] through this demo. Um this is a super [00:04:50] simple app host, which the app host is [00:04:51] again kind of like the heart of an [00:04:53] Aspire application. [00:04:54] And in this one uh we basically have two [00:04:57] resources. We have a Redis cache and [00:04:59] then we have an executable, which is [00:05:01] just a super simple node node app. [00:05:04] Um [00:05:04] the one thing I wanted to point out is [00:05:06] like if we F12 into these add Redis [00:05:08] method, you can see that this is [00:05:09] actually calling in into like our actual [00:05:12] implementation of what happens when you [00:05:14] call add Redis, right? So if you if you [00:05:16] go into the details in here, you can see [00:05:18] that this is basically selecting which [00:05:20] image is going to be run whenever we're [00:05:23] trying to run this locally, which [00:05:25] registries that image is going to come [00:05:26] from, what icon is going to be used and [00:05:28] displayed in the dashboard, a whole [00:05:30] bunch of of of cool things. Um and then [00:05:33] in here we have an example of one of the [00:05:35] like of of of the big problem that we [00:05:37] originally hit when we were trying to [00:05:39] support multiple languages, which is a [00:05:41] callback extension method. So in here we [00:05:43] have an executable, which again is just [00:05:45] a super simple node app. You can see it [00:05:47] right here. It is literally just doing a [00:05:49] console write console dot log of an [00:05:51] environment variable. [00:05:53] Um and so if if we go back the way that [00:05:56] that environment variable is variable is [00:05:58] being set is using this with environment [00:06:00] extension method. And and this [00:06:03] essentially won't run sequentially. So [00:06:06] if you know more or less how our builder [00:06:08] pattern works is once you call run, [00:06:12] the distributed application builder is [00:06:14] going to start prepping the app to be [00:06:15] able to run and prepping all of our [00:06:17] different resources in here. [00:06:19] And then for the specific node one, once [00:06:21] it is ready to execute it, it will call [00:06:24] this callback which gets a context [00:06:26] passed into it. It has a property bag [00:06:29] and that property bag basically has like [00:06:31] these are just all of the environment [00:06:32] variables that you can set. And in here [00:06:34] it's a super simple like we're just [00:06:35] saying a hello world message, right? So, [00:06:37] let's give this a run real quick. Let me [00:06:41] go to the C sharp [00:06:43] directory and call a spider start real [00:06:46] quick. [00:06:47] That will get it started on the [00:06:48] background. [00:06:50] I'm actually going to showcase real [00:06:51] quick in here. You probably notice this [00:06:53] tray icon. [00:06:54] Yeah, this is our so Seb, one of our [00:06:57] engineers, he built the the Aspire tray [00:06:59] app which you can run now and that's a [00:07:01] very easy way to just get to the [00:07:02] dashboard. [00:07:03] So, I'm just going to open that right [00:07:04] now and you can see like this is the new [00:07:07] dashboard which again Damian and Matty [00:07:08] already talked about a little bit and [00:07:10] we're going to talk about more [00:07:12] about this thing next week. [00:07:14] But if you go to the worker method, you [00:07:16] can see in there that like yeah, I mean [00:07:18] it did the very simple thing that it was [00:07:20] supposed to do. It just said hello [00:07:22] world. [00:07:23] Now, [00:07:24] that is all fine and good. That is [00:07:25] probably also not super interesting. [00:07:27] Let's go to something that it's more [00:07:28] interesting which is [00:07:30] what happens if we now are in one of [00:07:32] those teams that say yeah, I don't want [00:07:34] to install .NET on my machine. I want I [00:07:36] want to like I am a TypeScript dev. I [00:07:38] only want to deal with TypeScript. [00:07:39] >> Yeah. [00:07:40] >> So, here's an equivalent version of that [00:07:42] app host version and you'll notice that [00:07:43] this is a little bit more verbose. [00:07:45] There's a reason for that. I'll show you [00:07:46] in in in in a sec. [00:07:48] Basically basically it boils down to I [00:07:50] am adding a whole bunch of console log [00:07:52] messages because everybody that's done [00:07:53] debugging in here knows that the best [00:07:55] way to debug is to just slap a whole [00:07:57] bunch of console logs and I'm going to [00:07:58] actually show you how these get executed [00:08:00] later. [00:08:02] And also you're probably wondering by [00:08:04] looking at this line that I just don't [00:08:06] know how run, how to write [laughter] [00:08:08] TypeScript. [00:08:10] Cuz yeah, in this string, I am basically [00:08:12] calling into array dot join [00:08:14] from that message. There's a reason for [00:08:16] this. The reason why I am doing it this [00:08:18] way, I wanted to specifically point out [00:08:20] that [00:08:22] this callback is actually running inside [00:08:24] the TypeScript code, the TypeScript [00:08:26] execution. So the evaluation of this [00:08:29] value will actually happen in TypeScript [00:08:31] and then that all of that information is [00:08:33] going to be sent over to [00:08:36] to C Sharp. [00:08:37] Final thing before we run this, if I [00:08:40] actually F12 into this add Redis [00:08:43] and actually this is all generated code [00:08:46] that we did. [00:08:47] And let me actually look for the actual [00:08:49] implementation. You'll see that the the [00:08:51] actual implementation of this method [00:08:53] doesn't like it it isn't selecting the [00:08:55] image, the registry, anything that we [00:08:57] saw in the in the C Sharp [00:08:59] world. And instead it is just setting up [00:09:01] RPC, which stands for remote protocol [00:09:15] which actually has the implementation of [00:09:17] how Redis is supposed to be [00:09:20] to be working. So [00:09:22] enough of that, I'm just going to go [00:09:23] ahead and [00:09:25] run this. So let me switch back to my [00:09:27] TypeScript. [00:09:30] >> Yeah, so you're running the dailies [00:09:32] right now, which is pretty cool. [00:09:33] >> I like to [00:09:34] I like to [00:09:36] I'm living wild. [00:09:36] >> Yeah. And Jose is the one who promised [00:09:38] we are shipping in a week. [00:09:40] >> We are shipping in a week. Yes. [00:09:43] >> Okay. [00:09:43] >> it here first, folks. [00:09:44] >> It's Fire 17. So we'll we'll put a lot [00:09:47] of content on the Aspire channels about [00:09:49] what's involved in that, but uh [00:09:51] >> Yeah. [00:09:52] So and actually let me zoom into this [00:09:54] one too. [00:09:56] Oh no, I guess in here it's control [00:09:57] scroll. Yeah. Okay. So in here, [00:10:01] the reason why I'm looking at in here [00:10:02] instead of the dashboard is I wanted to [00:10:04] show capture the App Host logs as well. [00:10:07] So this is basically just the listener [00:10:09] that was waiting for the TypeScript app [00:10:11] host to to launched. [00:10:13] But in here you can see how the .NET and [00:10:15] the TS app the TS processes are calling [00:10:18] into each other, right? So all of those [00:10:20] print lines, those console log lines [00:10:22] that we saw in the TypeScript app host, [00:10:24] you are seeing them here, how they are [00:10:26] talking with the .NET server and how the [00:10:29] callbacks are getting invoked. And so in [00:10:31] here [00:10:32] we register the callback, we we received [00:10:35] in in in the .NET side that like [00:10:38] the the callback was being registered [00:10:41] and then we finally run that code over [00:10:43] back at the TypeScript side. [00:10:46] And then once we do we just return the [00:10:48] environment. And so [00:10:50] just to show and prove that this all [00:10:51] works let's open the dashboard for the [00:10:54] TypeScript app and then let's do the [00:10:56] same check. And yep, there we go. So the [00:10:59] same thing is being [00:11:02] saved inside the console logs and we can [00:11:04] also see here in the environment [00:11:05] variables that it is actually being [00:11:07] passed in. So the callback got executed [00:11:09] on the TypeScript side and it all went [00:11:11] and got safely to the server. So [00:11:13] >> Crazy. Crazy. All right, back to the [00:11:16] slides. [00:11:18] This kind of begs the question. Like [00:11:19] when I saw this working for realzies the [00:11:21] first time I was like why don't we just [00:11:23] ship every language right now? We've [00:11:24] done it. [00:11:26] But the the main problem or I guess the [00:11:28] main thing that slows us down is that of [00:11:30] course we don't want to just shove like [00:11:32] Frank and C Sharp into every language in [00:11:35] the world. We want it to be idiomatic. [00:11:37] And [00:11:39] the first one we did was TypeScript. We [00:11:40] work a bunch with the TypeScript team [00:11:42] already on the day-to-day, but we sat [00:11:44] them down and we said hey, you know, [00:11:46] this is what we're building. This is how [00:11:47] we represent this in C Sharp. What's a [00:11:49] meaningful way to represent that in [00:11:50] TypeScript that actually feels like [00:11:52] language native? And we've been doing [00:11:53] the same when it comes to Python and Go [00:11:55] and and Rust and everything else. [00:11:57] And we have, you know, our C Sharp [00:11:58] gurus, Mads and Dustin, and we just kind [00:12:00] of let them go and fight the good fight [00:12:03] on making every language almost as good [00:12:05] as C Sharp. [00:12:07] But one particular thing with with [00:12:09] TypeScript that was interesting is [00:12:11] there's no concept of overloads or they [00:12:12] do have overloads, but they don't work [00:12:14] the same way that overloads work in C# [00:12:16] and we use them everywhere because they [00:12:19] are [00:12:20] they are a more civilized weapon or an [00:12:22] elegant weapon for a more civilized age [00:12:24] of developers. [00:12:26] And so we had to kind of like fudge them [00:12:28] in our type system [00:12:30] with what the TypeScript union type. [00:12:33] We created an Aspire union to actually [00:12:35] help represent [00:12:37] what we use for regular overloads [00:12:40] in in the .NET in the C# app host. We [00:12:43] have a special version of those for [00:12:46] other languages that don't have [00:12:48] overloads. We use Aspire union to like [00:12:50] create that in our source and then you [00:12:52] can use with environment or whatever [00:12:54] else it is with any archetype that you [00:12:58] need. And so we're doing this in a few [00:12:59] different places and and like Jose said, [00:13:02] like it's really about the least common [00:13:03] denominator language feature and we only [00:13:05] break out of that if we really have to. [00:13:07] So the next language you will see pop up [00:13:10] as an option in the CLI is Go. It will [00:13:12] be preview in 17 [00:13:15] and then Python, Java, and Rust are [00:13:17] available behind feature flags, so you [00:13:18] have to turn them on to see them. [00:13:21] But we're pretty happy about this. We [00:13:22] actually we have some good Go expertise [00:13:24] on the Aspire team, so we were [00:13:25] >> Oh yeah. [00:13:26] >> pretty pretty comfortable with this one. [00:13:29] But yeah, it's I mean we've shipped two [00:13:31] new app host languages in a year, which [00:13:33] is kind of crazy. [00:13:34] >> It's bonkers. And all of that is is is [00:13:37] happening just because of the great [00:13:39] interop story that .NET has. So so yeah. [00:13:41] >> Yep, exactly. [00:13:43] >> awesome. [00:13:43] >> So the next thing that we use .NET [00:13:47] really heavily for in Aspire is the [00:13:49] dashboard itself, which is a real-time [00:13:51] application platform, right? So it shows [00:13:53] a whole bunch of different things [00:13:55] happening. One is the DCP developer [00:13:58] control plane under the hood, which is [00:14:00] starting containers and allocating [00:14:01] endpoints. One is of course the actual [00:14:04] app host server saying, hey, this [00:14:05] thing's healthy, this thing isn't, this [00:14:07] relates to this. And that's going over [00:14:09] gRPC into this dashboard. There is an [00:14:12] OTel receiver, so it is a open source, [00:14:15] fully free hotel dashboard. You can just [00:14:17] spin up in a container or on disk as an [00:14:20] executable. [00:14:21] Um, there's this interaction service, so [00:14:24] we know what's missing from your app [00:14:25] model and we're able to prompt you for [00:14:27] those or say, hey, we need your Azure [00:14:28] provisioning information or or hey, this [00:14:32] Docker runtime isn't running um and [00:14:34] we're actually able to pop those up. [00:14:36] And then this is all built on Blazor [00:14:38] Server. So it's just [00:14:40] in the same project as a lot of the the [00:14:43] execution um under the hood. And Blazor [00:14:47] for us, it was kind of an obvious choice [00:14:48] when we started because it just [00:14:49] simplifies the the web dashboard loop. [00:14:55] Um and it really helps prevent like an [00:14:56] API drift situation. And so I don't have [00:14:58] to sell Blazor to the folks who are [00:15:00] watching .NET Conf, but um it's been a [00:15:03] really good tool for us, especially just [00:15:05] having the types when it comes to like [00:15:07] dashboard UI versus what's coming in [00:15:10] through the telemetry just all in one [00:15:11] place. [00:15:12] Um and we also use Fluent, so huge shout [00:15:15] out to the folks who maintain the Fluent [00:15:17] Blazor libraries. Um we started with it [00:15:20] because it was just an easy thing that [00:15:21] looked Microsofty and we've slowly [00:15:23] layered on our own brand on top as we've [00:15:26] gotten a stronger brand identity with [00:15:27] Aspire. So you know, building on top of [00:15:30] that, we just did a Fluent [00:15:32] >> UI V5, yeah. [00:15:33] >> Yeah, V5 migration. [00:15:34] >> Yeah. [00:15:35] >> Um and and I think James Newton-King was [00:15:38] saying it would be like months of work [00:15:40] without agents and then he was able to [00:15:41] do it. [00:15:42] >> It was a big replat. It did take him [00:15:44] still a good chunk of a month, I think, [00:15:47] but but yeah, it would have been much [00:15:48] longer without agents. I can I can be [00:15:50] sure for that, yeah. [00:15:51] >> Yeah. Um and we also like one thing the [00:15:53] Aspire repo obviously all open source. [00:15:56] We do some crazy things when it comes to [00:15:58] UI testing now. Uh definitely check that [00:16:00] out if you're getting into the agent [00:16:02] game and you're worried about slop [00:16:04] because we are we are anti-slop. There [00:16:06] is a meat mall. We have some slop, but [00:16:08] not in the dashboard. [00:16:09] >> have some slop, yeah. [00:16:10] >> is sacred. Um we also we have a custom [00:16:14] Blazor build. So over the summer, we'll [00:16:16] talk more about why we care about moving [00:16:18] things to native AOT, but we we asked [00:16:20] the Blazer team, and we're like, we kind [00:16:21] of want a native AOT the dashboard. [00:16:24] And they were like, we could maybe make [00:16:26] that happen. So they gave us a custom [00:16:28] .NET build with uh some things that we [00:16:31] have to do on our side to make it work. [00:16:33] Um but we're we're looking at maybe [00:16:36] working with the Blazer team to bring [00:16:37] this to everybody else as well at some [00:16:39] point too. Um so that we can have a [00:16:41] native AOT version of the Aspire [00:16:42] dashboard. And we have both perf and [00:16:45] size improvements from that uh because [00:16:47] we don't have to bundle the .NET runtime [00:16:49] in with it anymore. It's phenomenal. So [00:16:51] James did a whole deep dive blog on [00:16:53] this. I highly recommend checking it out [00:16:55] uh because I could talk about that for [00:16:56] literally the entire session. [00:16:58] We're not going to [00:16:59] um but but we do we love native AOT here [00:17:03] for a lot of reasons, including that it [00:17:06] gives us the ability to publish and ship [00:17:10] a native toolchain to anybody. [00:17:13] And [00:17:14] for a while, even though the app host [00:17:16] was TypeScript, you still kind of had to [00:17:18] install .NET. You had to know a little [00:17:20] bit about it. [00:17:21] And the latest few Aspire releases, you [00:17:24] don't have to install .NET at all if you [00:17:26] don't want to, which is a funny thing to [00:17:28] say at .NET Conf, but [00:17:30] it's pretty cool. [00:17:31] >> Now you can tell your friends to install [00:17:33] Aspire. Whoever whoever is still like [00:17:35] anti .NET. Yeah. Exactly. [00:17:38] >> Um and so it used to run on your .NET [00:17:41] install itself, um which if anyone who's [00:17:44] running multiple .NET installs at the [00:17:46] same time knows that you can get into [00:17:47] dangerous like behavior real quick. And [00:17:51] we've pretty much always tried to build [00:17:52] on the latest .NET, but we were stuck on [00:17:54] .NET 8 for a long time because we knew [00:17:57] some of you might still be running .NET [00:17:58] 8. And the back compat was just getting [00:18:01] kind of unmaintainable. Um and so we [00:18:03] decided like maybe six months ago I [00:18:05] don't know when we started this whole [00:18:06] thing. [00:18:06] >> 13. something to quote to quote Damian. [00:18:10] One of the dot somethings. Yeah. [00:18:11] [laughter] [00:18:12] >> Uh we decided to create what we called [00:18:15] the bundle. [00:18:16] And what we did was we gave you this [00:18:18] Aspire managed which had a a whole bunch [00:18:20] of stuff in it. [00:18:21] Uh and then the developer control plane [00:18:23] DCP, which already existed in Go before [00:18:27] Aspire. It's kind of cool. We're using [00:18:28] .NET to ship some Go. I think that's [00:18:30] kind of baller. You know, whatever. Um [00:18:32] it's a great [00:18:33] tool [00:18:34] and a lot of the magic in Aspire is [00:18:36] thanks to DCP. [00:18:38] But we said we have this native AOT CLI, [00:18:40] and now it's going to pull in this [00:18:42] bundle uh and then folks can use that [00:18:44] instead of us relying on your own .NET [00:18:46] install. But [00:18:48] then we still were pulling in a fully [00:18:50] managed .NET runtime. [00:18:54] And we were like, we could probably AOT [00:18:56] more of this. So we started peeling back [00:18:58] the onion and figuring out which of [00:19:01] these things in in Aspire.Managed [00:19:04] made sense to AOT or were AOT-able. And [00:19:07] And there were a few gaps. So because [00:19:09] we, you know, work very close to the [00:19:11] .NET team, technically not the .NET team [00:19:13] anymore, but we're we're pretty nearby, [00:19:15] you know? [00:19:16] We're close friends. We started calling [00:19:18] people up and saying, hey, [00:19:19] hey, you know, we got Blazor to be [00:19:21] would you AOT this for me? Would you [00:19:23] like Would you like some AOT in your [00:19:25] app? [00:19:26] Um and quite a few things [00:19:30] actually were able to help us out with [00:19:31] that. And so Jose is going to show us [00:19:35] the new and improved Aspire bundle. [00:19:39] Uh there you go. [00:19:41] >> Yeah. [00:19:42] So hopefully you guys can see over here [00:19:44] uh [00:19:45] I mean, I actually I guess extra large [00:19:47] icons. [00:19:48] >> Nice. [00:19:48] >> That's too large, but okay. [00:19:50] Uh so um [00:19:52] you guys uh if you go in if if you [00:19:54] already have Aspire installed, you'll [00:19:55] notice that under your user profile um [00:19:58] and this is the same uh as well in the [00:20:00] in your home directory if you're in [00:20:01] Linux or macOS, um you're going to see [00:20:03] that uh there's a dot Aspire folder and [00:20:06] and inside there you can actually [00:20:07] inspect this bundle, right? So this is [00:20:09] basically what Maddie just shared. Uh so [00:20:12] in there we have um particularly the the [00:20:14] main thing the main things that I want [00:20:15] to call out today is like we have the [00:20:17] dashboard and inside the dashboard you [00:20:19] can see that we have about a 93 uh [00:20:23] megabyte uh [00:20:24] file which granted it's not like super [00:20:27] tiny, but also keep in mind that this is [00:20:29] like full blazer, full runtime. That's [00:20:32] the this this contains the garbage [00:20:34] collector inside of it. [00:20:36] So like it is it is actually pretty [00:20:38] impressive and it helps us be super fast [00:20:41] as well. [00:20:43] We also have like TCP, which has always [00:20:44] been So this is like this is this is a [00:20:46] Go app, so this has always been actually [00:20:49] a a [00:20:52] native I guess a native AOT executable, [00:20:55] but we have that inside the bundle as [00:20:57] well. And what that means is like [00:20:58] earlier today Damian was explaining how [00:21:00] we can get rid of the [00:21:02] Aspire SDK now. This is the reason why. [00:21:04] It's because now we carry that in the [00:21:06] bundle, so you don't have to like [00:21:08] acquire that on the fly anymore. And [00:21:10] this is already targeting your specific [00:21:13] machine, your specific platform, so [00:21:15] you're all set to go. [00:21:17] And then we have also like the Aspire [00:21:19] Manage. So this is essentially the [00:21:21] server that we were talking about. Like [00:21:23] this is the thing that gets [00:21:25] that that starts when you're running a [00:21:27] For example, when in my previous demo [00:21:29] when I was showing a TypeScript app [00:21:31] host, [00:21:32] this is the the the the actual [00:21:34] executable that was receiving all of [00:21:36] those calls from the TypeScript app [00:21:37] host, and this is the one that was [00:21:38] actually making the changes and [00:21:40] executing the things inside the machine [00:21:42] to be able to orchestrate Redis and and [00:21:45] orchestrate my worker. [00:21:47] So this is what was doing all of that [00:21:48] magic. And this is of course also native [00:21:50] AOT. [00:21:52] And then [00:21:53] yeah, and then we have like the tray app [00:21:54] which you've already kind of seen. [00:21:57] And and then the terminal host which I'm [00:21:59] not going to talk too much about it, but [00:22:01] like this is just the terminal host that [00:22:02] we we are actually now shipped a [00:22:05] full living terminal inside the [00:22:06] dashboard. And so this this is the host [00:22:09] for that. [00:22:11] And I wanted to show you real quick. So [00:22:13] this is an actual WSL environment. It's [00:22:15] brand new. I actually created this [00:22:17] morning for this particular conference. [00:22:20] I can inspect in here real quick. [00:22:23] It's it's a super simple like I [00:22:24] basically just ran ASPIRER new uh using [00:22:27] the TypeScript uh starter app. And so, [00:22:29] if I do a nano in here, um [00:22:32] >> Nano? [00:22:33] Not Vim? [00:22:35] >> um yeah, let's not get into that. Um I [00:22:37] I'm a big nano supporter. But in here, [00:22:39] like you can see that this is like a [00:22:41] super simple uh super simple app host, [00:22:43] right? Uh nothing nothing special in [00:22:45] here. Um but when I go in and run it, um [00:22:49] let's get it started. Um it all started [00:22:52] in the background, um and then [00:22:55] do do do. [00:22:56] >> Do do do. [00:22:58] >> In a few seconds. Maybe we should [00:23:00] >> you get Did you run [00:23:02] How did you get the ASPIRER CLI here? [00:23:03] Did you run the script or did you use a [00:23:05] package manager or [00:23:06] >> for this one I ran the um I think I ran [00:23:09] the script cuz I want it installed [00:23:11] daily. I I I live I live on the edge. [00:23:14] >> Yeah. If you go to get.aspirer.dev [00:23:17] um or you just go to aspirer.dev and hit [00:23:19] the download icon on the top right, you [00:23:21] can get ASPIRER CLI from in the bundle [00:23:24] from Brew, Winget, [00:23:26] Nix, Mise, NuGet, npm, and of course [00:23:30] just the scripts. Yeah. So [00:23:32] >> Whatever your favorite uh acquisition [00:23:35] mechanism is, we we support it. [00:23:36] >> Yep. And that will pull in the CLI and [00:23:38] and anything else that we need that you [00:23:40] just saw on disk. Um [00:23:42] >> Yeah. This is taking a little bit longer [00:23:44] than I would have hoped. I don't know [00:23:46] exactly what's wrong. Let's give it like [00:23:48] 10 more seconds. [00:23:49] >> Control C and start again. Oh, there you [00:23:50] go. They're mine. [00:23:51] >> was just decided to be super slow. I did [00:23:53] update to to like the latest daily right [00:23:56] before this, so it might have been I [00:23:58] know. [laughter] I know. Um uh [00:24:00] this is my first my first .NET conf, [00:24:01] folks. Sorry. [00:24:03] Um but anyways, like now I can see that [00:24:05] if I go to the dashboard, um [00:24:08] that should open the link in here. [00:24:09] Everything is working, right? It's from [00:24:11] there, but here's where the magic is. If [00:24:13] I actually try to run a .NET version [00:24:15] command in here, oh, .NET is not [00:24:18] installed. It's not actually running. Uh [00:24:20] so it's not in this machine yet. If I [00:24:22] actually do a PS [00:24:25] um [00:24:26] and look at that ASPIRER managed, like [00:24:28] that's that is actually running, right? [00:24:29] Or actually, most important, like I can [00:24:31] probably do this. [00:24:34] Um, Aspire managed. So in here you can [00:24:37] see the actual full call, how we are [00:24:39] invoking that Aspire managed. We are [00:24:41] passing in the server cuz this is the [00:24:43] app the app host server that's running [00:24:44] on the other side and it is pointing to [00:24:46] my my app. And so that is how it all [00:24:49] works under the under the hood. [00:24:51] >> It's pretty awesome. I mean, it's just [00:24:53] it's really cool that we've been able to [00:24:54] like go to these teams and and be like, [00:24:56] hey, I mean, we need to we need JSON on [00:24:59] our PC to be AOT. Can we make it happen? [00:25:01] And and we've been able to. And and and [00:25:03] we've kind of been able to ride the wave [00:25:05] of .NET's native AOT story with all of [00:25:07] you folks. [00:25:08] So final slide and a half, and then [00:25:11] we'll switch it over to Matt. [00:25:13] Um, [00:25:14] Aspire is a .NET customer because it's [00:25:17] the best. James in our meeting [00:25:19] yesterday, we were like, hey, like, what [00:25:21] should we put in our session? And James [00:25:23] on our team said the best language [00:25:27] will always be the best language for [00:25:30] Aspire. And what he meant was the best [00:25:32] language on Earth, C# obviously, is the [00:25:35] best language for building Aspire. Um, [00:25:37] and so I screenshotted it and I said [00:25:39] screenshot it. [00:25:40] >> love that. [00:25:41] >> Yeah, it's pretty good. [00:25:42] Um, so thank you all so much. [00:25:43] aka.ms/aspire-discord [00:25:46] for the Discord, aspire.dev for the [00:25:47] docs. Everything's open source. [00:25:49] Um, Jose, thank you. [00:25:51] >> Thank you. [00:25:52] >> Thank you for letting me pull you away [00:25:53] from your important actual job to come [00:25:55] in here. [00:25:55] >> having me. This is super fun.