Integrate Scripting to Appliacation
-
Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma
-
Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma
This article might help. http://www.divil.co.uk/net/articles/plugins/scripting.asp[^]
Deja View - the feeling that you've seen this post before.
-
This article might help. http://www.divil.co.uk/net/articles/plugins/scripting.asp[^]
Deja View - the feeling that you've seen this post before.
Not in particular, it's interesting. I thing I read about the principle in c't (german)... I think this approach is something very powerful, too powerful for my needs. The sanboxing is a very important element if I want to give the scripting to users. I'd like just want to offer a dedicated domain model with only the objects and methods I want to expose in the scripting environment. I could circumvent the sandboxing by parsing the script for accesses to unallowed objects, but this is to prone to breaches... It seems there's nothing ready out of the box, but the need seams so obvious to me:confused:... AJAX seems to be the only interest for scripting... I came only reacently back to MS developping, so I'm not very avare what's available right now. I read about some stripting technology MS withdrew in .Net 2.0 or so (VSA? http://www.codeproject.com/csharp/vsascripting.asp ) I'm not technical enough to do such a thing myself in a correct manner (I'm getting too old :) ) a+ Torma -- modified at 15:10 Tuesday 24th April, 2007
-
Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma
There's an article somewhere around here that uses C# for scripting. But if you're targeting users, Lua is a nice one. Not sure about support in .NET, its been awhile since I worked with it.
This statement was never false.