-
Content Count
2946 -
Joined
-
Last visited
-
Days Won
166
Everything posted by Anders Melander
-
High-Precision Floating-Point Types for Delphi
Anders Melander replied to Erik@Grijjy's topic in Tips / Blogs / Tutorials / Videos
Some benchmarks comparing the performance of the DD and QD types to the native Single and Double types would be appreciated, if you have them. I've searched for performance numbers on the QD C++ library but couldn't find any relevant ones. The pdf contains some numbers but they are very old (Pentium II) and quite meaningless since the only comparison made is to the MPFUN Fortran library. Also the QD page you link to state that the C++ library isn't thread safe. Is the same true for your implementation? -
Good quality Random number generator implementation
Anders Melander replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Just as random, almost as cool, and has a slightly smaller risk of invoking a visit from Homeland Security: https://www.orau.org/ptp/collection/consumer products/dudice.htm A dice made of depleted uranium 🙂 Anyway, it is possible to get USB-sized true randomness, just without the coolness factor. For example: https://www.amazon.com/TrueRNG-V3-Hardware-Random-Generator/dp/B01KR2JHTA/ref=pd_sbs_1 -
Good quality Random number generator implementation
Anders Melander replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Since we're now in full bike-shed mode here's my contribution: https://hackaday.io/project/4628-nuclear-random-number-generator A random number generator based on radioactive decay. -
Several F2084 Internal Error on Delphi 10.4.2
Anders Melander replied to Davide Angeli's topic in Delphi IDE and APIs
Yes, there is that. Definitely. When it's bad I usually have to convert the inline vars back to traditional local vars while debugging a difficult problem and then back again when I'm done. Not ideal to say the least but it's not enough to have me give up the convenience and improved readability of inline vars. I never use the formatter and I don't believe any of my colleagues use it either. I can't see why we would. We very seldom use the rename refactoring (mostly because it's unreliable). You apparently have a different workflow. Nothing wrong with that. The feature is there so of course it should work. -
Several F2084 Internal Error on Delphi 10.4.2
Anders Melander replied to Davide Angeli's topic in Delphi IDE and APIs
Sounds like that code formatter is really important to you. -
Good quality Random number generator implementation
Anders Melander replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Yes it is, but if you can't define what "better quality" is then your request is meaningless. In any case, like David said, a web search should give you plenty of candidates. Did you try that first? -
If I may provide some constructive critique I think you should update your toolbar & dialog icons to match the UI style of the rest of application. Those 3D glyphs look really out of place and it's clear that they come from different icons sets: Flat, 2D/3D, shadow/no shadow. Also: Cancel button goes on the right on Windows
-
A guess :
-
What is the best way to precisely time/trigger threaded events
Anders Melander replied to Yaron's topic in Windows API
Yes, I understood that but if you're concerned about not wasting resources, as you state, then there's no reason to refresh more often than what the monitor can handle. -
What is the best way to precisely time/trigger threaded events
Anders Melander replied to Yaron's topic in Windows API
Okay, that makes better sense. Instead of updating at a fixed 120 Hz I think you'll want to sync your refresh to the monitors vertical retrace. I don't know how to do that but I found this: http://masm32.com/board/index.php?topic=4410.0 -
What is the best way to precisely time/trigger threaded events
Anders Melander replied to Yaron's topic in Windows API
If a regular WM_PAINT handler will not update fast enough I can't see how a timer controlled paint will. What am I missing? -
What is the best way to precisely time/trigger threaded events
Anders Melander replied to Yaron's topic in Windows API
You want to update the screen 120 times per second? Why on earth would you want to do that? -
Does Delphi have a counterpart for C#/.NET Uri.IsWellFormedUriString?
Anders Melander replied to wuwuxin's topic in RTL and Delphi Object Pascal
Or the one-liner: TRegEx.IsMatch(FUrl, sUrlRegEx, [roIgnoreCase, roIgnorePatternSpace]) -
64bit Debugger Not Handling Memory Problems
Anders Melander replied to CB2021's topic in General Help
http://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_CodeGuard -
The feature nobody ever asked for strikes again. I wish they would realize their mistake and make it opt-in instead of opt-out-if-you-know-how-to. Think of all the people that doesn't even know about this and just assume it's because Delphi now suck balls - learn to live with it.
-
MAP2PDB - Profiling with VTune
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
As it seems that the most recent version of VTune also suffer from the performance problem I mentioned earlier, I 've now added a note about the problem to the repository readme and uploaded the files that can be used to fix it. https://bitbucket.org/anders_melander/map2pdb/src/master/#markdown-header-performance-problems-with-intel-vtune -
MAP2PDB - Profiling with VTune
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
Yes. I'm on Windows 7 too. -
MAP2PDB - Profiling with VTune
Anders Melander replied to Anders Melander's topic in Delphi Third-Party
Sure. Send me the map file by PM. -
Not really. Many of them are cheaper than a quality Cherry MX keyboard. And in case of zombie apocalypse you are well prepared. https://i.imgur.com/g2Yo3.gif (no inline GIFs...? 😕)
-
AFAIK Unicomp bought the rights to the key design but unfortunately they missed the fact that it's just as much the quality that made this keyboard the legend it is. From what I've read the money are better spent on a used original IBM (or Lexmark) model M. Nice!
-
Well, according to the label under my keyboard it's from 1995 so it's seen some stuff. I've got a spare that's even older. You can still get a model M in good (or refurbished) condition on eBay. The main problem will be the mainboard keyboard connector. I have one keyboard with the "new" 6 pin mini-DIN PS/2 connector (the one I use) and one with the old 5 pin DIN connector. The cable is detachable so the cable with the PS/2 connector fits both keyboards. Anyway, even if your mainboard has a PS/2 connector it might not be able to supply enough power through it. The model M needs a bit of power when it "boots" so sometimes I have to reboot the PC a few times before there's life in the keyboard. Usually not a problem as I always go to standby. Also be aware that most USB-PS/2 adapters doesn't supply enough power. I also have a backup keyboard with Cherry MX Blue (tactile, clicky) switches but it's just not the same.
-
@Dany Marmur My own desktop system is built around a 9 year old Asus mainboard in a 16 years old Lian Li PC-V2100B Plus II case. AFAIR I upgraded the CPU 5 years ago. It was built from parts, so fairly cheap, and it works fine. I've never had much success (performance) with the prebuilt systems my various employers have forced on me. No matter how much money they used on it. My laptop though is a Lenovo Thinkpad X1 Extreme but I seldom use it. I need a mans keyboard 🙂 Wow. Looking at the picture I just noticed the gunk between the keys 🤮. I usually don't look at the keyboard.
-
How does a transparent case and fans with LED lighting help with that?
-
-
Have you disabled LiveBindings?