M
M
Melonwatr12020-05-30 07:10:50
C++ / C#
Melonwatr1, 2020-05-30 07:10:50

How does C#/F# work in the browser via WebAssemly and what does it have to do with .NET?

What tools are used to launch C#/F# in the browser. Isn't the whole framework loaded to the client before work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danila Valkovets, 2020-05-31
@NTDV

https://docs.microsoft.com/en-us/aspnet/core/blazo...
And read on, on and on)

V
Vasily Bannikov, 2021-07-06
@vabka

Now there have been some changes, so I will write a new answer.
If you use wasm, then there are two ways:
1. Really drag the entire runtime (mono) and dlls to the front
2. AOT compilation of all code at once in wasm - this appeared in .NET 6. In this case, neither dlls nor runtime no need to drag.
In the case of F#, there is another way - Fable.
When using Fable, F# will be transpiled to JS. Naturally, in this case, heaps of libraries will not be available.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question