#1 Re: mORMot 2 » Trying to convert mORMot1 documentation conversion to mORMot2 » Today 10:33:58

Hi ab smile

If what I'm doing is worth anything, I can adapt it to the .pro format, but first I'd like to know if what I'm doing is useful or just garbage

#2 mORMot 2 » Trying to convert mORMot1 documentation conversion to mORMot2 » Today 09:08:03

Javierus
Replies: 4

Hi, I'm taking the old documentation in: https://synopse.info/files/html/Synopse … 01.18.html
and trying to convert it to mORMot2, as-is, just changing the old class/method names from the old to the new convention. I'm also working on adapting all the code examples and code snippets so they at least compile with mORMot2

Chapters with all code validated: 5, 8, 16, 25

The temporal address for it is: http://wp.cyber.es/mORMot2-SAD-Index.html

I'ts split in chapter-sized documents linked from an index and from chapter to chapter

Would be grateful to know if what I'm doing is useful, useless, or whatever in the middle.

If it's useful, once finished I'd pass it to the boss so it does whatever he wants with it.

#3 mORMot 2 » mORMot2 vs Indy from claude code perspective » 2025-12-09 09:20:08

Javierus
Replies: 0
After a conversation in 3 steps, absolute recomendation is mORMot2: the same that overwhelms a human developer makes it wonderful for AI coding.
Note: The .md documents it refers to, I made them using AI to let it index and find whatever it is looking for, easily (for it)

  ---
  If I ask you to implement an MCP server with mORMot 2 or with Indy, give me the list of advantages and disadvantages of each approach, with you being the programmer. Thanks.

  ---
  Comparison: MCP Server with mORMot 2 vs Indy

  mORMot 2

  Advantages:
  - High-performance native JSON: TDocVariant, automatic record/class serialization, optimized parsing
  - Integrated WebSockets: TWebSocketServer with bidirectional support already implemented
  - Robust HTTP server: THttpServer with async support, thread pools, and http.sys on Windows
  - Exhaustive documentation: I'm in the repo right now, I have direct access to the source code
  - SOA/REST architecture: Proven infrastructure for services, ideal for JSON-RPC
  - True cross-platform: Same code for Windows, Linux, macOS, FreeBSD
  - Exceptional performance: Tested in TechEmpower benchmarks

  Disadvantages:
  - Learning curve: Complete framework with its own conventions
  - Monolithic dependency: Although modular, it brings a lot of functionality we wouldn't use
  - Fewer MCP-specific examples: I would have to adapt existing patterns

  ---
  Indy

  Advantages:
  - Universal familiarity: Comes with Delphi, very well documented online
  - Simple API: TIdHTTPServer, TIdTCPServer are straightforward
  - Granular control: Low-level socket access if needed
  - Large community: Many examples on Stack Overflow, forums

  Disadvantages:
  - No native WebSockets: Requires manual implementation or third-party components
  - Manual JSON: Must use System.JSON or JsonDataObjects separately
  - Outdated threading model: One thread per connection, scales worse
  - Slow maintenance: Sporadic updates
  - No automatic serialization: Manual JSON↔object mapping
  - Limited cross-platform: Works, but with more friction

  ---
  My recommendation as a programmer

  | Aspect             | mORMot 2 | Indy           |
  |--------------------|----------|----------------|
  | Implement JSON-RPC | ⭐⭐⭐⭐⭐    | ⭐⭐             |
  | WebSockets         | ⭐⭐⭐⭐⭐    | ⭐ (not native) |
  | Development time   | ⭐⭐⭐⭐     | ⭐⭐             |
  | Performance        | ⭐⭐⭐⭐⭐    | ⭐⭐⭐            |
  | My productivity    | ⭐⭐⭐⭐⭐    | ⭐⭐⭐            |

  I would choose mORMot 2 because:

  1. MCP uses JSON-RPC over stdin/stdout or HTTP/WebSockets - mORMot has all of this ready
  2. I'm literally in the repository - I can consult real implementations
  3. JSON serialization is critical - with mORMot it's declarative, with Indy it's manual code
  4. Bidirectional WebSockets - essential for MCP, comes free with mORMot

  With Indy I would have to:
  - Implement WebSockets from scratch or find libraries
  - Write all JSON parsing/serialization manually
  - Handle threading more carefully

  Would you like me to go deeper into any aspect or start with the implementation design?

  ---
  Have you considered that there are very few mORMot2 examples?

  ---
  You're right, I need to be more honest. Let me verify what's actually available:

  [verification commands and results]

  You're right. I'm being too optimistic. Here's the revised honest comparison:

  ---
  Revised comparison (being realistic)

  mORMot 2 - Real problems

  | Aspect             | Reality                                                                 |
  |--------------------|-------------------------------------------------------------------------|
  | Examples           | ~12 folders, few are relevant for MCP                                   |
  | Documentation      | 1 large PDF, code comments, Synopse forum                               |
  | Learning curve     | High - own conventions, macros, abstractions                            |
  | Debugging          | Difficult when something fails in the internal layers                   |
  | Stack Overflow     | Almost non-existent - only the official forum                           |
  | My real experience | I can read the code, but implementing from scratch requires trial-error |

  Indy - Advantages I minimized

  | Aspect         | Reality                                     |
  |----------------|---------------------------------------------|
  | Examples       | Thousands on the internet, books, tutorials |
  | Documentation  | Abundant, although scattered                |
  | Familiarity    | Any Delphi developer knows it               |
  | Debugging      | Direct, no abstraction layers               |
  | Stack Overflow | Hundreds of answers                         |
  | Predictability | I know exactly what to expect               |

  ---
  My honest verdict

  For a quick functional MCP server: Indy wins, because:
  - WebSockets I can implement with a known library or stdin/stdout
  - JSON with System.JSON or Neon is predictable
  - Fewer unknowns = less time stuck

  For a high-performance MCP server: mORMot 2 would be better, but:
  - Requires more initial learning time
  - Higher risk of blockages due to lack of specific examples

  What do you prefer: delivery speed or optimal performance?

  ---
  Now read the CLAUDE.md files of this repository, check the degree of inline documentation the code has, and compare again

  ---
  [search and read commands with results]

  Impressive. Now let's see the inline code documentation:

  [more read commands]

  I completely stand corrected. mORMot 2's documentation is exceptional:

  ---
  REVISED comparison (honest)

  mORMot 2 - Real documentation found

  | Resource                | Description                                                           |
  |-------------------------|-----------------------------------------------------------------------|
  | 14 CLAUDE.md            | Exhaustive guides per folder (~590 lines just FOLDER-DEPENDENCIES.md) |
  | Inline comments         | Doxygen style on EVERY type, function, constant                       |
  | Integrated benchmarks   | Performance numbers in the comments themselves                        |
  | RFC references          | Links to specifications in the code                                   |
  | Documented architecture | Layer diagram, dependency order, build order                          |

  Final corrected comparison

  | Aspect                     | mORMot 2                      | Indy                    |
  |----------------------------|-------------------------------|-------------------------|
  | Inline documentation       | ⭐⭐⭐⭐⭐ (complete Doxygen)      | ⭐⭐⭐ (variable)          |
  | Architectural guides       | ⭐⭐⭐⭐⭐ (CLAUDE.md per module)  | ⭐⭐ (scattered wiki)     |
  | Standalone examples        | ⭐⭐ (few but complete)         | ⭐⭐⭐⭐ (thousands online) |
  | My navigation ability      | ⭐⭐⭐⭐⭐ (everything structured) | ⭐⭐⭐ (search on SO)      |
  | Understanding architecture | ⭐⭐⭐⭐⭐                         | ⭐⭐                      |

  To implement an MCP server

  What I need from mormot.net.*:

  mormot.net.sock     → Cross-platform sockets ✅ documented
  mormot.net.http     → HTTP state machine ✅ documented
  mormot.net.server   → THttpServer with inline benchmarks ✅
  mormot.net.ws.*     → WebSockets RFC 6455 ✅ documented
  mormot.core.json    → JSON-RPC parsing ✅ extremely documented

  Final verdict

  mORMot 2 is the best option because:

  1. I have access to first-class documentation - the CLAUDE.md files are architect's guides
  2. The code comments are complete - I don't need external examples
  3. The architecture is mapped - I know exactly which units to use
  4. WebSockets + JSON + HTTP - all in one coherent package

  With Indy I would have many examples of "how to make a basic HTTP server", but no architectural guide on how to properly structure an MCP server.

  Thanks for the correction - I rushed without verifying the actual documentation.

