[IronPython] XNA and how to specify the type arguments explicitly

2010-02-02 Thread Richard Steventon
A newbie here. I am trying to use the XNA infrastructure to render some data, since all I need is points and colored triangles and a movable camera. Code snippet: def SetupVerticies(self): l = Array.CreateInstance(VertexPositionColor,6) l[0] = VertexPositionColor(Vector3(0., 0

Re: [IronPython] XNA and how to specify the type arguments explicitly

2010-02-02 Thread Michael Foord
On 02/02/2010 10:23, Richard Steventon wrote: A newbie here. I am trying to use the XNA infrastructure to render some data, since all I need is points and colored triangles and a movable camera. Code snippet: def SetupVerticies(self): l = Array.CreateInstance(VertexPositionColor,6

[IronPython] Hosting DLR under ASP.NET

2010-02-02 Thread Marco Parenzan
Dear All, are there any advices about hosting DLR under ASP.NET for scripting? (not for views!)? Where hosting ScriptingRuntime, ScriptingEngine? As static variables in Global.asax? In Application? Where hosting ScriptingScope? In Session? Destroy and reistantiate at each call? I have to develop

Re: [IronPython] XNA and how to specify the type arguments explicitly

2010-02-02 Thread Richard Steventon
Okay, so problem #2 calling the correct version of the interface (I think this is the problem?), since I am getting a "violates the constraint of type 'T'" error. I set up a XNA VertexBuffer using: l = Array.CreateInstance(VertexPositionColor,6) . self.vertices = l

Re: [IronPython] XNA and how to specify the type arguments explicitly

2010-02-02 Thread Curt Hagenlocher
You should template on VertexPositionColor, not on VertexPositionColor[]. The reason for the error message is that you're saying T is VertexPositionColor[]. An array is a reference type, while the template constraint specifies a value type. On Tue, Feb 2, 2010 at 7:51 AM, Richard Steventon wrote:

Re: [IronPython] Hosting DLR under ASP.NET

2010-02-02 Thread Jimmy Schementi
Recreating them on each call is OK for really simple script usages, since multiple requests of an ASP.NET app run in the same CLR instance, and the result of ScriptRuntime.GetEngine("langName") is cached, so the app will only incur a performance hit (because of the language's assemblies JITing)

Re: [IronPython] Hosting DLR under ASP.NET

2010-02-02 Thread Dino Viehland
I would recommend: Keep 1 ScriptRuntime/ScriptEngine (as Jimmy mentions you can repeatedly grab the SE off the SR) Compile the code to a CompiledCode object and repeatedly execute it rather than re-compiling and executing Create a new ScriptScope for each request That's b

[IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Lukáš Duběda
Hi there everybody, I'd really appretiate if anyone could share their experience with any good dotNET GUI designer. I'd love to have such functionality I can get out of QtDesigner, where I visually design my forms and buttons and what not and then just save that GUI into a file or generate a usab

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Brian Curtin
On Tue, Feb 2, 2010 at 15:00, Lukáš Duběda wrote: > Hi there everybody, > > I'd really appretiate if anyone could share their experience > with any good dotNET GUI designer. I'd love to have such > functionality I can get out of QtDesigner, where I visually > design my forms and buttons and what

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Michael Foord
On 02/02/2010 21:08, Brian Curtin wrote: On Tue, Feb 2, 2010 at 15:00, Lukáš Duběda > wrote: Hi there everybody, I'd really appretiate if anyone could share their experience with any good dotNET GUI designer. I'd love to have such functionality I can get

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Lukáš Duběda
Thanks a lot for the recommendation, I've installed the SharpCode and it seems quite useful. It presents a little inconvenience, but I'm not sure if it's my lack of knowledge or something else, but when I design the UI, the SharpCode puts the whole path to each of the control: clr.addReference("

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Dino Viehland
Would adding an import System at the top make both the designer and the code happy? > -Original Message- > From: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] On Behalf Of Lukáš Dubeda > Sent: Tuesday, February 02, 2010 3:41 PM > To: Discussion of IronP

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread Lukáš Duběda
Ah, nope, it was something else after all. The SharpCode didn't like anything after the Class declaration, for some reason. Whenever I put something in there, the designer stops working. As soon as I delete it, it works agin. Might be a bug? Lukáš Duběda Director [T] +420 602 444 164 duber stu

Re: [IronPython] A good dotNET gui designer, plus IronPython VS2008 integration?

2010-02-02 Thread David McWright
Normally, I haven't had much trouble with #Develop not displaying the form so long as I limit my edits to InitializeComponent to either event hookups or properties of the visual elements. Everything else, I keep in separate methods or another class altogether and that seems to keep the designer ha