You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jurassic compile Javascript to IL, has anyone tried to convert the generated IL to cSharp? Currently I am evaluating if Jurassic could be used to support the porting of WebGL-based codes to C#.
Step1 involves wrapping non-3D Canvas dependent javascript functions with Jarassic. This would allow testing of 3D canvas dependent codes in C#.
Step2 (it would be great) if it is possible to compile non-3D canvas javascript codes to DLL. and reference the DLLs with C#
Step3 test the feasibility if the DLL could be converted to Csharp using tool like ILSpy. This would complete the complete porting from Javascript to C#.
Has anyone attempted? Could this be done? There are plenty of libraries support porting of Csharp to Javascript. There are hardly any robust Javascript to CSharp converter. Perhaps I am wrong.
The text was updated successfully, but these errors were encountered:
I am continue the discussion, perhaps this could lead to a FAQ that is part of "What Jurassic is and is not? (with regards to Javacript to Csharp converter). Thanks again for your contribution.
Jurassic is not a JS to C# converter. It is a JS engine and runtime written in C#. With some effort, you could use it to generate c# code from JS code, but without a lot of effort the generated code will be slow and ugly.
I recommend you instead use a tool which is designed for this purpose. It sounds like "Universal transpiler" is your best bet.
Jurassic compile Javascript to IL, has anyone tried to convert the generated IL to cSharp? Currently I am evaluating if Jurassic could be used to support the porting of WebGL-based codes to C#.
Step1 involves wrapping non-3D Canvas dependent javascript functions with Jarassic. This would allow testing of 3D canvas dependent codes in C#.
Step2 (it would be great) if it is possible to compile non-3D canvas javascript codes to DLL. and reference the DLLs with C#
Step3 test the feasibility if the DLL could be converted to Csharp using tool like ILSpy. This would complete the complete porting from Javascript to C#.
Has anyone attempted? Could this be done? There are plenty of libraries support porting of Csharp to Javascript. There are hardly any robust Javascript to CSharp converter. Perhaps I am wrong.
The text was updated successfully, but these errors were encountered: