[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.java.programmer

Re: Java Source of Meiyan Hash Scrambler?

Re: Java Source of Meiyan Hash Scrambler?

Roedy Green

6/12/2016 9:29:00 AM

On Thu, 9 Jun 2016 16:26:09 +0200, Jan Burse <janburse@fastmail.fm>
wrote:

>I still think its not yet correctly rendering number literals,
>I am expecting these tokens:
> 16_777_619
> 2_166_136_261L
>in one single color. It really confuses me if a new color starts
>before _, insuinating that a new token starts.

what web page are you seeing this on?

Jan Burse

6/12/2016 10:03:00 AM

Roedy Green schrieb:
> On Thu, 9 Jun 2016 16:26:09 +0200, Jan Burse <janburse@fastmail.fm>
> wrote:
>
>> I still think its not yet correctly rendering number literals,
>> I am expecting these tokens:
>> 16_777_619
>> 2_166_136_261L
>> in one single color. It really confuses me if a new color starts
>> before _, insuinating that a new token starts.
>
> what web page are you seeing this on?
>

http://mindprod.com/jgloss/diges...

Andreas Leitgeb

6/13/2016 2:07:00 PM

j4n bur53 <janburse@fastmail.fm> wrote:
> Roedy Green schrieb:
>> On Thu, 9 Jun 2016 16:26:09 +0200, Jan Burse <janburse@fastmail.fm>
>> wrote:
>>
>>> I still think its not yet correctly rendering number literals,
>>> I am expecting these tokens:
>>> 16_777_619
>>> 2_166_136_261L
>>> in one single color. It really confuses me if a new color starts
>>> before _, insuinating that a new token starts.
>> what web page are you seeing this on?
> http://mindprod.com/jgloss/diges...

Fwiw, I see the number literals all in red, but "doubleddoubled"!

e.g.: (direct copy & paste of these lines)
private static final int MAGIC_OFFSET = ( int ) ( 2_166_136_2612_166_136_261L & 0xffffffffL ); /* fake unsigned 32 bit */
private static final int MAGIC_PRIME = 16_777_61916_777_619; /* magic 32 bit FNV_prime = 2^24 + 2^8 + 0x93 = 16,777,619 */

(firefox here)

Andreas Leitgeb

6/13/2016 2:17:00 PM

Andreas Leitgeb <avl@logic.at> wrote:
> j4n bur53 <janburse@fastmail.fm> wrote:
>> http://mindprod.com/jgloss/diges...
> Fwiw, I see the number literals all in red, but "doubleddoubled"!
> e.g.: (direct copy & paste of these lines)
> private static final int MAGIC_OFFSET = ( int ) ( 2_166_136_2612_166_136_261L & 0xffffffffL ); /* fake unsigned 32 bit */
> private static final int MAGIC_PRIME = 16_777_61916_777_619; /* magic 32 bit FNV_prime = 2^24 + 2^8 + 0x93 = 16,777,619 */
> (firefox here)

And where the number is very big, it seems to hide a digit besides
the doubling:

/**
* magic 64 bit initial value for the hash = 14,695,981,039,346,656,037, needs to be unsigned to fit in long.
*/
private static final long MAGIC_OFFSET = 14_695_981_039_346_656_0314_695_981_039_346_656_03L * 10 + 7; /* 14_695_981_039_346_656_037L faked unsigned */

Note, that 14_695_981_039_346_656_0314_695_981_039_346_656_03L lacks the
digit 7 that is at the end of the figure in the comment. It's also possible
that this one digit is actually just missing in the code, though.

Andreas Leitgeb

6/13/2016 2:21:00 PM

Andreas Leitgeb <avl@logic.at> wrote:
> Andreas Leitgeb <avl@logic.at> wrote:
>> j4n bur53 <janburse@fastmail.fm> wrote:
>>> http://mindprod.com/jgloss/diges...
>> Fwiw, I see the number literals all in red, but "doubleddoubled"!
>> e.g.: (direct copy & paste of these lines)
>> private static final int MAGIC_OFFSET = ( int ) ( 2_166_136_2612_166_136_261L & 0xffffffffL ); /* fake unsigned 32 bit */
>> private static final int MAGIC_PRIME = 16_777_61916_777_619; /* magic 32 bit FNV_prime = 2^24 + 2^8 + 0x93 = 16,777,619 */
>> (firefox here)
> And where the number is very big, it seems to hide a digit besides
> the doubling: [...]
Sorry forget the last one, the missing 7 was intended, that's
that the * 10 + 7 was for, of course.

The "doublingdoubling" is however still an issue.

Jan Burse

6/13/2016 2:23:00 PM

Indeed that is the first thing I saw, that
the numbers got bigger. Since I wrote:

> I am expecting these tokens:
> 16_777_619
> 2_166_136_261L
> in one single color.

And now it is:
16_777_61916_777_619
2_166_136_2612_166_136_261L

Conclusion:
An update was deliverd, testing failed, a new update is necessary.

Andreas Leitgeb schrieb:
> Andreas Leitgeb <avl@logic.at> wrote:
>> j4n bur53 <janburse@fastmail.fm> wrote:
>>> http://mindprod.com/jgloss/diges...
>> Fwiw, I see the number literals all in red, but "doubleddoubled"!
>> e.g.: (direct copy & paste of these lines)
>> private static final int MAGIC_OFFSET = ( int ) ( 2_166_136_2612_166_136_261L & 0xffffffffL ); /* fake unsigned 32 bit */
>> private static final int MAGIC_PRIME = 16_777_61916_777_619; /* magic 32 bit FNV_prime = 2^24 + 2^8 + 0x93 = 16,777,619 */
>> (firefox here)
>
> And where the number is very big, it seems to hide a digit besides
> the doubling:
>
> /**
> * magic 64 bit initial value for the hash = 14,695,981,039,346,656,037, needs to be unsigned to fit in long.
> */
> private static final long MAGIC_OFFSET = 14_695_981_039_346_656_0314_695_981_039_346_656_03L * 10 + 7; /* 14_695_981_039_346_656_037L faked unsigned */
>
> Note, that 14_695_981_039_346_656_0314_695_981_039_346_656_03L lacks the
> digit 7 that is at the end of the figure in the comment. It's also possible
> that this one digit is actually just missing in the code, though.
>


Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Java Source of Meiyan Hash Scrambler?

Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te

Il servizio è completamente GRATUITO!