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.

278 comments

  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 fm6 · · Score: 0

      Unfortunately, no. Few of them watch TV.

    2. Re:Good idea. by modmans2ndcoming · · Score: 1, Funny

      Actually... I was thinking no... but only because they are all sexual deviants and have seen those kinds of Pythons in their Orgy Clubs.

    3. Re:Good idea. by Cryacin · · Score: 1, Insightful

      Yes, and computer programs are infallible, especially when you have honest types such as wall street bankers who would never game a system to their advantage. (ducks)

      --
      Science advances one funeral at a time- Max Planck
    4. 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.
    5. Re:Good idea. by Nidi62 · · Score: 1

      Colt makes one that shoots .44 Magnum bullets. Think that would be big enough?

      --
      The only thing necessary for evil to triumph is for it to be pitted against a slightly greater evil
    6. Re:Good idea. by Anonymous Coward · · Score: 1, Informative

      That would be an Anaconda. Colt Pythons are chambered for .357 magnum.

    7. 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.
    8. 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.
    9. Re:Good idea. by Anonymous Coward · · Score: 0

      Mod +1 funny.

    10. Re:Good idea. by Anonymous Coward · · Score: 0

      Modern society has the attitude that "if it's not illegal, do it".

      It's even worse than that. Looking at all the fraud going on, they don't even care if it's illegal.

    11. Re:Good idea. by timmarhy · · Score: 1, Troll
      dude, your fucking stupid if you think people are just going to play nice. "yes, i'll not make that million dollars because it'd be wrong"

      doesn't happen often under any culture.

      --
      If you mod me down, I will become more powerful than you can imagine....
    12. Re:Good idea. by Anonymous Coward · · Score: 0

      and those chinese enuchs. smashing your fleet over not wanting to rock the boat was a great idea

    13. Re:Good idea. by FiloEleven · · Score: 1

      But it happens more often in some than others, which was his point, and that's the best you can hope for. There is no way to close every loophole, and the quest to do just that would result only in widespread dissatisfaction and likely revolution.

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

    15. 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.
    16. 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
    17. Re:Good idea. by Black+Gold+Alchemist · · Score: 1

      The question is, what would happen if you tried to turn snake oil into biodiesel?

      Hmm. This might be a part of my larger-scale plan to save both the economy and the environment: bankerdiesel.

      --
      Responsibility is an addiction
      Virtue is a temptation
      Community is a cartel
    18. 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.
    19. 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.
    20. Re:Good idea. by Paradigma11 · · Score: 1

      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 ?

      but the drawbacks tend to effect all investments, not only the opague ones. so you might very well have been better off buying them.

    21. Re:Good idea. by Anonymous Coward · · Score: 1, Insightful

      But those assumptions could be backed out through simulation. Runs 10^8 scenarios through the model, calculate the expected return for the bankers and you know their assumptions.

    22. Re:Good idea. by Anonymous Coward · · Score: 1, Funny

      Too boring. You need to discover the joys of leverage and stochastic outcomes. Both make the whole gig far more exciting.

    23. Re:Good idea. by Anonymous Coward · · Score: 1, Insightful

      The added complexity is a necessary evil to express things in an UNAMBIGUOUS way, expressing things unambiguously is something managers marketing lawyers and other econotypes fail at every time. Go distribute some text written in econolawyerjargon and see if 100% of all the econodudes you give it to there understand exactly the same thing. You'll always end up with x number of people interpreting it as A and y number interpreting it as B andsoforth, programming languages eliminate this completely, they'll always produce the same result, regardless of machine (or operating system in the case of python). It's black and white and there's no room for grey by design.

    24. Re:Good idea. by Fred_A · · Score: 1

      The question is, what would happen if you tried to turn snake oil into biodiesel?

      I'm pretty sure it's been established already that most of biodiesel is snake oil. Made from rain forest snakes too.

      --

      May contain traces of nut.
      Made from the freshest electrons.
    25. Re:Good idea. by dkleinsc · · Score: 1

      Yup, he sure was.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
    26. Re:Good idea. by Anonymous Coward · · Score: 0

      I think you missed his point. He was saying that laws alone aren't enough. He already said that people won't, "play nice." His point is that the general code of morals isn't being pushed effectively enough these days. Our currently legal system needs help, and it won't be coming from within our legal system.

    27. 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"
    28. Re:Good idea. by Anonymous Coward · · Score: 1, Interesting

      Actually, social obligations within the empire were by law and decree very civil, cordate, considerate, and respectful. Even by modern terms. It's only on the warpath that things changed. And exceptions were mostly for enemies that resisted (twisting Ultima Thule around a bit), and camp and battlefield discipline.

      Sort of like old Martial Germany. Or Japan. Everyone prim and proper and most curteous and repressed. And looking forward for the next little war let off some steam or screaming hysteria.

      Oh. And, yes, he was quite a sweet-talker. Excelled at negotiations and diplomacy. And politics. Plus above-par strategist, tactician and fighter. And he refused a petition to kill all the Chinese and turn China into pasture for that crucial essential-resource : mongol horses. Better than the U.S. did, going west.

      And more than 10% of northern humanity has his - personal - genes. I think it goes up to 30%, in China. More, in Mongolia.

    29. Re:Good idea. by Anonymous Coward · · Score: 1, Insightful

      Yeah, those dirty "Wall Street Types".

      How many programmers were arrested in the Madoff scandal?

    30. 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
    31. 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?

    32. Re:Good idea. by SleazyRidr · · Score: 1

      Exactly, given the trend for private gains and socialized losses, you might as well expose yourself to as much upside as you can and completely ignore the downside.

    33. Re:Good idea. by xxdinkxx · · Score: 1

      I know Ruby and c++ are certainly capable of meta programming.
      Has this simple fact entered anyone's mind.

      Take the following example for instance:
      #include <iostream>
      #include <string>

      using namespace std;

      template < size_t N > struct Q {
        ostream & operator()() { return Q<(N>>6)>()() << ((char)(30+N%64)); }
      };
      template < > struct Q<0> { ostream & operator()() { return cout;} };

      template <class H, class T> struct P { };
      typedef P< Q<0x29c71a6e>,
        P< Q<0x270a8c74>,
        P< Q<0x2da7bf2>,
        P< Q<0x2e8f69c2>,
        P< Q<0x2f9f68c2>,
        P< Q<0x32d31a74>,
        P< Q<0x23befaf0>, Q<0x29082082> >
        > > > > >
      > M;

      template < class H > struct V { void operator()() { H()(); } };
      template < class H, class T > struct V<P<H, T> >{ void operator()() { H()(); V<T>()(); }; };

      int main() {
          V<M>()();
          // cout << '\  n';
         // Edit: if I escape the backslash, an extra space appears between \  and n; if I don't then the 'n' is invisible?
      }
      source: http://www.reddit.com/r/programming/comments/bj10p/c_template_metaprogramming_mindblown/

      the output is:
      GOOGLE FOR TEMPLATE META PROGRAMMING

      Would any one in their right mind imagine this?

      I am sure python has to be capable of this kind of convolution. If not, then ruby has a one up on py.
      I am too lazy to convert this c++ demon into a ruby script. I'll leave that as an exercise to the reader.
      EDIT: when I try to post this, it is giving me a too few characters per line issue. What is up with slashdot these days?
      I don't mean to go on a rant, but some of their validations is insane?

    34. Re:Good idea. by Anonymous Coward · · Score: 1, Insightful

      In the short term.

    35. Re:Good idea. by Cryacin · · Score: 1

      Everything on number 37! (I have a feeling about that number!)

      --
      Science advances one funeral at a time- Max Planck
    36. Re:Good idea. by Eivind · · Score: 1

      Leverage is also a simple concept. It's my honest opinion that if you don't understand it, you should not do it.

      Leverage is just buying stock for $100K with 50K of your own money, and 50K borrowed money. If the stock rice 10%, you've made 20% profit, on the flipside, if the stock falls 50%, you've lost 100% of your investment. There's an extra cost, offcourse, namely the fact that you need to pay interest on the money you borrow.

      Everyone who has any kind of debt, yet still own stock, can be said to be leveraged: they're gambling that the stock will rise more than the interest on the debt. That's a really -dumb- gamble in two cases, first if the interest on the debt is high (i.e. credit-card-debt), and second if it's a gamble you can't afford to lose.

      On the other hand I have a mortgage, at 3% interest, 2.3% interest after taxes, and also own stock. That's a reasonable gamble, because long-term average-returns on stock are significantly higher than 2.3%, AND (important AND), I can afford to lose the gamble, i.e. my finances are okay, even if the stock -don't- rise, or indeed even if they're wiped out.

    37. Re:Good idea. by Eivind · · Score: 1

      No. That's precisely the point.

      There -is- such a thing as a bad investment. Investments that, if you understood them, you'd not buy them. Buy buying only investments you -do- understand, you significantly decrease your risk of ending up with such an investment.

    38. Re:Good idea. by Anonymous Coward · · Score: 0

      python is the 3rd most used language on wall street (after java and c++)... however SEC's suggestion is beyond dumb. 2 words: "which version"

    39. Re:Good idea. by Anonymous Coward · · Score: 0

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

      You have a rather romantic and incomplete view of history. Eastern cultures were just as capable, if not moreso, of the same kinds of "immoral" behaviors that we exhibit today.

    40. Re:Good idea. by drewhk · · Score: 1

      He can't. Because he is wrong. The fact that we even _debate_ about morality shows that it is somehow evolutionally beneficial.

    41. Re:Good idea. by drewhk · · Score: 1

      It is still better than natural language -- I can run it with a debugger.

  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 Anonymous Coward · · Score: 0

      At least you can run a program. You can't run legalese.

    2. 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.
    3. 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.
    4. Re:Ugh! by Anonymous Coward · · Score: 0

      I think the guys at the SEC are getting tired of businesses trying to hide rule breaking in legalese. Python is way more readable than that. Besides, any public company is going to have its own IT crew already.

    5. 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 :)

    6. Re:Ugh! by maxume · · Score: 1

      You really think that is true? People seem to have cell phones and gym memberships and cars and bank accounts that they are mostly satisfied with. Sure, there are lots of complaints about all of those things, but there doesn't seem to be tens of millions of complaints about how hard they were to understand.

      Have you been charged far more than you expected for parking?

      Of course, I have a pay-go cell phone, run for exercise, own a car I purchased used and have an account at a credit union. Of those things, the car is probably the 'hardest' one compared to your list, because it doesn't come with repair services. Pay-go cell phones keep getting better (there are several contract free phone services with unlimited voice for $50; that's less than a local landline cost in 1980. If people can't understand "You pay $50, it works for a month", it isn't the social system that is holding them back.) Various bipedal motions are within the grasp of most people that would bother going to a gym, and most people that get burned by not bothering to understand their bank account (I don't think they are as complicated as you imply) just end up not using banks at all, which isn't really all that expensive.

      --
      Nerd rage is the funniest rage.
    7. Re:Ugh! by oldhack · · Score: 1

      Try taking out a mortgage. Most of us don't really understand the crazy paperworks, and that includes large number of lawyers and accountants.

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

      There might be crazy paperwork for a super-duper-reverse-amortizing-interest-only-ARM, but a standard 30-year fixed rate mortgage isn't so hard to understand. You look at the amortization schedule, and it tells you how much of the payment is going towards principal and how much is going to interest. In other words, you can see how much of your house you own at the end of each payment.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    9. Re:Ugh! by Fred_A · · Score: 1

      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.

      Depends, they could have specified it in Perl (or something really evil). Then legalese would look like Beginner's English in comparison.
      Of course I suppose that to most lawyers, any programming language will look like cuneiform anyway.

      --

      May contain traces of nut.
      Made from the freshest electrons.
    10. 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 ?

    11. 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 King+InuYasha · · Score: 0

      Then there's ENGLISH

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

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

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

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

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

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

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

    6. Re:Fantastic! by Anonymous Coward · · Score: 0

      Hey, I have an even better idea: lets make sure the rules are encoded using Python 2.X, order some quality drinks and watch the ensuing chaos after a few Guido moments have passed while enjoying our precious single malts.

      (no disrespect, just acknowledgement of the nature of the language)

    7. Re:Fantastic! by scamper_22 · · Score: 1

      Ultimately, all laws and regulations could be setup to be a computer program.
      What is a programming language, but a way to exactly specify algorithms and data structures? In this case, we only need the algorithm part.

      Now, you'll never be able to get rid of human judgment. All the input parameters will be up in the air. But what does get you to do is focus on the assumptions you make on the numbers you put in.
      The best example I can think of now is filing my taxes. I use a computer program and all my energy is focused on inputting the data. Wouldn't it be great if banks/employers/brokers.... could talk to the tax program... then my inputting is done for me and I could just focus on which years I want to claim things. how to split things up.

      Heck, I think all legal documents should be written in a programming language. English and other languages are not precise enough.

      So you would have this as part of your program:

      var cost = 0;
      if( supplier.job == completed ) then cost += $50000.
      if(supplier.job.lateby 10 days ) then cost -= $40000 ...

      Now of course you have to work out the meaning of 'completed'. You will have to be subjective there... or maybe you can write a full specification detailing all the requirements of what it means for a job to be complete... yet... dealing with technical requirements as a programmer... I know that's a much harder task... and always ends up being subjective.

      But again... the legal framework as a program means the contract is set and you battle on what counts... the input variables and everyone has equal access to it. Even someone who cannot fully understand boolean logic can 'play' with the contract and the input paramters to see what happens if things change...

      But good luck with my fantasy. Lawyers depend on legaleez and preventing the ordinary person access to the law as their job protection.

    8. Re:Fantastic! by TapeCutter · · Score: 1

      Good grief man, do you realise your proposal is how hope desks already don't work.

      --
      And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
    9. Re:Fantastic! by complete+loony · · Score: 1

      How many times has the tax code been translated into an application where the end user inputs their assumptions and the software tells you what happens next.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    10. Re:Fantastic! by Anonymous Coward · · Score: 0

      now there is a load of bovine excrement! Python is one of the worst possible choices language for any sort of computing only php/ruby/rails would be worse. Th OO garbage is doing more damage than good when it comes to expressing concepts

    11. Re:Fantastic! by robot256 · · Score: 1

      Yes! Wouldn't be great if understanding *every* law was as simple as downloading a program from congress.gov? Or better yet, if Congress passed a law containing python code and the lawyers translated it into English just to confuse each other with.

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

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

    15. Re:Fantastic! by fatp · · Score: 1

      It will show that that laws are unmaintainable and buggy

    16. Re:Fantastic! by quanticle · · Score: 1

      I see this as a horrible idea. The moment Python becomes codified as an official standard, innovation will stop. The risk of introducing a new language feature that alters behavior critical to a company's SEC filing would be too great. At best you'd see very carefully vetted security updates, but the freewheeling, innovative Python culture that we have today would die a quick death.

      The way I see it, the government should use the language that it invented for critical applications: Ada.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    17. Re:Fantastic! by dkf · · Score: 1

      Not only would the rules be transparent and non-ambiguous, but the potential for experimentation and self-analysis would be incredible.

      You underestimate the power of people to make things opaque and ambiguous when they think it is in their interest to do so, and Python, being a Turing-complete language (modulo memory limits), would let them do it. It's also an inherent problem: any language that you can't make an unholy mess in is just too trivial to be able to express anything interesting. (With thanks to Kurt Gödel...)

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    18. 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.)

    19. Re:Fantastic! by Myopic · · Score: 1

      That would be very convenient, and I would welcome the convenience. On the other hand, it would solidify the government's knowledge over every part of my financial life, and although I understand that they already know a lot of my numbers, that makes me a little uncomfortable. I wish there were a third way to have both the convenience and the privacy, but I can't think of one. It's difficult to decide which system I prefer, but yours sure has some benefits, no question about that.

    20. Re:Fantastic! by cduffy · · Score: 1

      This is a very restricted problem domain, though -- we're evaluating a function with no state between invocations, we know the range of most of the inputs (and which of the inputs are controlled by market forces and which of them can be more directly manipulated by the "attacker"). We don't need a fully automated analysis tool -- if we determine which code paths aren't invoked during common-case analysis and point them out for human intervention, that's enough to do quite a bit of good right there.

      In any event, you don't have the fuzzy variables of "what can the judge be convinced of" in play. Put in the same inputs, you get the same outputs; that's a vast improvement over the disclosure statements of today.

    21. Re:Fantastic! by ottothecow · · Score: 1
      This isn't them getting any more numbers, this is just them filling in the ones they already have.

      For instance, when you get a W2 from your employer, they have already sent a copy to the government--so why do you have to retype the same data?

      --
      Bottles.
    22. Re:Fantastic! by thebagel · · Score: 1

      Just make sure our lawmakers don't pick up Perl, or all your laws will look like this...

    23. Re:Fantastic! by Myopic · · Score: 1

      Okay, I really really don't want to start an argument, so I'm not going to respond further in this thread than this. It seems impossible to make a point or counterpoint on Slashdot without someone mischaracterizing what was said.

      A w-2 is a good example of a number that the government already has; but the government does not have a lot of other numbers that are required for many tax returns. Thus, to fill in the returns for many people they would need to increase the amount of information they gather. That might be okay, or it might be a bit too much for them to know.

      That's all I'm saying. The convenience might or might not be worth the extra surveillance.

      The last word is yours.

    24. Re:Fantastic! by ottothecow · · Score: 1
      I completely agree. The convenience of them gathering extra info do do the taxes for us is not worth the extra privacy loss.

      For a lot of people however, W2 income is almost all you need (renters with no dependants and no investments who take the standard deduction often fit this)--This will be the first year where I actually have to provide anything beyond W2 income and I probably started filing taxes in 2002 or 2003.

      The only reason they don't already do this, is they have gotten a lot of pushback from Intuit and H&R Block. I think california wanted to make an easy e-file system that already included the basic data they receive from your employer but a bunch of lawsuits sprung up and they abandoned the plan. It will never be as simple as the Norway example because our tax code is far more complicated, but entering W2s would be a nice start and would take care of a lot of simple wage-earners.

      --
      Bottles.
    25. Re:Fantastic! by Anonymous Coward · · Score: 0

      or 20% of the total taxes collected

      Citation needed - something doesn't add up there.

    26. Re:Fantastic! by DocHoncho · · Score: 1

      There's nothing preventing them from stating that only Python 2.5.x or 2.6.x is permissible. Any new features are going to appear in 2.7 or 3.x anyway. And if it was really that big of a deal they could fork it. Call it BigMoneyPython and let that languish. I can't see any reason why the SEC choosing Python as a platform for this would in any way affect the Python project as a whole.

      --
      Celebrity worship is a poor substitute for Deity worship and costs more to boot.
    27. Re:Fantastic! by clarkkent09 · · Score: 1

      From wikipedia (yes I know): http://en.wikipedia.org/wiki/Tax_preparation It points to this document as source: http://www.gao.gov/products/GAO-05-878 (click on Full Report)

      --
      Negative moral value of force outweighs the positive value of good intentions.
    28. Re:Fantastic! by Eivind · · Score: 1

      I agree that there's privacy-implications. However, one can see it like this:

      Certain numbers you are required by law to report to the government when filing your taxes. You could argue that having them not be informed of those numbers directly (from your employer or bank or whatever) is an improvement in privacy. But it's only an improvement for criminals, i.e. those who fail to comply with the legal requirement to truthfully disclose the same information to the same government.

      Thus, if you're doing the legal thing today: reporting those numbers to the government. Then the government knows nothing more about you just because they get -exactly- the same information from a different source.

      There's a third way, offcourse.

      You could let your employer/bank/whatever OPTIONALLY report those numbers, i.e. let everyone -choose- if they want the numbers reported (and thus the tax-filings simplified) or the number not-reported. (like today)

    29. Re:Fantastic! by Eivind · · Score: 1

      Good point. There's an entire industry in USA that derives a lot of income from, basically, helping people file their taxes. Thus any initiative which makes that easier, to the point that less people require any kind of help, is going to be fought by the industry.

      They'll lie, offcourse. They won't say "this initiative would mean less income for us". Instead they'll come up with spurious arguments.

    30. Re:Fantastic! by drewhk · · Score: 1

      But these code pieces provide a common API. You can just sweep over inputs and plot the outcome. Also, nothing stops you from running it in a debugger. And, if the code looks particularily nasty, then you just don't buy that asset. Just like with an overcomplicated or smelly legalese.

    31. Re:Fantastic! by drewhk · · Score: 1

      So what? The exact same problem exists with legalese. But you can't just run legalese. You can't expreiment with it. You cannot sweep trough input parameters plotting the output. You cannot observe it in a debugger.

    32. Re:Fantastic! by Anonymous Coward · · Score: 0

      I would prefer Ruby, for the same reasons you mentioned...

  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.

    2. Re:Computational Bureaucracy??? by flajann · · Score: 1

      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.

      Don't even get me started with lawyers and code!!! I have a patent on a GUI interface that I sold to a major networking company which was involved in a patent infringement lawsuit a few years back, and this beautiful Java code that I implemented the software invention in was picked to death by the lawyers during the deposition.

      They didn't really understand the code as much, but paid a hell of a lot of attention to the comments, and would bash me on the most uninteresting aspects of what I did. I almost wish I hadn't put any comments in at all.

      They did pick on a few functions here and their, but again the most uninteresting aspects. It was quite annoying and it's a wonder why I didn't shoot them for sacrilege.

      Oh, I recall why now. They were paying me big bucks per hour for my time. Talk about money without joy!

  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 Anonymous Coward · · Score: 0

      Exactly. Using Python (or any other non-functional language) is no better than English.

    2. Re:hmm by solweil · · Score: 1

      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.

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

    4. Re:hmm by maxume · · Score: 1

      You should probably qualify that with some hand waving about having enough resources.

      --
      Nerd rage is the funniest rage.
    5. Re:hmm by TapeCutter · · Score: 1

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

      Someone tell those monkeys to stop working on Shakespear, bigattichouse has found a more usefull project for them.

      --
      And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
    6. Re:hmm by xant · · Score: 1

      Good question, but the answer is that it does matter. I'm actually a huge fan of Python, but I can indeed see a big advantage in having some element of provability in the language chosen, and I do have some concerns about my favorite language being used for this. Python is a pragmatic, readable language but it isn't a great one for provability.

      To address your insightful point: You don't have to trust the compiler. The SEC wants source code to be given. Since you can run the source code on any correct compiler, including one you yourself just wrote, and expect to get the same result, there's no way to exploit it through that.

      The unraised point is that you can, in fact, exploit the program code this way. Given innocuous code that in certain situations--some of which may be intentional on the part of the author of the code, some of which may not be--you can get surprising and highly lucrative corner cases. A clever coder can create these intentionally; a bad one can do it unintentionally, and either way it can be hard to spot.

      I think the answer to the latter issue is "unit tests". A third party can write tests for a bunch of inputs, run it through your code and make sure your code produces the expected outputs. Discover bugs and backdoors this way, and report them to the code author or SEC, whichever is appropriate.

      --
      It's rare that you're presented with a knob whose only two positions are Make History and Flee Your Glorious Destiny.
    7. Re:hmm by quanticle · · Score: 1

      Well, presumably, there would be a certified compiler or interpreter that would be used to run the code in question, and only results from the certified compiler would be acceptable to the SEC.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    8. Re:hmm by Hurricane78 · · Score: 1

      I did also think of Haskell, rather than a quick-and-dirty scripting language without any strictness.

      Or, if you have to, Z notation.

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    9. Re:hmm by Anonymous Coward · · Score: 0

      A functional program written in a functional programming language can be evaluated with pen and paper in much the same way as symbols in equations are manipulated in an algebraic proof.

      Because there are no side effects, there are no mutable variables to track so it is a lot easier to reason about the behaviour of a functional program.

      Functional programming languages are not more reliable, but functional programmers are.

      Reasoning about a program and running a program are entirely different things. Only the latter is affected by a compiler.

    10. Re:hmm by PhilHibbs · · Score: 1

      What did you compile Python with?

    11. Re:hmm by Anonymous Coward · · Score: 0

      But they wanted people to actually read it.

    12. Re:hmm by sourcerror · · Score: 1

      Dynamic languages aren't provable.

    13. Re:hmm by tibit · · Score: 1

      Provable as to what? In any case, a lot of code written in dynamic languages is really not that hard to reason about. Everything depends on what features of the language do you use, and how you use them. You can write perfectly functional side-effect-free code in Python. The compiler won't enforce it for you, but you can do it.

      --
      A successful API design takes a mixture of software design and pedagogy.
    14. Re:hmm by Just+Some+Guy · · Score: 1

      Python is FOSS so there is no black box.

      Ken Thompson smiles upon your trust.

      --
      Dewey, what part of this looks like authorities should be involved?
    15. Re:hmm by Anonymous Coward · · Score: 0

      if you are trusting the implementation via a black box on a different level?

      Python is FOSS so there is no black box.

      There isn't a black box, but there is a series of grey boxes. ie: while the boxes aren't black, they're pretty impenetrable to someone who doesn't read the next language down. CPython is so named because it's interpreter is written in C. PyPy is built in an interpreter that runs in C first, before it can be run on it's own. The CPython interpreter was of course compiled by a C compiler written in Assembly (with no doubt, some C in it now). The whole thing is glued together with make scripts to build. So you're right, there is no black box. It may as well be since you still need to trust the layers below.

      Fortunately, the idea of a world spanning conspiracy of computer hackers to keep the public in the dark about the inner workings of the Gnu C compiler and the true meaning of assembly language have escaped public knowledge. As well, any soul who has grokked the truth has been inducted into the hallowed corridors of the 1337.

    16. Re:hmm by Anonymous Coward · · Score: 0

      That would be bad. If you tried to logically prove our current financial system, the proof program would gain life and conquer humanity just to save us from our own stupidity and irrationality. How do you think Skynet really started?

    17. Re:hmm by sourcerror · · Score: 1

      Provable as to what?

      Of course I'm speaking about automatic reasoning. e.g. description logic languages are quite easy to reason about (i.e. it will terminate). But they're seriously restricted compared to first-order logic. (Which can easily result in a program running forever. I don't know whether it's Turing complete, but I wouldn't be surprised if it were.)

      Everything depends on what features of the language do you use, and how you use them. You can write perfectly functional side-effect-free code in Python. The compiler won't enforce it for you, but you can do it.

      If you use only a subset of a language, it isn't the same language anymore.

      I'm having a hard time imagining a subset of Python, when you can't define new functions during runtime: because that'll screw your provability.

    18. Re:hmm by jc42 · · Score: 1

      presumably, there would be a certified compiler or interpreter that would be used to run the code in question, and only results from the certified compiler would be acceptable to the SEC.

      It would only be available in binary form, and would only run on MS Windows.

      (I almost typed a smiley, but realized that it wouldn't be appropriate. ;-)

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  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: 0

      I can't see legalese framed in an obsolete or deprecated language being any worse than modern legalese. Maybe that's just me though.

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

    4. 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/
    5. Re:its a step in the right direction by DarkKnightRadick · · Score: 1

      Same with Perl.

      --
      "There is a way that seems right to a man, but its end is the way of death." Proverbs 16:25 (NKJV)
    6. Re:its a step in the right direction by modmans2ndcoming · · Score: 1

      no... perl is:

      print "$1.00";

      watch the capital letters and semi-colons... and remember... white space is meaningless.

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

    8. Re:its a step in the right direction by DarkKnightRadick · · Score: 1

      I stand corrected, thank you. (:

      --
      "There is a way that seems right to a man, but its end is the way of death." Proverbs 16:25 (NKJV)
    9. 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!
    10. Re:its a step in the right direction by gd2shoe · · Score: 1

      No, it was. With Python 3, it's now: print("$1.00")

      Granted, various versions of Python 2 are still very much alive and kicking. As time progresses, Python 3 gradually will take over. (The only thing that could avoid this would be a code fork, and I see no sign of that.)

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
    11. Re:its a step in the right direction by gd2shoe · · Score: 1

      Addendum:

      I realize their desire for better consistency in the language. Still, parenthesis give specificity at the cost of readability and writing speed. I think there ought to be fewer parenthesis required in programming, not more. (And no calls for Perl, please. Other parts of the language drive me nuts.)

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
    12. Re:its a step in the right direction by moreati · · Score: 1

      IPython is an interactive interpreter that will allow you to skip the brackets in many cases, but you'll still need them in an script. Certain editors and IDEs have a mode that auto-complete/inserts the brackets.

      The benefit of having print as a function, is that one can override it:

      old_print = print

      def print(*args, **kwargs):
              # Do something custom, maybe filtering, time stamping
              old_print(*args, **kwargs)

      Using the logging module is normally a better approach than print though...

    13. Re:its a step in the right direction by spazdor · · Score: 1

      I say Lisp. It's timelessly irrelevant.

      --
      DRM: Terminator crops for your mind!
    14. 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.

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

    16. Re:its a step in the right direction by oldhack · · Score: 1

      All y'all had better not try that. Fed has the patent on that. And it ain't one of them bullshit patent either. The whole of the US gov't will come down on your ass.

      --
      Fuck systemd. Fuck Redhat. Fuck Soylent, too. Wait, scratch the last one.
    17. Re:its a step in the right direction by Billly+Gates · · Score: 1

      Unfortunately (or fortunately depending on how you look at it) many of the new features of 3.0 have been backported to 2.6 which lessens the need to upgrade anyway.

      All the opensource software for ubuntu is for py 2.6 and many developers are not bothering recoding all the work if 2.6 is fine and has the newest features.

    18. Re:its a step in the right direction by Billly+Gates · · Score: 1

      Or perl with the more than one way to do it will make it nearly unreadable if you have a different style in every line

    19. Re:its a step in the right direction by pete-wilko · · Score: 1

      doh - fixing post.

    20. Re:its a step in the right direction by Anonymous Coward · · Score: 0

      And, of course, the advantage of a programming language over a spoken language is that the former usually comes with a version number.

    21. Re:its a step in the right direction by Anonymous Coward · · Score: 0

      no... perl is:
      print "$1.00";
      watch the capital letters and semi-colons... and remember... white space is meaningless.

      That's wrong too. Watch out for variable interpolation. It should be:
      print '$1.00';
      or
      print ""\$1.00";

    22. Re:its a step in the right direction by BJ_Covert_Action · · Score: 1

      Also, if we are talking perl 5.10, you would need to use single quotes rather than double quotes as the double quotes would try to interpret the '$' character as a sigil and thus look for the scalar variable $1. So in summation:

      print '$1.00';

      ...would be the most correct.

    23. Re:its a step in the right direction by DocHoncho · · Score: 1

      And perl fanatics wonder why folks are always down on perl... Perl... what a goddamned shame.

      --
      Celebrity worship is a poor substitute for Deity worship and costs more to boot.
    24. Re:its a step in the right direction by VTI9600 · · Score: 1

      Python has been around for nearly 20 years and yet people seem to be continuously "discovering" it. I'd say it has withstood the test of time.

    25. Re:its a step in the right direction by gd2shoe · · Score: 1

      That is a double edged sword, isn't it. I think Guido believed people would adapt as soon as they could (following updates to 3rd party modules, etc). Still, I think that the time will come when the 2.x line will be officially deprecated and people will move. (Again, I just don't see a fork.)

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
  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
    1. Re:This proves that... by Anonymous Coward · · Score: 0

      I'm having trouble understanding what it's trying to say. Can someone write it in Python for me?

  9. Investors are already making their own assumptions by Anonymous Coward · · Score: 0

    In commercial real estate, investors use their own spreadsheets or Argus to make their own assumptions. The same holds true for investors investing in stocks, bonds, derivatives, etc. Investing is a bet and sometimes assumptions turn out to be wrong. The government doesn't need to hold the investors' hands when it comes to investing money.

  10. 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. :-)

  11. 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 Anonymous Coward · · Score: 0

      Occam's Razer

      As does spelling not applying on Slashdot.

    2. Re:Rule 1291.3120-b-Clause 32 Section 1.1 by gd2shoe · · Score: 1

      Occam's Razor applied to finance: Somebody is taking advantage of somebody else for profit.

      It is thus inevitable that someone will create a condition which can be best capitalized on by someone else by playing along. It is equally likely that somebody else will think that they can best capitalize on a situation by playing along, and will become a patsy. (Extrapolate this, and you have a speculation bubble.) 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.

      I think Occam's Razor is an invaluable tool in understanding finance. I would hate to try to figure it out otherwise.

      (And if you bring up obscure specifics, have the decency to provide links. It's one think when a 5 second google provides an explanation, it's something else when that fails and 5 minutes arguing with sec.gov provides nothing.)

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
    3. 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.

    4. Re:Rule 1291.3120-b-Clause 32 Section 1.1 by Qzukk · · Score: 1

      As does spelling not applying on Slashdot.

      Occam's Razer: When two organizations are equally likely to have bulldozed the economy, make the smaller one the culprit.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    5. Re:Rule 1291.3120-b-Clause 32 Section 1.1 by NotOverHere · · Score: 1

      Occam's Razer

      As does spelling not applying on Slashdot.

      The simplest explanation might be that is a lowly typing error

    6. Re:Rule 1291.3120-b-Clause 32 Section 1.1 by gd2shoe · · Score: 1

      ... and no one player knew all that much of it.

      Quite the contrary, there were a number of people who knew exactly what was going on, and would really like to take their "earnings" and claim that they were totally oblivious. The meltdown was inevitable based on the possition the market was in, and those with sufficient experience and resources could understand what was about to happen. (Many who could have, foolishly didn't... including federal regulators.)

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
  12. 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.

    1. Re:Use JavaScript not Python. by Bruce+Perens · · Score: 1

      ECMAScript or JavaScript would be a much better language

      That would be a first! Imagine, JavaScript being better than something!

      If you want a constrained language, try Lua. But you'd probably have to add a math package or two.

    2. Re:Use JavaScript not Python. by Anonymous Coward · · Score: 1, Informative

      I program in both Python and JavaScript. Python is already in widespread use within the financial sector, while I've yet to see the same with JavaScript except as a little bit of front-end dressing on a financial website.

      JavaScript has some great aspects to it, but it has an awful lot of problems and it's very easy to write very buggy and cryptic code. Python is much more readable to both programmers and even non-programmers. I can show non-technical clients some Python code and they can usually make some sense of what it's doing - I'd have to think very hard about showing the same thing in JavaScript.

    3. Re:Use JavaScript not Python. by fahrbot-bot · · Score: 1

      Python is much more readable to both programmers and even non-programmers.

      I'm sorry, but Python's "block/group by indent" syntax is stupid and dangerous. Using a language where the programming is so easily manipulated and difficult for the untrained eye to discern would be a major problem.

      Guido van Rossum's geek card should be revoked for designing Python like this.

      Flame me if you like Python lovers, but you know I'm right.

      --
      It must have been something you assimilated. . . .
  13. Great idea. by Anonymous Coward · · Score: 0

    Specially after the final revision, when our serfs vote to change it to Visual Basic.

    Then we get to change the meaning of the keywords in the next release...

    Mwahahahahahahaha...cough.. cough...

    -- Your medicine, Mr. B.

    -- Thanks, S.

    (*) B== Burns ; S==Smithers.

    Not any other name, like, say, for instance, Bill or Steve or whatever...

    All trademarks are not mine, but their legal owners'.

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

    1. Re:Trade Secrets by u38cg · · Score: 1

      That is my problem with this proposal. It seems reasonable on the surface, but anyone who has sat through CS101 should know that programs can be significantly more complex than they appear (the halting problem et al.). A real world financial model would be extremely easy to insert a depth charge into - the academic research has already been done showing how easy it is to create models that are computationally intractable. And yes, this would make an excellent subject for the underhanded C contest.

      --
      [FUCK BETA]
  15. Re:Investors are already making their own assumpti by copponex · · Score: 1

    You're missing the point. The point is to make sure that the companies taking money are providing transparency to their investment strategy, not only to the investors but to the credit rating agencies as well. The firms in question purposefully obscured CDOs and other exotic financial instruments so they could play hot potato with the emperor's clothes and cash in on the commissions.

  16. 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.
    1. Re:Good for all legal requirements by Anonymous Coward · · Score: 0

      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.

      Define "pornography"

    2. Re:Good for all legal requirements by Anonymous Coward · · Score: 0

      The existence of legal grey areas is because the amount of information it would take to resolve a matter to everyone's satisfaction exceeds what they are able to put down on paper. Attempting to resolve everything into black and white without having a massively complicated program is just going to result in people being dissatisfied with judgments in borderline cases. You can't just expect everyone to shrug their shoulders when the machine you've built doesn't account for a particular nuance.

      That said, I wholeheartedly endorse the notion of algorithmic compliance in concrete matters that don't involve the delicate value judgments that people have trouble expressing properly in law or in a program.

    3. Re:Good for all legal requirements by gd2shoe · · Score: 1

      Three terms for you: loophole, backdoor, and garbage-in/garbage-out.

      Judges running wild is one thing. On the other hand, jury nullification is an important safety valve that we cannot afford to eliminate. It is marginalized, misunderstood, underused, and abused, but we'd be ultimately worse off without it.

      --
      I won't join Slashcott. OTOH, If Beta goes live, I just won't be back until it's fixed. Sorry Dice.
  17. Python's readability makes it a good choice by TwineLogic · · Score: 1

    I assume that the future will hold an increasing amount of law (or what amounts to law) encoded as software. Given that will be the case, I am very happy to hear of legislation which will propose Python as a lingua franca of law. Python is inherently easy to read. Mandatory formatting at first seems a weakness but ultimately creates a standardized "look" for Python source code. This allows the experienced eye to trace Python code with less change of misunderstanding the intent of the code.

    I support strongly the introduction of Python as the lingua franca for encoding law into computation models.

    That written, I am not convinced that the use of a computational model as part of the representation of an investment would have fore-stalled the current U.S. debacle. Recent news regarding corrupt moves by investment companies would indicate that the U.S. housing credit instrument collapse was in fact inadvertently orchestrated by certain companies creating mortgage instruments which "looked good on paper" but which the investment company believed would fail. For example, the investment company might have looked into additional information on the mortgage holders, determined those mortgage holders who did not get a raise last year, and lumped those mortgages into a 10,000-mortgage bond which was then "insured" with a Credit Default Swap. The information about paycheck could come from examining direct deposit receipts. The relevance of a person not getting a raise is that the person is more likely to be fired within a year.

    In light of the type of corruption which led to the credit problem in the U.S., it seems that regulations requiring financial instruments be specified in such-and-such amount of detail don't seem like a remedy. If the investment bank is privy to additional information than specified by the model, it doesn't matter whether the model is expressed as a Python program or a diagram -- the information which is left out of the representation can still be used by the corrupt investment bank, to "structure" the investments to perform other than as predicted.

    Some derivative instruments, such as Credit Default Swaps (CDS), gain value only if the instrument they derive from fails. A CDS for a mortgage pays the holder only if the mortgage enters default. In a way, this can be thought of as "insurance" on the original instrument. For simplified example, the holder of a mortgage note (the bank), might buy a CDS for that mortgage, to cover the loss in the event of default. The CDS must be paid for, so a cost is incurred in the event that no default transpires on the original instrument. The "insurance" that AIG was selling, which the U.S. Fed had to pay off on behalf off, were in the form of CDS-like instruments. AIG had sold many-fold more CDS than there were actual mortgages in default -- because 'savvy' investors who had no interest in the actual original instruments, who stood to lose nothing in the event of defaults, purchased CDS on mortgages as an "investment gamble" that certain packages would pay off.

    In the recently revealed collusion by an investment bank in the United States, it has been claimed that a prominent bank colluded with a prominent hedge fund manager to created CDS-related instruments (CDOs), which were promoted to succeed, but the investment bank held additional information indicating would fail.

    If the same scenario of corrupt investment company and corrupt hedge fund manager recurred under the proposed, Python-specifying, legislation, then the corrupt players would pay someone to write that Python. The Python would make a certain "representation of fact" about the security being sold. That representation would only be as factual as the real players let on to the programmer writing the statement.

    In other words, while the choice of Python is excellent, and the attempt to over-specify and codify honest and disclosure is excellent, even Python does not give us the power to force market players to disclose informa

    1. Re:Python's readability makes it a good choice by LifesABeach · · Score: 1

      If a "Derivative" is to be used as Insurance on an Investment, then to not own the Investment is Gambling. What is the difference in Gambling and Investing? I know a grinning show off could pop off something goofy. But how would the Supreme Court see it? Because you know, it's going to go to this level.

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

    3. Re:Python's readability makes it a good choice by Anonymous Coward · · Score: 0

      Your post is much more insightful than most, but I think you still have a slightly oversimplified view of some points.

      In the case of the credit market, the solution is to require that any person who holds a derivative which is based on the failure of another security, must hold the actual security being "insured." In this model, even those who would be indirectly damaged by a default (e.g., the commercial tenant), cannot legally buy "insurance" on any market. This would have a slight negative effect on capital growth in some cases, but a very good effect on risk and over-leveraging in almost all cases.

      It's not that simple. It's never clear what is "failure". Are high oil prices a failure? For an airline, yes; for Exxon, no. Is a company default a failure? For someone holding bonds, yes; for a competitor, no. Depending on the type of insurance contract, a policyholder death could be a gain or a loss for the insurance company. If you have a fixed-rate mortgage, you'd cheer for high interest rates (as you've locked in a lower rate), and if you have a adjustable-rate mortgage, you want low interest rates.

      I think what you're trying to get at is that we should avoid setting up situaitons where someone can own a risk, influence the outcome, and would be incentivized to a value-destroying behavior. That's all good. But what really is value destruction is not so obvious: a bankruptcy, for example, can mean increasing efficiency by eliminating inefficient companies (case in point, GM).

    4. 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.
    5. Re:Python's readability makes it a good choice by Anonymous Coward · · Score: 0

      The difference between gambling and investing depends on your definition (duh). If you define "gambling" as betting on any uncertain outcome, that is so general every purchase becomes gambling and the negative connotation of "gambling" is inappropriate.

      The thing to focus on is what risks are owned. Gambling usually refers to risks that are related to sport or games, such as what team wins a game or what number comes up on a dice. Investing usually refers to risks that are associated with the performance of a corporation or economy. Some things fall in between the two: sports betting might be "gambling" to Joe sixpack but "investing" to the owner of a football stadium.

      My understanding is that the CFTC basically determines what is appropriate for derivatives--in some sense, what is "investing" as opposed to simply "gambling". And that's how the Supreme Court will see it.

  18. 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 xTantrum · · Score: 1

      Actually I don't think Python has protected and private for its class. Its a free for all.

      --
      $action = empty(PHP) ? backToC() : unset(PHP) ; "when the concrete cases are understood, the abstractions are readily
    3. Re:No OOP by Cryacin · · Score: 1

      But oh how many geeks have failed to access inner private functions by using the 'friend' functions.

      --
      Science advances one funeral at a time- Max Planck
    4. Re:No OOP by ianare · · Score: 1

      All class properties are public in Python. It's a Roman Emperor's dating service.

    5. Re:No OOP by zach_the_lizard · · Score: 1

      My good sir, how does one become a Roman emperor to experience this dating service?

      --
      SSC
    6. 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.
  19. 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.

  20. 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 Sparagmei · · Score: 1

      Completely! One of my favorite books. I think Stross mentions in the afterword that he borrowed the robot-company chain idea from someone, but I doubt it was originally conceived of in Python. Of course, if someone did this, it'd be immediately tagged as violating the IP of a flash trading bot company...

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

    3. Re:Is nobody else flashing back by liquiddark · · Score: 1

      Exactly what I was thinking...except I was thinking about the part where those executable specifications out-compete human beings in the computing-dominated future.

    4. Re:Is nobody else flashing back by Anonymous Coward · · Score: 1, Interesting

      There's an episode of Blake's 7 where a court case is decided after the prosecution and defence submit their arguments as programs. That may have been from the first episode broadcast on Mon 2 Jan 1978. In any case, it sorta reduces law to a game of CoreWars.

    5. Re:Is nobody else flashing back by vivarin · · Score: 1

      She isn't sure quite where the money is coming from. Presumably it's some creaky financial engine designed by Dad, stirring from its bear-market bunker for the first time in decades to suck dusty syndication feeds and liquidate long-term assets held against her return. She's duly grateful – even fervently so – for the details of her own impecunious position grow more depressing the more she learns about them. Her sole asset is the Field Circus, a thirty-years-obsolete starwisp massing less than twenty kilograms including what's left of its tattered sail, along with its cargo of uploaded passengers and crew. Without the farsighted trust fund that has suddenly chugged into life, she'd be stranded in the realm of ever-circling leptons. But now the fund has sent her its offer of incarnation, she's got a dilemma. Because one of the Field Circus's passengers has never actually had a meatspace body ...

      Amber finds the Slug browsing quietly in a transparent space filled with lazily waving branches that resemble violet coral fans. They're a ghost-memory of alien life, an order of thermophilic quasi fungi with hyphae ridged in actin/myosin analogues, muscular and slippery filter feeders that eat airborne unicellular organisms. The Slug itself is about two meters long and has a lacy white exoskeleton of curves and arcs that don't repeat, disturbingly similar to a Penrose tiling. Chocolate brown organs pulse slowly under the skeleton. The ground underfoot is dry but feels swampy.

      Actually, the Slug is a surgical disguise. Both it and the quasi-fungal ecosystem have been extinct for millions of years, existing only as cheap stage props in an interstellar medicine show run by rogue financial instruments. The Slug itself is one such self-aware scam, probably a pyramid scheme or even an entire compressed junk bond market in heavy recession, trying to hide from its creditors by masquerading as a life-form.

  21. 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
    1. Re:bad idea by T+Murphy · · Score: 1

      Makes sense to me. Your choices become your wealth going down from snakes or up with (CD) ladders. It will be so easy it's like child's play.

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

    1. Re:Cool a new job for me by kpainter · · Score: 1

      return "Millions and millions"

      Shouldn't that really be:

      return ("Millions", "millions")

      much more pythonic that way

  23. 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 Xuranova · · Score: 1

      Most people probably can't explain the "WHY" of a stocks movement from day to day. Are you expecting people to not buy stocks? If everyone was on the same page about financial products, we'd be pretty close to 'perfect markets' and no one would make much money. It's because so few have any idea why something is worth what it is in a market that people bother to get in to it: to make money off someone else's misunderstandings.

      --
      "There is no real right or wrong, just what the majority accepts at the time."
    2. Re:Huh- why? by khallow · · Score: 1

      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.

      It's a great idea. But the problem with it is that even if you know this stuff, it can still be a big mess because of the risks you assume. If I borrow huge sums of money to make my bets, then even a little bad luck can be disastrous. But I might not care, because it's not my money at stake. Second, most of this money is probably OPM (Other Peoples' Money). That means it's very likely that a bunch of people who don't have a clue have delegated through one means or another, their investing authority to someone else who might know what they're doing, but who doesn't have so much incentive in making sure that the investment is as good as if they were investing their own money.

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

    4. Re:Huh- why? by Bryan3000000 · · Score: 1

      Nope, you have to take it further. If the designer of the product can't figure it out, it's not too confusing - it's intentionally misleading. But frankly, the designer should know that it's obfuscation. Except he's probably taking orders from above that say "give me x", where x will be put together with a bunch of other stuff to produce another product or even just a situation that is intentionally misleading. The key is that the parts are incomprehensible (meaning generally that there is complexity which is unjustifiable outside of a larger plan [generally a plan to deceive]), and the parts do not _explicitly_ violate the letter of the law (so they are potentially defensible). That's the way our financial system and our corporate system operate with regard to the law, and that's the reason our laws have to be "patched" from time to time. Lobbying efforts mean that new loopholes and bugs are intentionally written into any patch.

      I say all of this as someone with an ivy league law degree who used to practice law. I turned down opportunities early on to enter that ecosystem, because I saw exactly what was happening. Whenever I questioned the situation, people got very defensive and sometimes angry, but their defenses were very telling. They as much as admitted it would blow up, but essentially said you have to keep ahead of the herd to "succeed". The strategy of the successful in this country is to walk on the backs of others, with spiked heels if necessary. I saw a lot of people, including many attorneys, work (mentally) very hard to ignore this reality and convince themselves that this is not the case, and that if they just do their jobs right, it will all work out.

    5. Re:Huh- why? by Anonymous Coward · · Score: 0

      For a second there I thought you were gonna go really crazy and suggest government should work like that too. You know, not vote on things if they haven't read it, don't understand it, don't know how it will be paid for. Thank goodness you stopped short of that bit of sedition.

    6. Re:Huh- why? by robot256 · · Score: 1

      So? With "perfect markets" we would be able to reward the innovators instead of the sheisters, avoid meglomaniac corporations and generally know what the hell was going on. If we spent less time making money off people's misunderstandings and more time actually creating value, maybe we as a society wouldn't be running ourselves into such a huge financial, cultural, intellectual, and political hole in the ground.

      I hope that wasn't a sarcasm parade I just rained on, but figured I'd bite anyways.

    7. Re:Huh- why? by nuggz · · Score: 1

      Well there are no secrets here.

      Stocks move because every day, and throughout the day different people come to an agreement on the price. Likely due to their different perceptions and different valuations of the company.

      Unless everyone has the same valuation model, including time horizon, risk tolerance discount rate etc, they can't all come up with the same value at any time.

      As for noone would make much money, I disagree.
      There are 2 ways to make money on the stock market.
      1. Find a bigger fool method. You buy a stock in the hope that someone, who isn't as smart as you, pays more for it than you did.
      2. Value creation, you buy stock in a company knowing they are a good profitable company, after some time of growing the company is actually worth more, they might have even simply paid their profits to you via dividends etc.

      #1 is a zero sum game, and in a "perfect market" that shouldn't happen.
      #2 is the way I see the market, and actually everyone can win

      There are companies that are very profitable and spit out cash, year after year. There are also risky companies that may or may not turn a profit, and you can be well rewarded for taking the chance.

      I think better that you're smarter than everyone else is a losing game, you're not that smart.

      This is why index funds tend to out perform actively managed funds year after year, they surrender to the simple idea that you're are likely not smarter than everyone else.

    8. Re:Huh- why? by u38cg · · Score: 1

      The problem is another order more interesting than that. For example, someone interested in stock market variability might ask: what is the density of stock market returns? You get something that looks vaguely normal. However, you can fit any number of distributions and get models that fit extremely closely. Where they break down is the extreme returns: you might have accepted any one of these models, but if you look at the tails of all of them the divergence is huge, meaning you have no real idea what the probability of a large shift actually is. So the problem is that models do not always tell a complete story, particularly for anything with any degree of complexity. In turn, when you do get events that exceed the model's normal operating paramters, suddenly you get equations not solving, run-times exploding, and output that is deemed unacceptable. This leads to the second problem, which is that inside any particular companies, you get micro-economic incentives not to investigate and use models properly (think of how computer users make decisions that work against good security practices - the process is analogous). Senior managers demand that modellers provide summaries, single numbers, and dashboards, and then treat this information as if it were the model. This problem is the biggest topic for discussion around regulatory water-coolers at the moment, and other than demanding increased technical capability from senior staff, there aren't any easy answers in this area.

      --
      [FUCK BETA]
  24. Oooh great, let's use an academic programming.... by terraformer · · Score: 1

    Oooh great, let's use an academic programming language for a desktop application intended to provide clarity to financial transactions.

    A typical user's experience...

    cd c:\Documents\ and\ Settings\AJ34320\Desktop\ Mess\Desktop\Old\ Desktop\Fucking\ SEC\
    "not a directory or invalid folder"

    c:
    cd \Documents\ and\ Settings\AJ34320\Desktop\ Mess\Desktop\Old\ Desktop\Fucking\ SEC\
    C:\Programs Files\Python\bin\python.exe c:\Documents\ and\ Settings\AJ34320\Desktop\ Mess\Desktop\Old\ Desktop\Fucking\ SEC\bonehead.py

    Usage: bonehead.py [options] argument1 argument2

    Options:
    -h, --help show this help message and exit
    -v, --verbose Set mode to verbose.

    --
    Who are you? The new #2 Who is #1? You are #617565. I am not a number, I am a free man! Muhahaha.
  25. Wouldn't you want Haskell? by tjstork · · Score: 1

    Or some other other functional language like that? Usually when you are trying to formulate loads of rules, it would seem that brevity and exactness of results trumps the implementation detail of performance.

    --
    This is my sig.
    1. Re:Wouldn't you want Haskell? by poopdeville · · Score: 1

      Haskell was my first thought too. GHCi would make a pretty good financial calculator. Python seems like a poor choice. What part of a financial derivative is "object-like" at all?

      --
      After all, I am strangely colored.
    2. Re:Wouldn't you want Haskell? by alain_frisch · · Score: 1

      Indeed, a functional programming language is probably a better choice. Actually, a domain specific language, whose expressivity is well-controlled, is even better: it is more readable, and you can apply exact analysis. And this is exactly the approach we have taken at LexiFi (for which I work)! We have a small DSL to describe all kinds of derivatives, and various "universal" treatments that can be applied to any contract described in this DSL. Our implementation language is OCaml, but this is really an internal choice: contracts are just data, which can be represented in any syntax (XML for instance).

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

    1. Re:More appropraite Legalese by Anonymous Coward · · Score: 0

      Could I hire you to write my patents?

    2. Re:More appropraite Legalese by Hurricane78 · · Score: 1

      You forgot

      > import Terms;
      > import Conditions;
      > import HouseRules;

      And glegalese test.legalese usually throws a “out of memory exception” or a “stack overflow error”, unless you run it on a supercomputer.

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    3. Re:More appropraite Legalese by Aceticon · · Score: 1

      Actually there's a bug in your code:

      "[...] shall be initially equated to 1 (one) [...] includes the increment of "i" by 1 (one) in a positive monotonic uniform manner performed prior to each display to the visual display device" (emphasys mine) [...]"

      So the output would be:

      > glegalese test.legalese
      > a.out
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      >

      [Slow day today ....]

    4. Re:More appropraite Legalese by Anonymous Coward · · Score: 0

      shall be initially equated to 1 (one) .... the increment of "i" by 1 (one) ... performed prior to each display to the visual display device.

      > glegalese test.legalese
      > a.out
      1
      2
      3 ...
      >

      Whoops... looks like the lawyers and the programmers need to learn to communicate first ;)

    5. Re:More appropraite Legalese by Anonymous Coward · · Score: 0

      When you say "hereafter", what scope are you referring to?

    6. Re:More appropraite Legalese by Anonymous Coward · · Score: 0

      Wow, you and AC actually read and walkthrough the entire program description... Amazing.

      Do you guys give seminars on whitebox testing on a professional level?

    7. Re:More appropraite Legalese by magus_melchior · · Score: 1

      I suppose the instructions of this relic seem as much legalese as it seems to be Biblical parody:

      --
      "We are Microsoft. You shall be assimilated. Competition is futile."
    8. Re:More appropraite Legalese by Anonymous Coward · · Score: 0

      There is a bug in your code. The value "1" would not be printed.

    9. Re:More appropraite Legalese by 4e617474 · · Score: 1

      One of them can speak both code and legalese at the same time, and one of them can spot that the other described a pre-increment but designed the loop like he meant to describe a post-increment. Mock them if you will, AC, but I'd love it if they brought these two on where I work.

      --
      Finally modding someone offtopic when they rant about what "Begging the Question" means: priceless.
  27. Yet another solution in search for a problem by alexmin · · Score: 1

    Hey, let's forget about unfunded goverment mandates, senators busy playing blame games, clueless SEC employees, greedy intermediaries, lopsided compensation practices, and market participants that do not understand instruments that they are trading.

    What we really miss is python interface to EDGAR. Some guy say so, it must be true.

  28. 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 Hognoxious · · Score: 1

      Pseudo-code is imprecise. At least with real code it runs, and you can see what it does. Pseudo-code only runs in your head, which is different to my head.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    3. Re:Not without precedent by quanticle · · Score: 1

      Pseudo-code only runs in your head, which is different to my head.

      Not necessarily. After all, mathematics has developed a fairly standard set of symbols and forms that allow mathematicians to communicate theorems and proofs without ambiguity. Why can't we develop such a system for algorithms?

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    4. 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.

  29. Re:Investors are already making their own assumpti by fbartho · · Score: 1

    Then they use a quarter of the money from the secret life insurance policy to defend themselves in court, and then finally lose the court case and pay out another quarter of the money, then they walk away with half of the money and make the next model of the car, and caste a wider net, aiming it a kids, because due to their age, they can get a higher payout on the insurance policy.

    --
    Gravity Sucks
  30. 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.

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

    2. Re:Sounds silly to me by Joey+Vegetables · · Score: 1

      Unfortunately, Joe Sixpack's ignorance of economics doesn't confer immunity to its consequences. Mr. Sixpack may not have directly bought CDOs, but he was probably MORE exposed than those who actively traded them, via (a) his retirement fund, (b) the health of his employer (assuming he still has an employer and a retirement fund), and (c) the consequences of a declining dollar which will purchase much less food and energy, if any at all, on world markets once lending and hence inflation begin in earnest.

      What could he have done differently? Most forms of hedging would not have worked well due to Joe's lack of financial knowledge, as well as the excessive amounts of leverage and counterparty risk that prevailed at the time (and still do). But if he knew enough economics to know that the current situation was and still is unsustainable, he might have (a) bought gold; (b) paid down debt; (c) internationalized his investment portfolio, or at least greatly reduced exposure to U.S. and European bonds and equities and (d) considered retraining, retooling, or whatever was necessary to ensure that he'd continue to have marketable job skills even during a protracted period of financial, economic, political and possibly military instability. If he'd done those things, he'd likely have come out AHEAD of the day traders and even folks like me who were heavily invested in the financial services industry.

    3. Re:Sounds silly to me by jmcvetta · · Score: 1

      (b) paid down debt

      I agree with your other points. But if high inflation is anticipated, wouldn't it be more prudent for Joe to increase his nominal debt load -- locked in at a fixed rate, of course. He could then put the money to some productive use, and let inflation eat away at the real value of his debt.

    4. Re:Sounds silly to me by Joey+Vegetables · · Score: 1

      Very tempting, but what Joe might not be counting on is the tendency for governments to revalue certain debts (but not others) to lessen the pain to those who fund them.

  32. At least until by Anonymous Coward · · Score: 0

    At least until someone updates the gcc to recognize that you're building patch, to put in the patch that pays that changes the diff that you submit to the python base that changes the interpretation to put .001 from every transaction into your bank account.

    I would have been spilling the beans if it hadn't been recognized since the 70s.

  33. recursive by blair1q · · Score: 1

    This is not the solution. Not even close.

    Companies are protected from all sorts of investor inanity by the vagueness of the public's view into their business models.

    Asking a company to produce a model is asking the company to allow investors to claim that any action outside the model constitutes a violation of the promises made in the prospectus that is the model.

    Adding a hold-harmless clause stating that the model is innately inaccurate is the same thing as just not producing the automated model at all.

    Corporate finance reporting can't talk about the future because it doesn't know the future. It knows the past, give or take an error bar, and, provided a slight lag, it knows the present. It knows the current state of plans, and the statistics of the company's past experience in executing to plans. It knows the competitive landscape, but only as well as anyone outside knows its own insides.

    In the end, the best you can do is to produce a program that allows the investor to choose what elements of the business model to include in a model, and so on, all the way down. Then any errors are the investor's own.

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

  35. Re:Oooh great, let's use an academic programming.. by Anonymous Coward · · Score: 1, Informative

    A good portion of Google's code is written in that "academic" programming language. So is the Washington Post's website. And a good sized chunk of Gnome. Mercurial, probably the second most popular dvcs (after git) is written mostly 500 lines of Python. Civilization IV and Battlefield 2 both use Python for their scripting.

    What makes Python an academic language and C# an applications language? Is it the pretty IDE Microsoft makes for it?

  36. All Laws Should Compile by Doc+Ruby · · Score: 1

    Laws should work like computer programs, calling the "operating system" of the Constitution and acting on the "devices" of the real world under legal jurisdiction.

    The problem is that bugs will cost lives and livelihoods. And the code review will be based on the comments, which will still be written by lawyers.

    --

    --
    make install -not war

    1. Re:All Laws Should Compile by robot256 · · Score: 1

      I agree that there could be just as many bugs in algorithmic laws as there are in legalese-written laws--but the hope is that less obfuscation would make them more obvious. Point taken on the comments, though. The lawyers will always find something a way to ruin it for us. [/obligatory lawyer bashing]

    2. Re:All Laws Should Compile by loufoque · · Score: 1

      Rather, law should be modeled by a mathematical model that proves there are no ambiguities.

  37. Who cares about python? Seriously! by Anonymous Coward · · Score: 0

    That aside, the most reasonable thing to do is to submit price evolution process as stochastic diff eq, which is coded into some Monte Carlo framework that is agreed upon, and the regulators plug in assumptions about liquidity, interest rates and have an easy way of changing various sensitivities and correlations.

  38. Re:Investors are already making their own assumpti by Anonymous Coward · · Score: 0

    Good job regurgitaing the populist line. In fact, the rules of disclosure are pretty legit. If they sell you a car, they have to tell you what are all the pieces you're getting. If there's no brakes, they can't claim there are brakes. But it's your job as a buyer to check there are brakes. (This is for institutional/qualified investors... for retail the rules are more protective)

    There's not much for "consumer protection" in finance (it's generally caveat emptor, and for good reasons, but that's beside the point), but lying/fraud is illegal.

  39. How do you codify the sham that was derivatives? by ralphdaugherty · · Score: 1

    There's lots I don't understand about this. This seems to me to be only valid for long term funds invested in bonds and Treasuries or something.

          Isn't what these people do is change their decision making constantly with shifting criteria? 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?

          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. 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, they counted on a sham ratings scam to say that they were of such and such value by paid off people up and down the chain of deceit.

          How do you codify a sham such as ratings backed sliced and diced subprime mortgages? No one could know how bad it was, they could only guess, and make sure the hot potatoes got tossed before the music stopped.

      rd

  40. 12 months later... by smash · · Score: 1

    ...the inaugural obfuscated python programming contest...

    --
    I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  41. XBRL good; forecasting models filed with SEC bad by Steve+Hamlin · · Score: 1

    XBRL is a good idea - a global, industry standard extensible XML schema for financial information presentation, including financial statements (income statement and balance sheet).

    However, this proposal is encoding a scenario-based financial forecasting model developed by management and making a private entity (meaning not a governmental body, although perhaps a public company) publish that model. That's a bit too detailed, insidery and strategy-exposing for me, and I'm all about good transparency and governance.

    This is asking public-company management to publish, on an near-realtime basis, it's business plan, current strategy, operational moves, future M&A activity, etc. Revealing the secret plans, as it were. A well-regulated free market, being necessary to the security of a free state, the right of the people to keep private certain financial information, shall not be infringed.

    Will these be held to the same standards as current financial statement SEC filings (10K)? What if the scenarios, input variables, and model frameworks don't encompass all possible situations? What is an acceptable range of economic prevision? Can inaccuracy be the basis for shareholder or securities fraud lawsuits?

    What the proposal covers is what financial analysts and corporate finance personnel do inside the company, and equity analysts do outside the company. You get (good) management's general operating philosophy and grand plans in the shareholder letter and the MD&A section of the annual report. Theoretically, at least, this is what the Board of Directors should assess as the shareholders' representatives (I'll save my comments about THAT for later), and with liquid markets you can vote with your feet, er, money.

    I could see a new legal requirement to require the company to publish a standardized, general, 3-5 year strategic plan as part of the annual shareholder meeting proxy materials - maybe even allow the shareholders to vote on it (advisory or controlling vote). But we sort of have that now with the MD&A section.

    Financial models are useful, and more public information about public companies is good, but I can see problems with something like this proposal. Smart blog discussions needed.

  42. How's this for transparency ? by Anonymous Coward · · Score: 0

    #include "Fraud.h"

    int main()
    {
        startPonziScheme();
    }

  43. C# would be a great choice... by AthleteMusicianNerd · · Score: 1

    The SEC will never think of it, would probably rather get their cronies to sue Microsoft, AND SHOULD BE ABOLISHED because they're incompetent.

  44. A question for you computer guys by RobertinXinyang · · Score: 1

    As I read this I have one semester left for my M.B.A. I am picking my classes for my final semester this week.

    With this change do you think it would be worthwhile to take a class in Python during my final semester (this assumes that my University even offers such a class)?

  45. Re:Oooh great, let's use an academic programming.. by Anonymous Coward · · Score: 0

    Funny example. With a proper installation, I've never had to type more than "python someapp.py". Hell, if you setup the file associations, you just type "someapp.py".

  46. Re:How do you codify the sham that was derivatives by Genda · · Score: 1

    In fact one can't codify the derivative sham. One holds a bucket under a male bovines rectum, until one has a large enough sample of said business process, for direct analysis.

    Perhaps they could figure a way to display the actual and implied lies and deceits involved in these contracts... of course that would probably end investment as we know it anyway...

  47. the SEC should read their own handbook... by Anonymous Coward · · Score: 0

    It's deeply shameful that the SEC would use such twisted language in a proposed requirement after they wrote this http://www.sec.gov/pdf/handbook.pdf handbook on how to use Plain English for disclosure documents.

    It's more than a shame that there are no "right or benefit enforceable by law against the" SEC idiots who published this proposed rule with language that violates this http://govinfo.library.unt.edu/npr/library/direct/memos/memoeng.html Presidential Memorandum.

  48. python? by Anonymous Coward · · Score: 1, Informative

    I've done contract for wall street investment banks, hedge funds, sovereign funds, and offshore currency traders. Not once have I used python or seen it in use. Finance is a KAPE world -- K, APL, Prolog, and (ugh) Excel.

    1. Re:python? by Anonymous Coward · · Score: 0

      There's plenty of Python (and Lisp, C, C++, R, Java, FORTAN, Perl, C#, Haskell, you name it) swimming around behind the scenes in the systems that power the [well known financial/political name] Terminal.

  49. "insurable interest" by Anonymous Coward · · Score: 0

    Everywhere *EXCEPT* on Wall Street, "Establishing the principle of insurable interest as a requirement for purchasing insurance distanced the insurance from gambling" http://en.wikipedia.org/wiki/Insurable_interest.

    "The ability of a person to buy insurance on [something for which loss-of or damage-to that thing would not cause the person to suffer a financial loss or other kind of loss] would create a moral hazard wherein the person owning the insurance policy stands to profit from the death of the insured [thing]."

    Yeah, there was a lot of hand-wringing by Geithner, et.al. about how to avoid "moral hazard" in the future with respect to credit default swaps (i.e. insurance) that AIG had to pay to the Big Banks on CDOs that the Big Banks did not actually own (or owned an amount less than the insured value and, therefore, less than what they should have had an insurable interest in) but I promise you won't hear any of the captured regulators ever speak the phrase "insurable interest".

  50. XBRL by MadUndergrad · · Score: 1

    Not the same thing, but they are starting to move in this direction. XBRL is already being phased in by the SEC.

  51. Moving Wall Street to Python by Angst+Badger · · Score: 1

    Why stop there? Let's require all financial software to be written in Python. It won't prevent another economic collapse, but it'll make damn sure that the next collapse happens much more slowly.

    --
    Proud member of the Weirdo-American community.
  52. Code Obfustication for PROFIT! by bussdriver · · Score: 1

    Code obfustication will become a profession instead of a silly contest goal!

    "Bad" programmers rejoice! You can be the next generation of financial legal scholars!

    That is, assuming no meaningful regulation happens that simplifies the system so that it can actually be monitored. Say, CS academics rejoice! You can invent new systems and proofs to analyze this overly complex code!

    Job security here we come!

    1. Re:Code Obfustication for PROFIT! by drewhk · · Score: 1

      Everyone comes up with this idiotic code obfuscation argument.

      What stops lawyers to write completely braindead legal text now?

      Like "In this document, after this sentence, every instance of the word no is to be interpreted as some, and all instances of some interpreted as no if they are preceded with a no at most thirteen letters apart" -- or something like that. No judge would accept this. Also, no BUYER/INVESTOR would sign such a contract.

      Just that programming languages are not perfect for specification does not imply they are worse than natural languages for that task.

  53. Financial Contracts EDSL by Anonymous Coward · · Score: 1, Informative

    See here for a domain specific language for financial contracts embedded in Haskell. A DSL is certainly the way to go over a "black box" or arbitrary Python code.

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

  55. Laws are different. by TheLink · · Score: 1

    1) There are good reasons you have Judges. Spirit of the law, reasonable man, etc and from time to time fairness and justice.
    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.
    3) Legalese is already something like a programming language, and yes the fuzziness often is a feature not a bug, see 1).
    4) When did they solve the halting problem?

    The reason you have poor regulation isn't because you are using the wrong language. The problem is elsewhere, and if the regulators are the ones who thought of this idea they just providing yet more evidence that they are the problem ;).

    --
    1. 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.
  56. That's Un-American by oldhack · · Score: 1

    Ours is a common-law system - ambiguities are features. We want it vague so that human judgments filter in.

    But I think we've gone down the wrong route. We go on about "rule of law" but we made it into nonsense. What does "rule of law" mean when we can't figure out what the law means without expensive lawyer service, and even then, if it goes trial, it's all up in the air?!

    Commerce laws should be reformed to be much more the compilable sort with minimal ambiguities, including tort laws. Criminal and family matters, I would like to keep common-law tradition with the accompanying ambiguities.

    --
    Fuck systemd. Fuck Redhat. Fuck Soylent, too. Wait, scratch the last one.
  57. I think it should be Ruby. by SanityInAnarchy · · Score: 1

    Reason to choose a specific language: Otherwise, they could deliberately choose a language that's more obfuscated -- say, machine language -- or a proprietary language. Even if they provide the compiler for said language, it would be about as much an exercise in confusion.

    Reason I'd prefer Ruby to Python: This isn't a case where performance is important, significant indentation (as much as I like it) may be a problem when people inevitably print it out, and most importantly, Ruby's internal DSLs look damned good. I think this does need to be a DSL of some sort, and I'd rather it be an internal DSL than an external one -- but I'd rather it be a DSL than a Python library.

    --
    Don't thank God, thank a doctor!
  58. And the end result will be... by MacroRodent · · Score: 1

    After a few rounds by Microsoft lobbyists, the required language switches from Python to Visual Basic

  59. not real regulation by damasterwc · · Score: 1

    real regulation bans gambling. investments only benefit everyone and expand economies, move ideas forward, and improve lives when the investments are in the physical economy. the way out is to ban the speculation and return to glass-steagall standards. this proposed regulation is not regulation at all... it's more of the same casino style gambling that will continue the hyperinflation and continue the collapse. wake the hell up.

  60. Individual investors by mahadiga · · Score: 1

    Is it desirable to have an exclusive stock exchange for Individual Investors aka http://en.wikipedia.org/wiki/Value_investing because they cannot compete with Institutional Investors aka http://en.wikipedia.org/wiki/Algorithmic_trading

    --
    I'd like to buy homeland for our 10 million people. http://twitter.com/mahadiga
    1. Re:Individual investors by sirrunsalot · · Score: 1

      Is that a question.

  61. Re:Investors are already making their own assumpti by Billly+Gates · · Score: 1

    Analogy is a good one and it is quoted from MSNBC to explain how shorting a stock works and how AIG got involved in the scam.

    They bought insurance from AIG and asked the Bush white house to make sure AIG had bailout money.

    It tanked and Goldman Sachs shorted the stock. Then Paulson Co asked AIG for insurance for the lost value. Paulson split the money with Goldman and they double dipped with stolen tax payer money. Goldman and Paulson Co knew it was about to be worth toilet paper so they shorted it and funneled tax payer money from AIG to make it look like a loss. They both collaberated and this is similar to selling a car that would fail and taking out an insurance policy on it.

    Insurance fraud at its finest. There is no disclosure. Its really a secret but hey housing is very very safe get in fast! .. etc

  62. Re:Oooh great, let's use an academic programming.. by Billly+Gates · · Score: 1

    Python is huge in Ubuntu. Its part of gnome and used in hundreds of applications.

    Its been around for 10 years now and I see articles everywhere at tech sites and magazines promoting its usage. In fact, its the only language supported for Google's cloud services. Its the only language that can run in .Net, Java, MacOSX, Windows, and Linux. Its gaining popularity and is used for PostGreSQL admin tools and many other mission critical things that you are probably not even aware of.

    You can run Jython on googles phone with JavaME without modification and this makes it very powerful in the cell phone market.

  63. Already available in Europe, sort of... by Anonymous Coward · · Score: 0

    I've been browsing quite a lot of business news sites lately and am constantly bombarded with ads from various tiny, never-heard-of brokerage firms whose software you can download for free and use both for making your own analyses and buying shares (resulting in brokerage fees, which most claim are "the lowest of all", going to them). Now, I'm very skeptic of such applications since the firms offering such software have an incentive to give you an overly optimistic prognosis and also to encourage you to trade frequently, which is usually the worst you can do - especially if you're a small investor. IIRC Warren Buffet has said that "buy and keep" is the winning strategy...

    Now, I'm much less skeptical of the tools that at least one Finnish business newspaper offers their subscribers on-line for creating and analyzing portfolios in various scenarios and since the newspaper's source of income is subscriptions, they have an incentive to offer the best tools possible. And occasionally they have had "trading games" (with pretty good prizes too, e.g. laptops) where you get virtual money to "buy" a portfolio of shares and maximize its value in three months or so. The virtual shares have the same value as in the real world so you can use any source you can think of for information to make your trading decisions - corporate home pages, any business news, your magic eightball etc. And in the games they also have "brokerage fees" that are typical of known brokerage firms. When I've played myself, I've really enjoyed it even though I haven't done very well but since it's as real as can be, it's good practice, in case I want to try it with real money at some point.

  64. right idea, wrong language by pydev · · Score: 1

    I think a lot of government, contractual, and patent issues could be helped if people were required to provide executable code that illustrates some function and computes some binding result.

    However, Python is probably the wrong language for that: it doesn't have an official standard, it doesn't have a compatibility test suite or fully compatible third party implementations, it has some implementation dependencies, and it has standard libraries with huge and complex third party dependencies.

    A language for legal contexts should be small, standardized, safe, self-contained, have multiple implementations, and be fairly stable. It doesn't need to be nice or convenient to program it. Scheme and JavaScript might fit the bill. Ada, Fortran, and C share some of the necessary attributes.

  65. Computable laws by dugeen · · Score: 1

    This proposal has one major benefit - lots and lots of lawyer cash becoming programmer cash instead.

  66. standard library / special language needed by toolbar · · Score: 1

    This is an interesting proposal. We are using something similar at my company, which offers one of the most detailed databases for retail structured products.

    What some people posting here misunderstand is that the proposal isn't about making available magic formulas or explaining, why a call option retails at $12,34 at a given moment. It is simply about calculating the resulting cash flow that the buyer receives from a product in a given scenario. So it let's you try out, what you receive when you assume that at maturity the underlying stock is at $15.

    It does not automatically tell you if the option should be worth $12,34 or $2,34 right now. The current fair value is part of the magic sauce: It can only be calculated with the right assumptions, eg. the assumed volatility, the current interest rate structure, ... Different market participants will usually make different assumptions here, but with these assumptions plus a numerical pricing model plus the program supplied to you under this scheme you can also calculate your fair value for the product.

    In my opinion a general purpose language like Python is not a good fit for this use. In any case, very strict interfaces would need to be defined. If there were multiple ways to input the assumed stock price (which is just one of a very large number of parameters), then this would not be much more useful, than the current written documentation of the products. With a general purpose language there might also be hundreds of possibilities to program even simple structured products, which makes reading/debugging these programs needlessly hard.

    We have developed a special purpose language internally, that can be used to easily program variable cash flows that depend on other market data. The good thing about such a special purpose language is that most standard product have a generic representation, that is short enough to be easily read, understand and (if needed) debugged. We supply "code" for the more than 400.000 active retail structured products in our database to our customers and they can for example try out, which product works best for then in a given investment scenario.

    You might have a similar effect by using a generic language + strict interface definition + enforced use of a standard library. But a compiler/interpreter for a simple special purpose language can easily be implemented in most environments while many possible users of this project might not like adding a full python-interpreter to their system.

    bye, Paul.

  67. Composing contracts. by sergueyz · · Score: 1
    A work from Haskell Community definitely should be mentioned here: Composing contracts: an adventure in financial engineering.

    It's pity that they used Python while Haskell has more formal semantics and an implementation that already used in financial sphere.

    There is a free implementation of Composing Contracts code.

    1. Re:Composing contracts. by alain_frisch · · Score: 1

      Thanks for mentioning this work.

      I work for LexiFi, a software provider whose technology is built upon a formal description of financial contracts. This is based on the academic work you mention, but our implementation now relies on the OCaml language. Note that OCaml is only the implementation language and our approach is really language agnostic: our idea is to represent terms and conditions of derivatives as data, not programs. More specifically, we have a small domain specific language, made of a few building blocks and combinators, that can express the semantics of all the existing and future structures of derivatives. Contracts represented in this DSL can be manipulated by various programs. It is a matter of syntax to export the contracts as XML tree or whatnot.

      Based on our formal description of contracts, which is easier to read and understand than a program in a Turing-complete general purpose language, we have developed a number of "universal" operations (these operations can be applied on any structure described in the language): life-cycle management of the contracts, pricing, and all kinds of risk analysis and reporting.

      We have developed full-blown applications for various kinds of end-users, and our approach gives us a huge productivity increase for adding new structures to these applications (and our users can also do it themselves), but the same technology could definitely be used to exchange formal descriptions of contracts between institutions, in a much safer way than with Python scripts.

      Don't hesitate to contact us directly if you are interested!

  68. I vote for... by misfit815 · · Score: 1
    --
    Jesus told him, "I am the way, the truth, and the life. No one can come to the Father except through me. - John 14:6 NLT
    1. Re:I vote for... by Animats · · Score: 1

      Jesus told him, "I am the way, the truth, and the life. No one can come to the Father except through me. - John 14:6 NLT

      Sounds like Steve Ballmer.

  69. How about... um, English. by sirrunsalot · · Score: 1

    I understand the goal of being able to fill in your own predictions, but this sounds like a *very* poor excuse for transparency. Why not mandate a clear explanation, in plain English (if there is such a thing in the financial world).

    Furthermore, do you realize what "Python" means to 98% of American public? My dad has been an engineer who programs process control systems for darn near forty years and I certainly can't talk to him about programming languages! Do you really think investors have the knowledge required to install Python, modify a program, run it, and extract meaningful information from the result? Yeah, I know exactly how simple it is. That's why you're reading /.

    If you want to go this route, you would basically need a scriptable calculator with a few basic financial functions. No frills, no black boxes that can be imported, all packaged in a simple Windows point-and-click program. Maybe a web interface. But that's still not to be confused with transparency.

  70. Re:Investors are already making their own assumpti by johnjaydk · · Score: 1

    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.

    Do You work for Magnetar? That's confidential information you're handing out there. Bad dog, no bonus for you this year.

    --
    TCAP-Abort
  71. Natural-Language Legal Expert System Builder by Baldrson · · Score: 1

    Example of Normalized English Input to NLESB

    Normalized English has been developed by Layman E. Allen and his colleagues; see for example, Layman E. Allen, ``Language, Law and Logic: Plain Legal Drafting for the Electronic Age,'' Computer Science and Law (Bryan Niblett ed.), 1980, pp. 75-100. Normalized language has been used in the Tennessee statutes (Tenn. Code Ann. sect. 33-6-104(a) (1991)).
    An example of the form of Normalized English used as input to the NLESB system follows. Note that the formatting is for the sake of readability, and is not necessary for NLESB.

    Subsection (a).    IF AND ONLY IF
    (1)(A)    A person has threatened or attempted suicide or to inflict serious
        bodily harm on himself, OR
        (B)    The person has threatened or attempted homicide or other violent
        behavior, OR
        (C)    The person has placed others in reasonable fear of violent behavior
        and serious physical harm to them, OR
        (D)    The person is unable to avoid severe impairment or injury from
        specific risks, AND
    (2)    There is a substantial likelihood that such harm will occur,
    THEN
    (3)    The person poses a "substantial likelihood of serious harm" for
        purposes of subsection (b).

    Subsection (b). IF AND ONLY IF
    (1)    A person is mentally ill, AND
    (2)    The person poses a substantial likelihood of serious harm because of
        the mental illness, AND
    (3)    The person needs care, training, or treatment because of the mental
        illness, AND
    (4)    All available less drastic alternatives to placement in a hospital or
        treatment resource are unsuitable to meet the needs of the person,
    THEN
    (5)    The person may be judicially committed to involuntary care and
        treatment in a hospital or treatment resource.

    http://www.cs.utk.edu/~mclennan/NLESB-normal.html

    Natural-Language Legal Expert System Builder (NLESB)

    NLESB enables a lawyer to build a useful legal expert system in ordinary English without being a computer expert. It accepts rules in ordinary English, though in normalized form, and parses them into propositional data structures that it can use to draw inferences. NLESB has some features, particularly in its logic, that are peculiar to the needs of legal expert systems.
    Send me mail for reprints or if you are interested in using our prototype implementation.

    Publications (reverse chronological order):

    A Logic for Statutory Law, by John Nolt, Grayfred B. Gray, Bruce J. MacLennan, and Donald J. Ploch, Jurimetics 35, 2 (Winter 1995), pp. 121&ndash;151. Winner of Loevinger Prize.

    Legal Expert System Building: A Semi-Intelligent Computer Program Makes It Easier, by Grayfred B. Gray, Bruce J. MacLennan, John E. Nolt & Donald R. Ploch, John Marshall Journal of Computer and Information Law, 12 (1994), pp. 555&ndash;583.

    Readability of the Law: Forms of Law for Building Legal Expert Systems, by Donald R. Ploch, Bethany K. Dumas, Grayfred B. Grey, Bruce J. MacLennan, and John E. Nolt, Jurimetrics 33, 2 (Winter 1993), pp. 189&ndash;221.

    Law Reading Experiment, by Donald R. Ploch, Bethany K. Dumas, Grayfred H. Gray, Bruce MacLennan, & John Nolt, Pre-Proceedings of the III International Conference, Logica Informatica Diritto: Legal Expert Systems, A. A. Martino (ed.), Consiglio Nazionale delle Ricerche, Istituto per la documentazione giuridica, Florence, Italy, November 2-5, 1989, Vol. 2, pp. 681&ndash;704.

  72. How about the IRS? by SEWilco · · Score: 1

    ... the filed source code, when downloaded and run by a taxpayer, must provide the user with the ability to calculate their taxes, describe where the money is being spent, which congressmen created each behavior, ...

  73. Composing contracts: an adventure in financial en by Tracy+Reed · · Score: 1

    This very much reminds me of:

    Composing contracts: an adventure in financial engineering

    http://research.microsoft.com/en-us/um/people/simonpj/papers/financial-contracts/contracts-icfp.htm

    by Simon Peyton Jones.

    It also reminds me of machine executable contracts in the form of computer programs being traded around in some sci-fi I have read recently...either Vinge ("Deepness in the sky", "A Fire Upon The Deep") or it may have been Stross ("Accelerando"), I don't recall which. They are both same genre and fascinating to me.

  74. Standard practice already by Anonymous Coward · · Score: 0

    Just to counter the idea that this is something new - these cashflow models are always expressed as code somewhere. The difference in this proposal is about standardization (on Python/XML) and transparency. The people who this is aimed at are not the public, but sophisticated investors - if they don't have their own models, they should have access to someone else's models.

    Ratings agencies and most banks have sophisticated (usu. web based) tools to run both credit and cashflow models on securitizations. These are usually scripting based, and with the right permissions users can see/vary all historical data, assumptions, inputs and cashflow scripts.

    These would provide the user with a full suite of sophisticated tools “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 (page 210 of SEC proposal)” as mentioned above.

    I think the SEC should mandate that these should be freely available to all investors, rather than forcing everybody down a limited functionality Python / XML route that may not be the best solution.

  75. Re: Composing contracts: an adventure in financial by alain_frisch · · Score: 1

    Thanks for mentioning this work!

    LexiFi (the company I'm working for) has been founded by one of the authors of this academic paper and our core technology is based on the same principles. We use OCaml as our implementation language, but the approach is really language agnostic. The basic idea is to represent complex derivatives as terms of a small DSL, with a few well-understood basic blocks and combinators. Contracts are just simple pieces of data, that can be exchanged and manipulated by independent systems, and there is a clear semantics for the language.

    Based on this approach, LexiFi has developed an implementation of the DSL, with many "universal" operations that works on arbitrary contracts described in the DSL: pricing, life-cycle management, risk-analysis, reporting tools. We expose these operations in GUI applications targeted to specific kinds of end-users, and the uniform representation of financial instruments gives us a lot of productivity to add new kinds of contracts.

    Clearly, another great use of the representation language is to have "electronic term sheets", that is, executable descriptions of contracts that can be understood both by humans and by computers (due to the controlled expressivity of the DSL). This is very much in line with what the SEC proposes.

  76. And by mahadiga · · Score: 1

    Trading != Investing

    --
    I'd like to buy homeland for our 10 million people. http://twitter.com/mahadiga
  77. Re:Investors are already making their own assumpti by modmans2ndcoming · · Score: 1

    you really are a sucker.

    My analogy is EXACTLY what Goldman and other investment banks did.

  78. And by mahadiga · · Score: 1

    I believe 99% of flaws in stock exchanges can be prevented if every trade is scrutinized as per Insider Trading rules. http://www.sec.gov/answers/insider.htm laws.

    --
    I'd like to buy homeland for our 10 million people. http://twitter.com/mahadiga