-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Patch for Delphi 11 Alexandria available
David Heffernan replied to PeterPanettone's topic in Delphi IDE and APIs
Uwe is providing useful information that your problem may have an environmental aspect to it. Your antagonistic response is very counterproductive. -
Perhaps this is just the final confirmation of the end of days for Delphi, if Verity Stob isn't producing new Sons of Kahn material, then does Delphi really exist?
-
Also, Verity Stob!
-
I think this controversy was well covered at The Register, I'd read their articles if you are interested
-
Great to see that MS has done the right thing here, although disappointing that it took so much pressure to make it happen. Good on El Reg for their reporting on this. Never ever going to happen for Delphi though!!
-
RAD Studio 11 Alexandria Patch 1 Available
David Heffernan replied to Uwe Raabe's topic in Tips / Blogs / Tutorials / Videos
Did they return the money that customers paid? If not, what did they do with it? -
RAD Studio 11 Alexandria Patch 1 Available
David Heffernan replied to Uwe Raabe's topic in Tips / Blogs / Tutorials / Videos
Didn't they announce a few years ago that they would maintain a number of older versions with important patches, for some time after release of major upgrades, but then never did. -
How can I get same rounded value using SimpleRoundTo?
David Heffernan replied to ertank's topic in RTL and Delphi Object Pascal
13.98 can't be exactly represented in a binary floating point type like double. What you can do is store the closest representable number to 13.98. However, unfortunately Delphi's library code that converts between decimal text and binary floating point is rather poor and has fallen behind just about every other mainstream language. The documentation you link to is pretty flawed too because it doesn't acknowledge representability. What problem are you trying to solve? Are you working with currency for instance? In which case binary floating point is not what you need. -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
I doubt you will achieve better than 0.1% improvement though. That said, I do want the compiler to do a better job producing efficient code. It shouldn't be getting in our way. -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
I guess there are scenarios where the warning is useful. Perhaps what they did wrong was not to make it more discerning. -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
I find that hard to believe. That operation is disk bound, or if the file is in disk cache then it is memory bound. -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Yes you can. After all, CharInSet is implemented using the in operator. Which is why it should give the same performance as the in operator, because of inlining, but the inline engine is failing for 64 bit. For sure you can measure a difference in performance in the micro-benchmark, but can you measure it in the real program? -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Unless I missed something, that's not the question in the original post. Is that what you are asking? -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Why not suppress the warning? Or would you then be suppressing valuable warnings too? -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
That the set can't have a full range of char values doesn't mean that the char C can't have any value in the BMP. For sure you aren't ever going to find a C that has ordinal above 255 but the value of C may not be known at compile time. For instance you may be looping through the elements in a string. -
CharInSet revisited (again)
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
function CharInSet(C: WideChar; const CharSet: TSysCharSet): Boolean; Given this declaration, how could it? Note that I assume that you mean UTF-16 surrogate pairs. -
Any good replacement for Indy email?
David Heffernan replied to PiedSoftware's topic in General Help
I strongly recommend that you identify the problem before trying to solve it. -
Any good replacement for Indy email?
David Heffernan replied to PiedSoftware's topic in General Help
It's plausible that Indy isn't the problem here and that a wholesale library replacement will leave you with the same problems. -
Does vtune do code coverage?
-
UAC request minimized instead of full-screen
David Heffernan replied to Silver Black's topic in Windows API
That's kind of odd. Does the same happen if you do this with a brand new vcl project? -
Which implementation of this is easier to understand?
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
@Stefan Glienke You could readily tweak this to work with TStrings rather than TStringList and avoid all that hacking at the internals. But it's nice to see you using records for enumerators! -
Not all of us do this!
-
This would be too late to make much difference. The longer you leave bugs the more they cost. And I'm not sure that it would even help much. You'd have to devote significant resource to running the community contributors. Better to use that resource to get the quality right from the off. There's just something rotten in the Emba development model.
-
Which implementation of this is easier to understand?
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
Python has enumerate for this which ought to be possible for Emba to implement for Delphi in a similar manner as for in. -
The thing is, releasing software that is of low quality means that your engineering team spends large amounts of time addressing this low quality post release when it is much more expensive to do so. If they would use better engineering processes and concentrate on quality from the very start, then they would use far less human resources. They aren't even cutting corners with this approach. It is inefficient in terms of their own times and resource, and obviously really inefficient for every user affected by this low quality.