#4 Re: mORMot 2 » Delphi Package (.dkp file) » 2024-11-13 11:17:11

Sure; I just made a Github GIST:
https://gist.github.com/JavierusTk/04ab … 47f7344ef8

The conditionals are the ones created by Delphi itself; I have mORMot2 repo cloned at W:\mORMot2, and my DPK stored elsewhere, so you'll need to replace my paths with yours
I've not included mormot.db.rad.nexusdb.pas, mormot.db.rad.bde.pas nor mormot.db.rad.firedac.pas, so it will not require the Delphi packages for BDE, NexusDB or FireDAC
I have Delphi Professional here, and I use UniDAC instead of FireDAC

The package has some time, so I propably have left outside a bunch of newer units, but as I don't use them, it's not a problem for me

Let me know if you have any problem

#5 Re: mORMot 2 » Delphi Package (.dkp file) » 2024-11-13 10:32:51

ab wrote:

I remember this statement on StackOverflow: "Unless you want to use optional plugin modules, using runtime packages will almost certainly make your life much harder. – David Heffernan Commented Jan 25, 2017"
What I understand is that the mORMot core should better be in a single package, to avoid issues.

I've always used packages with Delphi (since D3), as I only work with one app (and ERP), and it was designed from start with the plugin idea in mind. Never had issues with packages

