Better HN
topnewbestaskshowjobs
Log inSign up

wfunction

3,901 karma · joined Oct 15, 2012 (14y ago) · 1,547 submissions

Submissions

comment 9y ago · link · parent

I feel like I can also be sure the export isn't really going to drop much with people coming in, but the domestic usage will rise if you keep letting people in. So the mere fact that we export doesn't really seem to help things.

comment 9y ago · link · parent

Wouldn't you need to grow more food supporting the growing in-population though?

comment 9y ago · link · parent

> 1. What's the practical difference between an abstract class and an interface?

Interface? You are talking about the C++ language, right?

comment 9y ago · link · parent

Does the state have a plan for the water crisis that keeps getting worse if it were to make it easier and easier for more and more people to settle down in it?

comment 9y ago · link · parent

SYSTEM has more privileges by default, but Administrators have the privileges to assign all those privileges to themselves too.

comment 9y ago · link · parent

I don't really have a list handy so I might have to keep looking to find something that meets the "great" bar (again -- I'm not a hardcore fan, I mere think it's reasonably decent), but for example check out the page on I/O Concepts [1] and the sub-pages (such as "Synchronous and Asynchronous I/O").

Does the POSIX documentation have anything like it? I don't recall so remind me if it does.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa3...

comment 9y ago · link · parent

> Win32 does not list the errors that can happen

This is so patently wrong.

Firstly, the first example I thought of (CreateFile) clearly stated that you could get ERROR_FILE_NOT_FOUND, ERROR_ALREADY_EXISTS, ERROR_FILE_EXISTS, ERROR_PIPE_BUSY, ERROR_SHARING_VIOLATION, ERROR_ACCESS_DENIED.

Secondly, drivers can sometimes return error codes that the OS might not expect to be necessary, and the OS can't just coerce the error codes into something else; it'd lose information. [1] For example, if you CreateFile, a driver that mandatorily logs data might decide to return an error saying it's low on disk space even though the file already exists, which you wouldn't expect. If your code isn't specially written to handle it, you should treat it as the general failure condition it is.

Heck, you can even think of Windows as returning "TRUE" (for no error) or "FALSE" (for error), and GetLastError as just providing details you can ignore. Simply the fact that you know the possibilities are TRUE and FALSE doesn't satisfy you though, does it? So isn't the problem that Linux is just suppressing information it could actually pass through?

If anything, Windows is doing this right and Linux is doing it right by being restrictive on the returned information... but in any cases, at best you can suggest they're both "different" and maybe on a good day people would entertain the possibility. Certainly returning MORE information than you need is not something you can call out as a flaw...

[1] e.g. see http://stackoverflow.com/a/19249991

comment 9y ago · link · parent

Parent said "hardware support"; "POSIX hardware support" would not make all that much sense since it's just an interface specification. The point was to find a reason for preferring Windows which I gave.

comment 9y ago · link · parent

> but that feels to me a bit like trying to solve the halting problem

that's literally what every antivirus is already doing though.

comment 9y ago · link · parent

I'm not exactly a hardcore fan of Win32 userspace documentation but POSIX's drives me far more insane. Can you name a few examples that aren't from shell32/shlwapi?

comment 9y ago · link · parent

> most arguments favor the UI/UX, the large body of software, or the hardware support - not APIs/standards

Windows kernel API documentation vs. Linux kernel API documentation... there's not even a contest to be had.

comment 9y ago · link · parent

>> Don't assume things are done purely by inertia -- for big projects there are real reasons for the choices made!

> I'm not. I'm assuming these decisions are made because people in physics/ME/chemistry are not programmers and don't know about the latest and greatest our field has to offer. It's our fault for not advertising our successes to these people.

And how many FORTRAN HPC programmers do you know?

comment 9y ago · link · parent

Isn't the entire point of AMT to allow out-of-band system management? If it relies on the OS to connect to Wi-Fi that would seem to kind of defeat the purpose. Is there any evidence AMT works on Wi-Fi for anybody? I tried pinging my laptop from another machine on the ports listed here and I didn't get any response over Wi-Fi, so I'm not sure how to interpret that.

