.net scripting languages

Viewed 19630

what do people use for scripting in .net apps. New question after MS drops IronPython

IP used to be my favorite; then Lua

What do I mean by scripting. I mean I have a large system management tool that allows users to plugin bits of smartness, this include assemblies and scripts. What language should I use for the scripts. So I need an embeddable interpreter, prefably one that integrated well with .net

The MS announcement is here

http://www.theregister.co.uk/2010/10/22/microsoft_kills_dynamic_languages_projects/

F# - several people have said F#. Is F# usable as an embedded scripting language?

EDIT: My new best friend for this is javascript; there are several quality implementations for .net

13 Answers

For those looking for .Net Standard/Core support, V8.Net now supports it. You can also use it within ASP.NET web apps if you ever wanted scripting on the back-end. I'm using it now in a VPL project (FlowScript) to add server-side scripting that also exposes select .Net types within the V8 engine.

nuget

Part of the question is what do you want the language to be like. Maybe you want the full power and flexibility of C#. Or maybe you want it to be a little simpler so people can use it who may not be real programmers.

I just posted my Silk library on GitHub for .NET. It takes the second approach and has a language without excessive punctuation and isn't case sensitive. It also is very loose with data types.

It's very easy to use. Just register the functions your code makes available to the script, compile the source to bytecode, and run it. When one of your functions are called, an event is raised and your code can implement that function.

https://sharpscript.net/ I just found this, no previous experience of it. This has similarities with Javascript, has support for templating syntax, it has various discovered and not yet discovered applications especially making websites/webapps.

Related