Search found 260 matches

by Lost Zergling
Jun 05, 2019 22:10
Forum: Tips and Tricks
Topic: Visual Sort
Replies: 11
Views: 4879

Re: Visual Sort

@denise_amiga Thank you for your response and your interest. I do not want to accept any code that could be covered by copyright, as this would be to integrate or enhance a completely personal library (https://www.freebasic.net/forum/viewtopic.php?f=8&t=26533) dedicated to FB (free use under FB)...
by Lost Zergling
Jun 05, 2019 15:45
Forum: Tips and Tricks
Topic: Visual Sort
Replies: 11
Views: 4879

Re: Visual Sort

This is just very nice for short testing & understanding ! On my laptop : Bubble1=>16s, Bubble2=>18s, Select =>17s, Insert =>16s, Shell=> 33 s, Merge=>18s, Quick=> 54 s I add a sub in your code and I did a test just loading string in a sorted index leaving original array unchanged MyList.HashTag...
by Lost Zergling
Jun 05, 2019 9:35
Forum: Beginners
Topic: Speed of pointers ?
Replies: 9
Views: 4663

Re: Speed of pointers ?

Concretely, and to summarize the situation: there is no generic way to access the first element of a table without having to know in advance the number of dimensions. The syntax does not allow it and the syntax control prevents users from doing this. All the useful information is accessible in the &...
by Lost Zergling
Jun 03, 2019 16:18
Forum: Beginners
Topic: How to get and use a dictionary
Replies: 14
Views: 5704

Re: How to get and use a dictionary

I indexed each of the words
You're welcome have a look to LZLE (if you didn't yet). Perhaps you will like it, perhaps not.
by Lost Zergling
Jun 01, 2019 23:02
Forum: Beginners
Topic: Speed of pointers ?
Replies: 9
Views: 4663

Re: Speed of pointers ?

The parser is intended for the user to be able to write his code or his own functions, and identically to the internal functions. In the logic of the tool, the parser has the highest level of priority because the whole tool will be built around it. The parser that seems the fastest is the increment ...
by Lost Zergling
Jun 01, 2019 0:07
Forum: Beginners
Topic: Speed of pointers ?
Replies: 9
Views: 4663

Re: Speed of pointers ?

@MrSwiss : you are right. fxm provided me an exemple using Type-Ptr (https://www.freebasic.net/forum/viewtopic.php?f=17&t=27606&start=70), I need to experiment it. At first sight leads to udt.ArrayAccess[Datatype] vs Select Case As Const Datatype. @caseih : I'm trying to do (or study the fea...
by Lost Zergling
May 31, 2019 15:22
Forum: Beginners
Topic: Speed of pointers ?
Replies: 9
Views: 4663

Re: Speed of pointers ?

I see, nice information, thanks. But what I can do for pointers I can't for values. I don't see a simple syntax avoiding select case for this one : Property ArrayExtension.Value As String Select Case As Const Datatype Case 1 : Return *Str_StepPtr Case 2 : Return Str(*Int_StepPtr) Case 3 : Return Str...
by Lost Zergling
May 31, 2019 12:25
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

@fxm : ouch! ;-) I'll study that one !..
by Lost Zergling
May 31, 2019 9:33
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

I deviate a little from the original subject. What could be useful to some users? What I missed to optimize my simple and easy way code is a "Variant" type (I got it in my old Basic): if Any Ptr could inherit on demand and semi-persistently caracteristics of any other pointer type this wou...
by Lost Zergling
May 30, 2019 22:56
Forum: Beginners
Topic: Speed of pointers ?
Replies: 9
Views: 4663

Speed of pointers ?

This a question about speed, related to internal pointer calculus by the compiler, if I consider the code below (testing) : dim titi as any Ptr dim toto as string Ptr dim tutu(1) as string tutu(0) ="T0" tutu(1) ="T1" toto=@tutu(0) Print *toto Swap titi, toto Print *CPtr( string P...
by Lost Zergling
May 30, 2019 12:47
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

I did some very few test yesterday before posting with any Ptr and VarPtr and they were unsuccessful. I don't bother overloading or static (in the context). A way (faster) to get rid of theses ugly select in parsers avoiding macros would interest me. However, I did not go very far in my investigatio...
by Lost Zergling
May 29, 2019 18:38
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

Well, I'm going on something done quickly today, it's not functional, it's just a first translation in TypeDef what could give my way of seeing the thing, with my own technical limits of course. It's a little more concrete and it allows to clarify a little even if there is still a lot of technical w...
by Lost Zergling
May 28, 2019 20:16
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 1337

Re: Change string to ordered index ?

Hum. Could you ignore I was reffering LZLE and not FBC. Missunderstandings, must be.
A Zergling ? Royal Blood ? Who knows...
by Lost Zergling
May 28, 2019 19:52
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 1337

Re: Change string to ordered index ?

MrSwiss, 1. There was indeed a Beta 0.991 (not archived) (there is no Beta 1.00 yet, therefore there was an Alpha 1.00) 2. I do not pretend the SizeOf(Integer) is same in 32 & 64, just it is transparent to user in the intended use of the software The tool has been designed to prevent programmer ...
by Lost Zergling
May 28, 2019 18:44
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 1337

Re: Change string to ordered index ?

NOTE & precision : Till 0.991 release, the actual source of a bug that was incorrectly corrected by the change from Integer to uLong and that induces a different operation in 32 and 64 bits had been identified: it was actually an overrun on a zstring ptr . The move from Integer to uLong did not...

Go to advanced search