BT

InfoQ Homepage News Add a REPL Console to Your .NET Applications

Add a REPL Console to Your .NET Applications

Bookmarks

Microsoft is starting to push IronPython and IronRuby as the way for end users to customize their applications. Once such example is Microsoft Dynamics, which is using IronPython to allow state and local governments to create complex fee schedules. These are used when the business rules governing a decision are too complex to be represented by normal lookup tables and change to frequently to justify a traditional development cycle.

Since Microsoft Dynamics is a closed-source application, Microsoft is turning elsewhere for examples of how dynamic languages can allow users to customize their experience. Once such example is Witty, an open source Twitter client.

A novel feature in Witty is that it includes a REPL console. Exposing the console is incredibly simple. Simply instantiate a ConsoleWindow object, pass in the objects you want your end-users to be able to access, and display it.

var console = new ConsoleWindow();
console.MainRepl.AddExternalObject("T", twitter);
console.MainRepl.AddExternalObject("U", this);
console.Show();

You can see a screen shot of Witty with the REPL console on Jimmy Schementi’s blog. The source code for Jim Deville's REPL console is available on github.

For more on Dynamic Languages on .NET, check out the Pumping Iron video on Channel 9.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • "Witty with the REPL console" link

    by Michael Krumlauf /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    The above link is broken.

  • Re: "Witty with the REPL console" link

    by Slobojan Ryan /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    The above link is broken.

    Thanks for the heads-up - this has now been fixed.

    Ryan Slobojan
    Chief Editor, InfoQ

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.