Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/04/21 in all areas

  1. For all who want to try to get the DDevExtensions Delphi IDE plugin to work with Delphi 10.4 can now clone the DDevExtensions git repository. It contains the project files for Delphi 10.2 and 10.3. I'm not able to help with any Delphi 10.4 issues, so you are on your own. GitHub repository: https://github.com/ahausladen/DDevExtensions
  2. RAD Studio is made up of Delphi and C++Builder. On the Delphi side the Object Pascal compiler is a single pass compiler and the compiler itself is not a parallel compiler but when compiling multiple projects in parallel it was able to compile 1 billion lines of Object Pascal code in 5 minutes on the AMD Ryzen 9 5950x 16 core machine. I wanted to see if something similar was possible with C++. This post is part of our modern hardware series where we explore the massive productivity gains that can be achieved on some of the fastest CPUs available at the time of this writing in early 2021. Just how much is 1 billion lines of code? Take a look. https://blogs.embarcadero.com/threadripper-3990x-the-quest-to-compile-1-billion-lines-of-c-on-64-cores/
  3. https://github.com/DelphiPraxis/DDevExtensions/releases/tag/v2.87 compiled pre-release, not fully tested yet
  4. Sorting a reversed array is 100% from the real world. In a UI where you sort by a column ascending, and then sort by the same column descending.
  5. As already stated in a different thread I have adapted the TimSort implementation for FreePascal I found on github to compile with Delphi 2007 (and probably earlier, but I haven't tried it). The source code is licensed under the Apache License 2.0 and available in my dzlib on OSDN. Note that this currently only sorts an array of integer and is still pretty rough. I'm going to refine quite a bit. There seem to be only 2 (now 2.5 😉 ) TimSort implementations in Pascal / Delphi available. (According to @David Heffernan there is also one in Spring4d.), but none that does not require generics.
  6. Bookmark this: https://softwareengineering.stackexchange.com/a/80092/14432
  7. David Heffernan

    Uniqueness and Security of domain name

    The question really is how much security you need. What would be the consequence of somebody outside your organisation getting access to this functionality?
  8. (This is a re-start of another thread) I have published Delphi sorting routines that ought to be similar in speed to TIMsort, for arrays of simple types, strings and objects. The focus has been on large (10M+) real-world situations, where there is already some order in the data. The documentation explains how to use in case you do not want generics. The software is free: https://sourceforge.net/projects/fast-stable-sorting-in-delphi/ It includes a test suite. Stable sorting of objects with QuickSort is possible by adding to the object a tag that can serve as stability key. In that way I compare sorting speeds of my procedures with Tarray.sort<Tobject>. For (semi-)random data the difference is 5-10 times. When there is already order in the data, the improvement may go up to a factor of 20. I chose some optimization parameters on the basis of the test arrays that I generated. It would be nice to know if attractive results are obtained when applied to real-world data.
  9. Darian Miller

    Uniqueness and Security of domain name

    You don't want to validate a name. You want to validate a logon session against your domain controllers. You could also split the secure features in the DLL into a different DLL and put that secure DLL into a place on the network that only authenticated users have access to. (That doesn't help if someone makes a copy of the DLL and exposes it later.) Finally, consider adding the secure DLL code to a web service and authenticate the calls made to the service,
  10. Remy Lebeau

    Uniqueness and Security of domain name

    What about requiring internal users to sign their EXEs with a company-issued certificate, and then having the DLL validate that when loaded?
  11. FPiette

    Uniqueness and Security of domain name

    You could check for a resource that is only accessible from within the intranet. You could also connect to a share only accessible in your intranet, using a user/code password correctly hidden in the DLL. Of course this would not stop a real hacker, but the casual user will be barred.
  12. David Heffernan

    Uniqueness and Security of domain name

    Put the code that you don't want clients to have access to in a separate module/library/web service/etc. that is only available on your intranet.
  13. I thought you said that you didn't read books... 🙂
  14. Anders Melander

    Uniqueness and Security of domain name

    As Davis said it really depends on the level of security you need. Since the users will presumably have unlimited access to the client binaries the best you can hope for is security through obscurity. Once you accept that your choice depends on the value (to the user) of the assets you are trying to protect. You just need to make circumventing your protection sufficiently costly (in time) for the user that they won't bother. Since I don't know any of those metrics I can't really recommend a solution. Yes. Everyone can setup a domain controller and name is anything they want.
  15. Fr0sT.Brutal

    Uniqueness and Security of domain name

    The most secure code is non-existing code
  16. I think adding an "in my case" on the bottom of the second page of the thread is a little unfair.
  17. @jbg do you manage pull requests? Otherwise we can centralize development here. https://github.com/DelphiPraxis/DDevExtensions
  18. Eli M.

    Modernizing the Dev-C++ IDE

    Orwell Dev-C++ gets 80k-100k downloads a week. Just sayin'. C++Builder is a productivity upgrade over Dev-C++ since Dev-C++ has no visual designer.
  19. Sample data might be useful. I'm amazed that you don't see the huge difference between your SO question and the code in this post. In this post you make one replacement. In the SO post you make five. That's the key issue here. And in five years you have not appreciated it.
  20. kuzduk

    kuLibrary

    Multilanguage site it good idea but i have no time to do it. So as a the simplest solution is google translate: https://translate.google.com/translate?hl=&amp;sl=ru&amp;tl=en&amp;u=http://kuzduk.h1n.ru/_kulibrary.html - Putin approves!
  21. I have just published Delphi sorting routines that ought to be similar in speed to TIMsort, for arrays of simple types, strings and objects. The focus has been on large (10M+) real-world situations, where there is already some order in the data. The documentation explains how to use in case you do not want generics. The software is free: https://sourceforge.net/projects/fast-stable-sorting-in-delphi/ Hope it is of use.
  22. Thank you for your feedback @limelect This is not planed for the near future but we'll consider it for a future update.
×