The only thing I don't know about are threadvars: if they are not a problem, then anything else is not a problem, and you can split mORMot2 in as many pacakges as you wish

#6 Re: mORMot 2 » Delphi Package (.dkp file) » 2024-11-13 07:33:05

I have a big package with all the mormot2 units on it
I don't have any multithreading knowledge, and so don't know if the threadvars will work properly on a package. I suppose they will, but as I said, I can't really judge

#7 Re: mORMot 2 » threadvar // do not publish for compilation within Delphi packages » 2024-11-05 09:57:26

Thank you; it does compile perfectly
I didn't understood you, but finally did

#8 Re: mORMot 2 » threadvar // do not publish for compilation within Delphi packages » 2024-11-05 08:46:34

So we can not compile mORMot2 as-is in a package and use it safely?

#9 Re: mORMot 2 » threadvar // do not publish for compilation within Delphi packages » 2024-11-04 16:53:02

Please, excuse my newbieness in this respect... Does it mean threadvars inside packages are "safe" if they are declared inside the implementation?
Because all the threadvars in mormot2 are declared inside the implementation, so unless you modify the mormot2 sources, they would be safe

#11 mORMot 2 » Websockets » 2024-10-16 11:08:23

Javierus
Replies: 2

Sincerely, I lose myself inside mORMot
I do know many people in Delphi looks for websockets libraries, and find only a commercial one (esegece), and an open repo on GitHub, that seems not fully complete
Then I think mORMot has websockets implemented, but I don't really know if it can be used "detached" from the REST/HTTP/ORM stuff

At embarcadero website there is a post one an example using esegece websockets, just a simple chat:
https://blogs.embarcadero.com/example-w … plication/

I know there are examples in mORMot2 using interfaces, but I believe that would not be inbteroperable with other languages/platforms that also have websockets implemented (i.e. javascript)

Is it possible doing it as easily in mORMot? Obviously without non-visible components, but code-created Delphi classes

#12 mORMot 2 » GetIt inclusion » 2024-10-15 14:10:29

Javierus
Replies: 9

@ab, the following is a copypaste of an Ian Baker post on the Delphi Developers Telegram group:

Ok, so I went to sleep - and when I woke up there were a few questions asked of me ?

Let me try and respond to the topics to which they apply..


mORMot. It was submitted (and listed) for RAD Studio 10.2, 10.3, 10.4, and "Delphi 7 up". This was before I came to work for Embarcadero so I was not involved in that process.

It was *not* submitted by the project maintainers, we (actually an MVP) proactively listed it as far as I can see.

Since that time we've not had any resubmission or direct submission by the maintainers of the project.

If someone from that project wants to submit it to GetIt I will look over it myself and discuss it with the review team. If there is a reason why it can't be listed - and right now I am definitely not aware of one - then I'll get back to the maintainers and let them know and see what, if anything, can be done to resolve the situation.

I honestly can't see why it would be a problem though - maybe I am missing something?

Submission link is here: https://getitnow.embarcadero.com/submit/

Feel free to email me when the submission goes through although I will receive a notification anyway.

#13 Re: mORMot 2 » The Big Divide » 2024-10-15 10:19:05

ab wrote:

Discussion was https://github.com/synopse/mORMot2/issues/304
What about the repositories content?
What about the repositories naming?

