Re: [IronPython] Compiling IronPython for .NET 3.5

2011-05-06 Thread Tomas Matousek
Do not change any project settings. Just select build configuration v2Debug or v2Release. The default configuration Debug builds for V4. Tomas From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Raghavendra Chandrashekara Sent: Friday, May 06,

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Tomas Matousek
Couldn't you just subclass Type? It's methods are virtual and can be overridden. I don't think you need to emit a real RuntimeType. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Keith Rome Sent: Thursday,

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Tomas Matousek
it in Silverlight. Is this being relaxed in v5? Keith Rome Senior Consultant and Architect MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS Wintellect | 770.617.4016 | kr...@wintellect.com www.wintellect.com On Apr 14, 2011, at 6:49 PM, Tomas Matousek tomas.matou...@microsoft.com wrote

Re: [IronPython] Writing cross-language libraries that appear native

2011-04-04 Thread Tomas Matousek
Re: 1. MutableString is convertible to String, so why would you need an object parameter? Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Doug Blank Sent: Monday, April 04, 2011 8:25 AM To: Discussion of

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-25 Thread Tomas Matousek
It's fixed - a trivial change: https://github.com/IronLanguages/main/commit/a8d9bc96aefcdb30bfd93a091b60ffb8fa4a8e4a Tomas -Original Message- From: Doug Blank [mailto:doug.bl...@gmail.com] Sent: Friday, March 25, 2011 4:54 AM To: Tomas Matousek Cc: Discussion of IronPython Subject

Re: [IronPython] The return value (out)

2011-03-25 Thread Tomas Matousek
This should work: result, pick = EntityPick(entity) That is, out arguments are returned bundled in a tuple with the result of the method. Tomas From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Afan Olovcic Sent: Friday, March 25, 2011 6:56 PM

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-24 Thread Tomas Matousek
Done. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Tomas Matousek Sent: Wednesday, March 23, 2011 5:27 PM To: Doug Blank Cc: Discussion of IronPython Subject: Re: [IronPython] Building IronPython/IronRuby

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-24 Thread Tomas Matousek
It seems that we just need to disable XML warning in Microsoft.System.Core project. Tomas -Original Message- From: Doug Blank [mailto:doug.bl...@gmail.com] Sent: Thursday, March 24, 2011 10:00 AM To: Tomas Matousek Cc: Discussion of IronPython Subject: Re: [IronPython] Building

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Tomas Matousek
However, it appears that building the v2... targets doesn't work right now This should be fixed now. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Wednesday, March 23, 2011 8:05 AM To: Doug

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Tomas Matousek
4) You don't need to do this. Use IronPython.Mono.sln to build IronPython and IronRuby.sln to build IronRuby. Those 2 solutions should work on Mono. DLR is built by both as it is a dependency. No need to build Dlr.sln: it includes both languages plus additional test projects - as you noticed

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Tomas Matousek
: Wednesday, March 23, 2011 11:48 AM To: Discussion of IronPython Cc: Tomas Matousek; Jeff Hardy Subject: Re: [IronPython] Building IronPython/IronRuby for Mono? Yes! Just learning ... perhaps I missed a step with git or something? ... but trying to follow along on this. I am trying to build an IronPython

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Tomas Matousek
I see, I guess I forgot to add these configs to IronPython.Mono.sln. But they shoud certainly be there. Tomas -Original Message- From: Doug Blank [mailto:doug.bl...@gmail.com] Sent: Wednesday, March 23, 2011 3:16 PM To: Tomas Matousek Cc: Discussion of IronPython Subject: Re

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Tomas Matousek
I'll add them. Tomas -Original Message- From: Doug Blank [mailto:doug.bl...@gmail.com] Sent: Wednesday, March 23, 2011 4:51 PM To: Tomas Matousek Cc: Discussion of IronPython Subject: Re: [IronPython] Building IronPython/IronRuby for Mono? Yes! On Wed, Mar 23, 2011 at 6:26 PM, Tomas

Re: [IronPython] IronPython 2.7.1 3.x Development

