optforfon
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
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?
When you do tail call recursion you are doing just that. The assembly jumps to a tag and in recursion you jump to a function name, which is also effectively a tag.
So it's not really about mapping better to the CPU instructions or anything like that
The added benefit is that with tail call recursion you can have mutually recursive function (function A calls function B at the end and function B calls function A at the end), which isn't possible with a simple iterative loop, so the functional style is actually more powerful than an iterative approach and still maps directly to "the way the CPU works"
It's kinda described here: http://gameprogrammingpatterns.com/component.html But the author doesn't take it to it's logical conclusion. I found the full explanation by it's inventor here, in this slide deck: http://scottbilas.com/files/2002/gdc_san_jose/game_objects_s... But I'm fuzzy on the details
If I was writing a ray tracer and needed to store vertices, would it makes sense to use a SQL database? How about for a list of object? Or textures?
In general I often need to filter on objects, update object state, generate new objects, remove some others, etc. but I never know when I should stop thinking containers and start thinking "aha! time for SQL"
This is Python + OpenCV, but I'm under the impression Adobe is a pretty serious C++ shop and has their own graphics libraries (I'm mainly aware of boost::GIL and their STL)
You have to draw a line somewhere. No naked children or gore seems reasonable.
uhhh... what? Are you just making this up? I never come across any of it. Not a single porn site I've tried works. They're pretty thorough in my experience. Haven't seen any mass hysteria, though Reddit surprisingly isn't blocked yet
"but you'll be shut down quickly at the slightest mention of political reform, corruption, or financial info that doesn't fit the gov's narrative"
Again, BBC, with all their uncomfortable information isn't blocked. English Wikipedia (which is over HTTPS, so you can look up any topic you want) isn't blocked (though the Chinese one is unfortunately)
I think you've already made your judgement and are seeing the patterns you want to see
What is seen by locals as the driving force of the censorship is suppressing hysteria/superstition/conspiracy-theories. That kind of stuff would flourish in a society like here. You can see how devastating it is in places like the Middle East.
So yeah they want to suppress things that paint the party in a bad light, but mostly they just don't want anything to get out of control