Software Alternatives & Reviews

.NET Blazor

JSIL OpenAPI Generator
  1. 1
    JSIL is an open source compiler that turns .NET applications, written in C# or VB.NET, into fast readable JavaScript.
    At the very end of the blogpost the author asks why not compile C# to JavaScript, like F# (Fable) does? The author thinks that would be the best solution overall, and is surprised it has not happened yet. In fact that has happened, see JSIL (http://jsil.org/, which compiles .NET bytecode to JS) and also SharpKit (<a href="https://github.com/SharpKit/SharpKit">https://github.com/SharpKit/SharpKit</a> which is built on Roslyn). But this will not necessarily be any better than compiling to wasm. It avoids the .NET interpreter, which decreases the download, but it will still need to bundle a lot of library support code. And getting the language semantics exactly right - including features like C# finalizers which do not have direct support in JS - is tricky, unlike with wasm. And it won't benefit from the speed of the wasm implementation in AOT mode (which Blazor supports), which can be much faster than JS. Compiling to JS definitely still makes sense in some cases, but it isn't an idea that Microsoft or the .NET community has somehow overlooked. It has been done and it has its own tradeoffs.

    #Development Tools #Website Builder #No Code 2 social mentions

  2. OpenAPI Generator enables you to generate documentation, clients, and servers from OpenAPI 2.0/3.x documents without hassle.
    Pricing:
    • Open Source
    Yep. For frontend use, I think https://www.npmjs.com/package/openapi-typescript is the most widely-used/well-regarded, though https://www.npmjs.com/package/orval seems to me to have some nicer features like react-query support. There are other options too, I'd just stay away from "_the_ openapi generator" (https://openapi-generator.tech/) which does a pretty poor job IMO. Disclaimer: I'm the founder of a company doing SDKs commercially, but we don't focus on the frontend right now, and our free plan is still in beta.

    #Development #Tool #Online Services 39 social mentions

Discuss: .NET Blazor

Log in or Post with