-
Content Count
597 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tommi Prami
-
Delphi feature request of compiler directives (vote if care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
Ah, And forgot that this forum won't let me edit after some time period. Never understood why. Maybe someone at past has been D**K HEAD abusing the edit functionality. Would be better to kick those out, than not been able to correct typos and mistakes, or give more info to the initial message, if problem has been solved. But I digress.. -
Code that builds in one project fails in other. TResamplerObj = class id: integer; name: string; func: TResamplerFunction; end; if I and public-keyword after class() it'll build TResamplerObj = class public id: integer; name: string; func: TResamplerFunction; end; I've never seen behaviour like this. First of all usually there is strict private/private keyword. But the code should build, because it'll do so in other projects. -Tee-
-
Emit Runtime type information for Debug build was on.
-
[dcc32 Error] Img32.pas(605): E2217 Published field 'id' not a class or interface type Maybe there is compiler setting for that... Try to find again...,
-
Delphi feature request of compiler directives (vote if care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
Rephrased in comments and in Jira, user can't edit it so... -
Delphi feature request of compiler directives (vote if care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
To make sure that none Abbreviated versions creep in. If it is your cup of tee. -Tee- -
Feature request to Delphi Compiler for IFOPT (Vote if you care)
Tommi Prami posted a topic in Delphi IDE and APIs
Compiler supports only the short versions of compiler direcctives in the IFOPT {$IFOPT C+} LTempVariable := {$ENDIF} DoSometingThatReturnsSomething: Assert(LTempVariable > 0, 'Should return greater than Zero'); would be way easier to read and understand what is going on with long version {$IFOPT ASSERTIONS ON} LTempVariable := {$ENDIF} https://quality.embarcadero.com/browse/RSP-42105 I really do not like those shortened version of Compiler directives. Would need to use them a lot, if at least I would remember them. -
Feature request to Delphi Compiler for IFOPT (Vote if you care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
Sure can. -
https://github.com/TommiPrami/DecimalRound Couple of minor changes, nothing big. -Tee-
-
Thanks... -Tee-
-
Could you try will these routines work for you; https://github.com/TommiPrami/DecimalRound/
-
String comparison in HashTable
Tommi Prami posted a topic in Algorithms, Data Structures and Class Design
Yellow, Watched this video last night and it had interesting things: I Did not test this yet in any way in Delphi, how to write it to make it behave same way as the C++, but this trick gave quite a performance boost. Also I've not never looked into the "perfect hash tables" and there was quite interesting tricks there, especially when you have and suitable dataset to use it for. -Tee- -
"natural" compare function for sort
Tommi Prami posted a topic in Algorithms, Data Structures and Class Design
Hello is there any implementation for compare function for ordering strings with numbers into numeric order: Random list to this: 1 test 2 test 10 test 11 test 20 test 21 test test 1 test 2 test 10 test 11 test 12 test 20 etc, -
Requested for IDE to support more RAM (vote/discuss if you care)
Tommi Prami posted a topic in Delphi IDE and APIs
https://quality.embarcadero.com/browse/RSP-41803 -Tee- -
FIY: Sort algorithms found by Deep learning
Tommi Prami posted a topic in Algorithms, Data Structures and Class Design
Added to LLVM sort library it seems. https://www.nature.com/articles/s41586-023-06004-9 https://github.com/deepmind/alphadev -Tee- -
Requested for IDE to support more RAM (vote/discuss if you care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
That what I tried to say, was not very clear tough, that since LSP is separate process, it does not matter in this case. New Task manager groups them together, so I as previously looking at wrong thing, total memory consumption, instead of just IDE. Therefore jumped into conclusions. Voted for Navigator GDI leak report, good to know. Thanks. -Tee- -
Requested for IDE to support more RAM (vote/discuss if you care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
OK, Tested again, and it seems that I was barking at wrong tree here. I am not really fan of this new taksmanager. Should start to use pRocess Explorer aggain from SysInternals. Task manager It shows total memory of the process tree, so ide used little more than 1Gb of memory after it died. LSP processes used total of about gig. So total memory consumption peaked around 2Gb maybe slightly over, hard to tell, but it does not matter. This time I did not get Out of memory, butr IDE used all handles, and after that it ran for awhile, and just vanished. So memory is not the (only problem), tested this with opening lot of forms. Sometimes you need to go lot of forms through and it is hard to remember which are done and which are not, so... But have to do it in batches anyway, because IDE really start to crawl pretty soon when opening lot of forms. -Tee- -
Requested for IDE to support more RAM (vote/discuss if you care)
Tommi Prami replied to Tommi Prami's topic in Delphi IDE and APIs
Interesting. I got out of memory at 2GB and never seen higher memory usage than 2GB, Then it must be some plugin I use, Like GExperts... -
Register methods to Dictionary, maybe? Tehn just bet the method to call from Dictionary by type? -Tee-
-
1. Have not used JCL for that, but I would guess Map file is needed, make sure that mapfile if from correct build and/or updated. 2. Do you see measurable speed increase with Optimizations on? -Tee-
-
Interesting article: Branchless binary search
Tommi Prami posted a topic in Algorithms, Data Structures and Class Design
https://probablydance.com/2023/04/27/beautiful-branchless-binary-search/ -
New Command Line Parser in mORMot 2
Tommi Prami replied to Arnaud Bouchez's topic in Tips / Blogs / Tutorials / Videos
I do not quite folllow. Why that would be non standard. LEt me make complete example myapp.exe /path="C:\Program Files\mORMotHyperServer\" Why then the command line switch would/could not contain string: C:\Program Files\mORMotHyperServer\ (without quotes) Forcing to wrap whole thing would be counter intuitive for me. (I think that syntax is supported by some apps). -
New Command Line Parser in mORMot 2
Tommi Prami replied to Arnaud Bouchez's topic in Tips / Blogs / Tutorials / Videos
Tried to state that it is nice that both syntaxes are supported. -
New Command Line Parser in mORMot 2
Tommi Prami replied to Arnaud Bouchez's topic in Tips / Blogs / Tutorials / Videos
Yellow, Seems very nice that it'll also support sane syntax (for me) 🙂 "raw /servers=2 /threads=8 /nopin" Instead of just "/servers 2" If also is OK? /path="C:\Program Files\mORMotHyperServer\" I really don't like kind of detached command line params. like "/password badpw ..." way easier for me to read /password="badpw" etc. -Tee- -
Nice work. Couple of points that are not that big of a deal, just think about them. Split the unit into maybe three units. For low level utils and types For TTask versions "Thread pool" unit, so if not used, threads are not initialized to consume memory (as pointed out in comments CPU and human time is small, but some might like to save the memory) Change repository name to something more describing. Like ThreadedResampler or something like that. Not to critisize, but was just thinking would those changes make sense to you, not 100% sure are they good idea or not.