News for hackers. Stuff that matters.
Re:Will Wall Street require Python? by hakan on Monday April 19, 2010 @04:44PM (#1277793)
"... with Release 33-9117, the SEC is considering substitution of Python or another programming language for legal English as a basis for some of its regulations."

If this was actually implemented, it'd be incredible. No more ambiguity when you have to define all the parameters and outcomes explicitly!

Re:Will Wall Street require Python? by omouse on Monday April 19, 2010 @10:19PM (#1278415)
It'd be incredibly stupid. The language and some other programming languages don't even have proper standards written out or they change on the whims on their creators or community. Which version of Python will you use? 2.x or 3? Oh hey and will you use the map and filter functions or use generators instead or maybe you'll use a for-loop? What are the rules for that?

Don't kid yourself, there's still a lot of room for ambiguity.

Re:Will Wall Street require Python? by ZachPruckowski on Monday April 19, 2010 @10:51PM (#1278478)
You may be able to obfuscate the code, but so long as the investor can easily test your model with values of their choice, it doesn't matter if you use a map or a for-loop.
Re:Will Wall Street require Python? by ay on Monday April 19, 2010 @06:03PM (#1277988)
The regulation will be very state-dependent, though.

EDIT: oh, and that annoying halting problem...

Re:Will Wall Street require Python? by stcredzero on Monday April 19, 2010 @06:26PM (#1278039)
Is a monkey-patching friendly language really the best thing for this? (Asks the Smalltalk guy, whose language is just as monkey-patching friendly and is used in a lot of Financial apps.)

Functional languages would be much better for this purpose.

Re:Will Wall Street require Python? by rit on Monday April 19, 2010 @09:41PM (#1278360)
Python has some FP features. More importantly, it's incredibly easy to learn, available on just about every platform (JVM users and .Net users can use it, Mac, Linux, Windows, etc).
Re:Will Wall Street require Python? by stcredzero on Tuesday April 20, 2010 @11:50AM (#1279717)
Python has some FP features. More importantly, it's incredibly easy to learn, available on just about every platform (JVM users and .Net users can use it, Mac, Linux, Windows, etc).

Yes, but having "some FP features" is a far cry from being able to use FP to do lots of reasoning about your program.

Re:Will Wall Street require Python? by rit on Tuesday April 20, 2010 @12:51PM (#1279913)
It's not intended to be a complex statistical model. It's intended to replace XML Files that may have included calculations, with a system that allows people to plug their assumptions into the program and get an answer, rather than parsing XML and turning that into a program.

My understanding is that the type of calculations they're talking about, if you need complex Functional Programming you're doing it wrong.

Re:Will Wall Street require Python? by mkramlich on Tuesday April 20, 2010 @04:14AM (#1278936)
agreed, plus by my understanding it is also already fairly popular in the financial programming community.
Re:Will Wall Street require Python? by csytan on Monday April 19, 2010 @06:41PM (#1278068)
Monkey patching (from what I've seen) is almost always the result of a poor programming, something which no language can be shielded from.
Re:Will Wall Street require Python? by lallysingh on Monday April 19, 2010 @10:16PM (#1278408)
Good languages actively fight off poor programming. Take ML or Haskell: if you didn't think about the problem well enough beforehand, it won't compile.
Re:Will Wall Street require Python? by stcredzero on Monday April 19, 2010 @06:53PM (#1278099)
No, but in the right language, you can at least be shielded from the monkey-patching.
Re:Will Wall Street require Python? by DrSprout on Monday April 19, 2010 @07:46PM (#1278180)
But you need trained programmers to use the right language.

Also, Python is clearly a step up from English on a variety of metrics, including the reduction of the ability to monkey-patch.

Re:Will Wall Street require Python? by stcredzero on Tuesday April 20, 2010 @07:11AM (#1279121)
Functional languages can do even better, however.
Re:Will Wall Street require Python? by skybrian on Tuesday April 20, 2010 @01:13AM (#1278707)
If they're smart then it would actually be a very restrictive subset of Python, not the full language.
Re:Will Wall Street require Python? by ay on Monday April 19, 2010 @07:08PM (#1278124)
On a second thought they can use Python fine. Just issue something like the text at www.brool.com/?p=97 as the very first requirement.
Re:Will Wall Street require Python? by btilly on Monday April 19, 2010 @06:59PM (#1278113)
No ambiguity?

Suppose the deal goes out there, bonds are sold, but then real world inputs result in an endless loop. What happens to the money then?

Re:Will Wall Street require Python? by wtn on Monday April 19, 2010 @07:29PM (#1278157)
Same thing could happen with human language legal copy.
Re:Will Wall Street require Python? by btilly on Monday April 19, 2010 @09:11PM (#1278318)
Absolutely agreed. In fact all sorts of conflicts and ambiguities can easily get missed, as well as ambiguous terms such as the bond issuer at its discretion can rearrange payments. (Yes, this has happened. And money was diverted from top tranches to lower rated ones.) Furthermore the entire reverse engineering process is a lot of work for a very imperfect result.

So this is definitely a big improvement.

But my point remains that it is not perfect. There still are ambiguities.

Re:Will Wall Street require Python? by ay on Monday April 19, 2010 @07:27PM (#1278154)
One can still collect the functions that loop into lambdas and start passing those around ?
Re:Will Wall Street require Python? by die_sekte on Monday April 19, 2010 @05:14PM (#1277867)
Knowing governments' actions, this is going to be a proprietary mix made out of APL and PHP—the worst of both worlds.
Re:Will Wall Street require Python? by stan_rogers on Monday April 19, 2010 @05:48PM (#1277946)
Don't be bad-mouthing APHeLP -- we don't need to be getting into a language holy war here.

(Actually something as straightforward as a de-crufted PHP with APL's matrix handling would be a pretty wonderful language, when you think about it.)

Re:Will Wall Street require Python? by blasdel on Monday April 19, 2010 @08:05PM (#1278218)
Re:Will Wall Street require Python? by stcredzero on Monday April 19, 2010 @06:53PM (#1278100)
Are you sure it's not apHELLp?
Re:Will Wall Street require Python? by sp332 on Monday April 19, 2010 @05:23PM (#1277890)
I'm sure someone will apply Gödel's incompleteness theorem to the Python syntax, and complain that they want to do something that isn't expressible in python (or any other language you choose).
Re:Will Wall Street require Python? by eru on Monday April 19, 2010 @05:35PM (#1277911)
You know that Gödel's incompleteness theorem concerns itself with provability and not with expressiveness?
Re:Will Wall Street require Python? by sp332 on Monday April 19, 2010 @06:25PM (#1278037)
Sure, I just meant hakan's optimism about eliminating ambiguity is misplaced.
Re:Will Wall Street require Python? by ippisl on Tuesday April 20, 2010 @09:11AM (#1279297)
If this works well, this might cause more legal fields to work with computer languages, enable more legal automation , and could be really disruptive to the legal profession.