Search found 2982 matches

by MrSwiss
May 17, 2019 19:18
Forum: Community Discussion
Topic: New array features
Replies: 47
Views: 1323

Re: New array features

I tend to agree with speedfixer, use option #1. (preferred) Also, just providing ' primitives ' like required Macro's and such, should do. Extending the 'primitives' according to the ' job at hand ', by the application developer, at the sole discretion of the programmer in question ... I'd strictly ...
by MrSwiss
May 11, 2019 13:37
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 522

Re: Problem writing 8GB array to disk

@dodicat,

file is small: 2.53 MB only, otherwise, all okay. (FBC 64, 1.06.0, Win standalone)
by MrSwiss
May 11, 2019 11:48
Forum: General
Topic: Typeof (pointer value) ?
Replies: 8
Views: 236

Re: Typeof (pointer value) ?

This feature enabled, my life is easier ;) What makes you think so? I don't see any reason for it. 'Var bar = 67.2f ' forced to: Single Var bar = 67.2 ' default Double #Print TypeOf(bar) ' see: compiler output Print bar : Sleep TypeOf() returns the data-type, as string at compile time.
by MrSwiss
May 05, 2019 18:49
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

Thank you.
by MrSwiss
May 05, 2019 18:34
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

When the data are referenced by a pointer, alone or within a descriptive structure (a UDT, for example), it is usually best to only SWAP only exchange s the values of the pointers or the contents of the descriptive structures without accessing data themselves. This part needs a reformulation, a sta...
by MrSwiss
May 05, 2019 16:20
Forum: Beginners
Topic: Automatic conversion WSTRING to (Z)STRING
Replies: 10
Views: 251

Re: Automatic conversion WSTRING to (Z)STRING

Result: H€llΩ 8 H€llΩ 5 As seen above len(String) contains 8 (UByte) while len(WString) contains 5 (UShort?), which indicates, that *..IX* systems use UTF-8 (as standard) which is a very different system, looking at it from a DOS/WIN perspective (ASCII/ANSI) ... (Btw. not certain, that WString on *...
by MrSwiss
May 04, 2019 19:29
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

Thumbs up, full marks, thanks ... just use *generally" as first word (after NOTE:)
by simply deleting "more"
by MrSwiss
May 04, 2019 19:20
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

Perhaps: Note: For var-len strings, Swap is more efficient than a classical exchange by circular assignments (using a third temporary string), because only the strings descriptors are exchanged rather than all strings data characters. More generally, when the data are referenced by a pointer, alone...
by MrSwiss
May 04, 2019 17:07
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

Your Poposal: -> OK, for String I'd like you, however, to add something like: The same applies to Ptr's, even in UDT's (Ptr's swapped, no change to 'pointed to' values). <OT> just had a server failure (trying to post): 503 Service Unavailable The server is temporarily busy, try again later! </OT>
by MrSwiss
May 04, 2019 14:46
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

I think that misunderstanding on this subject is definitive between us. OK, i'll try, one more time: the left / right columns of results proof nothing, because: the comparison should be: String vs. Type (identical to String) both with Swap , which I expect to result in: equality (more or less) you'...
by MrSwiss
May 04, 2019 14:18
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

swap time proxy time str: 0.006706200074404478 0.05453830002807081 So you see no improvement between the left column and the right column? Absolutely pointless question because: compare: apples with apples to do that, the current testing code is useless. What does useless test code proof? (rhetoric...
by MrSwiss
May 04, 2019 13:23
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

The difference is that a string is an object with a Let operator Let that copies the string data characters when assignment is called, which is not the case of an UDT containing a pointer to data block. Sorry, but this is nonsense because, the DATA isn't touched at all, just the Ptr's adresses need...
by MrSwiss
May 04, 2019 13:04
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

Sorry, doesn't make the tiniest bit of sense, by cons, it's just illogical, at least as long, as you can't describe the very details of optimizing, that is "supposedly" taking place ... A Ptr in a UDT "u" and, a Ptr in the UDT "String", is "the same difference"...
by MrSwiss
May 04, 2019 11:20
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

KeyPgSwap → fxm [Added a note that what Swap is optimized for var-len strings] This is not exactly the whole truth, because it applies likewise, to PTR's in UDT's (any data-type or UDT), where the allocated memory is always external to the UDT itself (only the PTR's size is allocated, inside the UD...
by MrSwiss
May 04, 2019 8:54
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 555

Re: SWAP keyword

C:\DEV_TOOLS\FreeBASIC\1060_64\fbc -s console "xyz.bas" (no optimisations) Intel i7 7th gen. (U model), dual core (4 virtual), WIN10 pro 64 swap time proxy time int: 0.002437999937683344 0.002927400171756744 str: 0.006706200074404478 0.05453830002807081 udt: 0.01079980004578829 0.048528299...

Go to advanced search