2011-03-16 Thread Tomas Matousek
Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Markus Schaber Sent: Wednesday, March 16, 2011 12:24 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython 2.7.1 3.x Development Hi, Von Tomas Matousek As I wrote, we

Re: [IronPython] IronPython 2.7.1 3.x Development

2011-03-15 Thread Tomas Matousek
The assemblies are strongly named so I don't think that the name change would be necessary. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Tuesday, March 15, 2011 11:08 AM To: Discussion of

Re: [IronPython] IronPython Hosting ?

2011-02-28 Thread Tomas Matousek
Let's file Hosting API feature requests, ranging from simple helpers, useful tweaks or something more complex, as work items on IronPython or IronRuby CodePlex site, so that we can track them. Tomas -Original Message- From: users-boun...@lists.ironpython.com

Re: [IronPython] Silent install of IronPython

2011-02-22 Thread Tomas Matousek
Binaries are installed into the GAC. Use http://ironpython.codeplex.com/releases/view/61395#DownloadId=210406 if you need x-copy deployment (i.e. just copy files w/o running an installer). Tomas From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of

Re: [IronPython] Road to IronPython 2.7 (update)

2011-02-21 Thread Tomas Matousek
IronPython.Mono.sln should build fine on Mono 2.10 RC2. Tomas From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Tristan Zajonc Sent: Monday, February 21, 2011 6:11 PM To: Discussion of IronPython Subject: Re: [IronPython] Road to IronPython 2.7

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Tomas Matousek
build. On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: What is your installation dir/file layout? -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Andrew Jorgensen Sent: Thursday

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Tomas Matousek
, 0x7fff01eb9580) = -1 ENOENT (No such file or directory) On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen and...@jorgensenfamily.us wrote: Yes, that should be fine, I'll give it a try and see if it can load anything. On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek tomas.matou...@microsoft.com wrote

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Tomas Matousek
at 10:23 AM, Tomas Matousek tomas.matou...@microsoft.commailto:tomas.matou...@microsoft.com wrote: The expected layout is: /usr/lib/ironruby/bin ir.exe IronRuby.dll IronRuby.Libraries.dll IronRuby.Libraries.Yaml.dll Microsoft.Scripting.dll Microsoft.Dynamic.dll

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Tomas Matousek
Jorgensen Sent: Friday, February 11, 2011 6:44 PM To: Discussion of IronPython Cc: ironruby-c...@rubyforge.org Subject: Re: [IronPython] Contents of Lib (packaging for RPM) On Fri, Feb 11, 2011 at 7:28 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: Yes, it is possible. You shouldn't need

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Tomas Matousek
...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Andrew Jorgensen Sent: Friday, February 11, 2011 7:14 PM To: Discussion of IronPython Cc: ironruby-c...@rubyforge.org Subject: Re: [IronPython] Contents of Lib (packaging for RPM) On Fri, Feb 11, 2011 at 8:03 PM, Tomas

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Tomas Matousek
What is your installation dir/file layout? -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Andrew Jorgensen Sent: Thursday, February 10, 2011 2:52 PM To: Discussion of IronPython Cc: ironruby-c...@rubyforge.org Subject:

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-09 Thread Tomas Matousek
[Including IronRuby list]. We have a script in Msi directory called harvest.rb. This is used by another scripts Msi\Python\generate_wxis.rb and Msi\Ruby\generate_wxis.rb that launch it with Python and Ruby specific parameters, respectively. The generated .wxi files fully describe the files and

Re: [IronPython] [Ironruby-core] Preparing 1.1.2 release

2011-02-07 Thread Tomas Matousek
Re binaries - 3 flavors are currently built: 1) Desktop CLR 4.0 (.NET FW 4.0, Mono 2.10) 2) Core CLR 4.0 (Silverlight 4.0, Moonlight) 3) Core CLR 3.0 (Windows Phone 7) So yes, the binaries should be equivalent. They won't be byte-for-byte equal, but should functionally be the

Re: [IronPython] Switching DLR tests from MSTest to NUnit