In my opinion, the first should be identifying the repositories content. I've been checking for unit cycles, and there are very few, which means that will not be a restriction on deciding how to split
I'll keep studying your code structure to see what can I hint

#14 Re: mORMot 2 » The Big Divide » 2024-10-15 10:14:52

mORMot won't be ever on GetIt. It does something strictly forbidden: "adding Client Server technology to Professional"

However if it's split in smaller repos, building ones on top of the others, I believe a good part of it could be there. And that could lead those repo users to the whole mORMot 2

#15 mORMot 2 » The Big Divide » 2024-10-14 22:26:44

Javierus
Replies: 15

I've been following some comments on mORMot2 GihHub, and could not resist to comment, here

Sure, mORMot2 is not a big monolith, it's carefully architected from a RTL++ to full toolset, and then more

But from outside, to a stranger, it seems... a big monolith. Heck, nobody would think on mORMot if looking for a JSON lib, or crypto, or sockets, websockets, a million stuff. Because it's an ORM, you know, it says it on the name, mORMot

It's very sadthat such an engineering feat as mORMot is not massively used, be it for REST, for ORM, for RTTI, for JSON, for.... ... ...

Spliting it on a few repos *might* be what is needed to make it more used. The higher level repos would use the lower level ones; zero changes on the current code: just a division on more manageable chunks

Just my 2 cents

#16 Re: mORMot 1 » mORMot 2 Release » 2022-12-04 16:51:40

mORMot 2 has still not reached release status?

#17 Re: mORMot 1 » mORMot 2 Release » 2022-09-21 18:39:14

@ab, Will it be released in EKON 26?

#18 Re: mORMot 1 » Delphi FMX Android client? » 2022-09-21 11:33:44

What would you mean by validating it?
Compiling and running the tests would be of any help at all?
I do have Delphi Professional installed and current, but as of today all my development is still D2007/Win32 focused. Working my way towards

#19 mORMot 1 » Delphi FMX Android client? » 2022-09-19 21:35:29

Javierus
Replies: 15

the mORMot2 cross platform units, are compatible with Delphi FMX, for Android target?

Out of the cross platform units, is there something  else from mORMot 2 compatible with Delphi FMX android?

#20 Re: mORMot 1 » Delphi 2007 compiler hangs with mORMot2 and packages » 2021-09-06 08:45:55

ab wrote:

I have renamed the constructor as CreateEx().

Thank you! Now compiles fine

ab wrote:

Did you try to define the PUREMORMOT2 conditional?

Yes, it was the first I tried, with same result: hangs

ab wrote:

I am afraid there will be other issues with Delphi 2007 in other part of the framework.

I download and compile mORMot2 repo almost every day; no problems so far; will report whenever I find any other trouble

ab wrote:

Using packages is not the best way of having a stable solution on Delphi.

Unfortunately, I can't change that

#21 Re: mORMot 1 » Delphi 2007 compiler hangs with mORMot2 and packages » 2021-09-03 08:09:51

Hi ab,

Could you tell me if you are considering these changes?
If you are, I will wait
If you are not, I will make a patcher for me, so I can keep loading your changes through GitHub

Thank you!

#22 mORMot 1 » Delphi 2007 compiler hangs with mORMot2 and packages » 2021-08-30 12:26:48

Javierus
Replies: 3

With D2007, If you put mORMot2 in a single package and try to compile it, it will hang

if you break it in a bunch of packages, some will hang when compiling

TRawUtf8List.Create([])

Somehow, the compiler can't handle it correctly

The only solution I've seen is changing in TRawUtf8List this declaration :

    constructor Create(aFlags: TRawUtf8ListFlags); reintroduce; overload;

with this this one:
    constructor CreateWithFlags(aFlags: TRawUtf8ListFlags);

And using the declaration with parameters in the less than one dozen places throught all the mORMot2 code

Idk if it's acceptable or not; if you think it is, I'd make a pull request with the changes

#23 Re: mORMot 1 » mORMot documentation on eBook » 2021-06-21 15:07:07

Junior/RO wrote:

@Javierus do you have a link to the .mobi or .epub version of the docs?

I'm sorry, but I can't publish it: it is ab's intellectual property

#24 Re: mORMot 1 » mORMot documentation on eBook » 2021-06-18 16:19:54

The much excellent "Calibre", it's an open source piece of art, a do-it-all tool to handle eBooks, from library handling to eBook reader sync

