Search found 2502 matches

by srvaldez
Nov 30, 2020 3:03
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 79
Views: 2955

Re: What happened to the Emscripten branch?

Here is a program that compiles fine under Linux and Windows, but hangs at compile time for WEB. Don't look at the confusion of the code, this program was written for the ZX Spectrum and I don't even know the author of the program. In those days, it was written in BASIC. I just ported the program c...
by srvaldez
Nov 29, 2020 22:27
Forum: General
Topic: Pentacles
Replies: 14
Views: 643

Re: Pentacles

@dodicat
that's instant bird, I kind of like the slow drawing of BasicCoder2's code, the only thing missing is the hand with pen, that would be cool :-)
by srvaldez
Nov 29, 2020 10:54
Forum: General
Topic: Pentacles
Replies: 14
Views: 643

Re: Pentacles

@BasicCoder2
very nice drawing :-)
could you post your latest tracer code ?
by srvaldez
Nov 29, 2020 9:48
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

@deltarho[1859]
sorry for the late reply, I take off on Saturdays from any computer activity
thanks for testing, your comments are always welcome,
by srvaldez
Nov 27, 2020 23:12
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

in that case the timings are very good :-)
by srvaldez
Nov 27, 2020 22:49
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

yes, 3 times faster is not bad
wait, I just remembered that in the latest version of FB the rnd function is thread safe but slower, what FB version are you using dodicat ?
by srvaldez
Nov 27, 2020 21:41
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

@dodicat if you compile for loops with gcc, gcc will eliminate the loop entirely if possible with -O3 so you must add code that will prevent gcc from eliminating these timing loop, so here's your test with my mods '' simple test dim as double t, t2 dim as long L dim as double sum print " time f...
by srvaldez
Nov 27, 2020 21:04
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

:smile:
by srvaldez
Nov 27, 2020 20:52
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

did a search on AVX2 emulation and found that Intel has an emulator https://software.intel.com/content/www/us/en/develop/articles/intel-software-development-emulator.html which is OK if you want to run a program that uses instruction that your CPU doesn't support, but what I really was after was a l...
by srvaldez
Nov 27, 2020 19:00
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

my CPU supports AVX2 but not AVX-512
I am sure the Shishua PRNG could be implemented without the use of AVX2 but with slower performance
by srvaldez
Nov 27, 2020 18:36
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

@deltarho[1859]
does the CPU in your PC support AVX2 ?
Wikipedia gives a list https://en.wikipedia.org/wiki/Advanced_ ... _with_AVX2
but besides that, how do you do memory alignment in FB ?
I think it needs to be 64-bit aligned
by srvaldez
Nov 27, 2020 16:42
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

Did you not find one to your liking assuming that you have checked some of them out? ... I look forward to your implementation of Shishua. Coding the engine is one thing - giving the user some useful functions is another. I gather that random numbers are used in games, statistics, cryptography and ...
by srvaldez
Nov 27, 2020 15:18
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

@deltarho[1859]
have checked out Shishua PRNG https://www.mdeditor.tw/pl/pij1/zh-hk ?
also ChaCha https://cr.yp.to/chacha.html
by srvaldez
Nov 26, 2020 18:49
Forum: Beginners
Topic: Trying to get started again . . .
Replies: 13
Views: 326

Re: Trying to get started again . . .

hello cavelamb it might help if you would post a small sample of the file you are trying work on and what the result should be after processing and what results you are getting now never bothered with YouTube transcripts before, so I tried and got a small sample, is this what your files look like? 0...
by srvaldez
Nov 25, 2020 13:05
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Mersenne Twister, Public domain

I found this at https://github.com/ESultanik/mtwister I will leave the code cleaning as an exercise, but it works as is. /' An implementation of the MT19937 Algorithm for the Mersenne Twister by Evan Sultanik. Based upon the pseudocode in: M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623...

Go to advanced search