<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Neat<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Small bug: the Start/End/Pos don’t update until a key press.
Probably a simple fix. </span><span style='font-size:11.0pt;font-family:Wingdings;
color:#1F497D'>J</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Michael Foord<br>
<b>Sent:</b> Sunday, June 15, 2008 2:10 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] First cut of an interactive IronPython
Interpreterrunning in the browser<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p class=MsoNormal>2008/6/15 Jonathan Slenders <<a
href="mailto:jonathan@slenders.be">jonathan@slenders.be</a>>:<o:p></o:p></p>
<p class=MsoNormal>Good work, this looks useful. Maybe you also want to capture
the 'tab'-key -- I hate spaces for indentation.<br>
<br>
Some bug I noticed, when calling stdout.write myself: <o:p></o:p></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
This bug - along with not handling syntax errors properly - should now be fixed
(both in SVN and the online demo).<br>
<br>
Michael Foord<br>
<br>
<o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
<p class=MsoNormal>Python 2.5.0 () on silverlight<br>
The interactive browser interpreter by Michael Foord<br>
>>> import sys<br>
>>> sys.stdout.write('test')<br>
test>>> print 'a'<br>
... print 'b'<br>
... <o:p></o:p></p>
</blockquote>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
I guess it's also impossible to ever capture sys.__stdout__ or sys.__stderr__
in silverlight, apart from writing a IronPython host in c#.<br>
<br>
<br>
Jonathan<o:p></o:p></p>
<div>
<p class=MsoNormal>2008/6/15 Michael Foord <<a
href="mailto:fuzzyman@voidspace.org.uk" target="_blank">fuzzyman@voidspace.org.uk</a>>:<o:p></o:p></p>
<div>
<div>
<div>
<p class=MsoNormal>Michael Foord wrote:<o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Well, I've finally converted my
Silverlight interactive interpreter to work with Silverlight 2 Beta 2 - and it
works!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<p class=MsoNormal>Hmmm... damn. Still doesn't handle syntax errors properly.
This may well be the fault of my code though - I'll need to look into it.<br>
<br>
For non syntax-errors it seems to be working fine.<br>
<br>
If you really want to see the source you can get it from the xap file:<o:p></o:p></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
<a href="http://www.voidspace.org.uk/ironpython/silverlight-console/"
target="_blank">http://www.voidspace.org.uk/ironpython/silverlight-console/</a><o:p></o:p></p>
</div>
<p class=MsoNormal>I might start a google project to get an SVN repository for
the code.<br>
<span style='color:#888888'><br>
Michael Foord</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><a
href="http://www.voidspace.org.uk/ironpython/silverlight-console/console.html"
target="_blank">http://www.voidspace.org.uk/ironpython/silverlight-console/console.html</a><br>
<br>
There's no download yet and I've only tested on Firefox 3 and Safari (but the
Javascript works on both as far as I can tell - more work probably needed to
get it working on FF 2 and IE).<br>
<br>
It also doesn't include much of the standard library yet either - but this
could be great for tutorials and interactive documentation.<br>
<br>
Michael Foord<o:p></o:p></p>
</blockquote>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
-- <br>
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a><br>
<a href="http://www.theotherdelia.co.uk/" target="_blank">http://www.theotherdelia.co.uk/</a><br>
<a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br>
<a href="http://www.ironpython.info/" target="_blank">http://www.ironpython.info/</a><br>
<a href="http://www.resolverhacks.net/" target="_blank">http://www.resolverhacks.net/</a><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><o:p></o:p></p>
</div>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><o:p></o:p></p>
</blockquote>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
<a href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a><br>
<a href="http://www.theotherdelia.co.uk/">http://www.theotherdelia.co.uk/</a><br>
<a href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a><br>
<a href="http://www.ironpython.info/">http://www.ironpython.info/</a><br>
<a href="http://www.resolverhacks.net/">http://www.resolverhacks.net/</a><o:p></o:p></p>
</div>
</body>
</html>