Jump to content

Tommi Prami

Members
  • Content Count

    597
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tommi Prami

  1. Apparently LAEL ("address calculator") can do multiply by 2, 4 and 8 very fast. Don't know anything about details, difference to other op codes etc... Subject starts from here, at C to llvm IR -> to asm : -Tee-
  2. If I remember from the video, the LLVM will use shl/shr (never remember which) tric on the intermediate version (Like it'รคs bytecode), but it'll use the LEA at the binary if it just can. I always thought shl/shr would be the fastest way.. -Tee-
  3. Tommi Prami

    Any chance of getting a signed installer?

    Don't know what is the current situation, and it most likely varies greatly by certificate vendor and so on. But... CoWorker wanted to sign free apps, and it was huge mess. What I can remember he could not get the certificate, because he is individual and not the company, and would have needed lawyer and so forth to validate to certificate vendor that he is who he says he is. Or something like that. And this clearly is large problem, IMHO, Open Source or free apps people or teams are releasing for free and not for business, should have reasonable priced certificate, with reasonable byreogracy. Most likely ones that can solve this might not be here reading this. But this seems like solvable problem. But is anyone have some ideas how to get certificate for OpenSource/free project, at reasonable price (all of our mileage might vary) and so on, leave comments. -Tee-
  4. Tommi Prami

    Delphi on Surface Pro with Qualcomm CPU?

    I went to the roadshow and was left into understanding that those come out after summer. So most likely no one has tested that, if has, most likely is not allowed to talk much about it. -Tee-
  5. Yellow, Could not think what else to call then as "Local Global variables" So let me show. function Foo(...) var LListOfVariables: TSomeType; procedure Bar1; begin // Complex proc that might or might not use variables defined above, and/or change them end; procedure Bar2; begin // Complex proc that might or might not use variables defined above, and/or change them end; ... begin // Func main body that might or might not call local procs end; For me this is very hard to wrap my brains around. For me this pattern requires lot of thinking and overloads my limited memory, to keep in mind that call to local procedure might touch the local variable, even it is not directly passed into them. I don't have anything against local methods, they wrap nicely some local need, that is specific for that parent method, and only for that. But fight are they good idea at first place, is another matter. -Tee-
  6. I don't. Why would I complain about it if it would be my own fault ๐Ÿ˜„ But there are people that has this habit, in component vendors, open source library writes, possibly in coworkers etc...
  7. Tommi Prami

    XX3_64Bits -hash really flies

    https://xxhash.com/doc/v0.8.2/index.html There are some Delphi implementations of some version of xxHash, bot not low level optimized version. -Tee- PS. posted this in wrong group ;(
  8. Nicely summed up...
  9. I think this way too. My main reason is not that much of the how "clean/good" the code is in this case, but is mentally frustrating. Very difficult to keep track what happens and when... If code is cleaner and better, that is definitely a big bonus. -Tee-
  10. I think that is not the point of nested methods. To me that that Nested methods see those variables is not the point of the nested methods, that is just as how they work. Like hammer is nice tool but don't hit random people in the head with it... ๐Ÿ™‚ -tee-
  11. https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-779 IDE adds StyledElements default value to inherited form even though not needed One coworker can't reproduce. So need more info why that might be, I have few free plugins installed, like GExpers. Have to uninstall those and try if problem is not in the plugins. -Tee-
  12. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    This appears to be problem with the : Options > User interface > Form Designer > Enable VCL Styles -setting. Disabling the Mimic* and Enable VCL Styles settings, inheritance works as expected.
  13. Do you have patch installed? K12.1 patch 1?
  14. https://www.jsonfeed.org/version/1.1/ Looks much cleaner and sane than RSS/Atom. Hope this catches on, RSS is/was very nice concept, but was kind of sidelined, can't remember why it is not that popular anymore, there was some major reason popularity dropped. -Tee-
  15. Tommi Prami

    JSON feed, replacement form RSS/Atom

    I was not thinking this as a traditional website feed, mainly. Buit standard to use in our apps to pass messages/info. Like your homepage to your app, to pass known bugs, new features etc... As far as I know Wordpress has rss-feed polugin, maybe some other CMS also has. And then you could start to publish something on your website and get the feed to your app. -Tee-
  16. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Interesting... I'll get back to it when Coworkers has tested that also. Some got the same error on production app, but I'll wait for them to check out the trivial test app also. -Tee-
  17. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Did not help.
  18. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Removed all IDE experts, and tried again and it behaves exactly the same... It seems that I just need to open the inherited form and StyledElements appear right away. -tee-
  19. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    On this project, it is opposite. Or 12.1 patch 1, adds them.
  20. Yellow, Seems that Delphis own routines are bit flaky. There has been bugs over years. Last problem I had was that TryISO8601ToDate will raise exception on string it can't parse. Will handle/eat the exception but not most optimal solution I think. By good,m I mean that handle nicely error cases, maybe has more options that Delphi version. Obviously very well tested. If also fast, I wouldn't complain. -Tee-
  21. No it does not, that is OK, but debugger breaks to it anyhow, as it raised in the TryISO8601ToDate, and that is kind of exception I would not like to ignore. IF it would be TryISO8601ToDateException then yes. But generalm date conversion exception I would like to raise my attention. -tee-
  22. We had quite a long time own version, because some reported bug, Think there was some reported bug even quite recently. -Tee-
  23. Yellow, I have about following situation. FInstance is any TObject descendant and enum property can be any public or published Enum property, code must not link to hard coded enum type. procedure TMyThingy.SetEnumPropertyValue(const AValue: string); var LContext: TRttiContext; LRtttiType: TRttiType; LProperty: TRttiProperty; begin LContext := TRttiContext.Create; LRtttiType := LContext.GetType(FInstance.ClassType); LProperty := LRtttiType.GetProperty(FPropertyName); // Here I should convert lets say TMyEnum = (A, B, C) from string into the property value // if I call SetEnumPropertyValue('B') property FPropertyName from FInstance-object should be set. end; This should be quite simple, couple lines of code most likely. Could not find sample code that was good enough fit to get this to work, there usually was too much knowns, like enum type TMyEnum, This should be totally dynamic. Circled around this quite long time, just could not find the way to connect all the dots... -Tee-
  24. Have to try to remember that. Not used it too much. Thanks for helping! -Tee-
ร—