optforfon
Joined 10 years ago
Joined 10 years ago
from wikipedia
"Still, the world's present measured resources of uranium, economically recoverable at the arbitrary price ceiling of 130 USD/kg, are enough to last for between 70 and 100 years"
https://en.wikipedia.org/wiki/Nuclear_power#Conventional_fue...
reactors have a life of around 60 years I think. So maybe you could double the amount of nuclear power? But it's not like the world can magically go to 100% nuclear indefinitely.
When I asked people at CppCon about it I just got some shrugs and was told "just go look at the assembly".
Another solution is profiling - but that's got a slow turn around, and it can be hard to narrow down problem areas.
There really shouldn't be an use vs. them with China. That's incredibly toxic thinking (trying to create an new Cold War)
But ultimately at this point the US is culturally on a completely different level compared to backward nationalist countries like Russia. Maybe you're not familiar with American education, but a good portion of what we learn at a young age is actually national self criticism. In my personal experience I'd estimate almost half of my history education up to high school was on
- the terrible things we did to the Native Americas
- the terrible things we did to Slaves
- the terrible way we oppressed African Americans
Even when we learn about the founding fathers, time is always take out to point out the hypocrisies that happened at the time. I think the fact that a bunch of intelligent men were able to found a national structure that has lasted this long and has managed to regulate itself away from tyranny is truly magical and a great historical achievement. The more I learn about it, the more improbably it all seems - there were so many chances for it to go wrong. What are they on in France, their fifth republic? Or is it their 6th?
Nanking was massacred as punitive action for resistance, not as a means of creating space for the Japanese. They Japanese did have "colonists" in Manchuria, but if you know any geography that's nowhere close to Nanking.
Traditionally you don't cuss in the work place b/c you have to stay professional - ie. you have to not be emotional about your work. Cussing is a form of injecting emotion into your speech. If you are at the office 12 hours a day with your friends, then the lines get blurred.
Personally I don't like the trend, but to each his own. There are pluses and minuses to each type of workplace
So you can grow plants in some kind of transparent pressurized place... Just like on the Moon.. or on a space station
I'm not 100% on this, but when you have a tail call I don't think you have to remember the state of the stack frame. "function prologue, epilogue, and the maintenance of the various pointers" aren't god given rules - they're things dictated by something like the C ABI so you can resume the caller. So if you're thinking in terms of C ABI then yes, it's a compiler optimization, but in principle I think it's a zero cost abstraction (though I'd argue that the iterative loop is the actual abstraction)
In tail call recursion you're ensured the caller will never resume!
When you enter a tail-recursive function you save (as you normally would) a return pointer for the program counter and allocate registers/memory for your function arguments. At the end of the function you've done all the computation that that frame will ever do, so you are free to overwrite the argument variables when calling the next iteration/recursive-step. The return pointer doesn't need to be touched at all. Where is the complexity you're talking about?
Just an anecdote. I'm currently living in China and me and the other expats were always kinda amused that local Chinese are willing to spend the equivalent of 2 months of their salary on an iPhone. Apple's grip on the market is absolute here
At first, like some high brow NYT journalist, I thought it must be a cultural thing. People looking for a status thing, a vanity thing in a image conscious society. Or a the very least they're willing to fork over tons of cash to get a good quality device bc they don't trust their own phone makers. But the local phones are actually hardware-wise okay. And they have decent warranty support (not Apple level.. but still)
But after watching a friend struggle with an Android phone, I realized that the problem is the apps. There is no GooglePlay store, just crappy 3rd party stores like the Xiaomi Store. These stores have basically no standards when it comes to app quality and Chinese apps are horrible bloated virus-like monstrosities that slowly cripple your phone till it barely works and the battery dies after half a day. All the permissions managers and security features in the world don't stop the system from being a complete disaster here.
If anyone wants to free Android - they need to make a good play-store alternative that only allows high quality apps. They you can make your Android fork and whatever else you want