Jump to content

hsauro

Members
  • Content Count

    27
  • Joined

  • Last visited

Community Reputation

11 Good
  1. Doesn’t look that expensive, $99 for personal copy and $399 for developer.
  2. hsauro

    Why upgrade?

    Thanks for the link. I read through the document, it doesn’t seem such an unreasonable thing to implement for the company. They should allow developers such as yourself to contribute to the libraries, perhaps in return for free licenses. The company either lacks interest, expertise or doesn’t have the bandwidth.
  3. hsauro

    Why upgrade?

    I know it’s off thread, but this sentence piqued my interest, what kinds of defects are you referring to? I used to do more numerical work on Delphi than I do these days but it would still be interesting learn more about these.mmaybe you’ve written them up or mention them somewhere? I just saw your last reply to someone else who had the same question, I think you answered the question there.
  4. Interesting, the page just gives GUI examples but i assume I could compile straight object pascal to webassembly. I should get touch with them to find out more.
  5. It would be fun if there were an object pascal to webassembly compiler.
  6. I notice the new 10.3.1 RAD server console Is not written in Delphi? Any particular technical reason why it couldn’t have been developed in Delphi? Ok I see it’s a browser application, is that the reason?
  7. Slightly off topic I know but what what is the rational for having immutable strings in languages such a Java, Python etc? It seems immutability is related to efficiency and security. I didn’t find the arguments that compelling however. It seems it’s either to stop the programmer from getting into trouble or it makes like easier for the complier writer.
  8. hsauro

    Rio quality disappoint

    I’m still using Tokyo 10.2 and XE6 for some older projects. Haven’t hamd’t any real problems with either. Will wait for an update before I use Rio.
  9. Using record constructors like this is very convenient but I wonder what the speed penalties are like?
  10. hsauro

    Measure Process Time

    I’ll try that, thanks.
  11. hsauro

    Measure Process Time

    Out of interest, I thought I'd show a scatter plot of the mean and standard deviation from 100 independent runs. Each data point was obtained by measuring how long it took to run a particular method and repeating this 10,000 times and taking the mean and sd for that data. Each set of 10,000 measurements was an independent run started from a batch file. The application itself was run 100 times from the batch file which yields the 100 data points in the plots below. It is interesting to note some outliers around the 35 and 90 iteration. I never touched the computer during this run so this could be some internal housekeeping going on. The standard deviation has quite a bit of variability but ignoring the outliners the mean is fairly consistent at 3.5. Having seen this data I have more confidence in the mean. Y axis is time and x axis is the run number. The code is doing a lot of memory allocation and deallocation of small blocks of memory (16 bytes at a time) and a lot of simple calculations (but no I/O). Out of interest, the following graphs were obtained where all 100 runs were done in the same application. (no batch file) What I thought was interesting is the decline in the standard deviation as the program progressed. Not sure what the blip at 20 or 70 is. Herbert
  12. hsauro

    Measure Process Time

    Exactly that's why I was asking if there was a way to measure the actual amount of time spent in my process and not dealing with everything else which is unpredictable.
  13. hsauro

    Measure Process Time

    My concern was if the time measured is all CPU activity them comparing different implementations of my code run at different times might give unreliable estimates because there could be a different amount of background activity in the two runs. I presume this is the origin of most of the variability I am seeing. I have noticed there is an initial startup component to the variability (cache vs hard drive I assume) and that repeated runs after the first few runs stabilize the times to be less variable. I've noticed that timings I see reported byothers often have no variability estimate on them. Herbert
  14. I am measuring the performance of some Delphi code using TStopwatch and I'm seeing considerable variation in the computed times. I run a method 10,000 times and record the time. I then do this 200 times (all within the same program) from which I get an average time of 3.79 seconds for the 10,000 runs with a standard deviation of 0.55. That seems to be quite a large variability. My question is, does TStopwatch measure the total time elapsed or just the time spent on my particular process? If it measures the elapsed time is it possible to measure the amount of time specifically used to execute my code? Herbert
  15. Thanks for that. So it's better to use f = TStreamReader.Create (TFileStream.Create (fileName, fmOpenRead)) because one has more control over the flags.
×