BT

Your opinion matters! Please fill in the InfoQ Survey!

Add a REPL Console to Your .NET Applications

| by Jonathan Allen Follow 244 Followers on Oct 06, 2009. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread

"Witty with the REPL console" link by Michael Krumlauf

The above link is broken.

Re: "Witty with the REPL console" link by Slobojan Ryan

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

2 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT