SEC Proposes Wall Street Transparency Via Python
An anonymous reader writes "A US federal agency is considering the use of computing languages to specify legal requirements. 'We are proposing that the computer program be filed on EDGAR in the form of downloadable source code in Python. ... Under the proposed requirement, the filed source code, when downloaded and run by an investor, must provide the user with the ability to programmatically input the user's own assumptions regarding the future performance and cash flows from the pool assets, including but not limited to assumptions about future interest rates, default rates, prepayment speeds, loss-given-default rates, and any other necessary assumptions.' Does this move make sense? If the proposed rule is enacted, it certainly will bring attention to Python or other permitted languages. Will that be a good thing?"
The above quotes were pulled from pages 205 and 210 of the dense, 667-page proposal document (PDF). Market expert and professor of finance Jayanth R. Varma says it's a good idea.
I think a lot of those wall-street types would suddenly admit to everything they've done wrong if you confront them with a big enough Python...
I love Python and I would hate to see it abused this way.
Ruby Neural Evolution of Augmenting Topologies
Well, Yeah, but to make a dollar, the code is just
Print "$1.00"
Occam's Razer does not apply to matters of finance. Ever.
'We are trying to prove ourselves wrong as quickly as possible, because only in that way can we find progress.' RPF
Hmm, personal ads written in Python...now there's an idea.
Pass your object to her method and see if it executes...?
I can see it already, the financial institutions will all cry "but these magical formulas are what makes us money and if we make them available our competitors will be able to use them too"! And of course they would also scramble to hire some of the winners of the Underhanded C Contest: http://underhanded.xcott.com/
Just remember that one instance of the class of person may never touch another instance of the class of person's privates. You need to use protected for that.
Science advances one funeral at a time- Max Planck
The Street has always been full of sharks, now you want to allow snakes?
09 F9 11 02 9D 74 E3 5B - D8 41 56 C5 63 56 88 C0 45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
def getPerformance(self, assumptions):
"""Return performance estimates.
Arguments:
assumptions: dict, for keys see spec #54
Returns:
How much money you will make
"""
# BUG 91423: was sometimes giving poor results
# workaround fix is to ignore assumptions.
return "Millions and millions"
Whitespace and brainfuck are too damn elegant.Give me a properly obfuscated language like Intercal.
http://www.ofb.net/~jlm/intercal.html
In this case, one could say "The devil is in the indentation."
Right. No, your other right. No, the other other right.
> cat test.legalese
The said variable 'i' hereafter referred to as "i" shall be a variable and not of unvarying or constant except for the purposes of using the said variable within a clausal computation and shall be initially equated to 1 (one) neither less nor more and "i" shall be displayed to a third party within visual distance from the visual display device but not beyond unless further provision is granted and provided by the creator of the said work. These courses of action shall be repeated for 10 (ten) times neither more nor less withstanding any systemic error which may cause the premature termination of the said operations and includes the increment of "i" by 1 (one) in a positive monotonic uniform manner performed prior to each display to the visual display device. Upon termination of the aforementioned operational sequence the operations shall cease until recommenced upon instruction of the operator.
> glegalese test.legalese
> a.out
1
2
3
4
5
6
7
8
9
10
>
Keep in mind people don't like computers, programs, math or finance. You have to consider that. So I've gone on Wikipedia and did a search on a computer language that produces *minimal* code.
I briefly glanced only at the first sentence from the following page (http://en.wikipedia.org/wiki/Brainfuck) and trimmed the first sentence for length: "The brainfuck programming language is ... noted for its extreme minimalism.". See, this is what people want, it keeps things simple.
Of course I suppose that to most lawyers, any programming language will look like cuneiform anyway.
This could be viewed as payback for what the legal system did to software by allowing software patents. Such patents are written in legalese, and don't require a "working model", i.e., a runnable implementation in some programming language. So it's impossible for software developers to read the patents and understand whether their own code is a patent violation. We can only determine whether we're violating a patent by "asking the court system", a method that takes years and millions of dollars, and is thus inaccessible to anyone but governments and the largest corporations.
From a software geek's viewpoint, it's fun to think of the reverse system, in which programmers must be hired to determine the actual meaning of a new law, and the programmers do this by writing the tests in a form incomprehensible to lawyers.
I wouldn't bet any money on such a change actually being implemented in our lifetime. Remember that laws are written and voted on by legislators, who are overwhelmingly lawyers. Very few software developers have been elected to any legislative bodies anywhere.
Those who do study history are doomed to stand helplessly by while everyone else repeats it.