comment 9y ago · link · parent

Dumb question: is any of this relevant for someone who only uses Wi-Fi and not ethernet?

comment 9y ago · link · parent

If ads were the only issue I'd be pretty happy and willing to give advertisers all my information.

Trouble is companies and law enforcement frequently abuse information, and even when they don't, they get hacked by other people who do.

comment 9y ago · link · parent

And pay like 10x more + shipping because you only wanted 1 song on the CD?

comment 9y ago · link · parent

Has anyone managed to capture unposted thoughts being sent over the wire(less)? I've read the claim that this is done but I don't any relevant network activity when I type and discard something in Chrome...

comment 9y ago · link · parent

I don't think "upwards" or "downwards" is meaningful here.

If I were CEO I would be surprised if a manager at my company didn't even know who was working under him. If I were a math professor I would be surprised if the TA I just hired didn't know two quarters is the same as one half. If I were the president of the United States I would be surprised if my vice president thought he was president. etc.

Why? Because all of these cases involve someone's lack of knowledge almost certainly resulting in someone else getting completely screwed over. It doesn't matter what the ranks of the people involved are, it just matters if there are serious potential damages at stake.

comment 9y ago · link · parent

Sigh, I knew someone was going to nitpick on the bio part. I was not trying to give a biology lesson here.

I just said you should be surprised if you get an antibiotic prescribed for a viral infection. Yes, you really should be surprised. That doesn't mean you have to declare the doctor incompetent. It just means you should be surprised and act accordingly. Which means you have to confirm that it's correct, to make sure the doctor is not totally screwing up. Because chances are decent the antibiotics are useless. The chances don't need to be 100% for you to be surprised and to show it too.

comment 9y ago · link · parent

Yeah. But I'll point out that this assumes that person doesn't have responsibility to go with it. You should be surprised if your CEO didn't know what supply and demand are (unless you have a small company and no else one in your company does either, I guess). You should be surprised if your boss doesn't know who works under him. You should be surprised if your prof doesn't know what concepts he's supposed to be teaching. You should be surprised if your doctor prescribes antibiotics for a viral infection. The list goes on and on...

comment 9y ago · link · parent

I'd worry about debit card fraud, not credit card fraud. I think the credit industry's managed to trick people into treating credit card numbers like very sensitive information whereas in reality they're not for consumers; they only are for the companies.

comment 9y ago · link · parent

Does imapsync set INTERNALDATE correctly? I ask because naive IMAP uploading doesn't do this. (It's the date Gmail shows in the mailbox.)

comment 9y ago · link · parent

Is the $10k still in vouchers?

The main problem they had IMO was that $800 was very useless for many people when it was in vouchers...

comment 9y ago · link · parent

Like I said:

> That's definitely not "immediately destroyed", there's operator<< being called between construction and destruction.

comment 9y ago · link · parent

> And you use the object in between to write data

That's not what I was talking about. See the original comment and follow-ups.

comment 9y ago · link · parent

That's definitely not "immediately destroyed", there's operator+ being called between construction and destruction.

I didn't realize this can trigger the bug though, so if it does, I should clarify I didn't mean to include it in my comment. I was only referring to cases where there is no intervening operation between construction and destruction.

comment 9y ago · link · parent

I would like to point out that if you write code like this (that is, creating a temporary object only to have it instantly deleted), your code smells.

Backwards-compatibility notwithstanding, it would not be totally illogical for C++ to allow optimizing out construct-destruct chains even in the presence of side effects, in a similar manner to the existing copy elision behavior. After all, the object is unused, and the destructor should be merely undoing whatever the constructor did, so afterward it should be as if the object was never constructed.

If you rely on the side effects of normal construction, that's not so different from relying on the side effects of copy construction, which you can't already do. Hence you shouldn't do the first either.

So yes, it's a bug, and needs to be fixed, but regardless of that, you shouldn't write code like this in the first place.

EDIT: See comment below, apparently the bug comes up in more cases than those I referred to here.

comment 9y ago · link · parent

Thanks!
1
111213
52