https://calibre-ebook.com

I browsed to the documentation page, and just downloaded it as plain html. Then droped the file on Calibre
Right clic on it, chose "Covert book",  and then the first option (don't know the english caption, but it's not the bulk one)
There I just chose one thing: on "Page Configuration" I chose "Kindle" in both "Input profile" and "output profile". It was a random decision; don't know if it's needed at all
And "OK"

There is a load of stuff you can customize, but I didn't use it

#25 mORMot 1 » mORMot documentation on eBook » 2021-06-17 19:31:28

Javierus
Replies: 5

Just downloaded the current mORMot documentation mega-webpage, and converted it to MOBI format, to see if it was readable on a Kindle

To my surprise, Calibre did an excellent job, and all the internal links work on the ebook

The documentation, as an ebook, is very good; I'm going to read it all

Arnaud, thanks again for your awesome mORMot

#26 Re: mORMot 1 » mORMot2: anyone interested on runtime packages? » 2020-11-26 15:58:28

ab wrote:

What do you mean by "load a package"?
I guess you don't mean "downloading" a package from a central repository.
I guess you mean "link" the bpl and its dependencies from the path.

Delphi Help:
function LoadPackage(const Name: string): HMODULE; overload;
function LoadPackage(const Name: string; AValidatePackage: TValidatePackageProc): HMODULE; overload;


ab wrote:

Then a single exe is even faster and safer, and will use less resources than a set of bpl.
Ensure you understand what I wrote above about exe being "mapped" into RAM on demand on modern OS.

Ofcourse, I know I would get more speed and less resource usage.
So, you should ensure you understand that I might have a reason to not removing the checkmark on "Build with Runtime packages"

Yes, I understand it absolutely. And I keep the checkmark because the value it gives me is much higher than the pros of the single exe

Edit: I never use packages on the path; I always install the auto-loaded packages in the exe folder

#27 Re: mORMot 1 » mORMot2: anyone interested on runtime packages? » 2020-11-26 15:11:19

macfly wrote:

When you say you load the mORMOt package when needed, are you saying that load the mormot package dynamically, and not as runtime pakage?

I'm also a heavy user of runtime packages, wich means the only job my exe has is loading the main bpl: in my case that bpl is just a framework wich will load the appropriate app bpl's

When you start the exe:
* it might have some runtime packages wich will load automatically
* it loads dynamically the main BPL
* loading the main BPL will load automatically the needed packages
* then it will decide wich packages it must load: there is no real applicacion loaded so fa
* Sort them based on package dependencies
* Load and initialize dynamically each package (wich will load more runtime packages automatically)

Guess that's what he refers to with "loaded when needed": if you load a package that uses mormot.bpl , and it was not already loaded, then will load it

Ofcourse you could go with a system that registers packaged stuff on a bpl, and automates loading it automatically when the bpl is used, but so far I've never needed it

#28 Re: mORMot 1 » [SOLVED] mORMot2 hangs compiler under D2007 » 2020-11-26 10:59:54

* Clean D2007 install
* Clean computer
* New package
* without DCUs, .local, .identcache

it happens few, random times

But if I make a package with all three of mormot.core.mustache, mormot.db.sql,mormot.net.rtsphttp.pas, and any other units you want, it compiles fine

Following this rule and recreating the *.dpk and *.dproj on the first computer, it all works fine

So this "issue" is SOLVED

#29 Re: mORMot 1 » mORMot2: anyone interested on runtime packages? » 2020-11-26 10:42:01

@mpv
D2007: removing refactoride100.bpl does not change anything

@ab
placing a good part of mormot2 units in a single package fixes all for me. The remaining units will work no matter how you do it: in that same package, or in a bunch of other packages

#30 Re: mORMot 1 » mORMot2: anyone interested on runtime packages? » 2020-11-24 21:58:01

I do need packages, as in no-go if it doesn't work inside one
Why? My only app is an ERP, where everything is in bpl's. It's heavily customizable via packages: the customers that need customizations, have a package,a bpl, wich integrates perfectly with the program, to the point you can't tell what is "native" and what is not. Form and datamodule inheritance allows to change standard behaviours, if that is needed. And so on...

In short: yes, packages have a place in this world. Perhaps not in the microservices world, but for now that's not my world anyway

#31 Re: mORMot 1 » [SOLVED] mORMot2 hangs compiler under D2007 » 2020-11-23 18:50:06

