So, using Jint or Jurassic, it's really simple to run javascript in C#. JavaScript syntax is similar to C#, and with Jint you can access .NET classes and libraries directly in your js code as if you were writing C#. Jint is more complete than Jurassic, so I'd probably use that, but would anyone make use of functions to write windows apps in javascript code? Would that be useful to anyone, or does someone know a simpler way to do that, or know another easily embedded scripting language for C#/.NET? Or would it be worthwhile to use C# as a scripting language inside of a C# application using Microsoft.CSharp to compile code into Assemblies in memory and run them there with certain libraries restricted? If anyone knows anything on the subject, please enlighten me.
I use that in many of my applications, though I use Google's V8 with .NET bindings for it. It makes scripting and modifications really easy, and I don't need to recompile shit - develop on the fly and allow users to modify behaviour to their liking.
Do you know if JScript is any good, or is V8 better? JScript has an implemented CodeDomProvider so it's quite simple to use.
Originally Posted by t7ancients
Do you know if JScript is any good, or is V8 better? JScript has an implemented CodeDomProvider so it's quite simple to use.
It doesn't really matter, unless you're trying to run some high-performance game with Javascript.
If you're talking about JScript.NET, then, well, it's fine I guess. There's nothing wrong with it. It's just not as fast as V8
Originally Posted by freedompeace
It doesn't really matter, unless you're trying to run some high-performance game with Javascript.
If you're talking about JScript.NET, then, well, it's fine I guess. There's nothing wrong with it. It's just not as fast as V8
Yeah, JScript.NET. Pretty awesome that you can compile javascript. Good for web devs to get into programming perhaps? And is V8 the fastest javascript engine out there?
Originally Posted by t7ancients
Yeah, JScript.NET. Pretty awesome that you can compile javascript. Good for web devs to get into programming perhaps? And is V8 the fastest javascript engine out there?
It's generally accepted as so. Node.js runs on it. Apple/WebKit team are making Nitro though, but I haven't seen any benchmarks yet.