204 karma · joined January 22, 2015
I wonder who are the counterparties selling puts to Jane Street. My cynical view is that they are losing overall but the traders don't care because they are winning in short term (when nothing happens) and may have already changed their job when the market crashes.
from math import *
prod(map(factorial, l))
which isn't much longer than his J code especially if you count the number of tokens rather than the number of characters as the J code uses ridiculously terse names.> Like pipes in UNIX, the functions are clever enough to be performant when composed together–we don’t traverse the whole list and generate a new list each time, each item is generated on demand. In fact, due to stream fusion, the code will be compiled into one fast loop.
I imagine it is hard to do the same optimization in a non-lazy language.
In pseudo-Haskell notation:
min1 : Int -> List Int -> Int
min1 def Nil = def
min1 def (Cons x xs) = min1 (def if def <= x else x) xs
min : List Int -> Maybe Int
min Nil = None
min (Cons x xs) = min1 x xsWhat alternatives are there if we are to avoid palm oil? How are they more environmentally friendly?
It's strange that Fermat's Library stated this since the formula for volume of sphere was discovered by Archimedes more than 2000 years ago.
[1]: https://en.wikipedia.org/wiki/On_the_Sphere_and_Cylinder