Experiments with the new WASI workload in .NET 8 Preview 4

Поділитися
Вставка
  • Опубліковано 16 тра 2023
  • .NET 8 adds a new "wasi-experimental" workload, replacing the earlier Wasi.Sdk. This is a step towards giving .NET native, built-in support for server-side WebAssembly scenarios.
    This video shows how to get started, then demonstrates how .NET+WASI creates possibilities for new kinds of apps and new ways to use .NET.

КОМЕНТАРІ • 32

  • @JuiceRabbit
    @JuiceRabbit 11 місяців тому +5

    You guys are all amazing! Steve Sanderson is fast becoming a living legend (if not already!) Keep up the good work! 👍

  • @nanvlad
    @nanvlad 11 місяців тому +4

    Running backend server app in a browser? You're crazy and I love it!!!

  • @jameshancock
    @jameshancock 11 місяців тому +21

    I think the biggest deal is in docker-like containers that don't need a full os running which shrinks the overhead massively. Just abstractions of the specific OS stuff in the container.

    • @WayneMunro
      @WayneMunro 11 місяців тому

      What's faster to run, a docker container instance or a wasm process? can docker run in the browser?

    • @jameshancock
      @jameshancock 11 місяців тому +6

      @@WayneMunro the idea (and docker already does this with WASI as does Kubernetes) is that you don't have to spin up a host os shim and instead all that is spun up is the abstracted interfaces to the host, and the only thing it knows what to do is run wasi and that's it.
      In tests, you can spin up a WASI container in a few ms and have it active with 1/3rd the memory overhead of a container running a stripper version of linux that hosts your app.
      So if you're doing microservices or similar the savings is HUGE.

  • @Snickerv12
    @Snickerv12 8 місяців тому

    Please make more videos, weekly would be great. Daily would be amazing..

  • @victorchisomnwisu9776
    @victorchisomnwisu9776 11 місяців тому +4

    I see your notification and I watch quickly❤

  • @ozanyasindogan
    @ozanyasindogan 9 місяців тому +1

    .Net 8 with Blazor newest features will be a game changer for the whole internet even desktop applications. Congratulations and thank you very much for providing it to us!

  • @29238734943
    @29238734943 11 місяців тому +5

    Steve, what about wasm component model support for C#? Seems like a key missing piece.

  • @stassss2011
    @stassss2011 11 місяців тому

    Steven, thank you and your team for the great work! Looking forward to the final result. I'm actually going to write my MSc degree work on WASM, WASI topics. Plan is to concentrate on containerization and capabilities of the technologies as Docker-alternative.

  • @KieranDevvs
    @KieranDevvs 11 місяців тому +5

    The DotNetIsolator is great. Ive been waiting for years for someone to provide a sandboxing mechanism for plugins. Hopefully that makes it out of preview.

    • @eyalalon
      @eyalalon 11 місяців тому

      Exactly my thoughts, this is pretty awesome.

    • @teddyalbina8422
      @teddyalbina8422 5 місяців тому

      I started working on testing it for that kind of stuff

  • @Candlesticksmedia
    @Candlesticksmedia 11 місяців тому

    Thanks for sharing the update on WASI. Please can you also share the font you are using as well as how you got your terminal prompt to look the way it is. Thanks

  • @qumetademo
    @qumetademo 11 місяців тому

    cool again👍

  • @paradisefallen8385
    @paradisefallen8385 11 місяців тому

    awesome

  • @davidtaylor3771
    @davidtaylor3771 11 місяців тому

    It is awesome you did this experiment Steve. That last part will get us all thinking about what could be possible....

  • @DustinGamester
    @DustinGamester 11 місяців тому

    This is very cool!

  • @daveblack6951
    @daveblack6951 11 місяців тому

    🤯🤯

  • @ashimov1970
    @ashimov1970 11 місяців тому

    incredible!

  • @chadlomax4500
    @chadlomax4500 11 місяців тому

    I have to know what font you using!

  • @aarondglover
    @aarondglover 11 місяців тому

    🤯

  • @adefwebserver
    @adefwebserver 11 місяців тому +2

    @stevesandersonuk - What are the challenges of implementing the final example (that starts as Blazor Server then downloads the app and runs it in WASM) in real life?

    • @dsvechnikov
      @dsvechnikov 11 місяців тому +1

      First thing that comes to my mind - database connection. Yes, your app suddenly works in browser, but if it needs data from db - said db has to be accessible from your computer. And that leads to second thing that immediately popped in my head - app secrets. In order to connect to db or any other external system, app must have some sort of credentials. And if you are motivated enough, you can extract those credentials from wasm that runs on your machine where you can do whatever you want with it.
      Just these 2 mean that server app that starts running on your machine can't be fully functional and secure at the same time. And in many cases it can't be both.

    • @adefwebserver
      @adefwebserver 11 місяців тому

      @@dsvechnikov Thank you for pointing out those key issues. On a case-by-case basis all these can be overcome (I am thinking of perhaps using Local Storage and then syncing the data back to the server on re-connect) but, I could see why Microsoft would not want to try to make a "general solution".

    • @CarlintVeld
      @CarlintVeld 11 місяців тому +1

      I have watched the universal blazor demos and there Steve showed how the wasm files get downloaded while Blazor server is active. As soon as all wasm files are there the switch is made. Sure your code needs to be prepared for these hybrid flows.

  • @quantume7143
    @quantume7143 11 місяців тому

    Very cool! :)

  • @BinaryReader
    @BinaryReader 11 місяців тому

    I really like this, except I can't run .NET Wasm on due to the lack of sock_accept. I think this symbol is above and beyond the preview1 spec, is there any documentation on this?

  • @burtonrodman
    @burtonrodman 11 місяців тому +1

    that’s some awesome stuff!! i hope nobody actually tries that heap migration for real… that sounds like a security nightmare!!

    • @stevensandersonuk
      @stevensandersonuk  11 місяців тому +4

      I don’t think the security issue would be as bad as it seems, as there’s a completely isolated wasm heap for each user (same as for client-side wasm). But the size constraints are an issue.

  • @denysolleik9896
    @denysolleik9896 11 місяців тому

    Get an SM7B like everyone else.