What are the strengths of Lua over CSharpCodeProvider in C # for executing dynamic code?

In my scenario, I want to interpret a script file and execute methods from assemblies. What benefits does Lua offer me? If you have used both Lua and CSharpCodeProvider, please compare your experience with both.

+1


source to share


2 answers


The main advantage of C # is that it is compiled and JITted (although LUA has experimental code along these routes).

The main advantage of LUA is that it doesn't need to be compiled. It is slower but has better load times. It also has a lower bootstrap code size (for example, you don't need to type in a name using System; ... namespace MyNs {... class MyClass {... etc.).



Ultimately, LUA's dominance in the scripting world is supreme: but it can't stand up to what C # can do in the productivity world, and vice versa.

+1


source


Have you checked out IronPython? It is very similar to Lua, but is the native language of the CLR.



+1


source







All Articles