Search found 1093 matches

by jj2007
Dec 02, 2017 22:33
Forum: Community Discussion
Topic: time to say goodbye
Replies: 53
Views: 5078

Re: time to say goodbye

I don't know D.J.Peters but I do know that he has made a heck of a lot posts and from the comments here it looks like they have been quality contributions so it is sad to see someone of his calibre leave. I can echo that. Perhaps I shouldn't say this but I do not think that this forum would be any ...
by jj2007
Dec 02, 2017 22:17
Forum: Community Discussion
Topic: Passing command line arguments to FB programs
Replies: 20
Views: 1469

Re: Passing command line arguments to FB programs

the static allocated memory on stack (for descriptors, data fields of UDT) is not freed In the moment when you return from a procedure, or exit a block, normally your stack pointer is restored from ebp. Whatever was on the stack at that point gets "freed" in the sense that it remains in l...
by jj2007
Dec 01, 2017 17:24
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 3548

Re: Visual sorts

Sure, this is not a benchmark of sorting methods, I hope that everybody here understands that (27 elements - even without graphical overhaul - give only a very limited testing environment) For a serious benchmarking exercise, #elements should be in the Millions. On Masm32, we did some comparisons b...
by jj2007
Dec 01, 2017 17:14
Forum: Tips and Tricks
Topic: Good Old Shellsort
Replies: 6
Views: 466

Re: Good Old Shellsort

Munair wrote:I remember a benchmark between several sorting algorithms.
I posted a link in the Visual Sorts thread. Fascinating stuff, they sort terabytes in a minute... and merge sort is the winner!
by jj2007
Nov 30, 2017 23:50
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 3548

Re: Visual sorts

Inspired by this thread, I did a quick search on fastest algo etc and found a benchmarking page . So, FYI, Tencent holds the World record for sorting speed, and if I understood it correctly, they use a MergeSort . Which is what my baby uses, but in the tests I made in the past, it was always slower ...
by jj2007
Nov 30, 2017 15:47
Forum: General
Topic: POINTER NULL CHECK
Replies: 41
Views: 1319

Re: POINTER NULL CHECK

I've seen many BASIC programmers using the boolean TRUE value for other operations. While it seems smart and the code becomes compact, it is a terrible programming habit. Agreed. But the "professional" world of C/C++ is full of such ugly habits, such as falling thru in Switch/Case, or the...
by jj2007
Nov 30, 2017 15:40
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

Have you seen the new i9s - the entry level is 10 core 20 threads. Positively eye watering. My eyes get wet when I see Visual Crap launching itself on my decent Core i5. Since I know how fast intelligent software can be, I am always surprised that Micros**t programmers manage to produce software th...
by jj2007
Nov 30, 2017 14:49
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

Better candidate for what, proving your point? <smile> We are not involved in hashing but code timing. The hash code is just an algo that takes a significant amount of time. CRT rand() is a similar candidate of an algo provided by the OS. The purpose of this test was not to time a specific algo but...
by jj2007
Nov 30, 2017 12:24
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

The point that I am making is that if we have a handful of small timings and a handful of large timings with the bulk of the timings in between then we have a bell curve. Well, if ... but we obviously don't see this! What we have is no small timings, 99% "bulk" timings and a handful of la...
by jj2007
Nov 30, 2017 6:45
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

deltarho[1859] wrote:I will have a look at a frequency analysis
The graphs I posted do show a frequency analysis. Can you post the results for your machine? Executables are here or, if that link doesn't work for you, here.
by jj2007
Nov 29, 2017 23:53
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

deltarho[1859] wrote:if they exist
No more bell curve, no more normal distribution?
by jj2007
Nov 29, 2017 20:37
Forum: General
Topic: POINTER NULL CHECK
Replies: 41
Views: 1319

Re: POINTER NULL CHECK

But you have no problem with prefixes as in lpszMenuName, right?
by jj2007
Nov 29, 2017 18:54
Forum: General
Topic: POINTER NULL CHECK
Replies: 41
Views: 1319

Re: POINTER NULL CHECK

Mostly a matter of taste. I can live without the MyInt% (dword) or the flag! (boolean), but the string$ suffix is incredibly useful if you are debugging a 10,000+ lines source. Imagine Micros**t would abandon their Hungarian notation... would you still understand the MSDN documentation? Is LPCTSTR l...
by jj2007
Nov 29, 2017 18:27
Forum: General
Topic: POINTER NULL CHECK
Replies: 41
Views: 1319

Re: POINTER NULL CHECK

Btw it's not trivial whether true=1 or true=-1 or something else. Micros**t has introduced true=1, unfortunately, because with true=-1 you could 'confirm' values as in MyVal=123 and (a<b) ' 123 if true, 0 if false My defunct favourite dialect Gfa returned the full source string for Left$("some ...
by jj2007
Nov 29, 2017 14:58
Forum: General
Topic: Code timimg ( Part I )
Replies: 51
Views: 1641

Re: Code timimg

Earlier, jj2007 wrote "The strategy to follow here is: Make a hundred runs, sort them, then eliminate the slowest runs until you reach the zone where you get constant results." The point being that, because of system activity, there will probably be some tests coming in slow. I've refined...

Go to advanced search