420 karma · joined May 17, 2011 (15y ago) · 146 submissions
comment 9mo ago · link · parent
comment 1y ago · link · parent
8.
Ask HN: Using the TruffleBot to detect bed bugs
2 points · by tlocke · 1y ago · discuss
comment 2y ago · link · parent
comment 2y ago · link · parent
So looking at insurance, it's impossible to fully insure a nuclear power station, and so the state effectively insures it.
With long term storage of waste, the material has to be securely stored for about 10,000 years. As far as I know, only Finland is doing this so far.
With decommissioning, it always costs more than is set aside, and so the taxpayer gets left to pick up the pieces eventually.
With your example of Ontario I don't know how these costs I've outlined will be handled, but if it's anything like the UK the costs will be pushed onto the taxpayer.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
https://en.m.wikipedia.org/wiki/Thomson%27s_lamp
I used it as an interview question many years ago. I wasn't very rigorous about it, basically any plausible answer was good enough for me. Answers fell into two categories, the theorists (it's an infinite series that doesn't converge) and the pragmatists (you couldn't physically do it).
comment 2y ago · link · parent
comment 2y ago · link · parent
So in other words, corporations are more likely to use code that's licensed under a permissive licence, and so they're more likely to contribute, simply out of their own self interest.
comment 2y ago · link · parent
comment 3y ago · link · parent
if 23:
print('hello')
and it'll print 'hello'. But I'd prefer a strongly typed approach where this code would give an error saying, 'a bool is expected here'. Sure it's a subjective thing, and this is just my preference.comment 3y ago · link · parent
python -m timeit 'sum(1 for age in range(100000) if age > 17)'
50 loops, best of 5: 5.08 msec per loop
python -m timeit 'sum(int(age > 17) for age in range(100000))'
50 loops, best of 5: 7.96 msec per loop
python -m timeit 'sum(age > 17 for age in range(100000))'
50 loops, best of 5: 4.78 msec per loopcomment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
My view is that it's good to allow AI training to use your code. This democratises AI models, otherwise AI will be the exclusive preserve of wealthy corporations. So I say, let's license our code under permissive, no attribution licences!