44 karma · joined Feb 1, 2016 (10y ago) · 32 submissions
comment 10y ago · link · parent
Skill is still here, it is just muted by the modern media. Back then a any game release was huge news, today such games are made all the time every day and don't even get noticed.
comment 10y ago · link · parent
I can't seem to find that flag. Only ftrapv for signed, but none for unsigned. Do you know what flag is it exactly?
comment 10y ago · link · parent
[0]: but should certainly work in the same field.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
The World Health Organization has recently suggested cutting the recommended sugar intake for adults in half, to about 25 grams, around 6 teaspoons, of sugar for a normal weight adult a day.
Here is my favorite site that shows the amounts of sugar cubes in various unhealthy food: http://www.sugarstacks.com/
According to that information you can drink a half can of coke (most left one in the picture in the link) to satisfy that daily need. That implies that all other food you eat that day will not include any sugar! That is an impossible standard to reach. Solution, don't drink drinks with sugar.
comment 10y ago · link · parent
That clearly doesn't work, but I can see from a naive perspective why some think that. It feels like a nice hack, but a cast to char* doesn't "remove" the original type.
To be clear: char* can alias any type, but only char* can alias char*.
comment 10y ago · link · parent
We meet at 12:00 GMT
Done
Everyone only needs to remember one number, their local offset to GMT. If someone uses an, to the receiver, unknown offset, then look it up and do some first grade math.
comment 10y ago · link · parent
What you said isn't even pop science, it is blatantly wrong.
https://en.wikipedia.org/wiki/Metric_expansion_of_space
https://en.wikipedia.org/wiki/Dark_energy
And the money quote:
It is called "dark" because it is not interacting with normal matter, but only with the space time structure.
comment 10y ago · link · parent
In fact, space is being created everywhere, including yourself and the computer screen. However the amount is so small that you don't notice and local forces nullify the change anyway. With large distances, this amount accumulates, and overwhelms the force of gravity and starts to create the apparent acceleration of distant galaxies away from us. Further explanation from paulddraper: https://news.ycombinator.com/item?id=11068125
comment 10y ago · link · parent
John Carmack(from the video): This is in now way replacement for highly sophisticated apps... ...you should clearly be using Unity or Unreal, you should be using a real game engine. If you have to do a lot of interaction with Java or native code, you should be writing a native application.
comment 10y ago · link · parent
for(i = 0; i < length; i++) sum += a[i] * b[i];
^
I managed to hide the error if return values, which are double, are replaced with float_t. I believe in that case the bug stays in, but -Wconversion doesn't detect it.Of course the warning can always be silenced by doing something like:
for(i = 0; i < length; i++) sum += ( double )( a[i] * b[i] );
and adding a misleading comment about the explicit cast.