2011-02-01 Thread Tomas Matousek
I have an experience with xUnit.net (http://xunit.codeplex.com/wikipage?title=WhyDidWeBuildXunitreferringTitle=Home), so I would personally prefer that one. It has a pretty good VS integration. I haven't used NUnit. If you prefer it I don't have objections. One comment on the placement of the

Re: [IronPython] codeplex-dlr solution

2011-01-30 Thread Tomas Matousek
Yes, some code is missing. I'll add Sympl today. Also CodePlex-DLR.sln is not needed any more (some changes might be needed to remove it, I plan to look at it). Dlr.sln - solution that rebuilds everything (Ipy, Irb, test assemblies, etc) IronPython.sln

Re: [IronPython] Proposed Release Schedule for 2.7

2011-01-30 Thread Tomas Matousek
I propose we sync IronRuby releases with IronPython as follows: IronRuby - IronPython - date 1.1.2 - Beta 2 - February 6 none - RC1 - February 20 none - RC2 - February 27 1.1.3 - RTM - March 6 Tomas -Original Message- From: users-boun...@lists.ironpython.com

Re: [IronPython] Proposed Release Schedule for 2.7

2011-01-30 Thread Tomas Matousek
Subject: Re: [IronPython] Proposed Release Schedule for 2.7 Sounds good to me. Does the DLR version still need to be bumped? - Jeff On Sun, Jan 30, 2011 at 1:37 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: I propose we sync IronRuby releases with IronPython as follows: IronRuby

Re: [IronPython] Adding Unit Tests

2011-01-11 Thread Tomas Matousek
IronRuby doesn't use the test runner. IronRuby's harness is written in Ruby (Languages\Ruby\Tests\Scripts\irtests.rb). It's run by a previous IronRuby version checked in to Util\IronRuby. Tomas -Original Message- From: users-boun...@lists.ironpython.com

Re: [IronPython] how to build ironpython on ubuntu from sources?

2011-01-08 Thread Tomas Matousek
Miguel, is a Windows installer available for 2.10? I'm working on fixing the issues that block IronRuby and IronPython build on Mono. I use 2.8.2 right now, but would like to try 2.10. BTW, is SecurityManager.GetStandardSandbox implemented on 2.10? It is missing from 2.8.2, which blocks Ruby's

Re: [IronPython] how to build ironpython on ubuntu from sources?

2011-01-08 Thread Tomas Matousek
: miguel.nov...@gmail.com [mailto:miguel.nov...@gmail.com] On Behalf Of Miguel de Icaza Sent: Saturday, January 08, 2011 5:30 PM To: Tomas Matousek; Sebastien Pouliot Cc: Discussion of IronPython Subject: Re: [IronPython] how to build ironpython on ubuntu from sources? Hello, Miguel, is a Windows

[IronPython] FW: Writing a Compiler framework: Static typing use of the DLR

2011-01-05 Thread Tomas Matousek
Forwarding to d...@microsoft.com. I'm not sure I understand what you want to achieve. Could you describe functionality your framework provides? Every language that integrates with DLR might use a different way of expressing late bound calls. C#'s dynamic type is one way of doing that. The

Re: [IronPython] SciPy

2010-12-20 Thread Tomas Matousek
You don't necessarily need to make this choice. IronPython and IronRuby mostly talk to each other (modulo bugs, which I would be happy to fix if possible :-). You can write your helpers in Python and let your users call them from Ruby (and vice versa). Or your helpers could be written in C# or

Re: [IronPython] IronPython code to call IronRuby fails; equivalent? C# code works

2010-04-16 Thread Tomas Matousek
The problem is probably caused by assembly load (IronRuby/DLR assemblies are loaded in a different context). To fix this you can install IronPython and IronRuby to GAC. Using gacutil tool (http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx) from elevated command line gacutil /i

Re: [IronPython] CodeContext went from language-independent to IronPython-specific

2010-03-21 Thread Tomas Matousek
Could you be specific about your scenario? What exactly is an application-defined context and the classes that would need an access such object? Tomas From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Paul Felix Sent: Sunday, March 21, 2010 5:54

Re: [IronPython] Running the IronPython tests (on Mono)

2010-02-22 Thread Tomas Matousek
To run IronRuby tests you can use Merlin\Main\Languages\Ruby\Scripts\irtests.rb. But it won't run on Linux as is due to dependencies on various batch files. We should replace all of them by Ruby scripts in future so that it runs on Linux as well. Tomas -Original Message- From:

Re: [IronPython] Using ruby module from python.

2009-12-08 Thread Tomas Matousek
}) Traceback (most recent call last): File string, line 1, in module SystemError: SOAP::Mapping::MappingError getattr(client, 'GetBalance')({':providerId':3}) Traceback (most recent call last): File string, line 1, in module SystemError: SOAP::Mapping::MappingError Tomas Matousek wrote

