A scripting language for your (web)app with DLR or Roslyn(www.progware.org)

submitted by iwannisiwannis(452) 6 months, 25 days ago

How to provide a scripting language to your users of your (web)app by using the Dynamic Language Runtime (DLR) and IronPython, and then the services provided by the Roslyn CTP with C#.

4 comments |category: |Views: 34

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by iwannisiwannis(452) 6 months, 25 days ago +1

Good point. Security is the main concern in this and shiuld be taken seriously. With the DLR approach the only things made available to your app are the ones exposed by the objects you add in the scope. Therefore such danger does not exist. In Roslyn I have to check it out but my first hunch is that since we are not adding the System.IO namespace to the engine, those "dangerous" methods will not be available.

Reply

posted by dpetersondpeterson(4397) replied to iwannisiwannis(452), 6 months, 25 days ago 0

Cool, wasn't sure if Rosyln provided access to anything by default.

Reply

posted by dpetersondpeterson(4397) 6 months, 25 days ago 0

Seems very cool, but is there security in place to disable access to certain parts of the .Net Framework? For instance, could someone use System.IO and wipe out files on the web server?

Reply

posted by NoldorinNoldorin(829) 6 months, 23 days ago 0

Nice article. This draws a good analogy between the new Roslyn method of making a static language like C# available as a scripting language, where the DLR/dynamic languages traditionally ruled (or before that even more primitive methods).

Reply

information Login or create an account to comment on this story