-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Please support Stack Overflow moderators strike against AI content policy
David Heffernan replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
How did you determine that this difference was due to gender and not some other reason? Personal anecdotes prove little. The fact that your co-workers didn't experience discrimination doesn't mean that others didn't. I mean, by definition, if any did then they wouldn't be your co-workers. I find it so wearing that people like us with our professional work colleagues and life styles think that discrimination doesn't exist because we don't see it in our lives. -
Please support Stack Overflow moderators strike against AI content policy
David Heffernan replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
The lived reality in the US for many groups is very different from that of white males. Prejudice doesn't mean everybody in a group has the same (worse) experience. It means that overall the experience of one group is significantly worse than others. "I'm sure". How are you sure? This is ridiculous and quite wrong. If this were to be true then it would follow that all men were stronger than all women. Patently not true. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Fair enough. Those aliases are certainly much more transparently named. -
Please support Stack Overflow moderators strike against AI content policy
David Heffernan replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
They should use AI for moderation -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Not on all delphi versions, IIRC. If you want a 32 bit integer then there are types for that. FixedInt and FixedUInt. The whole point of Integer is that it maps to the platform's C int. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Well yes. It was more of a rhetorical question aimed at Thomas. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
So yeah, which would have been harder? Changing all such records to use a type other than Integer, or changing all incorrect Pointer/Integer casts? -
Use-case question for average phone users re: file-sharing
David Heffernan replied to David Schwartz's topic in General Help
If you want Q&A that forces people to answer the question, then that's SO. But you don't seem to like SO because it forces people to ask clear questions, and then stay on topic. Which seems to contradict your comments here. I'm confused. Again. -
Use-case question for average phone users re: file-sharing
David Heffernan replied to David Schwartz's topic in General Help
That nobody is me too. I also have a bunch of ripped CDs, and purchased mp3s. Most of my use is with streaming services which clearly don't suck. But we are in a tiny minority. I guess if David is writing an app for old people like us then maybe it will work out. Sure, but this is a forum here, not SO. Yeah, which is why the average user uses streaming services so they don't have to think about this. -
Use-case question for average phone users re: file-sharing
David Heffernan replied to David Schwartz's topic in General Help
Nobody has songs on their mobile devices in that form these days anyway. People use streaming services like Spotify, YT, etc. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
The alternative that you propose would have been far worse. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
This wasn't a mistake. This reflects the underlying platform. It's wrong to blame Emba for all the programmers using Integer as though it was pointer sized. Your argument is akin to wanting char to be 4 bytes on 64 bit. It's just a non sequitur. There's literally no reason for integer to be pointer sized. It's a completely different thing. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
OK, but it would obviously be far easier to just recompile than make some new out of proc add in tech for design time. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Wouldn't they ship 32 and 64 bit IDEs and users could choose which they used. You have to recompile packages for new versions anyway. It would just be a recompile for 64 bit. I don't think it would be so bad. I know that I can compile all the design time packages I use for 64 bit quite easily. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
What's the way to replicate MDI like behaviour in VCL today? -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Given the number of people that struggle without of memory errors, then I'd say the answer is yes. -
Can multiple packages (.bpl) access Python via PythonEngine?
David Heffernan replied to RSG's topic in Python4Delphi
Put the python code in a bpl and have everything access it that way. But I guess you'll all be sharing the same python interpreter. I think that's essentially the python design. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Ironically I'd benefit from this but I agree it seems like an odd change of tack having refused to entertain MDI for years now. -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
@FabDev yes that's exactly the same issue -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
The original question is for Windows. And the program I posted demonstrates behaviour with and without invalid op masked. As stated repeatedly above the original question concerns behaviour that is determined by fp exception masks. @Minox was talking about Android. -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
So for the original question that's not an issue because that is for Windows. For @Minox on Android then IsNaN is what is needed. -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
Do you understand how fp exceptions masks work? -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
The solution is to set the exception mask to unmask fp exceptions that you want converted into runtime exceptions. That said, I don't know how exception masks work on non x86 platforms. Your code has the problem that if the division returns -1 then it will treat that as an error, but what do you think happens when you do -1 / 1? If you are going to hack it the way you are doing then at least use a boolean. Although see below. If your platform doesn't handle exception masks as windows does then use IsNaN. -
Requested for IDE to support more RAM (vote/discuss if you care)
David Heffernan replied to Tommi Prami's topic in Delphi IDE and APIs
Imagine not being able to make a 64 bit IDE -
0/0 => EInvalidOp or NAN ?
David Heffernan replied to FabDev's topic in RTL and Delphi Object Pascal
I'm honestly not sure why this topic is still open. It's the exception mask. Something is changing it. You don't have complete control over it. Other modules that are loaded into your process can change it. It's quite messy. It's been covered ad nauseum here, Borland forums, SO, etc. Run this program to demonstrate how the different exception masks influence behaviour: {$APPTYPE CONSOLE} uses System.SysUtils, System.Math; procedure Main; var x, y: Double; Mask: TArithmeticExceptionMask; begin x := 0; y := 0; Mask := GetExceptionMask; SetExceptionMask(Mask + [exInvalidOp]); Writeln(x / y); SetExceptionMask(Mask - [exInvalidOp]); Writeln(x / y); end; begin try Main; except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; Readln; end. For your scenario, when NaN is produced, clearly invalidop is masked. When the exception is raised it is unmasked.