With Microsoft’s Stephen Toub diving into Rust, a parallel development is emerging in the .NET ecosystem. While Toub leads the transition of GitHub Copilot's runtime from TypeScript to Rust, another developer is forging an independent path by creating a .NET compiler specifically designed for WASI.
Also Read: Programming Guide
This new initiative, known as NetWasm, seeks to fulfill the desire for a streamlined native binary that doesn't necessitate the traditional .NET runtime. The developer reflects on their long-held ambition to merge the productivity of C# with the efficiency of a native binary output, a vision that has evolved since their initial attempts in 2008.
Also Read: News: How QR Codes
NetWasm is not merely a compilation of C# into C++; rather, it utilizes a distinct approach to compile Common Intermediate Language (CIL) directly to WebAssembly. The result is a compact output that contains only the required components for runtime, allowing applications to run independently without additional dependencies.
Also Read: News: Apple Finally Folds:
The project is still in its early stages, and while there are limitations such as the absence of dynamic reflection, it is designed with a focus on efficiency and minimalism. This new direction for .NET aims to produce a lightweight ecosystem that supports essential features without unnecessary bloat, making it an intriguing option for developers looking to leverage C# within the WASI environment.
Also Read: Transforming Messy Booking Data into Clear Insights for Safari Connect's CEO
Read the original article: Dev.to
