Decompile to JavaScript #3214
-
I really love the output of the decompiler from IL to C#, the output is very natural looking, well done! This might be a weird thought, but I am wondering it it would be possible to create a decompiler to JavaScript? I'm thining of an equivalent of a C# equivalent of Fable for F#. It would be nice to be able to write web apps in C# without having to use Web Assembly. |
Beta Was this translation helpful? Give feedback.
Answered by
siegfriedpammer
Jun 2, 2024
Replies: 1 comment 3 replies
-
Decompile to JS might not be the best path - going from valid C# (yes, that is what we focus on) to JS should be the better option. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you probably want something like https://github.com/SharpKit/SharpKit (a C#-to-JavaScript compiler) or https://github.com/sq/JSIL (an MSIL-to-JavaScript compiler). This is out-of-scope of the ILSpy project, because we focus on displaying .NET IL byte-code and assembly metadata as well as trying to reconstruct the original C# code from IL by detecting and reversing patterns commonly used by C# compilers. Note that both of the previously mentioned projects seem to be abandoned, but the second one even uses an old version (pre-v3.0?) of the ILSpy decompiler engine to get a higher-level view of the IL byte-code.
My impression is that .NET-to-JavaScript is somewhat dead since the advent o…