BaristaLabs / BaristaCore

BaristaCore is a framework for providing a serverless platform using ChakraCore and .Net Core
MIT License
28 stars 3 forks source link

Use Blazor + ChakraCore to dynamically compile and execute C#/Razor via WASM #58

Open Oceanswave opened 6 years ago

Oceanswave commented 6 years ago

This is a bit theoretical, but with Blazor, it should be possible to have BaristaCore compile C# code to WASM and then execute the result using the ChakraCore runtime. This would go towards one of the BaristaCore goals of having multiple languages (not just JavaScript) participate in the serverless execution environment that it provides.

Doing so would be an interesting foray to having a completely sandboxed C# runtime/serverless execution environment with BaristaCore (Remember VS for Applications?...)

Given the current goals of Blazor, and it's seeming desire to be a WASM web framework rather than a generic C# WASM generator, it may require stripping out the pertinent bits.