Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 05/23/21 in Posts

  1. Dear visitors, We have made an interesting application/tool for Delphi - A vector drawing application that converts shapes you draw into TCanvas ready-to-use code. Manual drawing by coding can be tedious task and require a lot of time and precision. With NextCanvas you can draw and adjust standard Delphi shapes as with any other vector application. Single button click will generate a pixel perfect code. Click here to see a video or a screenshot: It's the first version, but we have several nice features coming soon such as: "snapping" points to other shapes or to the container (so the shape resize within TRect). conditional checking. For example if shape need to have several states (like lock on/off). Other shape types such as Pixel or Text. I hope that you will find the tool interesting and that it have a potential. You can find more at: news article BergSoft web site
  2. Joseph MItzen

    VMWare Workstation PRO vs MS Hyper-V

    I've never encountered anyone except Delphi users who develop inside VMs. Seriously, no one else. I'm not sure why you'd want to do it either. You're going to end up with less RAM, slower CPU, slower disk access, and the need to maintain two OSes now. I can understand testing in a VM where isolation and reproducibility are important, but I don't understand the advantages of using a VM for development. Honestly, it might have something to do with how hard it's been historically to get a Delphi development environment set up (or upgraded).
  3. Why are you putting CopyData in the stopWatch for the binary search. That is not fair for comparison. You are comparing vs IComparer. That basically calls a function for the comparison, which is very slow compared to an native comparison i.e. int1=int2. So minimizing the comparisons with the binary search in the example above has an outweighed effect compared to a native comparison (i.e. I would expect the linear search would hold its own for longer for a native comparison). Your linear search for duplicates is essentially a sort anyhow, and that offsets the explicit sort you are doing for the binary search. Try sorting and doing the duplicate linear search on the sorted data, that is easy, you just compare adjacent elements.
  4. Did you just ask if O(log n) is faster than O(n)?
  5. Rickard Johansson

    LSP Client

    This component was created for use in RJ TextEd to add language server support. It has been tested with several language servers https://www.rj-texted.se/Forum/viewforum.php?f=23. The client and code is available on GitHub https://github.com/rickard67/LSP-Pascal-Library The LSP client was written to make communication with language servers easier. You can use the client to read or send notifications and requests to and from the server. Handle notifications and request from the server using events. The client component support both stdio and tcp/ip socket communication. The client only works in Delphi. I haven't had time to make it compatible with Lazarus/Free pascal yet.
  6. Hi, Based on published free header/wrapper units of BASS audio library plus add-ons on www.un4seen.com, I have improved, modified and added more codes to ensure they work with all platforms that Delphi's FireMonkey and VCL frameworks support. I also collected, intensively tested and structured the libraries into a package for Delphi programmers to use with a very detailed guide accompanied. Finally I also included a simple but sufficiently complete demo project. I have seen so many questions on BASS forums as well as other forums regarding audio for Delphi so I just thought I could share my work. That's all my intention. Here you go: https://github.com/TDDung/Delphi-BASS
  7. Anders Melander

    nil v self in form create??

    Regardless of how it affects the instance ownership, if the Form has Position=poOwnerFormCenter then the Owner should be specified Otherwise it will fall back to poMainFormCenter.
×