Script.NET for Compact Framework

March 17th, 2009

Today I am glad to announce the first version of Script.NET which is able to run on Compact Framework (3.5).

It could be downloaded by the following link:

Script.NET for CF.

Also I would like to thank Steve Higgins without whom CF version of Script.NET most probably would not appear.

Meantime, in the nearest future I will produce a Silverlight version of Script.NET.

Synchronuos start of many instances of the same process

February 27th, 2009

Suppose you need to start 5 instances of the same process simultaneously. There are no problems until those process does not use resources exclusively. For example they are trying to write to the same log file at the same time:

config1.GIF

In this case you will need to synchronize them in a some way. You may want to make those processes to run some sections of code in a mutually exclusive mode:

config2.GIF

 This may be naturally achieved by introducing a mutex synchronization. The sample below shows this approach on practice: mutex.zip

To see the results start several instances of this application at the same time, and the release mutex lock by pressing any key on the application’s console. You will see how other processes will react on this event:

synchronizedstart.JPG

Script.NET 1.2 is comming!

February 20th, 2009

Today I am glad to announce a new improved version of Script.NET. It got its number 1.2. It is not yet a replacement for a previous branch, but is a more treated as public community preview version to gather your feedback.

You may find a download-able package by the link below:

Download Script.NET 1.2

This version achieved a new milestone in the continuous development and improvement of scripting engine. Now, it is even more customizable, more thread safe and more stable then previous releases.

Current version is open for functionality requests and suggestions. So please go ahead and email them: piter.protsyk@gmail.com  

Please expect official release of the renewed Script.NET in May together with a new web site containing more complete help information, new tutorials and examples.

Оставьте место для чуда!

February 4th, 2009

Недавно я наткнулся на книгу Стивена Хокинга, “Краткая история времени”. В ней автор пытается дать своё толкование истории и происхождения Вселенной, всячески подчеркивая свой неоспоримый авторитет в этой области.

Но есть одно “но”: это принцип неопределённости, который часто упоминается в книге. А говорит, он о том, что как бы нам не хотелось, мы не можем измерить одну величину, не повлияв при этом на другую. Для науки это означает, что какие бы точные методы измерения не использовались, какие бы совершенные теории не изобрел бы человеческий гений - всегда найдется место для “неопределенности”, всегда найдётся место для “чуда”.

Так вот, в этот кризисный для нас и для всего мира время, вероятно, не стоит гнаться за несбыточными надеждами, может просто стоит оставить место для чуда?

Please, leave a place for a miracle!

I recently came across a book by Stephen Hawking, “A Brief History of Time”. The author tries to give his interpretation of the history and origin of the universe there, often stressing his indisputable authority in this field. But its ok, he is really great scientist.

But there is one “but”: it is the principle of uncertainty, which is often mentioned in the book. And it says that no matter how hard we’d want we will be unable to measure one value, while not predictably affecting the other. For a natural science, this means that whatever exact measurement methods are not used, whatever the theory is not invented by a genius of a man - there will always be a place for the “uncertainty”, there will always be a place for “miracle.”

So, in this crisis time for all of us in the world we’d probably should not pursue delusive hopes, but may be simply leave a place for a miracle?

Script.NET Video Tutorial

January 30th, 2009

This post lists video tutorials about Script.NET. I have decided to create them after watching presentations from the latest PDC conference. It is true that: “its better once to see than ten times to hear”.

I hope it will simplify the use of Script.NET for a new users and will help me to explain advanced concepts of the language.

Getting started with Script.NET

Describes basic concepts of Script.NET together with simple example of interaction between script and hosting .NET application

  • Presentation: AVI,
  • Examples used in presentation: BIN.

Using Contracts in Script.NET

Explains contracts and their usage in Script.NET to produce verifiable scripts.

  • Presentation: AVI.

Making .NET application Scriptable 

In this demo I will show how to make existing .NET application available to the script. The script will be able to interact with the hosting application and manipulate with its objects using ObjectModel exposed to the script runtime.

Please share you feedbacks at: piter.protsyk@gmail.com

More on Script.NET . . .