<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Script.NET</title><link>http://www.codeplex.com/scriptdotnet/Project/ProjectRss.aspx</link><description>Script .NET or S&amp;#35; is a language that provides scripting functionality in .NET applications, embedding custom functionality into CLR applications.   It is very simple, yet powerful enough to satisfy u...</description><item><title>NEW POST: Performance - should be better</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=27198</link><description>&lt;div class="wikidoc"&gt;
Hello, this time I'd like to post some good news. After such disappointing results I described above, I repeated the tests with script.net built on Irony toolkit and this time the results were completely different!&lt;br /&gt;For the simple '2*2' expression test, 1000 iterations executed in &lt;b&gt;0.4 seconds&lt;/b&gt;&lt;br /&gt;More complex data access expression (DataMutant access 'dob2.dob.data[1]') executed in &lt;b&gt;0.8 seconds&lt;/b&gt; (also 1000 iterations)&lt;br /&gt;The Irony version does a much better job - performance is comparable to Jscript.net eval. There are some API changes also, making it more intuitive to use. So, it looks like script.net is becoming a very interesting tool.&lt;br /&gt; &lt;br /&gt;Best regards&lt;br /&gt;RG&lt;br /&gt;
&lt;/div&gt;</description><author>rafal_g</author><pubDate>Tue, 06 May 2008 14:40:48 GMT</pubDate><guid isPermaLink="false">NEW POST: Performance - should be better 20080506P</guid></item><item><title>NEW POST: Saving/restoring script engine state</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=24887</link><description>&lt;div class="wikidoc"&gt;
Hi, thanx for your response. After digging a bit in script.net I think persisting the whole engine state is a bit of an overkill for my application. For the beginning, it would be enough to provide persistable 'Mutants' to hold my data. I have sent an email to you with additional questions regarding the use of mutants. &lt;br /&gt;Best regards&lt;br /&gt;RG&lt;br /&gt;
&lt;/div&gt;</description><author>rafal_g</author><pubDate>Tue, 06 May 2008 13:48:46 GMT</pubDate><guid isPermaLink="false">NEW POST: Saving/restoring script engine state 20080506P</guid></item><item><title>NEW POST: Performance - should be better</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=27198</link><description>&lt;div class="wikidoc"&gt;
Hi, script.net is an interpreted language, so I expected it to be less performant than compiled code, but acceptably fast at expression evaluation (eval function). However, current version has disappointed me totally - it seems that the interpreter is able to execute only 10-15 simple evals per second on a 2ghz machine. This is not a very impressive result, as normal compilation on the fly can be faster than that. And comparison with JScript.net eval function (which also employs an interpreter) showed a dramatic difference.&lt;br /&gt; &lt;br /&gt;1000 evals of expression &amp;quot;2 * 2&amp;quot; in Script.net took a minute and 4 seconds&lt;br /&gt;1000 evals of more complex expression in JScript.net took 0.07 seconds (and the expression was modified in each iteration to make sure it is not pre-compiled)&lt;br /&gt; &lt;br /&gt;The JScript is approx 1000 times faster in eval!&lt;br /&gt; &lt;br /&gt;Here is my script.net test code:&lt;br /&gt; &lt;br /&gt;            Script scr = Script.Compile(&amp;quot;eval('2 * 2');&amp;quot;);&lt;br /&gt;            DateTime st = DateTime.Now;&lt;br /&gt;            for (int i = 0; i &amp;lt; 1000; i++)&lt;br /&gt;            {&lt;br /&gt;                scr.Execute();&lt;br /&gt;            }&lt;br /&gt;            log.Info(&amp;quot;1000 compilations: {0}&amp;quot;, DateTime.Now - st);&lt;br /&gt; &lt;br /&gt;I know script.net is in early implementation phase, but I can't imagine why it is so slow in code interpretation. Is there any hope for it to get faster? Maybe DLR will help a bit?&lt;br /&gt; &lt;br /&gt;PS A test with '2*2' expression in jscript.net took 0.2 seconds for 1000 iterations. That's slower, but still 300 times faster than script.net. &lt;br /&gt;
&lt;/div&gt;</description><author>rafal_g</author><pubDate>Tue, 06 May 2008 13:20:01 GMT</pubDate><guid isPermaLink="false">NEW POST: Performance - should be better 20080506P</guid></item><item><title>NEW POST: Lexer/Parser with Irony?</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=24834</link><description>&lt;div class="wikidoc"&gt;
Hi!&lt;br /&gt; Yes, i have prepared an initial preview which you could download from http://www.protsyk.com/scriptdotnet.&lt;br /&gt; &lt;br /&gt; The upcoming realeases will be integrated with Irony engine. I am planning the first one in May.&lt;br /&gt; &lt;br /&gt;Best wishes&lt;br /&gt; Petro &lt;br /&gt;
&lt;/div&gt;</description><author>ppp_extr</author><pubDate>Tue, 01 Apr 2008 12:48:03 GMT</pubDate><guid isPermaLink="false">NEW POST: Lexer/Parser with Irony? 20080401P</guid></item><item><title>NEW POST: Saving/restoring script engine state</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=24887</link><description>&lt;div class="wikidoc"&gt;
Hello,&lt;br /&gt; Thank you for your interest in Script.NET.&lt;br /&gt; &lt;br /&gt; Script.NET runtime is able to persist its runtime state during application lifetime.&lt;br /&gt; However to answer your question I need more detailed information.&lt;br /&gt; If you are interested please contact me directly: piter.protsyk@gmail.com.&lt;br /&gt; &lt;br /&gt; Also, aditional features would be possible implemented on your demand.&lt;br /&gt; &lt;br /&gt;Best wishes&lt;br /&gt; petro&lt;br /&gt;
&lt;/div&gt;</description><author>ppp_extr</author><pubDate>Tue, 01 Apr 2008 12:44:56 GMT</pubDate><guid isPermaLink="false">NEW POST: Saving/restoring script engine state 20080401P</guid></item><item><title>NEW POST: Saving/restoring script engine state</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=24887</link><description>&lt;div class="wikidoc"&gt;
Hello, I am thinking about using Script.Net as a scripting language for a workflow engine. However, I don't know if it supports some features I'd like very much to have.&lt;br /&gt;The worklfow engine I'm creating would use script engine for implementing business logic and also for storing process internal data during process lifetime. Therefore it would be great if the script engine would allow me to persist its state so I wouldn't have to re-initialize it in each transaction. Also, if the script engine supported saving and restoring the state, it would be possible to implement transaction savepoints very easily. &lt;br /&gt;Is this possible with script.net?&lt;br /&gt; &lt;br /&gt;Best regards&lt;br /&gt;RG&lt;br /&gt;
&lt;/div&gt;</description><author>rafal_g</author><pubDate>Fri, 28 Mar 2008 08:28:40 GMT</pubDate><guid isPermaLink="false">NEW POST: Saving/restoring script engine state 20080328A</guid></item><item><title>NEW POST: Lexer/Parser with Irony?</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=24834</link><description>&lt;div class="wikidoc"&gt;
Hi Peter, &lt;br /&gt;you have considered ? an release of the Script .NET with Irony (Lexer/Parser) Engine.&lt;br /&gt;Very Thanks.&lt;br /&gt;JM&lt;br /&gt;
&lt;/div&gt;</description><author>jmptrader</author><pubDate>Thu, 27 Mar 2008 14:08:16 GMT</pubDate><guid isPermaLink="false">NEW POST: Lexer/Parser with Irony? 20080327P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Unit Tests updates</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:59:11 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080314P</guid></item><item><title>NEW POST: Calling AddType/AddObject only once?</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=23206</link><description>&lt;div class="wikidoc"&gt;
Hi, sorry for delaying with answer.&lt;br /&gt; &lt;br /&gt;I have hopefully implemented your request. Please consider latest sources in Source Code section.&lt;br /&gt;Here is an example:&lt;br /&gt; &lt;br /&gt;      Script s;&lt;br /&gt;      String Code, rez, test;&lt;br /&gt; &lt;br /&gt;      test = &amp;quot;Test object&amp;quot;;&lt;br /&gt;      UserContext uc = new UserContext();&lt;br /&gt;      uc.AddObject(&amp;quot;v1&amp;quot;, test);&lt;br /&gt;      uc.AddType(&amp;quot;MultiContext&amp;quot;, typeof(MultiContext));&lt;br /&gt; &lt;br /&gt;      Code = &amp;quot;rez = v1; b = new MultiContext();&amp;quot;;&lt;br /&gt;      s = Script.Compile(Code);&lt;br /&gt;      s.Execute(uc);  // You can use UserContext object in any other script.&lt;br /&gt;      rez = (string)s.Lookup(&amp;quot;rez&amp;quot;);&lt;br /&gt; &lt;br /&gt;If you have still question, please email: piter.protsyk@gmail.com &lt;br /&gt;
&lt;/div&gt;</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:58:49 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling AddType/AddObject only once? 20080314P</guid></item><item><title>CLOSED ISSUE: Calling AddType/AddObject only once</title><link>http://www.codeplex.com/scriptdotnet/WorkItem/View.aspx?WorkItemId=4052</link><description>Calling AddType&amp;#47;AddObject only once&lt;br /&gt;</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:55:12 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: Calling AddType/AddObject only once 20080314P</guid></item><item><title>CLOSED ISSUE: IndexOf evalutation issues</title><link>http://www.codeplex.com/scriptdotnet/WorkItem/View.aspx?WorkItemId=2781</link><description>Hya,&lt;br /&gt;&lt;br /&gt;Thanks for the fix for the negative conditions, but now i&amp;#39;m having a bit of an awkward issue, I need to do a Like comparison, to do this, i&amp;#39;m using IndexOf. So if the result of the IndexOf is greater than -1 the string contains the value.&lt;br /&gt;&lt;br /&gt;The problem is that i&amp;#39;m getting the following exception on the following evaluation &amp;#40;o.Email.IndexOf&amp;#40;&amp;#39;&amp;#64;&amp;#39;&amp;#41;&amp;#62;-1&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;Unhandled Exception&amp;#58; System.InvalidCastException&amp;#58; Null object cannot be converted to a value type.&lt;br /&gt;   at System.Convert.ChangeType&amp;#40;Object value, Type conversionType, IFormatProvider provider&amp;#41;&lt;br /&gt;   at System.Convert.ChangeType&amp;#40;Object value, Type conversionType&amp;#41;&lt;br /&gt;   at ScriptDotNet.ExpressionEvaluator.GE&amp;#40;Object o1, Object o2&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.IfStatement.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Script.Execute&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;I managed to fix it by having &amp;#40;o.Email.IndexOf&amp;#40;&amp;#39;&amp;#64;&amp;#39;&amp;#41;&amp;#62;&amp;#61;0&amp;#41; instead, but it&amp;#39;s a bit awkward that you can&amp;#39;t use negative numbers on a evaluation&amp;#33;...&lt;br /&gt;&lt;br /&gt;Any help would be appreciated,&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Pedro Costa&lt;br /&gt;</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:55:11 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: IndexOf evalutation issues 20080314P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Migration on Visual Studio 2008, the next release will be on .NET Framework 3.5</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:55:09 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080314P</guid></item><item><title>COMMENTED ISSUE: IndexOf evalutation issues</title><link>http://www.codeplex.com/scriptdotnet/WorkItem/View.aspx?WorkItemId=2781</link><description>Hya,&lt;br /&gt;&lt;br /&gt;Thanks for the fix for the negative conditions, but now i&amp;#39;m having a bit of an awkward issue, I need to do a Like comparison, to do this, i&amp;#39;m using IndexOf. So if the result of the IndexOf is greater than -1 the string contains the value.&lt;br /&gt;&lt;br /&gt;The problem is that i&amp;#39;m getting the following exception on the following evaluation &amp;#40;o.Email.IndexOf&amp;#40;&amp;#39;&amp;#64;&amp;#39;&amp;#41;&amp;#62;-1&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;Unhandled Exception&amp;#58; System.InvalidCastException&amp;#58; Null object cannot be converted to a value type.&lt;br /&gt;   at System.Convert.ChangeType&amp;#40;Object value, Type conversionType, IFormatProvider provider&amp;#41;&lt;br /&gt;   at System.Convert.ChangeType&amp;#40;Object value, Type conversionType&amp;#41;&lt;br /&gt;   at ScriptDotNet.ExpressionEvaluator.GE&amp;#40;Object o1, Object o2&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Expression.evaluate&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.IfStatement.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.JsProg.Execute&amp;#40;ScriptContext Context&amp;#41;&lt;br /&gt;   at ScriptDotNet.Script.Execute&amp;#40;&amp;#41;&lt;br /&gt;&lt;br /&gt;I managed to fix it by having &amp;#40;o.Email.IndexOf&amp;#40;&amp;#39;&amp;#64;&amp;#39;&amp;#41;&amp;#62;&amp;#61;0&amp;#41; instead, but it&amp;#39;s a bit awkward that you can&amp;#39;t use negative numbers on a evaluation&amp;#33;...&lt;br /&gt;&lt;br /&gt;Any help would be appreciated,&lt;br /&gt;&lt;br /&gt;Kind Regards,&lt;br /&gt;Pedro Costa&lt;br /&gt;Comments: ** Comment from web user: ppp_extr ** &lt;p&gt;Seems, this is fixed in the latest version. If it is still appears please e-mail me&amp;#58; piter.protsyk&amp;#64;gmail.com&lt;/p&gt;</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:53:13 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: IndexOf evalutation issues 20080314P</guid></item><item><title>CREATED ISSUE: Calling AddType/AddObject only once</title><link>http://www.codeplex.com/scriptdotnet/WorkItem/View.aspx?WorkItemId=4052</link><description>Calling AddType&amp;#47;AddObject only once&lt;br /&gt;</description><author>ppp_extr</author><pubDate>Fri, 14 Mar 2008 14:49:57 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Calling AddType/AddObject only once 20080314P</guid></item><item><title>NEW POST: Calling AddType/AddObject only once?</title><link>http://www.codeplex.com/scriptdotnet/Thread/View.aspx?ThreadId=23206</link><description>&lt;div class="wikidoc"&gt;
Hi, I'm trying to use Script.NET to add scripting to an application I'm working on, but it seems every time I want to compile/execute a block of code I have to AddType/AddObjects, which turns out to be a real detriment to performance since there are lots of objects/types I'd like to add. Is there any way that I can just call it once, and have those objects/types be accessible when I execute another block of code?&lt;br /&gt; &lt;br /&gt;Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>foahchon</author><pubDate>Sun, 02 Mar 2008 17:51:12 GMT</pubDate><guid isPermaLink="false">NEW POST: Calling AddType/AddObject only once? 20080302P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Improvements</description><author>ppp_extr</author><pubDate>Fri, 25 Jan 2008 15:37:50 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080125P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Resolved problem with inner class name resolution in new expression</description><author>ppp_extr</author><pubDate>Tue, 15 Jan 2008 14:31:59 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080115P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Another UnitTest</description><author>ppp_extr</author><pubDate>Sat, 12 Jan 2008 13:20:18 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080112P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Strings changes</description><author>ppp_extr</author><pubDate>Sat, 12 Jan 2008 09:27:13 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080112A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/scriptdotnet/SourceControl/ListDownloadableCommits.aspx</link><description>Verification Improvements</description><author>ppp_extr</author><pubDate>Fri, 11 Jan 2008 11:05:15 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080111A</guid></item></channel></rss>