-
Content Count
597 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tommi Prami
-
FYI: Stumbled upon interesting ASM optimization trick LLVm can do (most likely others also)
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
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- -
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-
-
Delphi on Surface Pro with Qualcomm CPU?
Tommi Prami replied to PeterPanettone's topic in Windows API
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- -
What do you think of "Local Global variables"
Tommi Prami posted a topic in RTL and Delphi Object Pascal
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- -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
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... -
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 ;(
-
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Nicely summed up... -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
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- -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
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- -
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-
-
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
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. -
Fatal issue on Delphi 12.1 with Split Editors on multiple monitors
Tommi Prami replied to PeterPanettone's topic in Delphi IDE and APIs
Do you have patch installed? K12.1 patch 1? -
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-
-
JSON feed, replacement form RSS/Atom
Tommi Prami replied to Tommi Prami's topic in Network, Cloud and Web
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- -
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
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- -
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
Did not help. -
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
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- -
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
On this project, it is opposite. Or 12.1 patch 1, adds them. -
Does anyone have good routines for parsing ISO8601 date(time) strings
Tommi Prami posted a topic in RTL and Delphi Object Pascal
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- -
Does anyone have good routines for parsing ISO8601 date(time) strings
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Have to check that out, thanks... -
Does anyone have good routines for parsing ISO8601 date(time) strings
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
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- -
Does anyone have good routines for parsing ISO8601 date(time) strings
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
We had quite a long time own version, because some reported bug, Think there was some reported bug even quite recently. -Tee- -
Set enum property with TRttiProperty from string
Tommi Prami posted a topic in RTL and Delphi Object Pascal
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- -
Set enum property with TRttiProperty from string
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Have to try to remember that. Not used it too much. Thanks for helping! -Tee-