Search found 3801 matches

by MrSwiss
Jul 28, 2021 2:45
Forum: Tips and Tricks
Topic: romuTrio64 PRNG
Replies: 5
Views: 182

Re: romuTrio64 PRNG

dafhi wrote:oh i see what you're doing. dividing by 1e7 rather than delta vars. 10 seconds seems kinda long ..

Ain't that, what it's typically called: moaning/groaning/complaining at a high level?
After all, it's clearly marked as 'DEMO' code ...
by MrSwiss
Jul 28, 2021 1:18
Forum: Tips and Tricks
Topic: romuTrio64 PRNG
Replies: 5
Views: 182

Re: romuTrio64 PRNG

Please explain your logic ... why off?
div 1e6 = one/million, however down to 1/sec = 1e7 if run = 10 sec.
I've tested wih 20 sec first, no significant difference noted ...
The shorter the test-time, the less accuracy can be expected ...
by MrSwiss
Jul 28, 2021 0:29
Forum: Tips and Tricks
Topic: romuTrio64 PRNG
Replies: 5
Views: 182

romuTrio64 PRNG

Another new PRNG (c) Mark A. Overton, transated/converted to FB (c) MrSwiss. For more information, check: fomu-random.org A 'quick and dirty' FreeBASIC implementation, with a short DEMO ... Conditions to post here (in this thread) are: everyone, except: d..r..[...], jj... and S...F... (personae's no...
by MrSwiss
Jul 23, 2021 16:56
Forum: Hardware Interfaces / Communication
Topic: reading/writing to the parallel printer port
Replies: 4
Views: 189

Re: reading/writing to the parallel printer port

You'll need both, the driver and the .dll ...
the .dll alone is not changing anything (it comunicates with the driver).

Q: How to use it? A: Read the documentation driver/.dll ...
by MrSwiss
Jul 20, 2021 18:01
Forum: General
Topic: Poke Modifying Previous Address' Value
Replies: 24
Views: 474

Re: Poke Modifying Previous Address' Value

There are two possible ways, to eliminate both, peek & poke:
  • use a UInteger array
  • use a UInteger ptr
To simplify the code ...
by array(index) or by ptr[index].
by MrSwiss
Jul 20, 2021 16:10
Forum: General
Topic: Poke Modifying Previous Address' Value
Replies: 24
Views: 474

Re: Poke Modifying Previous Address' Value

Sorry, the posted code-fragment makes "no sense at all" as it is.

Why don't elaborete some more, about "what you want to achieve" with the code?
Alternatively, post the whole code, that deals with the issue ...
by MrSwiss
Jul 20, 2021 14:53
Forum: Hardware Interfaces / Communication
Topic: reading/writing to the parallel printer port
Replies: 4
Views: 189

Re: reading/writing to the parallel printer port

Simply put: only DOS allowes "direct HW (hardware) access". All the other more modern OS's (operating systems) don't do that, in fact they "protect against direct HW access". You'll have to use something like: in "Try to use inpout32.dll" thread to achieve that (on wind...
by MrSwiss
Jul 20, 2021 2:13
Forum: General
Topic: sng problem, fbc, gcc
Replies: 2
Views: 123

Re: sng problem, fbc, gcc

dafhi wrote:num / (num+1) supposed to be less than 1 ... on my machine i am seeing 1

That result is OK, since Single doesn't posses the necessary amount of precision, for such small differences.
Use a Double instead ...
by MrSwiss
Jul 18, 2021 21:08
Forum: Documentation
Topic: Wiki improvements
Replies: 575
Views: 119129

Re: Wiki improvements

It clearly states: thread stack which is different from application stack, which the -t switch addresses.
by MrSwiss
Jul 18, 2021 20:58
Forum: General
Topic: need particular prng
Replies: 37
Views: 857

Re: need particular prng

There is also: pcg32rr.bi - minimal PCG32_random_r implementation ( (c) Melissa E. O'Neill ) in Forum/Projects.
This is a 32-bit PRNG, as opposed to dodicat's 64-bit PRNG.
by MrSwiss
Jul 09, 2021 14:53
Forum: Beginners
Topic: Installing Free Basic on Windows 10
Replies: 2
Views: 174

Re: Installing Free Basic on Windows 10

Another approach is, to get Installation Instructions from the FB-Documentation (online).

Also, check on: FreeBASIC Requirements ... (OS dependent prerequisites).
by MrSwiss
Jul 01, 2021 13:46
Forum: Community Discussion
Topic: Request: Asm keyword abbreviation
Replies: 11
Views: 221

Re: FreeBASIC 1.08.1 and 1.09.0 Development

Could it be possible to add a symbol like ! ( or another one ) as an abbreviation of the keyword asm? There is already the ASM-Block statement, therefore another short-cut makes little sense. (also notable: short-cuts impact negatively on code's readability, aka: being more cryptic) ' ... (FB code)...
by MrSwiss
Jun 30, 2021 16:12
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 63
Views: 16053

Re: FBImage static Win/Lin 32/64-bit

D.J.Peters wrote:no don't mix native integer with long :-(
Then you'll have to stick with FBC <= 1.07.3.

From version 1.08.0 it's either LONG or LONGINT as per "ScreenInfo/ImageInfo" in the Doc's. ;-)
by MrSwiss
Jun 28, 2021 22:02
Forum: Linux
Topic: FreeBASIC Extended Library fails to INSTALL on Linux
Replies: 3
Views: 325

Re: FreeBASIC Extended Library fails to INSTALL on Linux

Hi, welcome around this forum.

The libtinfo.so.5 issue, should be solved first (before anything else) because, it's a FBC install problem.
See other threads, referring to this issue. Search: 'libtinfo5' (sans quotes).

After solving that, see again, whether there are any issues with *ext.lib*.
by MrSwiss
Jun 24, 2021 19:29
Forum: Community Discussion
Topic: Why No Avatars ?
Replies: 3
Views: 311

Re: Why No Avatars ?

To cut a long story short (about Avatars, Smiley's e.t.c.):
v1ctor wrote:Post by v1ctor (site admin) » May 29, 2005 4:56
No fluff, just stuff, that's the motto here, sorry.

Go to advanced search