5 ms·
ACM weighs in on SEC proposed Python requirement
- bhiggins 16y agoSomeone at SIGPLAN must really like F#.
- deleted 16y ago[deleted]
- kd0amg 16y agoWell, it is a group for languages enthusiasts, a demographic which seems to like functional programming more than others do.
- nkassis 16y agoI also don't like how they go about claiming that dynamic typing is bad. This is only asking for flames.
- nivertech 16y agoACM SIGPLAN does a very good job here - Ocaml/F# + "Waterfall" DSL is a very good fit for this problem domain.
- mustpax 16y agoFor more background see: http://news.ycombinator.com/item?id=1272541 http://news.ycombinator.com/item?id=1272541 SEC is proposing that prospectuses (prospecti?) for asset backed securities include a simulator written in Python. The investor can use this simulator to test out the behavior of their investment under various conditions. Fascinating idea, I wonder, though, what is going to happen when the simulator and the prospectus disagree. I would assume the text of the prospectus would override the source code. It is going to be quite a challenging task trying to align legalese and Python, or any other programming language for that matter.
- btilly 16y agoUnless the simulator carries more legal force than the prospectus, the entire exercise seems to be useless.
- yummyfajitas 16y agoPresumably if the simulator and the prospectus differ in a material manner, the bond packager/issuer would be subject to some legal liability.
- btilly 16y agoThe problem is that the prospectus is a legal document. When you run legal documents through the legal process, you often get indeterminate answers. How much liability should the bond packager/issuer have if their simulation accurately reflects their understanding of the agreement, but a court decides that their understanding was incorrect?
- yummyfajitas 16y agoI think that amount would vary based on whatever the standards are for due diligence and the indeterminate nature of the legal answers. However, as I understand the proposal, most such legal problems would be irrelevant as far as the python program is concerned. The python program would only answer questions like "what happens if party XXX becomes insolvent" or "what if 84% of mortgages are repaid, 10% are prepaid and 6% are in default". Most legal disputes would center on issues like "were material factors relating to mortgage repayment rates properly disclosed" or "are former home borrowers currently squatting 'in default' or merely 'delinquent' if the mortgage servicer has failed to evict them". The answer to questions like these is simply the input to the python program.
- btilly 16y agoAbsolutely, the Python program cannot replace the prospectus for the reasons you describe. However current practice is that the prospectus also describes, in legalese, the rules by which you determine what happens if party XXX becomes insolvent, or what happens if 84% of mortgages are repaid, 10% are prepaid and 6% are in default. And then there are multiple scenarios supplied to clarify people's understanding of how those rules work. There is a cottage industry that basically consists of taking these prospectuses and creating computer versions of them. This is called reversing a deal. I've seen these models take anywhere from a day to a week for simple models, and for complicated ones outside specialists may need to be used. These models are considered valuable property, and so a given deal may wind up being reversed by multiple people. These created models often do not agree with each other or the servicer. If the prospectus continues to contain the authoritative explanation, then this activity is still a necessary sanity check. If the script is definitive, then this error-prone step can be greatly streamlined and automated. Getting rid of this expensive activity strikes me as a very good thing. Disclaimer, I used to work for a company whose main job was reversing deals, and then keeping models up to date as the cash flows came in. I did not work on that side of the business, but I've seen how important it is.
- tom_b 16y agoum. Users (non institutional investors?) will download a program with the asset backed security information in a separate XML file, use that file to perform their own analysis of the possible performance and cash flow (called the waterfall in the proposal) to make an individual determination of the actual value of an ABS pile of investments. You've got to be kidding me, right? This is how we are to increase transparency in pooled ABS investments? Forget the fact that the ACM is weighing in on the appropriateness of Python as the program's implementation language here - say there is a bug in the implementation of the program that allows you to model this waterflow cash flow. Who can I sue, if as an individual investor, I relied on this implementation (along with my subtle tweaking of simulation variables) to make an investment decision? Forgive my naivete, maybe I've made a bad assumption about what the program is supposed to actually reflect. Does it represent a firm contract or rule set about how cash flow in the ABS pool will work given certain inputs?
- nkassis 16y agoI think if there is a bug, it's your job as an investor to find it and report it (if it's unintentional of course). The program is provided to you in source form to allow you to verify and modify it.
- agentultra 16y agoI don't understand why the ACM is so perturbed by Python. Why did the SEC choose Python to begin with? I'm sure that they weren't concerned with the few milliseconds you might lose on Monte Carlo simulations vs a compiled language implementation. While all valid points in one way or another, their criticisms of Python appear to lack context. Did the SEC choose Python for its speed and security?
- kd0amg 16y agoI don't understand why the ACM is so perturbed by Python. I'm only half way through reading it, but these don't seem to be Python-specific objections. A big part of it seems to be contesting the logic behind choosing Python, and they also suggest that there should be a process for having other languages declared acceptable for this purpose. They also worry that differences in versions/implementations of a language may lead to problems with reproducibility
- Natsu 16y agoTrying to let them implement it in any language they want doesn't seem bright. Wonder if someone would try implementing one of these in LOLCODE or Brainf$*%? If it were me, I would be tempted to say that they can write it in anything, so long as they offer a compiled version that targets the JVM. But I might not have given it enough thought and they probably need more requirements than that.
- stcredzero 16y agoTrying to let them implement it in any language they want doesn't seem bright. Wonder if someone would try implementing one of these in LOLCODE or Brainf$%?* My advice: don't buy that one! I say let people code however they want, and the market will decide!
- nkassis 16y agoAgreed, I'll only buy Lisp and Ruby ;p
- tom_b 16y agoLink to the proposed SEC rule: http://www.sec.gov/rules/proposed.shtml http://www.sec.gov/rules/proposed.shtml Look for 33-9117.pdf Interesting questions based on my reading from the pdf (see excerpt below, italics by me): If it's not currently practical to evaluate an investment before making an investment decision, why would you make the decision to invest? <cough,cough, index fund, cough> Next, who wants to do a constraint-programming back-end web app that takes a prospectus and generates this functional code? How much would institutions pay us for this? From the pdf: "The ABS issuer or the underwriter generally will have a computer model of the waterfall. However, the issuer or underwriter currently has no obligation to share the computer model with actual or potential ABS investors. Because prospective investors in ABS typically do not have access to the ABS issuer’s computer models, under current conditions, an investor must create its own computer program. It does this by taking the priority of payment rules stated in the trust agreement, pooling and servicing agreement, indenture, or other operative document for the ABS and described in the prospectus, converting the English language statement of those provisions into one or more algorithms, and then expressing the algorithms as computer code in a programming language. As a practical matter, it is often not possible to complete these steps before making an investment decision. This is particularly onerous for smaller institutional investors, for whom it may not be feasible to acquire the financial and technological expertise necessary to develop a computer program of the waterfall. Thus, investment decisions with respect to ABS may be made without the benefit of the investor performing its own quantitative valuation analysis. This may encourage undue reliance on the determinations of credit rating agencies. Further, there is the possibility that some investors will program the waterfall erroneously, leading to inaccurate ABS valuations."