Search found 315 matches

by Provoni
Nov 07, 2018 8:18
Forum: General
Topic: Free Basic Compilers Version 1.06.0 (08-26-2018) seem broken
Replies: 106
Views: 6657

Re: Free Basic Compilers Version 1.06.0 (08-26-2018) seem broken

Thanks to everyone for their work on the FreeBASIC project.
by Provoni
Nov 04, 2018 10:12
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 4790

Re: Resignation

Hey deltarho[1859],

I hope to be as sharp as you when I turn 71! Your work here on random numbers and everything has been prolific. Sad to see you go.
by Provoni
Nov 03, 2018 10:32
Forum: Projects
Topic: AZdecrypt
Replies: 7
Views: 3214

Re: AZdecrypt

http://i66.tinypic.com/2priq9t.png New version 1.12: http://www.zodiackillersite.com/viewtopic.php?f=81&t=3198 - Optimized "nulls and skips" solver with the help of smokie treats. - Updated Reddit n-grams. This however increased the download to about 560 megabytes. - Much faster Solve...
by Provoni
Nov 01, 2018 14:54
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 210

Re: Program icon larger than 48 by 48

I figured it out, partially at least. If you only include a 48 by 48 image in the icon file along with any larger size like 256 by 256 for example then for some reason it will not use the 256 by 256 image when you ask Windows to display large or very large icons. A workaround is then to only include...
by Provoni
Nov 01, 2018 14:34
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 210

Re: Program icon larger than 48 by 48

Here's a person with the same problem: viewtopic.php?t=16076

He suggests to use Resedit to insert the icon manually. Will try.
by Provoni
Nov 01, 2018 10:43
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 210

Program icon larger than 48 by 48

Hey all,

Even when using an icon that has multiple sizes up to 256 by 256 the icon never grows larger than 48 by 48 when using FbEdit and a .rc file. I really would like to have an icon that scales to at least 256 by 256. Anyone know how to do this?

Thank you.
by Provoni
Oct 20, 2018 16:04
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

deltarho[1859] wrote:That's it - a simple idea that works very well. The power of CryptoRNDII is Thread Pooling which showed how expensive ThreadCreate is when threads are short-lived and creations are requested rapidly.

Very interesting. How does your Thread Pooling work? I cannot tell by looking at the code.
by Provoni
Oct 20, 2018 6:19
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

deltarho[1859] wrote:What is the 'max' in '-gen GCC -O max'?

it is the same as -O 3 since that is currently the maximum optimization level.
by Provoni
Oct 20, 2018 6:17
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Thank you for the table deltarho[1859].

CryptoRNDII is bad ass, PCG32II also very good too.
by Provoni
Oct 19, 2018 18:28
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

I use the official FB 1.05 64-bit with these switches: -gen GCC -O max -Wc -march=native,-funroll-loops,-ffast-math

No issues with the code. I refuse to compile with 32-bit, even for testing. Sorry :D
by Provoni
Oct 18, 2018 18:41
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Why 'x = CryptoS' seems to be faster than 'x = 0' is testing me somewhat. I cannot reproduce this, x = cryptos is always slower than x = 0 for me: screenres 640,480,32 dim as double t,x dim as ulongint i,n=10^8 Const _WIN32_WINNT = &h0602 '#define algo 2 ' For Intel RdRand #Include "Crypto...
by Provoni
Oct 18, 2018 8:27
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Instead of using "asm nop" it is better to do "x += rnd" and print x after the measurement because then the compiler can still do loop optimizations resulting in a higher and more realistic Mhz.
by Provoni
Oct 17, 2018 18:39
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Thank you deltarho[1857], it works now.

I would also like to test PCG32II but have no clue how to use it. Could you give a small example please? And possibly also a small example of how you determine the Mhz of a RNG?
by Provoni
Oct 17, 2018 6:02
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Suppose that you have a stream of random numbers (0,1,1,1,0,1,0,0,..). If the numbers are really random then the next number in the stream can be predicted with no more or less than 50% accuracy on average. So with that idea in mind I wrote a really fancy predictor that learns over time on a stream...
by Provoni
Oct 17, 2018 6:00
Forum: General
Topic: Fast random integers
Replies: 49
Views: 2115

Re: Fast random integers

Trying to use CryptoRndll but it throws 2 errors while compiling: CryptoRndBufferCNG.inc(171) error 20: Type mismatch, before ')' in 'SwitchBufferCriteria = Cast(Long, ptrBuffer) + BufferSize' CryptoRndBufferCNG.inc(196) error 20: Type mismatch, before ')' in 'SwitchBufferCriteria = Cast(Long, ptrBu...

Go to advanced search