Slashdot Mirror


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.

70 of 278 comments (clear)

  1. Good idea. by T-Bucket · · Score: 5, Funny

    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...

    1. Re:Good idea. by MrNaz · · Score: 5, Interesting

      You say that jokingly, however, your point is rather poignant. If Wall Street types were presented with a way to transmit their methods and assumptions in a non-human readable way like a programming language, it becomes less transparent, not more. Sure investors can say "if a, b and c, then something happens in this black box and outputs x, y and z". They have no idea how their assumptions lead to the given result.

      My view is that there just is no substitute for a system of social morality like those in eastern cultures of old. Modern society has the attitude that "if it's not illegal, do it". Unfortunately, the law will never be able to codify in black letters the rich spectrum of behavioral regulations imposed by morality, developed over thousands of years of human behavior. Thus, individuals conforming only to the law and ignoring ethics and morals will inevitably breach their moral duty, and the damage they do is limited only by their "creativity" in using the law and the social power they weild due to their position, wealth or influence.

      In short, we need to disabuse ourselves of this trend to consider ethics and morals some hokey, freedom-fettering construct that has become obsolete. It is very much necessary, and Wall Street is a great place to look if you want an example of why.

      --
      I hate printers.
    2. Re:Good idea. by TapeCutter · · Score: 4, Funny

      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...

      Considering the amount of snake oil on Wall street, I think the python would be the one begging for mercy.

      --
      And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
    3. Re:Good idea. by TapeCutter · · Score: 4, Funny

      "My view is that there just is no substitute for a system of social morality like those in eastern cultures of old."

      Yeah, Atilla the hun was a real sweetheart.

      --
      And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
    4. Re:Good idea. by Eivind · · Score: 3, Insightful

      Better yet: If you do not understand an investment, don't buy it.

      Really. There's no shortage of investments that are *easy* to understand, and the lack of free lunches means that investments you -don't- understand, tend to come with drawbacks that are invisible to you, because you don't understand them.

      What's wrong with: "Buy 100 shares of a company with a total of 1M shares, if the company pays a dividend, you get 100/1M of it, if the company goes broke, your investment is lost. There's a $5 fee for the purchase, but other than that no fees or associated costs whatsoever"

      Too simple ?

    5. Re:Good idea. by inKubus · · Score: 2

      I sort of agree. I'm a proponent of source control, versioning, etc. of legal documents. I think hypertext could take a lot of the drudgery out of codes that are generally annotated rather than rewritten. I think that would help us apply the moral code more completely and transparently. The more expert you have to be to read a code, the less transparent. There could be standards that use UML however, which is better suited to modeling social-logical flows versus a programming language which is good at modelling...math.

      --
      Cool! Amazing Toys.
    6. Re:Good idea. by quanticle · · Score: 2

      My view is that there just is no substitute for a system of social morality like those in eastern cultures of old.

      Is this the same "morality" that advocated blind obedience to a god emperor? No thanks, I'll keep my "decadent" Western ways, thanks.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    7. Re:Good idea. by Hurricane78 · · Score: 2, Insightful

      Wanna know who wins the game of natural selection?
      The one ignoring your rules of ethics.
      Plain and simple.

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    8. Re:Good idea. by Yvanhoe · · Score: 2, Interesting

      You say that jokingly, however, your point is rather poignant. If Wall Street types were presented with a way to transmit their methods and assumptions in a non-human readable way like a programming language, it becomes less transparent, not more.

      You are assuming that legalese is human-parsable, that it is a consistent language and that humans can easily spot and demonstrate errors in it. With a programming language, you can give a test case that fails and point out this precisely. You can more easily argue that a rate or a progression is not defined, or defined in a way impossible to parse. You can't sweet talk an interpreter.

      Sure, it doesn't remove all dishonesty magically but it does remove the ability for some elaborate lies. It will make justing rulings easier and faster, and when it comes to bring morality somewhere, the fact that you will get caught and punished if you do a wrong is a strong factor.

      --
      The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
    9. Re:Good idea. by TheCarp · · Score: 2, Insightful

      > My view is that there just is no substitute for a system of social morality like those in eastern cultures of old. Modern society has
      > the attitude that "if it's not illegal, do it".

      "The very emphasis of the commandment: Thou shalt not kill, makes it certain that we are descended from an endlessly long chain of generations of murderers, whose love of murder was in their blood as it is perhaps also in ours. " -- Sigmund Freud

      He may not have gotten a lot of things right, but, I think he hit the nail on the head there. If such a time of morality existed, then we would never know about it. There is no need to tell people not to kill each other if nobody is doing it. No need to write down a code of morality, unless you believe that the people around you sorely need one. (or to bring it back to home, you don't find passive agressive notes offering to hold classes on how to use the dishwasher next to sinks in shared living spaces where everyone cleans up after themselves)

      On the whole, I agree. Frankly, I think there is something to the old Erisian maxim "Imposition of Order = Escalation of Chaos". Order seems great but, people like to play games, we are good at games. You can't start giving me a bunch of rules without me instinctively starting to look for how your new game works, and how to play it well.

      Rules can't bring about morality, if anything, they can only work to subvert it. Its only when you strip away the rules of the game and look at the other players that morality comes into play. There is no morality involved when a poker player soft calls into a check raise with the nuts, no more than when a monopoly player builds hotels, or a magic player hits you with 30 point drain life on the second turn... consistently. Should we expect wall street players to really act differently? When everything is abstract numbers and rules, its all just kind of a game.

      -Steve

      --
      "I opened my eyes, and everything went dark again"
    10. Re:Good idea. by tehcyder · · Score: 2, Insightful

      Wanna know who wins the game of natural selection?

      The one ignoring your rules of ethics.

      Plain and simple.

      You, sir, are the very quintessence of arse.

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    11. Re:Good idea. by Myopic · · Score: 2, Informative

      So your claim is that dishonest people have more children than honest people? Because that's what it means to "win the game of natural selection." Can you back up your claim with any evidence?

  2. Ugh! by oldhack · · Score: 3, Insightful

    Now, in addition to lawyers and accountants, you need computer programmers to invest. This smells like a racket. On the other hand, it can't get any worse than the legalese, and maybe that is the point.

    --
    Fuck systemd. Fuck Redhat. Fuck Soylent, too. Wait, scratch the last one.
    1. Re:Ugh! by maxume · · Score: 2

      Actually, if you don't feel you understand these products, you can simply not purchase them.

      There are plenty of simpler financial products out there.

      --
      Nerd rage is the funniest rage.
    2. Re:Ugh! by MrNaz · · Score: 3, Interesting

      The average consumer cannot understand cell phone contracts, gym membership contracts, car lease contracts, bank account terms and conditions and a whole bag of other things. So you're saying they should abstain? Hell, I cant get a parking voucher from an underground car park these days without the back of it being covered in fine print you'd need a scanning electron microscope to read.

      No sir, the answer isn't to "vote with your dollar". It's to acknowledge that the entire social system is broken and massively favors big money interests that are in a position to use the legal system to their own ends.

      The fix is not some new piece of regulation you can come up with. You'll never be able to legislate around a population's total lack of ethics.

      --
      I hate printers.
    3. Re:Ugh! by Gorobei · · Score: 2, Informative

      Now, in addition to lawyers and accountants, you need computer programmers to invest. This smells like a racket. On the other hand, it can't get any worse than the legalese, and maybe that is the point.

      When banks sell a product, structure, portfolio, etc, to each other, they are already converting the legalese into code or at least data for pre-existing code: it's the only way you can come up with an estimate of the value of the asset in question.

      The python idea is great. Of course, I'm saying that because I've already got a python representation of hundreds of financial contracts :)

    4. Re:Ugh! by OeLeWaPpErKe · · Score: 2, Interesting

      And since everyone can run this program and exploit the way it calculates things this will be about as realistic as the CBO estimates ! Oh wait, the government can write bug-free programs, right ? Of course it will provide for a few cushy python hacking jobs in wall street.

      This would be great for wall street ! Imagine, relatively simple AI programs automatically searching for loopholes in the law. Nothing could go wrong, right ? After all, in a government program, there will be no loopholes, right ?

      And all this in the name of letting stupid people invest "safely". How about allowing wall street to take money from stupid people ? This ensuring stupid people won't make many investments at all. This will result in only the smart investors investing (those with a proven track record of good investments, as illustrated by their bank account balance). Which is of course the reason capitalism works in the first place. Sucks if you're not capable of making investments significantly smarter than average, of course.

      Then simply go back to the situation before the crisis started brewing and either outlaw investing loaned money directly (which America never did), or make it de-facto impossible (which America did do), which will prevent a crash like we saw last year (and which we will see again unless Obama radically changes course). Of course, this will mean that we return to the situation that any group judged "unreliable" (unreliable as in "will probably not be extremely stable for at least 30 years") will not be able to get much of a loan at all (and because some of these groups are human, that will result in racial differences, education differences, etc). But if making reasonable assumptions about people is supposedly racist and outlawed, how can anyone but the law (ie. all of us) be blamed for the crashes this causes ?

    5. Re:Ugh! by jc42 · · Score: 2, Funny

      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.
  3. Fantastic! by nhaines · · Score: 4, Interesting

    This would be a fantastic idea. Not only would the rules be transparent and non-ambiguous, but the potential for experimentation and self-analysis would be incredible. Python is definitely one of the better languages to use for this, as it tends to be very readable and self-explanatory as far as programming languages go.

    1. Re:Fantastic! by DeadDecoy · · Score: 3, Informative

      By that same measure, it's not impossible to obfuscate python. If there's enough money involved, you can bet an innocuous hack will be coded in there somewhere.

    2. Re:Fantastic! by Sponge+Bath · · Score: 2, Insightful

      Laws, EULAs, financial statements, personal ads... all very effectively written in English to deceive.

    3. Re:Fantastic! by abigor · · Score: 2, Funny

      Hmm, personal ads written in Python...now there's an idea.

    4. Re:Fantastic! by Areyoukiddingme · · Score: 4, Funny

      Pass your object to her method and see if it executes...?

    5. Re:Fantastic! by clarkkent09 · · Score: 2, Interesting

      Here is another fantastic idea. How about a law requiring the IRS to provide free software that is easy enough to use for the average person so we don't have to spend $250-300 billion (or 20% of the total taxes collected) annually on tax preparers? After all, the complex investments that are being talked about here are typically bought by people who should understand what they are buying, i.e. financial professionals, and who have a choice not to buy them if they don't. Not so with taxes.

      --
      Negative moral value of force outweighs the positive value of good intentions.
    6. Re:Fantastic! by Eivind · · Score: 4, Interesting

      A fantastic idea ! Furthermore, have it online. Furthermore, put the data that the govt gets anyway into the forms so that they're partly pre-filled. Indeed, do what we've done in Norway for a decade.

      By now it's progressed to the point where I can -literally- file my taxes from my mobile phone in 15 minutes. And it takes that long only because my investments are semi-complex (i.e. some of them are foreign so don't come pre-filled)

      Oh, and yeah, it does mean you know how much taxes you owe instantly, after you fill in the forms, you press "calculate taxes", and up pops the answer, none of that file paperwork, wait months for the response.

    7. Re:Fantastic! by cduffy · · Score: 2, Insightful

      Sure, but it's better to have that hack disclosed in such a way that machine analysis can find it than disclosed in such a way that it only becomes evident after a corporate lawyer brings up an obscure precedent to a judge.

    8. Re:Fantastic! by sourcerror · · Score: 2, Informative

      , but it's better to have that hack disclosed in such a way that machine analysis can find it

      I smell a halting problem here ...
      Don't overestimate the force of machine analysis. It works poorly for Turing-complete languages. (There's a reason the semantic web uses heavily restricted languages like description logic.)

  4. Computational Bureaucracy??? by flajann · · Score: 4, Funny

    I love Python and I would hate to see it abused this way.

    1. Re:Computational Bureaucracy??? by ron-l-j · · Score: 3, Funny

      Please do not teach any lawyers anything about Python. What is left in readability would be destroyed.And they would go on to other languages like Perl, Now that's a lawyers language :D We will have to make a new language for them call black and white. Where any gray terminology is a syntax error.

  5. hmm by bigattichouse · · Score: 3, Interesting

    Maybe if the languages accepted are functional, and therefore logically provable without side-effects.

    --
    meh
    1. Re:hmm by modmans2ndcoming · · Score: 2, Informative

      Is a functional programming language any more inherently reliable since you are trusting the compiler anyways? Does it effectively matter if the code can be "provably without side-effects" if you are trusting the implementation via a black box on a different level? Honest question from a noob.

      Python is FOSS so there is no black box.

  6. Good Idea by BabyDuckHat · · Score: 3, Insightful

    If you want to confront the devil, a programming language is a good place to do it, since it's all about the details.

    1. Re:Good Idea by matrim99 · · Score: 3, Funny

      In this case, one could say "The devil is in the indentation."

      --
      Right. No, your other right. No, the other other right.
  7. its a step in the right direction by NynexNinja · · Score: 2, Interesting

    Any legal framework, if it does include a specific language, should be based on what the common languages that are currently used, i.e. they should have company XYZ submit that they are using language "ABC" and here is the source code. The problem with mandating a particular language(s) is that these are subject to change with time. A legal framework should stand the test of time, and thus not include requirements for "Python". Python might not exist in five years, or may become obsolete in five years.

    1. Re:its a step in the right direction by Monkeedude1212 · · Score: 3, Funny

      Well, Yeah, but to make a dollar, the code is just

      Print "$1.00"

    2. Re:its a step in the right direction by Anonymous Coward · · Score: 2, Insightful

      So write it in 8086 assembler then.

      Or, you know, try something new and see if the risks are manageable.

    3. Re:its a step in the right direction by dkleinsc · · Score: 2, Insightful

      Python might not exist in five years, or may become obsolete in five years.

      Since the code is freely available, Python will continue to exist one way or the other. That's one of the upsides of open source. Also, Python is closer to bleeding edge than obsolete right now.

      The reason I think they specify a language is that otherwise you'll see code switched to whitespace or brainfuck before being submitted to ensure maximum confusion. Remember than most organizations who are required to disclose something do so with the intent of obfuscating that legally required information as much as humanly possible.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
    4. Re:its a step in the right direction by fm6 · · Score: 2, Funny

      Whitespace and brainfuck are too damn elegant.Give me a properly obfuscated language like Intercal.

      http://www.ofb.net/~jlm/intercal.html

    5. Re:its a step in the right direction by TubeSteak · · Score: 2, Insightful

      Well, Yeah, but to make a dollar, the code is just

      Print "$1.00"

      If you're a bank, the next step is:
      Lend "$12.00 @ 5%"

      If you're on Wal Street, the next step is:
      Buy "10 shares"

      Gotta love fractional reserve finance.

      --
      [Fuck Beta]
      o0t!
    6. Re:its a step in the right direction by ianare · · Score: 4, Insightful

      That's a good point to make, though I think your estimate of 5 years does little justice to Python. Regardless, the problem with NOT specifying a language is that it means I can make my own proprietary language and release that source code (and not the compiler, say).

      Also, Python is open source through and through : community developed, open specs, several open source implementations. This means that even if one day 25 years from now Python is a dead language as far as practical usage goes, it will be no harder to understand and execute as it is today.

    7. Re:its a step in the right direction by timeOday · · Score: 3, Insightful

      The problem with mandating a particular language(s) is that these are subject to change with time. A legal framework should stand the test of time, and thus not include requirements for "Python". Python might not exist in five years, or may become obsolete in five years.

      You could say the same for English, since it changes constantly. Then again, English never had well-defined syntax or semantics in the first place...

      One reference language is a far better choice than a whole slew of them. To much unnecessary flexibility just adds complexity. Even if mainstream Python went in a different direction, the legally mandated dialect would survive for that purpose.

  8. This proves that... by cosm · · Score: 3, Interesting
    even in legal/financial-speak summaries...

    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.'

    ...it is forbidden to have a straightforward sentence with less than two conjunctions.

    --
    'We are trying to prove ourselves wrong as quickly as possible, because only in that way can we find progress.' RPF
  9. Filing Agents by geekmansworld · · Score: 3, Interesting

    Something that needs to be considered is the existence of so called "Filing Agents". I work for such a business.

    Right now, the SEC requires companies to file documents in a specific subset of HTML, as well as (in some cases) XBRL, which is an XML-based reporting language. In some rare cases, documents are another type of XML, or even specially formatted ASCII documents (ugh).

    Securities lawyers and company administrators don't want to understand the highly technical processes involved, so they outsource their technical reporting requirements to filing agents. We take care of all the nitpicky details that they don't want to consider. Looks like we'll have to learn Python as well. We've been meaning to graduate from Perl anyway, so no big deal. :-)

  10. Rule 1291.3120-b-Clause 32 Section 1.1 by cosm · · Score: 3, Funny

    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
    1. Re:Rule 1291.3120-b-Clause 32 Section 1.1 by russotto · · Score: 2, Insightful

      Like plays in a chess game, those who understand what's really going on and can predict X steps ahead will put themselves in corresponding favorable positions.

      Chess is a game where there are only two players, there is no element of chance, and both players have all available information about game state at any given time. Which makes it laughably simple compared to finance.

      The whole credit default swap thing IMO looks most like an n-player iterated prisoners dilemma, except that the (n-dimensional) payoff matrix itself varied as the game played on, and no one player knew all that much of it.

  11. Use JavaScript not Python. by Anonymous Coward · · Score: 2, Interesting

    ECMAScript or JavaScript would be a much better language to make this requirement for. Python would be a mistake. JavaScript is a much more limited language in terms of dialect and concepts and is much more neutral than Python is; yet JavaScript can express nearly any level of complexity. It is also readable by majority of the programming world. It is also an excellent data transport language. Python is not readable by the majority of the programming world. It is also terrible as data transport language.

    JavaScript is about as neutral a language as you'd be able to find. Plus it is ubiquitous and public financial calculations and records could readily be used in straight HTML/JavaScript webpages - no plugins or server code necessary.

  12. Trade Secrets by CoffeeDog · · Score: 2, Funny

    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/

  13. Good for all legal requirements by Nethemas+the+Great · · Score: 2, Insightful

    Frankly using a mathematically provable means of describing all manner of (if not all) legal requirements would be an excellent idea. The notion of gray-areas wherein judge and jury have traditionally run wild would be non-existent. One could apply legal requirements to any case with absolute confidence of the outcome regardless of venue. Court proceedings would consist of nothing but what they were intended to consist of, the determination of givens.

    --
    Two of my imaginary friends reproduced once ... with negative results.
  14. No OOP by Cryacin · · Score: 4, Funny

    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
    1. Re:No OOP by spazdor · · Score: 3, Funny

      Well, depending on the language, sometimes you can shortcut access to the other person's privates using 'friend' functions.

      --
      DRM: Terminator crops for your mind!
    2. Re:No OOP by calmofthestorm · · Score: 2, Informative

      In python, anyone can touch everything, even places you didn't know you had...like the garbage collector.

      Union activists are going to be very displeased with all the imports necessary for even simple laws, however.

      --
      93rd rule of Slashdot: No matter how obvious my sarcasm is, my comment will be taken seriously by someone.
  15. Re:Investors are already making their own assumpti by modmans2ndcoming · · Score: 4, Insightful

    actually... they were selling a car with no brakes... claiming it is safe, then taking out a life insurance policy on the sucker they sold it to.

  16. Is nobody else flashing back by troff · · Score: 5, Interesting
    ... to Charles Stross's flash-forward from "Accelerando"?

    "My name is Alan Glashwiecz, of Smoot, Sedgwick Associates. Am I correct in thinking that you are the Manfred Macx who is a director of a company called, uh, agalmic dot holdings dot root dot one-eight-four dot ninety-seven dot A-for-able dot B-for-baker dot five, incorporated?"

    "Uh." Manfred blinks and rubs his eyes. "Hold on a moment." When the retinal patterns fade, he pulls on his glasses and powers them up. "Just a second now." Browsers and menus ricochet through his sleep-laden eyes. "Can you repeat the company name?"

    "Sure." Glashwiecz repeats himself patiently. He sounds as tired as Manfred feels.

    "Um." Manfred finds it, floating three tiers down an elaborate object hierarchy. It's flashing for attention. There's a priority interrupt, an incoming lawsuit that hasn't propagated up the inheritance tree yet. He prods at the object with a property browser. "I'm afraid I'm not a director of that company, Mr. Glashwiecz. I appear to be retained by it as a technical contractor with non-executive power, reporting to the president, but frankly, this is the first time I've ever heard of the company. However, I can tell you who's in charge if you want."

    "Yes?" The attorney sounds almost interested. Manfred figures it out; the guy's in New Jersey, it must be about three in the morning over there.

    Malice – revenge for waking him up – sharpens Manfred's voice. "The president of agalmic.holdings.root.184.97.AB5 is agalmic.holdings.root.184.97.201. The secretary is agalmic.holdings.root.184.D5, and the chair is agalmic.holdings.root.184.E8.FF. All the shares are owned by those companies in equal measure, and I can tell you that their regulations are written in Python. Have a nice day, now!" He thumps the bedside phone control and sits up, yawning, then pushes the do-not-disturb button before it can interrupt again. After a moment he stands up and stretches, then heads to the bathroom to brush his teeth, comb his hair, and figure out where the lawsuit originated and how a human being managed to get far enough through his web of robot companies to bug him.

    1. Re:Is nobody else flashing back by rodneybb · · Score: 2, Insightful

      Awesome! I'm so glad somebody recognized this from "Accelerando" by Charles Stross. I think I've read that book 3 times by now and it always makes me smile. It actually gave me a little chill when I read the title of this story. Amazing that Stross wrote about this years ago. I wonder if the idea has been floating around longer than I thought.

  17. bad idea by fred911 · · Score: 2, Funny

    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
  18. Cool a new job for me by nedlohs · · Score: 2, Funny

    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"

  19. Huh- why? by nuggz · · Score: 3, Interesting

    So rather than actually explain what the item is, they'll just build a model of what it is, and let you put in your own assumptions.

    So we'll create a bunch of programming overhead, and end up with huge improvements.
    Namely that iInstead of descriptions nobody reads or understands, we'll have programs nobody runs or understands.

    I've got an idea, I know it might sound crazy but here it goes.
    If you see someone selling a great deal, but you don't quite get what they're selling, how it works, or even why it's such a great deal, DON'T BUY IT.

    We could even impose this on industry, maybe make it a legal/ethical requirement that people moving around large sums of money act with due diligence or something.

    If people actually stuck to this, and only bought things that they understood and made sense to them, the companies making these confusing products that nobody understands would have to make simpler more straightforward products.

    These guys need to step back, and make products that THEY understand. If the designer of the product can't figure it out, it's too confusing. If none of the potential customers can understand it, it's too confusing.

    Really if they currently can't implement the description, how does documenting it in python make it any better?

    1. Re:Huh- why? by ZachPruckowski · · Score: 3, Insightful

      The problem this solves is a financial company's tendency to say "the model predicts this complex asset has a value of $Money" without explaining the model and its assumptions. Forcing them to show you the model lets you decide how much you think the asset is worth, and how full of crap the bank is. I'm sure if you asked in 2009, many banks had the modeled value of sub-prime mortgage derivatives at like 50 cents on the dollar or something, because they built their models to show a value that wouldn't make them bankrupt, instead of a more realistic value like 10 cents/dollar. This regulation would make it easier to call them on that stuff.

  20. More appropraite Legalese by thoughtspace · · Score: 4, Funny

    > 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
    >

  21. Not without precedent by Hooya · · Score: 2, Interesting

    Well, this is not entirely without precedent. Even the field of Physics employes this method of specifying things that are complex enough that warrant a "model" which is highly dependent on what the model chose to include or exclude. For example, in tracking satellites, you would think that you should be able to use Physics and the myriad of formulas alone to come up with the position of satellites. But because real world physics (think drag, friction, N-body G forces etc) is too hard to figure out and are often hand-waved away (thus the model), NASA had to devise a set of algorithms to communicate a way to track satellites. They then publish the telemetry at regular intervals which are then run through those algorithms to find out where any of the satellites are at any given time. Last I worked on it, I was looking at Fortran programs which was used as the spec for the algorithm. Now, think about it, how better to describe an algorithm than an actual working program?

    see: SGP4 and this in particular.

    1. Re:Not without precedent by quanticle · · Score: 2, Interesting

      Now, think about it, how better to describe an algorithm than an actual working program?

      Pseudo-code is far better for describing an algorithm than actual running code. If one uses "production" code to express an algorithm, then one has to also accept the limitations imposed by the language and programming environment.

      For example, if the demonstration code takes into account the possibility of integer overflows, that check becomes part of the "official" algorithm. While this may be okay as long as the algorithm remains implemented in a single language/environment, it becomes a problem when one needs to implement the algorithm in another environment.

      At the very least, there should be multiple sample implementations, so that one can see what features are intrinsic to the algorithm, and what features are imposed by the external programming environment.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    2. Re:Not without precedent by drewhk · · Score: 2, Interesting

      I despise pseudo-code. You can shamelessly hide computational complexity by using mathematical notations. Have you ever tried to code any algo expressed in pseudo-code? Eye opening experience.

  22. COBOL by smoothnorman · · Score: 2, Insightful

    COBOL was supposed to be about making everything clear and obvious in a business environment. But given the current business world it's time to give obfuscated-perl, brainfuck ( http://en.wikipedia.org/wiki/Brainfuck ), or whitespace ( http://en.wikipedia.org/wiki/Whitespace_(programming_language) ) a fair chance.

  23. Sounds silly to me by cdrguru · · Score: 3, Insightful

    OK, how about if instead of providing mileage ratings that car advertisements simply had a URL to a Python program that if you entered information about your driving habits that it would come out with an MPG value for a specific car. Obviously, there would be a completely separate Python program for every single car.

    Of course, 99% of the weighting would be handled by the questions "Do you drive with a lead foot?" and "Are jackrabbit starts your normal mode?" But the other 34 questions would be there as specified by the government regulation governing the production of these Python applications.

    Having a model and the user gets to make up the assumptions, you are getting a traditional garbage-in, garbage-out algorithym. Any model can conform to any belief system given the "proper" inputs. Isn't this half of what the climate arguments are about? Not the code, but the assumptions being pushed into the model?

    I can't imagine that this would provide the average Joe Sixpack any useful information. I would say this isn't "transparent" in any way - unless the inputs to the model were published and required to be adhered to. This would make legally binding assumptions like in 2050 there will be fewer literate people than in 2000. I'd like to see the government come up with a plan for that.

    Or worse, if a fundamental assumption of the model is rising interest rates and every investor makes 100% return in five years, great. Does the ability to push out a program that says if you enter the five year interest rates as steadily rising then justify advertising that every investor will make 100% of their money?

    This also reeks of the idea that if you can't read a programming language you are a second-class citizen. Richard Stallman would be proud.

    1. Re:Sounds silly to me by jmcvetta · · Score: 5, Insightful

      I can't imagine that this would provide the average Joe Sixpack any useful information.

      Joe Sixpack doesn't typically buy collateralized debt obligations. In fact, if he bought a tranche of a CDO, I think that would immediately disqualify him from his everyman status. The main customers for these sometimes obscenely complex instruments are investment firms.

      Problem is, the legalese is so dense, even professional investment analysts have a hard time understanding the payout scheme. If I understand the proposal correctly, the Python code will itself authoritatively define the flow of funds from the investment vehicle. It won't simply be a model that makes predictions based on initial assumptions -- it will also "allow the use of the proposed asset-level data file that will be filed at the time of the offering and on a periodic basis thereafter". Thus given specific data about the performance of underlying assets up to any given point, the code will spit out an authoritative answer of "who gets paid what (if anything)".

      Since a structured investment vehicle is essentially an algorithm wrapped in a contract, it makes sense to use a programming language to specify that algorithm. I personally like Python; but I agree with other posters who have said the regulation should ensure that other languages can be added over time.

  24. Re:Python's readability makes it a good choice by rmcd · · Score: 2, Insightful

    This would not have prevented the current financial crisis and it will not prevent the next. It's a small step in the right direction, however. The SEC has been one of the most incompetent agencies for some time and I think they're trying to turn themselves around. In this case the SEC is simply acting like a grown up overseeing a bunch of kids. You want to offer a complicated financial instrument to the public, you document it precisely. There's value in this: For example, you couldn't possibly have a third party clear and settle a financial instrument without some ability to do a valuation. A minimum requirement would for that be code describing the instrument's payoffs. This is just one small step towards a world of greater transparency and financial interoperability.

  25. Regulators don't know Comp. Languages by failedlogic · · Score: 2, Funny

    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.

  26. Re:Python's readability makes it a good choice by poopdeville · · Score: 3, Insightful

    What is the difference in Gambling and Investing?

    Whether the odds are with you or against you.

    --
    After all, I am strangely colored.
  27. Re:How do you codify the sham that was derivatives by jmcvetta · · Score: 2, Informative

    This seems to me to be only valid for long term funds invested in bonds and Treasuries or something.

    It applies to CDOs, and perhaps to the broader class of structured investment vehicles. Nothing an individual investor is likely to meet face-to-face. (But your mutual fund manager most likely is wrangling with these beasts...)

    Isn't the bulk of what brought the house of cards down either unknowable, in denial, or covered over with Enron type mark to market delusions?

    Yes. But denial and deception are made much easier when no one really understands the investments they are making.

    I understand the theoretical aspect of codifying some set parameters around an investment fund under which returns could be computed on a range of conditions, and that it couldn't be an attempt to capture business method criteria used in trading.

    The purpose here is not just to publish a predictive model. Rather, it's to publish an algorithm that can over time be populated with the actual data on the return of underlying assets (e.g. mortgages), and based on that data give a definitive answer as to which tranche of the investment will receive what payments. The point seems to be twofold: (1) There is presumably less opportunity for litigation when the formula for payout on the investment is precisely specified in code; and (2) By providing an algorithm that exactly describes the investment, it is at least in theory possible for potential investors to understand what they are buying.

    I just don't see how the mortgage backed funds such as derivatives fo example could be codified since these people didn't know and quite frankly didn't care what was in them,

    Someone (e.g. Paulson & Co) knew and cared what was in those derivatives. Problem is, not everyone had the same level of knowledge. Transparency helps any market.

    they counted on a sham ratings scam to say that they were of such and such value

    The ratings agencies were often tasked with writing models to describe the investments they were rating. These models were proprietary information, available to investors at the rating firm's discretion, if at all. At least here, the models will be out in the bright light of day, for anyone who wants to examine and try to understand.

  28. Re:Laws are different. by jc42 · · Score: 2, Insightful

    2) Badly written laws can just as easily be written in Python as they can be in some human language. Judges etc are normally far more familiar with the official language of the courts.

    Yes, but there's a very practical difference here. It's all too common for lawyers to respond to questions about a new law's actual meaning with "We don't know yet; we'll have to ask the court system". This can be and is done; it's not unusual for new laws to trigger a number of court tests to determine the actual legal meaning of the law.

    The problem is that this can be expensive, in both time and money. Court tests can take years and millions of dollars.

    If the "spec" for a law were coded in Python (or some other language with a public spec and implementation), tests of such laws could be conducted in minutes, with negligible cost. Of course, this would require paying expert programmers who are familiar with the language. But a few hours of such a programmer's time would be orders of magnitude cheaper than months or years of legal costs.

    This is really the same argument as the reason that most business computing is now done by computers. Yes, all the calculations could be done by hand, by human accountants using pencil and paper. But this would mean paying large teams of professional accountants for months of work to do what a computer can do in a few seconds for a few dollars (when amortized over the computer's lifetime ;-).

    There are, of course, a lot of practical problems with software "solutions" to legal problems. We're all familiar with the difficulty of writing bug-free software. But again, this is not materially different from the difficulties in writing bug-free legislation. The difference is mostly that the software form could be testable in seconds rather than years, for a few dollars rather than millions of dollars.

    And, of course, the opportunity for bribery and fraud in the software testing is nonzero. This is similar to the possibility of bribery and fraud in the legal system. It's just faster and cheaper.

    A major difference is that a software process is (in principle) totally documentable. This isn't true of the legal system, most of which is hidden from public view and unknowable to those not directly involved. Software tests can easily be recorded and published.

     

    --
    Those who do study history are doomed to stand helplessly by while everyone else repeats it.