#1 2020-04-14 12:46:00

EduardAppelhans
Member
Registered: 2020-04-14
Posts: 8

vector-containers ??

Hi Arnaud,

what do you think about vector-containers?  https://community.idera.com/developer-t … for-delphi

Offline

#2 2020-04-14 17:30:31

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: vector-containers ??

It is a good idea from the C++ point of view.
When the author calls its library an "ORM" it is a joke for sure, since its flat persistence on disk is just awful - especially due to shortstring use. A SQLite3 file is just better.
In practice, I think this library is a niche for his own projects, but not production-ready for everyone. Especially the shortstring for text fields, which is slow, take 256 bytes on memory or disk whatever the length is, is limited to 255 bytes, and not Unicode aware, is a showstopper.

It seems less useful, and less powerful that the records and dynamic arrays wrappers, as available in mORMot.
Our TDynArray wrapper is much more complete (e.g. about sorting/comparing/searching), can have multiple hash tables for O(1) lookups, has much better binary serialization, and features JSON.
It will be even better in mORMot2 - I just rewrite the whole RTTI kernel, and optimized a lot binary and JSON process.

Offline

#3 2020-04-14 18:04:16

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: vector-containers ??

Reading the article, I couldn't stop thinking about how much better TDynArray is.

And a big Plus: dispenses the use of generics.

Offline

#4 2020-04-14 18:56:01

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: vector-containers ??

+1 ... :-)

Offline

#5 2020-04-14 20:33:24

EduardAppelhans
Member
Registered: 2020-04-14
Posts: 8

Re: vector-containers ??

Thank you for your answer Arnaud and for the classification of the approach with regard to mORMot and its current (and future) possibilities.

By studying mORMot since 2015, its docu, forum, development in code, etc. I learn a lot about good concepts and their modeling; from DDD down to a machine-level implementation.

Yes mORMot seems to be a very good teacher. But also a very very hard one! Especially if you're not a programmer, just a businessman, who has to decide about conceptually correct software development in a small company, it's quite a challenge to see more and more clearly and anticipate the right direction.   

So thanks again to Arnaud and everyone else in this great community!   

With kind regards

Eduard

Offline

Board footer

Powered by FluxBB