People have objected to electric cars in the past because the fossil fuels used to generate the electricity to charge them cancels out any supposed benefits. But if the car can get all of its power from the sun -- and recharge when it is parked -- then they suddenly *are* cheaper and more environmentally friendly.
Which is why C++ is the best language because you can overload operators, so, "4" * 4.0 can yield whatever you think makes sense:
* 16
* "16"
* "4444"
* 208
* or, if you prefer, a nice game of Nethack
Nice joke, but you can't re-define built-in operations. In other words, for an overloaded operator, one of the operands must be a class type which was defined by you. 1 + 1 is always 2.
BTW, what stupid language has 4 * 4 = 4444 ? I'm never learning Ruby now, who knows what might happen.
Not only is it 1 day, but the activation is ridiculously complicated (activation.. of my trial.. by basically putting files in my documents and settings/[user] folder)
If you can't manage to put a file in a folder then I'm glad you aren't going to be developing applications that I might have to use one day!
is more clear, concise and simple than:
mp_mul(&a, &b, &c);
For example , in the latter it's not immediately obvious which one is the result!
It would be even better if you used proper variable names for a,b,c.
I don't understand your comment about being 'more explicit'. A multiplication with infix notation does not seem any more 'vague' to me than one with prefix notation; in fact it seems preferable.
Functions can return new instances, which also override the existing one, e.g.
bignum a, b, c;// constructor called
a = b * c;// value of b*c held in temporary instance, could be copied into a, or simply overwrite the instance of a, thereby calling the deconstructor.
Can you post your equivalent C code, that is supposedly more efficient? I don't see how you're going to avoid initializing a,b,c, or assigning something to 'a'.
If you are really concerned about the compiler being unable to optimise out the temporary result of (b * c), then you could write:
a = b;
a *= c;
which is fully equivalent to C code like:
BN_assign(a, b);
BN_mult_by(a, c);
That function can call a constructor. Even though it doesn't look like there is a function call in it.
Well, it looks like there is a function call, to anybody who has bothered to learn C++.
In fact, the/entire purpose/ of such a class would be to more concisely express:
BIGNUM a;
BN_init( &a );/*... */
if ( the_time_is_right() )
BN_free( &a );
with the added benefit that you cannot accidentally forget to free it. If, for some reason, you wanted to use a bignum and not initialize it, or not free it, then you would not use this API.
Did anyone else notice that the page is *extremely* resource-intensive? When I click the Ajax link to view a player's details, it takes about 20 seconds to just render the page -- not including download time (I'm on a P2-333). That could explain why it seems to be less reliable than OSDN which is just serving text.
They're able to pay for high speed broadband and would spring for 10Mbps symmetrical connections even if they cost $100/month
Your tone of voice implies that it's possible to get these connections for less than $100/month -- is that true or am I misreading? I'm paying $65/mo for 2M/128k with 10gb cap.
Probably wouldn't fire anyway. How often have you seen...
#ifdef DEBUG #define ASSERT(x) #else #define ASSERT(x)... a real definition goes here. #endif
Hopefully never! 1) C already contains a macro 'assert()' which does nothing if NDEBUG is defined, and aborts the program with an error otherwise, so you would be reinventing the wheel 2) If you detect the program is in an invalid state in a release version, why would you want to continue execution as if nothing were wrong??
If he is found guilty, the name of the filesystem will have to be changed, too. Otherwise it will fall into obscurity along with MansonFS, OswaldFS and the great-but-forgotten object-based, journalling OJSimpsonFS.
At least that FS won't have any trouble with un-freed blocks
Some murderers might be "rehabilitated" according to the justice system, but the fact remains that the flaw exists in their personality that once drove them to kill someone.
Is that really a flaw? Throughout most of human history, killing people has been acceptable. Even now, it is still acceptable in some situations (eg. if the other person is an enemy soldier).
It is only relatively recently that this murder stigma has really taken off.
I work for a company that provides the back end for loyalty processing systems. One day in 1999, the front end company complained to us that our system was rejecting their new cards, saying they had an invalid expiry date.
Now, ISO specification for track-2 on a magnetic stripe card is: the card number, then a delimiter, then an expiry date in YYMM format, and then freeform data to a maximum of 37 characters. There are tens of thousands of installed systems that read these cards and parse the expiry date.
But, in anticipation of the upcoming Y2K bug, this enterprising front end company had decided to write an expiry date of CCYYMM, without bothering to consult anyone, or let anyone know about it. So, an expiry date of 200006 got a processing error, although dates like 200106 got parsed as January 2020 (rather than June 2001) so they at least continued to work.
Well, you might think, let's just turn off expiry date checking in the devices. Oops... due to the extra 2 digits, the track-2 now has 39 characters, so some devices will refuse to read it at all!
It's not possible to have "120 megawatts per day". A watt is a RATE of energy usage (joules per second, in fact). It takes 120 MW to power a million 120W light bulbs -- for 5 seconds, or 5 hours, or a day, or a year -- how long you keep that rate up, has nothing to do with how fast the actual rate is !
Perhaps the article meant "120 megawatt-hours per day", although that would be a very strange unit of measurement (not as bad as Libraries of Congress, though).
As I write, the Featured Article ("Damon Hill") consists of the text:
Youre gay!
I think it is seriously time for more editorial control. This is surely possible without compromising anyone's freedom. For example, pages should either be marked 'mature' or not (ie. they are good enough to be semi-authoritative). Such pages should not allow immediate editing; any user changes should be queueud to either be approved or rejected by a moderator. There should be live chat so rejected users can chat to moderators in case the user wasn't trolling.
I think it's because dd/mm/yy is the sensible option: each entry is in chronological order. mm/dd/yy has a bigger index, then a smaller one, then an even bigger one. It is sort of like writing $105 instead of $150.
Cf. how the rest of the world uses metric measurements and America still uses illogical unwieldy measurements.
Lol. The site is dreadfully written, obviously nobody who has studied usability has ever worked on it. It wouldn't surprise me if they don't have any backups or plan B. Tom is a cock.
I was amused when reading the article for Juhn Wayne Gacy (the serial killer-pedophile) last week to see the comment "Ari Bloomberg say's little kids are hot and sexy". Unfortunately there was no explanation of who Ari Bloomberg is or was..
People have objected to electric cars in the past because the fossil fuels used to generate the electricity to charge them cancels out any supposed benefits. But if the car can get all of its power from the sun -- and recharge when it is parked -- then they suddenly *are* cheaper and more environmentally friendly.
Which is why C++ is the best language because you can overload operators, so, "4" * 4.0 can yield whatever you think makes sense:
* 16
* "16"
* "4444"
* 208
* or, if you prefer, a nice game of Nethack
Nice joke, but you can't re-define built-in operations. In other words, for an overloaded operator, one of the operands must be a class type which was defined by you. 1 + 1 is always 2.
BTW, what stupid language has 4 * 4 = 4444 ? I'm never learning Ruby now, who knows what might happen.
Not only is it 1 day, but the activation is ridiculously complicated (activation.. of my trial.. by basically putting files in my documents and settings/[user] folder)
If you can't manage to put a file in a folder then I'm glad you aren't going to be developing applications that I might have to use one day!
I didn't write it down -- it was too large to fit in the margin.
I think
a = b * c;
is more clear, concise and simple than:
mp_mul(&a, &b, &c);
For example , in the latter it's not immediately obvious which one is
the result!
It would be even better if you used proper variable names for a,b,c.
I don't understand your comment about being 'more explicit'. A
multiplication with infix notation does not seem any more 'vague'
to me than one with prefix notation; in fact it seems preferable.
Functions can return new instances, which also override the existing one, e.g.
// constructor called
// value of b*c held in temporary instance, could be copied into a, or simply overwrite the instance of a, thereby calling the deconstructor.
bignum a, b, c;
a = b * c;
Can you post your equivalent C code, that is supposedly more efficient?
I don't see how you're going to avoid initializing a,b,c, or assigning something to 'a'.
If you are really concerned about the compiler being unable to optimise out the temporary result of (b * c), then you could write:
a = b;
a *= c;
which is fully equivalent to C code like:
BN_assign(a, b);
BN_mult_by(a, c);
int main(void) { bignum a; return 0; }
/entire purpose/ of such a class would be to more concisely express: /* ... */
That function can call a constructor. Even though it doesn't look like there is a function call in it.
Well, it looks like there is a function call, to anybody who has bothered to learn C++.
In fact, the
BIGNUM a;
BN_init( &a );
if ( the_time_is_right() )
BN_free( &a );
with the added benefit that you cannot accidentally forget to free it. If, for some reason, you wanted to use a bignum and not initialize it, or not free it, then you would not use this API.
There's no trickery going on.
C++ ? Out of the question. Too many hidden operations make development a nightmare.
Such as?
There will be buffer overflows. The solution is to not use C for handling data from over the network.
This is unnecessarily pessimistic, even trollish. There are only buffer overflows if you write buggy code.
Having said that, I think it was a particularly poor design decision to use a function pointer where they did.
Actually it's nothing like that, but don't let facts get in the way of a good post.
Looks like we can add 'sockpuppets' to his list of credentials
Did anyone else notice that the page is *extremely* resource-intensive?
When I click the Ajax link to view a player's details, it takes about 20
seconds to just render the page -- not including download time (I'm on a P2-333).
That could explain why it seems to be less reliable than OSDN which is just serving text.
They're able to pay for high speed broadband and would spring for 10Mbps symmetrical connections even if they cost $100/month
Your tone of voice implies that it's possible to get these connections for less than $100/month -- is that true or am I misreading? I'm paying $65/mo for 2M/128k with 10gb cap.
Probably wouldn't fire anyway. How often have you seen...
#ifdef DEBUG
#define ASSERT(x)
#else
#define ASSERT(x)
#endif
Hopefully never!
1) C already contains a macro 'assert()' which does nothing if NDEBUG is defined, and aborts the program with an error otherwise, so you would be reinventing the wheel
2) If you detect the program is in an invalid state in a release version, why would you want to continue execution as if nothing were wrong??
How can you defend your rights when the evidence against you is kept secret?
Do you work for SCO?
If he is found guilty, the name of the filesystem will have to be changed, too. Otherwise it will fall into obscurity along with MansonFS, OswaldFS and the great-but-forgotten object-based, journalling OJSimpsonFS.
At least that FS won't have any trouble with un-freed blocks
What's your obsession with personal witnessing? I haven't personally witnessed anyone going to the Moon. Yet I don't doubt that they have. Do you?
Some murderers might be "rehabilitated" according to the justice system, but the fact remains that the flaw exists in their personality that once drove them to kill someone.
Is that really a flaw? Throughout most of human history, killing people has been acceptable. Even now, it is still acceptable in some situations (eg. if the other person is an enemy soldier).
It is only relatively recently that this murder stigma has really taken off.
Letting someone do something s/he loves while in prison, will sort of defeat the purpose of prison, i.e. make them wish they hadn't committed a crime.
So, what to do with male homosexual criminals?
I work for a company that provides the back end for loyalty processing systems. One day in 1999, the front end company complained to us that our system was rejecting their new cards, saying they had an invalid expiry date.
Now, ISO specification for track-2 on a magnetic stripe card is: the card number, then a delimiter, then an expiry date in YYMM format, and then freeform data to a maximum of 37 characters. There are tens of thousands of installed systems that read these cards and parse the expiry date.
But, in anticipation of the upcoming Y2K bug, this enterprising front end company had decided to write an expiry date of CCYYMM, without bothering to consult anyone, or let anyone know about it.
So, an expiry date of 200006 got a processing error, although dates like 200106 got parsed as January 2020 (rather than June 2001) so they at least continued to work.
Well, you might think, let's just turn off expiry date checking in the devices. Oops... due to the extra 2 digits, the track-2 now has 39 characters, so some devices will refuse to read it at all!
It's not possible to have "120 megawatts per day". A watt is a RATE of energy usage (joules per second, in fact). It takes 120 MW to power a million 120W light bulbs -- for 5 seconds, or 5 hours, or a day, or a year -- how long you keep that rate up, has nothing to do with how fast the actual rate is !
Perhaps the article meant "120 megawatt-hours per day", although that would be a very strange unit of measurement (not as bad as Libraries of Congress, though).
As I write, the Featured Article ("Damon Hill") consists of the text:
Youre gay!
I think it is seriously time for more editorial control. This is surely possible without compromising anyone's freedom. For example, pages should either be marked 'mature' or not (ie. they are good enough to be semi-authoritative). Such pages should not allow immediate editing; any user changes should be queueud to either be approved or rejected by a moderator. There should be live chat so rejected users can chat to moderators in case the user wasn't trolling.
I think it's because dd/mm/yy is the sensible option: each entry is in chronological order. mm/dd/yy has a bigger index, then a smaller one, then an even bigger one. It is sort of like writing $105 instead of $150.
Cf. how the rest of the world uses metric measurements and America still uses illogical unwieldy measurements.
Lol. The site is dreadfully written, obviously nobody who has studied usability has ever worked on it. It wouldn't surprise me if they don't have any backups or plan B. Tom is a cock.
I was amused when reading the article for Juhn Wayne Gacy (the serial killer-pedophile) last week to see the comment "Ari Bloomberg say's little kids are hot and sexy". Unfortunately there was no explanation of who Ari Bloomberg is or was..