Skip to main content

All Questions

1 vote
1 answer
171 views

Without a roadmap, can DLR be used with IronPython, assuming it will continue to be packaged in future .NET Versions

DLR or Dynamic Language Runtime hasn't seen any activity after mid 2010, still around its v1.0 release since then. I need DLR and IronPython to run my Python code using Numpy and at the same time ...
vijiboy's user avatar
  • 624
1 vote
1 answer
516 views

IronPython use namespace without import

Is it possible in IronPython to use a kind of inline namespace? For example: System.Console.WriteLine("Test") If i execute the code from above, get the following error: name 'System' is not defined. ...
BendEg's user avatar
  • 21.2k
0 votes
1 answer
890 views

Invoking IronPython function from C# after IronPython runtime was disposed

Suppose we have the following code in IronPython: def hello(): print "Hello from Python" We call function hello() in the following C# code: private static void GetPythonFunction() { ...
user2341923's user avatar
  • 4,737
0 votes
1 answer
134 views

How to get a runtime context, when exection a script on the DLR scripting host?

Currently I'm working in a case study to integrate IronRuby into one of our core products. The exection of scripts in only possible in a synchronous manner, so I plan to execute the scripts in threads ...
Nico's user avatar
  • 1,594
3 votes
2 answers
423 views

Calling a function with named arguments in a hosted application

So I am hosting IronPython in my C# application. IronPhyton is used to implement a DSL for users. The DSL syntax should be something like this: Ping(Message = "testOne1") The hosting code looks like:...
Mike Chaliy's user avatar
  • 26.7k
2 votes
0 answers
857 views

C# application works much slower using compiled IronPython standard library

When I load modules from standard library as source .py files in this application, elapsed time after end equals approximately 4 seconds: Stopwatch watch = Stopwatch.StartNew(); ScriptEngine engine = ...
Rafał Krętkowski's user avatar
1 vote
1 answer
443 views

Get CodeExpression from string of python using IronPython?

I'm trying to get a CodeExpression from a string of python. It seems possible since some of the DLR docs mention CodeDom classes but I haven't been able to find any examples or better docs. Any ...
Clark Updike's user avatar
6 votes
1 answer
541 views

.NET DLR safe or sandboxed script

I am using the DLR within a small part of a larger C# project, IronPython being the language in question. For some parts of the system the user is able to enter a small script to customise behaviour ...
freddy smith's user avatar
  • 3,447
1 vote
1 answer
851 views

IronPython import performance with compiled code

I am doing some experiments with IronPython 2.6.1 and the clr.CompileModules function to compile my large scripts into assemblies. Testing has shown good cold start performance performance ...
Michael Baker's user avatar
2 votes
2 answers
2k views

IronPython DLR; passing parameters to compiled code?

I'm currently doing the following to create and execute a simple python calculation, using DLR: ScriptRuntime runtime = Python.CreateRuntime(); ScriptEngine engine = runtime.GetEngine("py"); ...
Toby Wilson's user avatar
  • 1,507
2 votes
1 answer
827 views

Delegating dynamic object resolution to other instances

I'm currently hosting IronPython in a .NET 2.0 application. I want to create a class (in C#) whose instances can be "extended" by plugin instances. That means, each member access which is ...
MarkusSchaber's user avatar
0 votes
2 answers
2k views

Why do I get this .NET error - "TypeError: expected List[DataPoint], got List[DataPoint]"

I refactored some code, and now I get this error when calling a function. But everything seems to be fine, I even compared failing_argument.GetType().AssemblyQualifiedName between the old and the new ...
Meh's user avatar
  • 7,196
5 votes
2 answers
694 views

The DLR, Boo, and the JVM

I'm just starting to try to learn more about the .Net VM underpinnings, and am immediately thrown off by something. I know there's this new thing called the DLR that allows for all the dynamic stuff ...
Dax Fohl's user avatar
  • 10.8k
29 votes
12 answers
22k views

Iron Python : what are good uses for Iron Python [closed]

I have an affinity for python, but I work in a .NET environment, so I was looking into Iron Python, and wondering what it would be used for. Could you write an app in it? or is it for adding a ...
Master Morality's user avatar
11 votes
3 answers
739 views

Are the "Iron" languages ready for prime time?

Is it okay to start using Iron Ruby and Iron Python in production systems? Also, are there any additional requirements for hosting them? And, for the bonus points, given that F# is a functional ...
PureCognition's user avatar

15 30 50 per page