Re: [IronPython] Using ruby module from python.

2009-11-30 Thread Tomas Matousek
Our Python-Ruby interop is not quite done yet so you need to use some workarounds. The easiest way how to get WSDL factory instance would be to write a simple Ruby script that loads it: == wsdl.rb == require 'soap/wsdlDriver' def get_factory SOAP::WSDLDriverFactory end === And then you

Re: [IronPython] problems to migrate from Ipy 1.1 to 2.6rc1

2009-10-14 Thread Tomas Matousek
: Wednesday, October 14, 2009 7:39 PM To: Discussion of IronPython Cc: Tomas Matousek Subject: RE: [IronPython] problems to migrate from Ipy 1.1 to 2.6rc1 Ernesto Cullen wrote: I need the assemblies signed, so I have to build the sources With any key, or your own key? The IronPython 2.6 RC1 contains

Re: [IronPython] CallTargetX delegates

2009-09-14 Thread Tomas Matousek
We’ve made change recently (last week) on .NET 2.0 you’ll need to use a different namespace and assembly: import clr clr.AddReference(‘Microsoft.Scripting’) from Microsoft.Scripting.Utils import Func Func[object, object](targetCallableHere) Tomas From: users-boun...@lists.ironpython.com

Re: [IronPython] CallTargetX delegates

