pqomdv | 11 years ago | on: Velocity Raptor – an adventure in 2+1 dimensions
pqomdv's comments
pqomdv | 11 years ago | on: Are pointers and arrays equivalent in C? (2009)
You probably though of:
array == &array[0]
which is always true.This:
(void*)&array == (void*)&array[0]
which simplifies to: (void*)&array == (void*)array
is not.C doesn't guarantee that the values of &array and array are the same. The types T( * )[ * ] and T* are not even compatible and those two pointers are allowed to have different sizes and representation.
pqomdv | 11 years ago | on: All Major Browsers Fall at Pwn2Own Day Two
pqomdv | 11 years ago | on: Elon Musk: Tesla cars will have “autopilot mode” by summer
I wonder how much a 10 minute stop charges a Tesla S. Probably a third. Once the superchargers become common enough, you can do several shorter stops instead.
pqomdv | 11 years ago | on: SpaceX's New Spin on Falcon 9
pqomdv | 11 years ago | on: SpaceX's New Spin on Falcon 9
pqomdv | 11 years ago | on: SpaceX's New Spin on Falcon 9
This isn't the talk by Gwynne mentioned in the article, however it is a government hearing that happened on the same day by the same person.
( Gotta love the title: AAA - Assuring Assured Access... )
pqomdv | 11 years ago | on: Video games beat interviews to recruit the very best
pqomdv | 11 years ago | on: Why Spotify Pays So Little
It is also more correct, your subscription is distributed to artists whose music you actually listened to. It repeat listens are accounted for, then it would be even more fair, since you usually listen more to your favorite artists.
Currently the distribution just isn't correct. This is probably because of technical reasons.
pqomdv | 11 years ago | on: Planets in the Fourth Dimension
pqomdv | 11 years ago | on: Resume in C
pqomdv | 11 years ago | on: Windows Hello – Biometric authentication to Windows 10 devices
Technically that is also the human element but I think you are talking specifically about users.
pqomdv | 11 years ago | on: Windows Hello – Biometric authentication to Windows 10 devices
pqomdv | 11 years ago | on: Resume in C
char * * is a pointer to a pointer to a char and nothing else, it might be a NULL terminated array or not at all.
C cares about types. Casting a pointer to an incompatible type or reinterpreting through an incompatible pointer is not defined in C( undefined behavior ).
Pointers of different types are allowed to have different sizes. sizeof( char* ) == sizeof( char* * ) is not guaranteed in C.
Also any program whose main is not int main( void ) or int main( int , char* * ) will result in undefined behavior.
All of this is in the latest standard.
Both, segfaulting or running completely normally can be a result of undefined behavior. That is why we really like to avoid it in C. Thus your advice is really not good for a modern C.
pqomdv | 11 years ago | on: What you wanted to know about AI
pqomdv | 11 years ago | on: What you wanted to know about AI
If I apply your analogy correctly, then warning about AI now, is the same as it would be warning about global warming in the 19th century. Not very logical and certainly very paranoid.
Nevermind... I just finished it.
The colors always bugged me, why does the color sometimes become black when I'm traveling towards it when it should become brighter? Perhaps because the game only simulates the frequency and we can only see a narrow spectra so it makes sense it is black on both ends.
Also the closing doors don't seem to work properly, or it is just my perception.