• Welcome to Valhalla Legends Archive.
 

[VB] CheckRevision

Started by Joe[x86], April 14, 2005, 10:45 PM

Previous topic - Next topic

R.a.B.B.i.T

Quote from: HdxBmx27 on April 15, 2005, 06:11 PM
Now does the opertation thet B.net sends refer to all Bitwise opertations (Xor, Or, And, Etc...) or there mathmatical counterparts? (+, -, /, \, ^, *, etc...)

^ was explaind to mean Xor, and so could it be assumed that + means And, and - means Or? If so it always returns zero (not using Moduls()) with no overflows.
~-~(HDX)~-~
+ is + and - is -.

iago

Incidentally, I'm not at all confident that a floating point value (which I imagine "currency" is?) will be accurate enough to do this correctly consistantly. 

And yeah, the 3 symbols used are their common usage in all real languages:
^ = xor
- = minus
+ = plus
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Quote from: iago on April 16, 2005, 02:21 PM
Incidentally, I'm not at all confident that a floating point value (which I imagine "currency" is?)

Currency isn't a floating point value. It's a fixed point value.

iago

Quote from: Adron on April 16, 2005, 03:22 PM
Quote from: iago on April 16, 2005, 02:21 PM
Incidentally, I'm not at all confident that a floating point value (which I imagine "currency" is?)

Currency isn't a floating point value. It's a fixed point value.

What's the advantage of using it, then? Isn't there a better way to get numbers that won't overflow?
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Quote from: iago on April 16, 2005, 03:28 PM
What's the advantage of using it, then? Isn't there a better way to get numbers that won't overflow?

The advantage, I suppose, would be to get exact calculations with decimal point numbers where roundings don't happen in any strange way. In the old days the advantage was that fixed point numbers were much faster to use than floating point numbers.

The best way of not getting an overflow error for numbers might be to tell the compiler not to generate overflow checks.... :P

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Quote from: iago on April 16, 2005, 03:47 PM
Can VB do that?

Only when you compile your code. It's listed as an optimization.

iago

Hmm, perhaps these gentlemen should try that
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Joe[x86]

That'd be a royal pain, especially in debugging (interpreted code, not compiled).
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

OnlyMeat

#24
To save you all the trouble, here is the checkrevision me and NiNe wrote. Note this has only been tested with starcraft and warcraft 2.

Cost with compiled exe and all advanced optimizations turned on (0.671 seconds). Machine stats - 1 gig DDR ram, 3.06ghz P4.

[Kp edit: killed horribly long code paste, it was ruining the thread.  On top of that, it was VB!]

It's a vb checkrevision thread, what do you expect duh!

Here is the download link kp erased:
http://mercury.walagata.com/w/ddjl/VB6CheckRevision.rar

To view the CCheckRevision class, here is a quick link:
http://mercury.walagata.com/w/ddjl/CCheckRevision.txt

iago

The point is that they were doing it for a challenge, not because they wanted an implementation of it.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Archangel

Ok this is funny,
they are having fun in a topic, like all users helping and in 1 second the fun can end because of an %$&%.

[Edit: The life can end like that soon or later too]
I'm not an Addict.