2009-09-14 Thread Tomas Matousek
Subject: Re: [IronPython] CallTargetX delegates Tomas Matousek wrote: We’ve made change recently (last week) on .NET 2.0 you’ll need to use a different namespace and assembly: import clr clr.AddReference(‘Microsoft.Scripting’) from Microsoft.Scripting.Utils import Func Func[object

Re: [IronPython] IronPython and IronRuby interop with IronRuby 0.9

2009-08-22 Thread Tomas Matousek
This works: import clr clr.AddReference('IronRuby') from IronRuby import Ruby from System import Array paths = [r'C:\Binaries\IronRuby\lib\IronRuby', r'C:\Binaries\IronRuby\lib\ruby\1.8'] array = Array[str](paths) engine = Ruby.CreateEngine() engine.SetSearchPaths(array) scope =

Re: [IronPython] Preloading An Engine Instance With References

2009-08-09 Thread Tomas Matousek
You can load assemblies to the runtime via ScriptRuntime.LoadAssembly. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jesse Wiles Sent: Sunday, August 09, 2009 10:17 PM To: users@lists.ironpython.com Subject:

[IronPython] Project versions updated to 2010

2009-07-29 Thread Tomas Matousek
We have just updated ToolsVersion attribute in .csproj files included in IronPython and IronRuby solutions to 4.0. This change will soon show up in CodePlex and GIT sources. It allows to open these projects in Visual Studio 2010 (using IronPython4.sln or Ruby4.sln). The binaries produced by

Re: [IronPython] Fwd: [Mono-dev] Current 'xbuild' status

2009-06-10 Thread Tomas Matousek
It would be great if we could also build IronRuby. It currently crashes: C:\M1\Merlin\Main\Languages\RubyC:\Program Files\Mono-2.4.2\bin\xbuild.bat Ruby.sln XBuild Engine Version 0.1 Mono, Version 2.4.2.0 Copyright (C) Marek Sieradzki 2005. All rights reserved. Unhandled Exception:

Re: [IronPython] Running Ruby code from Python, which is running in Ruby

2009-05-11 Thread Tomas Matousek
There are still some issues (running Python code in Ruby didn't seem to work) If you run into any issues let us know - ideally file a bug at http://ironruby.codeplex.com or http://ironpython.codeplex.com including a repro. We would like to make the language interop as smooth as possible.

Re: [IronPython] Global and Local ScriptScope

2009-01-06 Thread Tomas Matousek
The current scope chaining is rather a remnant of a legacy technique of using Scopes for local variables in IronPython and JScript. The hosting API doesn't support chaining by design (this might change in future). The best option for you for now, I think, is to implement IAttributesCollection.

Re: [IronPython] app.config for ipy script?

2008-11-30 Thread Tomas Matousek
You need to edit ipy.exe.config next to ipy.exe. Tomas From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yash Ganthe Sent: Sunday, November 30, 2008 4:00 AM To: users@lists.ironpython.com Subject: [IronPython] app.config for ipy script? I would like to invoke WCF service and hence

Re: [IronPython] SystemExitException ?

2008-11-21 Thread Tomas Matousek
It's handled for you in ExecuteProgram and the exit code is returned. It's this handling that makes the difference between Execute and ExecuteProgram. ExecuteProgram is designed to process any program exit mechanism that the language has so that the host doesn't need to care and could be

Re: [IronPython] IronPython 2: Oddity with Hosting API from within IronPython

2008-11-01 Thread Tomas Matousek
I think nobody answered this question yet: As a minor supplementary question, how do I get a reference to the default ScriptScope on an engine? Is there any performance advantage in using the default one, can I replace it, and does replacing it remove any performance benefits we might have

Re: [IronPython] Oddity with Setting Output Stream

2008-11-01 Thread Tomas Matousek
You can also pass new UTF8Encoding(false) instead of Encoding.UTF8. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Saturday, November 01, 2008 3:18 PM To: Discussion of IronPython Subject: Re: [IronPython] Oddity with Setting

Re: [IronPython] Specified language provider type is not registered.

2008-09-02 Thread Tomas Matousek
The problem in your code is that you update setup variable after it is passed to ScriptRuntime. You need to first initialize the setup and then pass it to runtime ctor (the ctor uses the setup object to create and configure DLR and once that done no changes are possible).

Re: [IronPython] Specified language provider type is not registered.

2008-09-02 Thread Tomas Matousek
useful information out of DLR. Tomas From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KE Sent: Tuesday, September 02, 2008 3:34 PM To: Tomas Matousek; 'Discussion of IronPython' Subject: Re: [IronPython] Specified language provider type is not registered. Oh D'uh, Thanks! It got

Re: [IronPython] CodeContext

2008-08-25 Thread Tomas Matousek
] On Behalf Of Huzaifa Sent: Saturday, August 23, 2008 8:31 PM To: users@lists.ironpython.com Subject: Re: [IronPython] CodeContext I am try to get traceback object , for that i am trying different things Tomas Matousek wrote: The class might be actually be called ExceptionService in your bits

Re: [IronPython] CodeContext

2008-08-23 Thread Tomas Matousek
Does ExceptionOeprations class provide you the information you need or is something missing? You can get an instance via engine.GetServiceExceptionOperations(). Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huzaifa Sent: Saturday, August 23,

Re: [IronPython] CodeContext

2008-08-23 Thread Tomas Matousek
The class might be actually be called ExceptionService in your bits. It was renamed recently. Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek Sent: Saturday, August 23, 2008 7:53 PM To: Discussion of IronPython Subject: Re

Re: [IronPython] How to call a function passing parameters

2008-08-22 Thread Tomas Matousek
You can do: var runtime = ScriptRuntime.Create(); var scope = runtime.CreateScope(python); scope.Execute(@ def test(a): return a ); var test = scope.GetVariableFuncstring, string(test); Console.WriteLine(test(my_a)); Tomas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [IronPython] Horrible performance regression of exec on IP2

2008-08-11 Thread Tomas Matousek
The heuristics for function definitions won't actually be a good one. You actually *want* function and classes definitions to be evaluated since they are executed once unless you reload a module. We should really have a counter on methods that counts the number of calls and compile the code if