Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

New Post: Culture of Windows Script Engine

Update posted here.

View Article



New Post: Correct ClearScript Cleanup

I have been using ClearScript in a Project for a while and have been using a simple cleanup operation of "engine.Dispose(); engine = null;" Looking at your included "ClearScriptConsole" I notice you...

View Article

New Post: Correct ClearScript Cleanup

Hi egooner, Calling the Dispose() method - either directly or via the using statement - is sufficient. If you don't do that, .NET's garbage collector will eventually take care of it, but it may take a...

View Article

New Post: Correct ClearScript Cleanup

Thanks for the feedback. I had hoped this was the case but was concerned that there is clearly tracking of the different instances having been created between NEW Engines telling me something was still...

View Article

New Post: ClearScript on Mono/Xamarin?

I was hoping to use ClearScript for adding JavaScript to a game written with MonoGame. Is there any chance that you could release a portable version which includes the V8 engine? What are the...

View Article


New Post: ClearScript on Mono/Xamarin?

Hello reubenbond! Unfortunately Mono doesn't support mixed-mode assemblies such as ClearScript's V8 interface (ClearScriptV8-*.dll). We'd like to redesign that layer eventually, but that effort is not...

View Article

New Post: ScriptItem performance

I noticed some performance issues with the usage of ScriptItem. What I did was I had a constructor which received a script item as argument. And because ScriptItem has accessors set to internal, I had...

View Article

New Post: ScriptItem performance

Hi blackshade,​ Why the use of dynamics? ​ .NET's dynamic infrastructure provides a convenient way to access script objects in a way that's both .NET-friendly and engine-neutral. A dictionary-style...

View Article


New Post: ScriptItem performance

Thank you for the reply. I will try and benchmark your suggestion and post the results below.

View Article


New Post: ScriptItem performance

Ok thanks! It is still +/- 60 milliseconds (ScriptItem) against +/- 3 milliseconds (String -> Json.net) on the initial run. But after that the JIT has optimized both to nano seconds. So thanks!...

View Article

New Post: ScriptItem performance

Ok I did some more benchmarking and I did the following, where rec is a flat json object.var arr = [rec, rec, rec]; var strJson = JSON.stringify(arr); new MiTable("form", arr); new MiTable("form",...

View Article

New Post: ScriptItem performance

Hi blackshade, The purpose of a script item in ClearScript is to allow .NET code to access an actual "live" script object, as opposed to a serialized copy of its data. Yes, it's definitely faster to...

View Article

New Post: ScriptItem performance

Hi, Ahh I see, I thought you would only get a snapshot of the given script item. But if you would run the script async of the c# code, the changes in scriptitem would be live. I didn't think about...

View Article


New Post: ClearScript on Mono/Xamarin?

Hi, I'm also looking to use this cross platform and have been looking at alternatives for a while, but so far Clearscript is the only one that does things the way I want it to. It was a real bummer...

View Article

New Post: ScriptItem performance

Thanks for your feedback!

View Article


New Post: ClearScript on Mono/Xamarin?

Hi Cadavre,​ How does V8.NET do it, since their library works on other platforms? What are they doing different? ​ The difference has to do with the way these projects interface managed code with...

View Article

New Post: ClearScript on Mono/Xamarin?

Thanks for the quick response! I hope you will eventually make it work cross platform, ClearScript is really good!

View Article


New Post: ClearScript on Mono/Xamarin?

By the way, I stumbled upon this thing called swig (http://www.swig.org/) while looking into using RakNet. Quote from the RakNet documentation: What is Swig? Swig is an application that generates...

View Article

New Post: ClearScript on Mono/Xamarin?

Thanks Cadavre! We'll take a look, but the issue isn't interop as much as it is the redesign and re-implementation of the ClearScriptV8 layer.

View Article

New Post: ClearScript on Mono/Xamarin?

Yeah, okay, but it might still be useful! :)

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images