tag:blogger.com,1999:blog-29331675.comments2024-03-05T17:37:00.995+01:00The Delphi Geekgabr42http://www.blogger.com/profile/06903558857617342477noreply@blogger.comBlogger2245125tag:blogger.com,1999:blog-29331675.post-77956466291532739412023-07-26T12:39:23.983+02:002023-07-26T12:39:23.983+02:00Right, the library looks very nice and complete, t...Right, the library looks very nice and complete, thaks for pointing to this.<br /><br />Only personally I dislike the &Set, &Case, &Then syntax, mainly because the "&" is hard to reach on the keyboard and also because it makes it harder to read by confusing the eye a lot.<br /><br />I would prefer to use _Set, _Case, _Then, ... as an alternative instead, <br />maybe both API versions working side-by-side would make sense too.<br /><br />Rollo<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-66748794723707684912023-07-22T20:11:29.538+02:002023-07-22T20:11:29.538+02:00Paging query sql does not existPaging query sql does not existAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-79757187281524087122023-06-29T23:30:48.472+02:002023-06-29T23:30:48.472+02:00I can genuinely recommend it.I can genuinely recommend it.Bruce McGeehttp://glooscap.com/noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-52588149529749722752023-06-23T10:56:57.022+02:002023-06-23T10:56:57.022+02:00Great news, Primoz! What do you think about the fu...Great news, Primoz! What do you think about the future of Delphi? In new stack overflow survey Delphi percent was not very impressive (around 3%) ( https://survey.stackoverflow.co/2023/ ). What technologies may bring fresh air to Delphi ? Not sure Android and iOS development in Delphi would be very common, but cross-platform desktop apps for Win/MasOS/Linux (and also impovement of C++ Builder) may add some value.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-56114497614750183632022-11-17T04:07:48.042+01:002022-11-17T04:07:48.042+01:00> This makes havoc when the application [except...> This makes havoc when the application [excepts]<br /><br />I suppose it should be "expects". Otherwise nice article!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-57214209483524376202022-11-09T15:15:19.631+01:002022-11-09T15:15:19.631+01:00RE "Delphi should ... allow you to look at th...RE "Delphi should ... allow you to look at the stack and inspect local variables"<br />Press Ctrl-Alt-C to bring up the CPU window, F8 to single step, then close the CPU window. Debugger is now at the line that caught the exception. If the offending line is inside a try..except block you can now see the local variables.<br /><br />But I like your idea. Gonna try it out.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-91305718592202386632022-11-09T15:09:27.855+01:002022-11-09T15:09:27.855+01:00RE "Delphi should ... allow you to look at th...RE "Delphi should ... allow you to look at the stack and inspect local variables"<br />Press Ctrl-Alt-C to bring up the CPU window, F8 to single step, then close the CPU window. Debugger is now at the line that caught the exception. If the offending line is inside a try..except block you can now see the local variables.<br /><br />But I like your idea. Gonna try it out.<br />Guy Gordonnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-74106678582987466482022-09-10T09:32:39.196+02:002022-09-10T09:32:39.196+02:00Hi - Check-out NoChop/STree on www.agdresearch.com...Hi - Check-out NoChop/STree on www.agdresearch.com - its already 350% faster than binary-search since being recently discoveredAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-16318547942106340102022-06-26T10:05:51.412+02:002022-06-26T10:05:51.412+02:00It needs one more addition :-) The RAII interface...It needs one more addition :-) The RAII interface. There should be functions (and typecasts) that return TInterfacedObject as IUnknown, so that the following pattern becomes possible:<br /><br />procedure MyCode;<br />begin<br /> // some long computations<br /> LightMREW.BeginWriteIntf(); // invisible ARC var here<br /> // code to update state, to write data<br />end;Arioch, thehttps://www.blogger.com/profile/05506275753418154075noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-2056810273367595862022-05-23T08:45:36.550+02:002022-05-23T08:45:36.550+02:00A very neat piece of software for sure. Would it b...A very neat piece of software for sure. Would it be possible to add some CLPIgnore attribute that skips a property? It would allow to do calculations inside the class based on the command line parametersAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-31458525831636486252022-05-18T11:35:22.948+02:002022-05-18T11:35:22.948+02:00Cool, I'm supposed to come to Slovenia this su...Cool, I'm supposed to come to Slovenia this summer... would have loved to attend!<br />Ljubljana rules, Slovenia rules! Enjoy and have fun.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-64272377014467877232022-04-09T22:40:00.610+02:002022-04-09T22:40:00.610+02:00The FileList demo, for one, explicitly includes th...The FileList demo, for one, explicitly includes the use of TCodePages, however, and unless USE_MSXML is defined, will not build in Delphi 11.1.Billhttps://www.blogger.com/profile/00858195676825602917noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-64881134377331775112022-02-04T13:24:37.725+01:002022-02-04T13:24:37.725+01:00Either handle exceptions yourself (add try..except...Either handle exceptions yourself (add try..except inside the async and await blocks) or use Parallel.Async (http://www.omnithreadlibrary.com/book/chap06.html#highlevel-async).gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-20159936007211889972022-02-04T11:43:17.886+01:002022-02-04T11:43:17.886+01:00How to handle exceptions in async/await?How to handle exceptions in async/await?Ashayerihttps://www.blogger.com/profile/04788407177155940213noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-25985779187744082262022-01-30T05:02:20.030+01:002022-01-30T05:02:20.030+01:00I have a soft spot for Object Pascal. Delphi is st...I have a soft spot for Object Pascal. Delphi is stalwart of RAD development environments.Gary Chikehttps://www.blogger.com/profile/08166764995546548489noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-62220797843341038362022-01-19T09:33:01.806+01:002022-01-19T09:33:01.806+01:00As the article states ;) - I don't see how tha...As the article states ;) - I don't see how that could be implemented as an add-on to the system primitive.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-18117765233526840692022-01-19T07:37:53.361+01:002022-01-19T07:37:53.361+01:00Thank You for Your answer. It is clear now. And on...Thank You for Your answer. It is clear now. And one more question: TLightweightMREWEx still does not allow to take read lock after taking write lock in the same thread. Is there any reason for such behaviour?Rurahttps://www.blogger.com/profile/13683520746639589544noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-82429834513960495122022-01-14T10:42:17.312+01:002022-01-14T10:42:17.312+01:00A read to FLockOwner is atomic on all supported pl...A read to FLockOwner is atomic on all supported platorms. Given that, we have three situations: 1) the lock is unowned, 2) the lock is owned but not by the threads calling BeginWrite, 3) one of the threads calling BeginWrite owns the lock.<br /><br />1) If will fail for both threads, they will enter TryBeginWrite and one will win. Other will wait.<br /><br />2) If will fail for both threds, they will enter TryBeginWrite and both will wait.<br /><br />3) If will succeed for one thread, the other will enter TryBeginWrite and wait.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-62225641102047794772022-01-14T09:46:27.247+01:002022-01-14T09:46:27.247+01:00I have a question regarding procedure TLightweight...I have a question regarding procedure TLightweightMREWEx.BeginWrite; Is it threadsafe to inspect and increment FLockCount in such manner? The same question is about FLockOwner. What if multiple threads call BeginWrite simultaneously? Rurahttps://www.blogger.com/profile/13683520746639589544noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-19127370558333916072022-01-11T12:11:11.176+01:002022-01-11T12:11:11.176+01:00Legend! Thanks so much PrimozLegend! Thanks so much Primozgorepjhttps://www.blogger.com/profile/11918934985167715072noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-7818646476024838982022-01-11T08:59:28.551+01:002022-01-11T08:59:28.551+01:00That source is lost in the mists of time. I have c...That source is lost in the mists of time. I have created new one based on our current code: https://www.dropbox.com/s/cixpqemiaeqdnbt/EnumHelper.pas?dl=1. You will also need https://www.dropbox.com/s/l59l9931amvc1n6/System.Reflection.pas?dl=1. gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-80010501939170286122022-01-11T06:59:58.559+01:002022-01-11T06:59:58.559+01:00Hello,
The link to the source is broken. Do you h...Hello,<br />The link to the source is broken. Do you have a valid one please?<br />Regards Petergorepjhttps://www.blogger.com/profile/11918934985167715072noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-66887391167813107912021-07-18T08:52:25.403+02:002021-07-18T08:52:25.403+02:00I know I'm a bit late to the game, but:
funct...I know I'm a bit late to the game, but:<br /><br />function CompareBoolean(const ALeft, ARight: boolean): integer;<br />const<br /> CComparisonMap: array[boolean, boolean] of integer = ((0, -1), (1, 0));<br />begin<br /> result := CComparisonMap[ALeft, ARight];<br />end;<br /><br />N@N@https://www.blogger.com/profile/00182898358621023955noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-47806261203203288792021-04-02T00:20:49.067+02:002021-04-02T00:20:49.067+02:00if possible use seattle with sdk api 30 (android 1...if possible use seattle with sdk api 30 (android 11) ?Irwanhttps://www.blogger.com/profile/07296379551147338337noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-74123703670950433362021-03-28T17:20:26.944+02:002021-03-28T17:20:26.944+02:00Delphi is one of the best things for my life! It w...Delphi is one of the best things for my life! It will continue to evolve, sure, and it is going to stay for many more years :)Anonymousnoreply@blogger.com