Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/27/25 in Posts

  1. Stefan Glienke

    TParallelArray Sort Performance...

    Just a few new numbers of a not yet released parallel pdq sort - using the benchmark code from this comment earlier in this thread Fill array (double), elements count: 500000 Start sorting ... RTL TArray.Sort (ms.): 47 RTL TParallelArray.Sort (ms.): 35 Spring TArray.Sort (ms.): 12 Spring TArray.Sort_Parallel (ms.): 3 Fill array (double), elements count: 5000000 Start sorting ... RTL TArray.Sort (ms.): 551 RTL TParallelArray.Sort (ms.): 128 Spring TArray.Sort (ms.): 136 Spring TArray.Sort_Parallel (ms.): 64 Fill array (double), elements count: 100000000 Start sorting ... RTL TArray.Sort (ms.): 12724 RTL TParallelArray.Sort (ms.): 1884 Spring TArray.Sort (ms.): 3035 Spring TArray.Sort_Parallel (ms.): 675 Again - these numbers are fluctuating a bit because the benchmark is a "run once" benchmark and it depends on the current CPU state etc - also I did not tweak the threshold and CPU count yet - simply calling TTask.Run from System.Threading to fork some slices into parallel execution. But overall it does not look too bad, doesn't it?
  2. Vincent Parrett

    New forum?

    Ummm.. if you are worried about being left behind, why are you still here, still using Delphi? Surely you should be hanging out with all the cool kids using flavor of the week? 🤷‍♂️
  3. The standard Delphi TComboBox is based on WinAPI. Every item you add to the list triggers a WinAPI "SendMessage" call, which takes much (x100) longer than adding an item to a TStringList. To overcome this delay, with the help of AI, I designed a slimmed down replica of TComboBox based on TStringList: https://github.com/bLightZP/ZPComboBox If you have a form with lots of TComboBox drop down list components and it's not opening fast enough for you, try this. Limitations The only event supported is OnChange. The only style supported is csDropDownList. The pop-up listbox is shown in a pop-up window, so the underlying window's title bar changes color when losing focus. The styling is close to TComboBox, but not identical.
  4. Hi From the contacts I have from time to time following presentations or training courses, it seems that I'm better known for the video game coding part of my hobby than for the other stuff. It's true that I find it more fun (especially to stream on Twitch), but I also have utilities for Delphi developers created to simplify my life that I make available as binaries and source code on my GitHub account. App Stores Screen Captures Generator : to generate all the needed images from your screen captures when you have to publish your softwares on current app stores Copyright Pascal Projects : to add a copyright text in the header of each PAS/DPR files of a folder tree DProj To Windows Setup : to generate the Windows setup from Delphi deployment wizard data. It uses Inno Setup to create the install program and Exe Bulk Signing to sign the exe files. Exe Bulk Signing : a local and network signing program for Windows executables (exe+msix). It has an API you can use to integrate it in your projects like I did with "DProj To Windows Setup". Folder to FMX Image List : to create a FireMonkey TImageList to copy paste in your project or in a data module unit from all images in a folder tree. It fills the multires bitmaps depending on file names. Google Play Developer Banner Generator : to create a picture to use has your Play Store developer banner composed by a random collage of images you add to your project. I use it with icons of my Android apps. HTML Writer : to simply get HTML source code or WYSIWYG HTML content. I use Delphi HTML Components library in this program to have the WYSYWYG HTML editor and a memo for the source code tab item. Pic Mob Generator : my icons generator from basics layers or images, SVG, paths or rectangles. It export JPEG&PNG images, ICO and ICNS files. For the SVG I used RiverSoftAVG SVG Component Library, but next release will use Skia4Delphi. SM Code Generator : I use it in some multi players games, for EXE Bulk Signing API and client projects. The program generates Delphi code you only have to use in your projects to have a client / server solution to exchange formatted messages over IP. The library uses standard TCP sockets from Embarcadero (with no external dependencies). SVG Folder to Delphi Unit : to import SVG files as Pascal strings in your projects. I use it in some games with Skia4Delphi to show icons or sprites. The program generates a unit (compatible with Delphi 12.X and higher) with SVG found in a folder. Some of these programs are available from GetIt. The others will be submitted before the end of the year. The download links are on their GitHub repositories and will be added to their websites (which should be redirected to GitHub in the meantime). If you need changes in these programs or have suggestions, be free to tell here or as issues on their repositories. I'm also looking for ideas of simple tools to develop during live coding streams to show Delphi or web solutions. They are distributed as shareware programs. Contributions and sponsoring are welcome but not obligatory, and there are no program restrictions in the absence of a valid license. All features are available for free.
  5. Brandon Staggs

    Guidance on FreeAndNil for Delphi noob

    I think this debate will never achieve any real consensus, and in the end, each of us needs to just decide what makes sense. Here's a nice fun read from 15 years ago: https://blog.therealoracleatdelphi.com/2010/02/a-case-against-freeandnil_5.html Interesting that Bauer and Primoz take opposite sides.
  6. Rick_Delphi

    New forum?

    It's been decided, coding is dead. We need a forum here that covers generating code with AI and other tools. I know it's a source of contention among coders, but the future is now! Let's not join the party late, from being stubborn. NOTE: NVIDIA's CEO said, last year, that coding is dead. One hour ago they announced they beat on revenues and earnings. The no-coding IT world has arrived.
  7. Fred Ahrens

    New forum?

    "coding is dead" he shouted while trying to find out how to create a syntactically correct and well structured prompt for his preferred AI model. Hey, what you are doing there is still coding!
  8. David Heffernan

    Guidance on FreeAndNil for Delphi noob

    This one is easy to debunk. Exceptions raised in a constructor then lead to exceptions in the destructor. This is the entire reason why Free exists.
  9. Stefan Glienke

    New forum?

    Of course, he says that - he wants to sell his overpriced garbage
  10. Stefan Glienke

    Looking but not finding...

    That comment didn't age well I guess
  11. Anders Melander

    Menu captions with images are hard to read under Windows 11

    16 colors ought to be enough for anybody? 🙂
  12. Stefan Glienke

    Guidance on FreeAndNil for Delphi noob

    Because as you can read in this thread people advocate for using it everywhere instead of at those rare places it's designed for: making sure the reference is set to nil before the instance is destroyed because any code being called during destruction might reach back to this very reference. (which is the reason its name is not even correct - it should have been named NilAndFree)
×