-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to write a program using the scala interpreter to run scala code on the fly. The interpreter must be able to run an infinite amount of code without being restarted. I know that each time the method interpret() of the class scala.tools.nsc.interpreter.IMain is called, the request is stored,…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am writing a tool to help students learn regular expressions. I will probably be writing it in Java.
The idea is this: the student types in a regular expression and the tool shows which parts of a text will get matched by the regex. Simple enough.
But I want to support several different regex…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, i'm looking for a way to ship the python interpreter with my application (also written in python), so that it doesn't need to have python installed on the machine.
I searched google and found a bunch of results about how to embed the python interpreter in applications written in various languages…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
Please consider the following snippet from an implementation of the Interpreter pattern:
public override object Execute(Interpreter interpreter, object ctx) {
var list = ctx as IEnumerable<string>;
return (list != null) ? list.FirstOrDefault() : null;
}
What about if I want to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
According to this:
http://www.codeplex.com/IronPython/Wiki/View.aspx?title=IP20VsCPy25Perf&referringTitle=IronPython%20Performance
IronPython (Python for .Net) is faster than regular Python (cPython) on the same machine. Why is this? I would think compiled C code would always be faster than…
>>> More