-
Content Count
3711 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
Revisiting TThreadedQueue and TMonitor
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Not sure it's relevant but that x64 should use .PUSHNV to preserve rbx. And I think that also makes .NOFRAME incorrect. -
The FMX bitmap that you save is a compressed bitmap. The VCL bitmap is a Windows bitmap, uncompressed.
-
I don't think that mixing VCL and FMX will work. So I'd just rule that out.
-
Wouldn't it just be easier to detect the webcam without trying to mix FMX into the system?
-
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
With over a million lines of code, it's an epic task to migrate. I can't believe that the increase in compiler time would be significant. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
C# compilation is pretty darn fast. Delphi compilation for 64 bit on Windows is not exactly fast. I'm sure that a first pass to define record type layouts followed by a second pass for everything else would not be costly. This isn't going to be about compilation speedy. It's about the pain of refactoring the front end. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
It is possible. Plenty of languages can handle this. Emba could implement it if they chose to. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
Well no, of course not. So we are stuck with this second rate language. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
The argument is that its a single pass compile. So make it two pass. Simples. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
You should be able to forward declare their methods. No reason not to be able to do that. -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
Bloody annoying that this can't be done -
Record Circular References
David Heffernan replied to Bernard's topic in Algorithms, Data Structures and Class Design
I personally don't think you can do better than helpers. That's what I do. -
TThread always raises OS Errror
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
You think wrong -
TThread always raises OS Errror
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Find out by debugging. Set a breakpoint on SetLastError. And inspect the call stack when it triggers. -
TThread always raises OS Errror
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
The only error here is the code that calls GetLastError and uses the value at a time when its return value is meaningless. All you have to do is to stop doing that. -
Delphi Rio IDE hangs again and again
David Heffernan replied to microtronx's topic in Delphi IDE and APIs
Yeah, should be using '%p' format string -
Delphi Rio IDE hangs again and again
David Heffernan replied to microtronx's topic in Delphi IDE and APIs
Sure. But so what? -
Delphi Rio IDE hangs again and again
David Heffernan replied to microtronx's topic in Delphi IDE and APIs
Amazing that they can't produce a 64 bit IDE.... -
Set matching and fast searching in TDictionary<integer1, TDicationary<integer2, integer3>>?
David Heffernan replied to PolywickStudio's topic in Algorithms, Data Structures and Class Design
Don't think of the problem as how to write the code effectively given the data structure. Think of the problem as choosing a combination of data structure and algorithm to solve your problem. In other words, ask about the underlying problem, and be prepared to consider a variety of other data structures, which in concert with the right algorithm might perform best. -
Experience/opinions on FastMM5
David Heffernan replied to Leif Uneus's topic in RTL and Delphi Object Pascal
8 times faster sounds amazing, if the only thing you ever do is call Pos on data that is already in the cache. I'll bet that for a lot of real world applications you wouldn't see any benefit. -
Smart Pointers - Generics vrs non-generic implementastion
David Heffernan replied to pyscripter's topic in RTL and Delphi Object Pascal
Cross posted: https://stackoverflow.com/questions/61656924/smartpointers-do-not-work-well-with-a-generic-tobjectlist-in-delphi -
Extend the system PATH
David Heffernan replied to miab's topic in Algorithms, Data Structures and Class Design
If possible you should use side by side assemblies -
Rapid generics for Delphi2010+ Internal Error
David Heffernan replied to Ponzu's topic in RTL and Delphi Object Pascal
Those links are to Stefan's clone. What about the author's repo? -
Rapid generics for Delphi2010+ Internal Error
David Heffernan replied to Ponzu's topic in RTL and Delphi Object Pascal
Do you have any particular reason to believe that XE is a supported compiler? -
Function with just underscore _() seems to be valid
David Heffernan replied to Mike Torrettinni's topic in General Help
Why do you feel that there might be a problem? The rules for identifiers are well documented. These all meet the rules.