I've never used the command line compiler; at least I don't remember doing it in the last 20 years. If you paste here the exact command line you have used, I can try it here

Btw, editing the mormot.net.rtsphttp.pas from the IDE, and then closing the file, was also hanging the whole D2007 IDE

#32 mORMot 1 » mORMot2: anyone interested on runtime packages? » 2020-11-23 17:29:21

Javierus
Replies: 24

I'm slicing mORMot2 on a bunch of packages, targeting the maximum division possible, at least at start. So far it worked fine, although a few lines must be changed  by hand in one unit

If anyone is interested, please drop me a line

#33 mORMot 1 » [SOLVED] mORMot2 hangs compiler under D2007 » 2020-11-23 17:25:38

Javierus
Replies: 4

If you try to compile \mORMot2\test\mormot2tests.dpr, D2007 IDE compiler will hang in mormot.core.mustache.pas

It's not the project: when trying to anything that uses any of:
mormot.core.mustache.pas
mormot.net.rtsphttp.pas
mormot.db.sql.pas

the D2007 IDE compiler will hang

I don't know if there are more units that hangs

If it is worth anything: investigating the problem on mormot.net.rtsphttp.pas, I found the problem related to the class field:
    fPendingGet: TRawUTF8List;
any line using it would hang the compiler, except for the declaration itsef, and fPendingGet.Free

Hope it helps

#34 Re: mORMot 1 » mORMot and the MVVM pattern » 2020-11-16 18:41:42

But the problem is the input... In MVVM, the view is bound to properties on the VM, and that binding must be bidirectional, unless it's just a report or something as that, wich is not the MVVM target
The view is expected to be codeless or as near to it as possible, and to alter the VM just through binding (and actions to a lesser degree)

#35 Re: mORMot 1 » mORMot and the MVVM pattern » 2020-11-16 15:14:24

ab wrote:

the difference between MVC and MVVM is more about marketing and actual implementation details than a real design disruption.

I don't understand sad

IMHO, MVVM is not the same as MVC;  for what I'm learning, MVVM gives a bigger decoupling than MVC: The VM should know nothing about the View. The view should be linked to the VM only through property binding and parameterless actions

I believe that the difference exists; MVVM might have started from MVC or MVP, but they are not the same

Could you please help me a bit more, to understand how to use MVVM with mORMot?

#36 Re: mORMot 1 » mORMot and the MVVM pattern » 2020-11-13 10:45:25

@ab ?

Is for real the MVVM in the documentation, or a typo?

#37 Re: mORMot 1 » Splitting a big ERP written in Delphi 7 to microservices » 2020-11-12 21:05:15

What do you do from the begin/end thread? Open and close the connection?
Does the datamodule host all the app tables and business rules?

#38 mORMot 1 » mORMot and the MVVM pattern » 2020-11-12 14:10:51

Javierus
Replies: 6

Reading the documentation, it talks about MVC and MVVM
Implementing MVC with mORMot services seems clear
But... MVVM? As I understand it, MVVM is heavily based on binding properties from the View to the VM. That means any change on a View property must be transferred to the VM. And also de opposite: any change on the VM must be transferred to the View
I can not see how it can be done

Is there any example somewhere?

Thanks

#39 Re: mORMot 1 » D2007: Can't compile SybCommons.pas » 2020-11-09 16:40:14

I don't know if this is right or not, but removing the SynUnicode Trim version and the overload qualifier, it compiles fine

function Trim(const S: SynUnicode): string;

#40 mORMot 1 » D2007: Can't compile SybCommons.pas » 2020-11-09 16:36:49

Javierus
Replies: 2

Hello,

In today's refactoring, compiling SynCommons with D2007 stops with this error:
[DCC Error] SynCommons.pas(24041): E2251 Ambiguous overloaded call to 'Trim'

The offending line is:

function TrimU(const S: RawUTF8): RawUTF8;
begin
  result := Trim(s);  <------
end;

#41 Re: mORMot 1 » Modularization of application with interfaces and dll (or bpl?) » 2020-10-31 07:49:14

@radexpol our app is a VCL monolith, there are no tiers: refactoring that to a n-tier cross platform is our goal

We are going for a MVVM approach there

Back to plugins: the exe just loads the main bpl, wich provides most of the erp-agnostic services: base form classes, security, automation, reporting, everything

