Search found 872 matches

by paul doe
Sep 14, 2019 15:32
Forum: Tips and Tricks
Topic: Fastest PRNG around, the XORSHIFT
Replies: 30
Views: 838

Re: Fastest PRNG around, the XORSHIFT

... This is my latest version of MsWs. I don't use 's' because of the issues we had with it when discussing MsWs some time ago. Instead, I use the largest prime number < 2^64. I use the same above, based on your suggestion. ... With my latest speed test method PCG32 is faster than MsWs but not by a...
by paul doe
Sep 14, 2019 15:00
Forum: Tips and Tricks
Topic: Fastest PRNG around, the XORSHIFT
Replies: 30
Views: 838

Re: Fastest PRNG around, the XORSHIFT

@David: no mention of the Middle Square Weyl Sequence PRNG? ;) Minimal implementation here: '' Convenience const _ ulongMax => culng( -1 ), _ ulongIntMax => culngint( -1 ) /' Middle Square Weyl Sequence Pseudorandom Number Generator '/ function _ mswsrnd( _ byval seed as ulongint => 0 ) _ as ulong s...
by paul doe
Sep 09, 2019 20:50
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 16
Views: 1257

Re: FreeBASIC 1.07.0 Release Discussion

Way to go, Jeff! I hadn't got around to test 1.07 yet. Will do soon enough, though =D ... @dodicat, I see your regulate() function in many of your listings and seems to work well. Like it should be built in to an extension SCREENSYNC somehow as a gfxlib feature for software based timing. Or ...
by paul doe
Aug 06, 2019 20:50
Forum: Tips and Tricks
Topic: Tip of the week: Bithacks by By Sean Eron Anderson
Replies: 2
Views: 899

Re: Tip of the week: Bithacks by By Sean Eron Anderson

Very nice resource, thanks. Extremely handy when coding shaders!
by paul doe
Jul 05, 2019 20:00
Forum: Libraries
Topic: EZ-DRAW 1.2 graphic static lib win/linux
Replies: 12
Views: 1571

Re: EZ-DRAW 1.2 graphic static lib win/linux

Mmm, might be quite useful, indeed. Thanks for sharing.
by paul doe
Jun 29, 2019 13:18
Forum: Beginners
Topic: Recursion in FreeBASIC
Replies: 10
Views: 1551

Re: Recursion in FreeBASIC

best and easy explanation and an example using the Recursive/Recursion in FreeBASIC.? strive to study it but still don't get it. my understanding about this is that you can call itself like the declare a sub procedure inside? Recursiveness is a fundamental technique, quite easy to use (but not so e...
by paul doe
May 31, 2019 11:57
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

... The more i think about it, the more i tend towards a RTL-function, even if all the work i put into making VARPTR work for arrays was in vain. ... This goes precisely in the direction of a public API that exposes some compiler internals, which is an approach that I fully agree with. While develo...
by paul doe
May 20, 2019 14:02
Forum: General
Topic: Programming fonts
Replies: 8
Views: 556

Re: Programming fonts

... What do you do when programming of an evening? I have been using f.lux for some years now. Win10 has 'Night light settings' but it has some way to go to match f.lux. f.lux has a 'Reduce Eyestrain' setting with a colour temperature of about 3450K. If I disable f.lux I nearly get blown out of my ...
by paul doe
May 20, 2019 2:25
Forum: General
Topic: Programming fonts
Replies: 8
Views: 556

Re: Programming fonts

For everyday work, my absolute preference goes to Fira Mono , hands down. It is very readable, has pretty distinctive glyphs for operators and has a very nice spacing (especially vertical). The most readable coding font I could find. I suffer from severe eye strain so this is pretty important for me...
by paul doe
May 19, 2019 12:33
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

@paul doe, as already mentioned above there is a bug in the interface, it works for one-dimensional arrays using the following syntax: ... Fair enough. But I take it that you're well aware that the interface should be fully orthogonal (we already have a lot of 'quirk' statements inherited from the ...
by paul doe
May 19, 2019 12:23
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

Tourist Trap wrote:...
Use namespace please also, for the same reason. But you probably noticed that defines/macro can not be isolated in namespaces - unless I missed something of course.

#defines respect namespaces, #macros don't (they're defined in the global namespace).
by paul doe
May 18, 2019 15:34
Forum: Documentation
Topic: Wiki improvements
Replies: 350
Views: 35593

Re: Wiki improvements

After the vptr / vtbl (vtable) usage for abstract/virtual procedures, why not another article about the RunTime Type Information (RTTI) provided by the built-in OBJECT: 19. How using RTTI from FB built-in OBJECT to extract Typename and those of all Bases of an instance (article of 1 post) It would ...
by paul doe
May 18, 2019 15:13
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

@Juergen: Unless I'm missing something, it doesn't work: '#include once "ustring.bi" #INCLUDE ONCE "/crt/string.bi" #INCLUDE ONCE "/crt/stdlib.bi" #pragma once '*********************************************************************************************** ' Copyright (...
by paul doe
May 18, 2019 2:10
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

Then, paul doe, what are you suggesting? ... I already made my suggestions a few posts before. I won't repeat them. With your quote, perhaps I don't understand part what is suggested as a difference. ... Read the original proposal by Juergen, then. @Juergen: what I meant to say is this: if you alre...
by paul doe
May 18, 2019 0:15
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12238

Re: New array features

... @all, personally i would prefer option #1 too, because then everyone can inspect the code and can take it as a start for own special features. Just combine the provided basic features or write own specialized code using the all the basic information supplied by such an include file. If it will ...

Go to advanced search