HN user

endeavour

113 karma

www.lambdalaunchpad.com

Posts3
Comments67
View on HN

I also mentally started thinking about integral solutions. I wonder if it's also because of the variable names... a,b,c tend to be used to represent integers (e.g. Fermat's Last Theorem, Euclid's algorithm etc).

x and y are more commmonly used to represent real numbers.

F# version that fits in a tweet:

  let r,n=Random(),1e7
  let d()=(r.NextDouble()-0.5)**2.0
  [0.0..n]
  |>Seq.sumBy(function _ when d()+d()<0.25->4.0/n|_->0.0)
  |>printfn "%f"

I happen to agree we should have an election, but I would point out:

1) Unlike EU commissioners, people can vote Theresa May out at the next general election. 2) The UK has a parliamentary democracy. It is not a presidential system. Theresa May was elected by her constituents. 3) Of the 14 prime ministers since the end of the Second World War, half of them (including Theresa May) assumed office between elections.

Ok but the numbers you quoted assumed a linear relationship.

In no way is it "almost certain" that investment in the UK will decrease. The evidence currently suggests the complete opposite. Look at the performance of the FTSE100 since the referendum to see the flood of foreign investment coming into the UK listed companies thanks to the weaker currency.

I'd also point out that decreasing tax rates is the exact opposite of what the chancellor said he would do before the referendum.

I remember being impressed that the BeOS media player could play audio CDs backwards in real-time. Not really sure why you'd want to but it was quite a good party trick.

“Platform” risk 11 years ago

I doubt spending on AWS scales linearly with company revenue so I'm not sure why the author thinks amazon is getting a "cut" from competitors.

Because the market will bear it. People have jobs in London, but can't afford to live there. Driving usually isn't an option either because parking prices and London traffic are prohibitive. Ergo the train companies can charge basically whatever they like and people have to put up with it.

This is a really neat idea. I wrote test-scripts for cell culture machines a few years back. Great fun moving giant robotic arms around!

If you can indeed encode all the primitives needed to more formally describe an experiment this would be great.

Are you worried the language will endlessly grow in complexity as you find edge cases it doesn't support?