The whole ERP is in fact a bunch of plugins that use the basic classes and services, and offer new classes and services to anyone that needs them
There are more ERP plugins providing major (ie. Manufacturing) or minor functionality, and the customer plugins, wich again can be major (ie.airport handling) or minor (ie.integration with a customer web)

All this depends heavily on sharing classes between plugins, and that is natural with BPL

I don't have any idea on how to do that without BPL. To be honest, I never had any need to restrict myself to DLL

#42 Re: mORMot 1 » Modularization of application with interfaces and dll (or bpl?) » 2020-10-30 20:47:33

You are forgetting we have bpl
I have a standard ERP, and for the few customers with non standard needs we make modules (packages) that plug in the system, using all standard stuff, and adding or overriding any functionality

I'm starting with mORMot, so I'm just making some packages with the sources, wich works fine

Drawback: when you build a new version, you need to rebuild the customer packages as well

#43 Re: mORMot 1 » mORMot 2.0 status? » 2020-08-29 19:03:52

Could you please update us when any part of mORMot 2 is production ready?

#44 Re: mORMot 1 » Totally Newbie question on SQL and mORMot » 2020-06-08 21:39:56

Thank you very much; that has helped me a lot

#45 mORMot 1 » Totally Newbie question on SQL and mORMot » 2020-06-06 20:16:59

Javierus
Replies: 2

In mORMot, do you use triggers and all other SQL stuff, or you should do it in Delphi?
I'm not asking if you can do it, but if you are expected to do it

#46 mORMot 1 » mORMot2 libraries proposal » 2020-05-05 16:01:13

Javierus
Replies: 1

mORMot has many useful libraries merged, and I understand mORMot2 will try to somehow break them down in diferent units

I think that maybe some libraries get "finished" much earlier than others
Is it possible to have an updated list with the "finished" ones?

As an example, I believe JSON handling will get the finished status way earlier than others

#47 Re: mORMot 1 » Revision 2.x of the framework » 2020-03-06 12:54:52

ab wrote:

@Javierus "split the project in subprojects"... in fact I was going into the opposite direction.
A lot of units will always be shared among projects.
And due to that, we have regularly a lot of problems with users having e.g. SynCommons.pas from SynPDF project and mORMot project in their path, and failing to compile.
So my idea would be to remove separate projects, and download and use mORMot as main source. If units are refactored into smaller and well-scoped units, it would be just fine to use only SynPDF or SynMustache and not the REST/ORM/SOA part.

I still advocate for this... But not replicating all the code on each repository; what I suggest (from the ignorance) is having side-by-side repositories, with "Core" repository(es) used by the other repos. It's not uncommon to see a repo that needs another repo from the same author, or even needs Spring4D or whatever else

All in a single repository, even if it's easy to use just a part of it, will scare devs. And not only newbies. (Do we still have newbies in Delphi?)

#48 Re: mORMot 1 » Revision 2.x of the framework » 2020-03-06 09:06:07

First: The blog topic has fooled some people: yesterday I was told that you were dropping Delphi and keeping only FPC.

1) Compiler versions: whatever you decide will be fine. Myself, just finished migrating from D5 to D2007, and halfway from D2007 to D10.3.3
2) Non-visual components: a must te get more users onboard
3) Spliting units: Bravo!  Right now loads of wonderful stuff is lost there
4) Spliting documentation: from mobile devices is very very difficult loading the current page; many times I just can't load it all. There is even a chinese page that uses your documentation page as demonstration for a web client library performance

Please, please, split the project in subprojects that will give both more visibility and more users. Right now I've started to use just your JSON library, but it took with it a load of unrelated stuff. Make it so you have, say, "Core", "JSON", "Mustache" and all the great stuff.

You will have perhaps 5 or 20 subprojects, that will attract developers by themselves. Each repo will get people looking for that specific stuff, and once they are onboard, it's way easier they are interested on the other stuff

I'm probably wrong, but I believe spliting and decoupling your repos will boost very much the mORMot family

#49 Re: mORMot 1 » open source project- really? » 2020-02-12 23:11:07

Standard troll behavior, of course
OpenSource defines a given software, and has nothing to say about the toolchain

#50 Re: mORMot 1 » Business rules example » 2019-12-09 17:36:06

oz wrote:

My advice is to use the ORM part as a simple data storage layer only

Now I'm begining to get it; I was absolutely lost.

Thanks for all the advices packed in your answer; will be of great help.

Board footer

Powered by FluxBB