Search found 2031 matches

by deltarho[1859]
Nov 16, 2019 15:23
Forum: General
Topic: Home-brewed encryption
Replies: 42
Views: 959

Re: Home-brewed encryption

Actually, dodicat's method becomes rather obvious now. (TempVar Mod 256) will have a remainder of 0, 1, 2, ..., 255. If TempVar is random and uniformly distributed so will be the remainder. For a range of 'one to two' we simply subtract one from the lower bound and subtract one from the upper bound ...
by deltarho[1859]
Nov 16, 2019 6:32
Forum: General
Topic: Home-brewed encryption
Replies: 42
Views: 959

Re: Home-brewed encryption

Just to make sure that nothing untoward has crept in here is the average of 10^8 requests of MsWs.Range which has a theoretical value of 127.5, I get 127.49894802. '#Console On #Include "MsWsRange.bas" Dim As MsWsParams MsWs Dim As Long i Dim tot As Double Dim As Ulongint Seed0 = 123, Sequ...
by deltarho[1859]
Nov 15, 2019 23:20
Forum: General
Topic: Home-brewed encryption
Replies: 42
Views: 959

Re: Home-brewed encryption

Bit of a logic check here. Originally, with MsWs, I was going to use two generators MsWs0 and MsWs1 but then decided to have two engines in the one generator so now I only needed MsWs and not MsWs0 and MsWs1 but I still kept them and there was no need to. Worse still only MsWs0 was being used and Se...
by deltarho[1859]
Nov 15, 2019 13:50
Forum: Beginners
Topic: Need speedup
Replies: 19
Views: 515

Re: Need speedup

maybe it will add 1 percent to speed

With multi-tasking operating systems we can get 1% fluctuations in speed without doing anything.
by deltarho[1859]
Nov 15, 2019 13:42
Forum: Beginners
Topic: Need speedup
Replies: 19
Views: 515

Re: Need speedup

Where we put Dim has scope implications but I do not think that it has any noticeable effect on speed. I looked at Dim inside loops a while ago and concluded that they are only executed once and not on every pass of the loop.
by deltarho[1859]
Nov 14, 2019 7:06
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 421

Re: FB-1.07.1-gcc-6.4

I am getting the array subscripts issue with dodicat's Pool application with 32-bit and 64-bit, with 6.4 and 8.3, but it runs without, seemingly, any problems. 6.4 mentioned five instances, and they were all of the form (1 to <n>), changing to (<n>) cleared the lot and the game did not suffer becau...
by deltarho[1859]
Nov 14, 2019 0:40
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 421

Re: FB-1.07.1-gcc-6.4

@srvaldez Of course, I had forgotten that 'Asm nop' is for 32-bit and ' Asm "nop" 'with '-asm att' is for 64-bit - tips from yourself some time ago - memory fog creeping in. That got rid of the ' invalid use of register 'frame' ' with 8.3. dt0(9) rather than dt0(1 to 9), for example, is in...
by deltarho[1859]
Nov 13, 2019 23:28
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 421

Re: FB-1.07.1-gcc-6.4

I am going to be argumentative. http://deltarho.org.uk/Downloads/smile.png It seems [to compile] slower than previous versions That may be due to generating smaller binaries. but it is also true that it generates better code (not necessarily 'faster') If smaller binaries still work then we can assum...
by deltarho[1859]
Nov 13, 2019 21:28
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 421

Re: FB-1.07.1-gcc-6.4

I have a pretty sizable codebase for FreeBasic I don't so and all of it compiled flawlessly under the same switches in the Gcc 8 branch. is good to read notwithstanding the "shared lib with optimizations enabled". A question, Paul: What is your overall impression of the gcc 8 branch compa...
by deltarho[1859]
Nov 13, 2019 20:49
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 421

Re: FB-1.07.1-gcc-6.4

It seems to me that with each new gcc version the optimization gets more aggressive and does not do FB any favours. Since 6.4 is only 'one up' on 5.2 it is no surprise that "gcc-5.2 and gcc-6.4 don't have issues compiling with optimization, as far as I know." Things start to get flaky with...
by deltarho[1859]
Nov 13, 2019 16:03
Forum: General
Topic: To Paul Squires
Replies: 5
Views: 199

Re: To Paul Squires

Have you ever compiled using 'gui' and should have used 'console' and then had to use the Task Manager to kill the exe? I lost count on the number of times that I have until I learnt of this. '#Console On I now put that as my first statement on everything that I write in WinFBE, it takes priority ov...
by deltarho[1859]
Nov 08, 2019 13:38
Forum: General
Topic: dodicat's random integral number method
Replies: 11
Views: 256

Re: dodicat's random integral number method

I should have egg on my face but I don't do egg on my face, I just smile. Image

However, we still have to visit the Wiki as opposed to being advised of a new update.
by deltarho[1859]
Nov 08, 2019 12:12
Forum: General
Topic: dodicat's random integral number method
Replies: 11
Views: 256

Re: dodicat's random integral number method

@fxm Thanks for the 2019.11.08 update to the Help manual regarding RND, it is no longer confusing. I think that it would be worthwhile to have a locked topic somewhere advising when an updated Help manual has been published; and, perhaps, a synopsis of changes. At the moment I call at 'Index of /stw...
by deltarho[1859]
Nov 07, 2019 22:32
Forum: General
Topic: dodicat's random integral number method
Replies: 11
Views: 256

Re: dodicat's random integral number method

Ah, I knew of "E", which has been around since the beginning of programming, but I did not know that we could use "D" instead, which explains 421d+1 = 4120. To my mind a choice of "D" or "E" is silly, as is "&, l", "!, f", and "#, ...
by deltarho[1859]
Nov 07, 2019 21:08
Forum: General
Topic: dodicat's random integral number method
Replies: 11
Views: 256

Re: dodicat's random integral number method

I just tried that myself, but 421d+1 should have worked.

Go to advanced search