[IronPython] Transparent import of dlls?

2011-03-29 Thread Markus Schaber
Hi, I have some questions that may seem stupid, but I did not find the right answers yet. So simple pointers to the correct google query are as welcome as elaborate Howtos. J For cPython, it is possible to compile a module into a .pyc file. If this file resides in sys.path, it is

[IronPython] IronLanguages

2011-03-29 Thread Matthias
Hello, this question is not 100% targeted at IronPython, but I didn't know a better list to write to. I've started writing a C# - javascript bridge. Unlike IronPython and IronRuby I don't want to write a javascript engine in .net, but rather use existing ones. I can already access C#

Re: [IronPython] Transparent import of dlls?

2011-03-29 Thread Jeff Hardy
On Tue, Mar 29, 2011 at 4:30 AM, Markus Schaber m.scha...@3s-software.com wrote: For IronPython, there is the pyc.py compiler script. This allows a python module to be precompiled into a .NET dll. However, it seems that it is not used transparently when placed in a directory in sys.path, one

Re: [IronPython] IronLanguages

2011-03-29 Thread Bill Chiles
You'll want to look at the DLR overview doc and then the Sympl sample walkthrough doc: http://dlr.codeplex.com/wikipage?title=Docs%20and%20specsreferringTitle=HomeProjectName=dlr You'll want to type the parameter to testComplexObject as 'dynamic' and implement IDMOP on JSObject, which you can

[IronPython] IPy 2.7 successfully built for .NET 3.5, but problem w. indirect v4 dependencies

2011-03-29 Thread Jaromír Matýšek
Hi, I've suceeded building 2.7 for .NET 3.5 (I'm using it in SharePoint, so there's no way to use .NET 4) and it works, using v2release configuration. I've built IronPython, IronPython.Modules, Microsoft.Dynamic, Microsoft.Scripting and Microsoft.Scripting.Core dlls. However, when I reference

Re: [IronPython] IronLanguages

2011-03-29 Thread Dino Viehland
Just to chime in on how to do the conversion: the answer is that you probably can't, at least not for something like TestClass. You could look at what sort of type you're converting from in JS (number, string, function, etc...) and see if TestClass has any implicit conversions to it from

Re: [IronPython] IPy 2.7 successfully built for .NET 3.5, but problem w. indirect v4 dependencies

2011-03-29 Thread Dino Viehland
It sounds like you need to re-build your own DLLs (or whatever SPTools is) to run against .NET 3.5 instead of .NET 4.0. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jaromír Matýšek Sent: Monday, March 28, 2011 8:09 AM To:

Re: [IronPython] IronLanguages

2011-03-29 Thread Matthias
Am 29.03.2011, 18:57 Uhr, schrieb Bill Chiles bill...@microsoft.com: You'll want to look at the DLR overview doc and then the Sympl sample walkthrough doc: http://dlr.codeplex.com/wikipage?title=Docs%20and%20specsreferringTitle=HomeProjectName=dlr Thanks for the link, it will keep me busy

Re: [IronPython] IronLanguages

2011-03-29 Thread Matthias
Am 29.03.2011, 19:27 Uhr, schrieb Dino Viehland di...@microsoft.com: Just to chime in on how to do the conversion: the answer is that you probably can't, at least not for something like TestClass. You could look at what sort of type you're converting from in JS (number, string, function,

Re: [IronPython] IronLanguages

2011-03-29 Thread Dino Viehland
Matthias wrote: Yes, this was my main idea. It's very similar how SWIG directors handle cross-language polymorphism. At runtime I'd create a class which derives from TestClass and which overrides all virtual methods and properties. The C# overrides would call the JSObject to see if

[IronPython] Newbie InterOp-related question

2011-03-29 Thread Tilley, Paul
Hi, I've just started using IronPython but have hit a bit of a roadblock. This may also be caused by inadequate .Net knowledge. In C# I can call a COM object (where the COM method is going to fill in the parameter) like so: object blah; myComObj.Foo(out blah); If for example the COM