Search found 3104 matches

by mwieder
Sun Sep 20, 2020 1:45 am
Forum: Off-Topic
Topic: Topics: read or not read
Replies: 2
Views: 67

Re: Topics: read or not read

Nope - works for me the way it always has.
Maybe you're not who you think you are? :P
by mwieder
Sat Sep 19, 2020 4:31 pm
Forum: Internet
Topic: smtp
Replies: 32
Views: 452

Re: smtp

why not just use revmail to send the email text to gmail?
by mwieder
Fri Sep 18, 2020 4:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Equivalent of classes in LiveCode
Replies: 142
Views: 9293

Re: Equivalent of classes in LiveCode

Yes to script-only stacks as the way to go for sharing classes.
And you can promote them to substacks when creating a standalone app.
by mwieder
Thu Sep 17, 2020 11:47 pm
Forum: Talking LiveCode
Topic: Messagemessages
Replies: 19
Views: 2671

Re: Messagemessages

Understatement follows :shock:
Agreed, there was a lot of useful stuff in Richard's stack.
by mwieder
Thu Sep 17, 2020 4:23 pm
Forum: Talking LiveCode
Topic: Messagemessages
Replies: 19
Views: 2671

Re: Messagemessages

...but do note that you'd benefit from looking at the code for either 4W Flight Recorder and/or the built-in message watcher stack because the functions and mechanism for handling this aren't documented.
by mwieder
Thu Sep 17, 2020 4:08 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

Ha! :idea: I get it now. So there is indeed cross-platform parity for "the long milliseconds". Thanks.
by mwieder
Wed Sep 16, 2020 10:45 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

Ah. Did you not expect a fractional part? That's the whole point of the "long" variation.
by mwieder
Wed Sep 16, 2020 4:27 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

mrcoollion- your stack isn't really showing anything useful because of the time it takes LC to execute another statement, and more importantly, to update a field on the screen. Locking the screen would help, as would putting the results into variables before the subtraction and *then* updating the s...
by mwieder
Tue Sep 15, 2020 8:35 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

I'm not sure that has changed has it? :D That in itself certainly hasn't changed, but a more granular approach to timing can result in orders of magnitude benefits. As usual, you make several good points here. But I think benchmarking and profiling are related but different actions with different o...
by mwieder
Tue Sep 15, 2020 4:55 pm
Forum: Talking LiveCode
Topic: Get value of function with variable
Replies: 19
Views: 523

Re: Get value of function with variable

I avoid "do" whenever possible for the slowness reason.
I use dispatch frequently, just have to remember that it returns a three-state value: handled, unhandled, and passed.
So I've gotten into the habit of checking "if it is not unhandled" rather than "if it is handled" after a dispatch call.
by mwieder
Tue Sep 15, 2020 4:41 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

Um. On Windows I think the code needs to use a different call to get more resolution. That's part of what I implemented. You need to call both QueryPerformanceFrequency and QueryPerformanceCounter to get the microseconds. virtual real64_t GetCurrentMicroseconds() { LARGE_INTEGER CurrentTime, Frequen...
by mwieder
Tue Sep 15, 2020 2:13 am
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

Dick- do you actually have code that returns the nanoseconds? Er... long milliseconds?
The best I could come up with cross-platform is microsecond timing.

Oh... wait... the "long milliseconds" is built in?
Learned something new today.
Would be nice if that were documented.
by mwieder
Tue Sep 15, 2020 2:08 am
Forum: Talking LiveCode
Topic: Get value of function with variable
Replies: 19
Views: 523

Re: Get value of function with variable

Yep... "dispatch" turns out to be about 5 times faster than an equivalent "value".
by mwieder
Tue Sep 15, 2020 1:58 am
Forum: Talking LiveCode
Topic: Get value of function with variable
Replies: 19
Views: 523

Re: Get value of function with variable

Haven't looked at this, but my guess is that "value" does the same sort of runtime parsing as "do", so yes, I'd expect it to be slower.
Hmmm... should be an easy benchmark... <goes back to the laboratory>
by mwieder
Tue Sep 15, 2020 1:54 am
Forum: Engine Contributors
Topic: the microseconds
Replies: 17
Views: 528

Re: the microseconds

Apparently. The current code gets the microseconds, then divides by 1000 to return the milliseconds.
Benchmarking, of course, will depend on the overhead of the enclosing code, and that may be what Mark was referring to.

Go to advanced search