[IronPython] Updating WebServices samples

2008-05-09 Thread Christian Muirhead
Hi - I'm writing something about using web services from IronPython at the moment, and Michael pointed me at the WebServices samples from IP 1.0.1. (here: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=47) Is there any chance that someone has updated these to work

[IronPython] Any known clr-interop concurrency issue ?

2008-05-09 Thread Sakesun Roykiattisak
Hi, I'm currently trouble-shooting concurrency issue in my IP server-application. I suspect that IP(1.1.1) has issue that concurrent calls to static method with certain argument-type can cause corruption. I'm going to try making a demonstration project tonight. However, to save my time, I w

Re: [IronPython] Updating WebServices samples

2008-05-09 Thread Sanghyeon Seo
2008/5/9 Christian Muirhead <[EMAIL PROTECTED]>: > Is there any chance that someone has updated these to work with the IP2 > architecture? If not, how much work would people expect it to be? The errors > I saw when I quickly tried to compile the C# were primarily about not being > able to find the

Re: [IronPython] Updating WebServices samples

2008-05-09 Thread Dino Viehland
And ICallable is the same - you can now mark a method w/ SpecialName and call it "Call" and it'll be invoked when you're calling the object. You can even have multiple overloads, all strongly typed, etc... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [IronPython] Any known clr-interop concurrency issue ?

2008-05-09 Thread Dino Viehland
There shouldn't be any issues here or at least we haven't had any reported and it's not obvious what it could be. One thing to consider if you're coming from a CPython background is that IronPython doesn't have a global interpreter lock and therefore there won't be any implicit locking done for

Re: [IronPython] Updating WebServices samples

2008-05-09 Thread Jimmy Schementi
I'm actually using this stuff in a talk next month, so I guess someone has to get it working. =P Christian , if you are working on this, by all means continue, otherwise when I make progress I'll let you know ~js On 5/9/08 8:46 AM, "Dino Viehland" <[EMAIL PROTECTED]> wrote: And ICallable is th

[IronPython] How to nest ScriptScopes

2008-05-09 Thread Marty Nelson
I've gone over the 2.0 B2 source code, but I'm not clear how I might create nested ScriptScopes using the API in C# One of the tests in EngineTests.cs uses "from published_context_test import x" but this is only one variable, and I'd rather do it from the C# setup side anyway. I noticed th

Re: [IronPython] How to nest ScriptScopes

2008-05-09 Thread Dino Viehland
It's not really intended that you nest the scopes yourself - usually the scopes only get nested when you have a closure. And then we'll burn references into the parent scopes tuple's directly so we might not even see nested variables (although in some cases we might due a full runtime lookup an

Re: [IronPython] How to nest ScriptScopes

2008-05-09 Thread Marty Nelson
That seems to work, although I used inner to execute (see below). [TestMethod] public void TestMethod1() { var outerscope = _env.CreateScope(); var innerscope = _env.CreateScope(); int outerInput = 3; int innerInput = 2; outerscope.SetVariable("value", outerInput

Re: [IronPython] How to nest ScriptScopes

2008-05-09 Thread Seshadri Pillailokam Vijayaraghavan
You can use C# extension methods to copy the variables without cluttering up the code too much Here's what the code would look like... internal static class Extensions{ internal static void SetOuter(this ScriptScope scope, Scri

Re: [IronPython] How to nest ScriptScopes

2008-05-09 Thread Marty Nelson
Yes, that would be a good logical next step for such code. As far as the concept of the approach, it seems like I have two approaches for producing both and outer. notation and import of outer into inner. It seems that functions that I add to outer are returned as variables as well, which i

[IronPython] Hosting IP2 Beta2 in Mono?

2008-05-09 Thread Douglas S. Blank
Does anyone have an example of IronPython2 Beta2 Hosting in C# working with Mono 1.9? I think I have all of the pieces in place, but get an error that ScriptRuntime can not be found on build. Any pointers appreciated! -Doug -- Douglas S. Blank Associate Professor, Bryn Mawr College http://cs.br

Re: [IronPython] Hosting IP2 Beta2 in Mono?

2008-05-09 Thread Curt Hagenlocher
We added Microsoft.Scripting.Core.dll in Beta2; you'll probably need to add a reference to that. On Fri, May 9, 2008 at 8:25 PM, Douglas S. Blank <[EMAIL PROTECTED]> wrote: > Does anyone have an example of IronPython2 Beta2 Hosting in C# working > with Mono 1.9? I think I have all of the pieces i