#1 2017-12-03 12:46:05

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Interesting - 04 sample compiled with Delphi and running on Linux

Running using WINE, screenshot below. there is also a wineconsole command for running windows console programs. I haven't tested it further, although I deeply wish to develop with Delphi but this non-native approach must have some limits...
xubuntu


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2017-12-03 13:12:18

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

Re: Interesting - 04 sample compiled with Delphi and running on Linux

Sounds like if the httpAPI is not working yet, and anyway the socket server may be a better option under Linux.

Using FPC is a best way, I'm sure.
It works fine, you can cross-compile from Windows to Linux, and has no dependency.

Offline

#3 2017-12-06 00:46:24

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: Interesting - 04 sample compiled with Delphi and running on Linux

Naturally FPC is the best option for Linux, but running a Delphi compiled mORMot server with wine is a viable possibility. 
It can be a temporary solution while the project is ported. But I have found at least one situation where it makes sense on the long run: when he server uses a library which has no viable equivalent for FPC.  In such a case I have found it best to create a Linux server implementing most of the functionality and an other one with Delphi. The main server forwards the requests it cannot handle to the other one which may make some  calls to the main server as well while doing its job.

Last edited by Leslie7 (2017-12-06 00:48:23)

Offline

#4 2017-12-06 09:43:47

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Interesting - 04 sample compiled with Delphi and running on Linux

@Leslie7,

If we just talk about the cons (thus trying to overcome it), I think the biggest lost for a Delphi developer to transit to Lazarus is the **productivity lost** - the Change of the IDE, this lacking of the excellent IDE plugins such as MMX, GExperts, etc...


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#5 2017-12-07 00:46:55

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: Interesting - 04 sample compiled with Delphi and running on Linux

edwinsn,

On the other hand Lazarus is extendable, plus you have the complete source available if you need to implement something more exotic.
I assume that some (maybe  most) of the functionality of Delphi opensource  plugins can be ported to Lazarus easily.  Usually we do not really need all the bells and whistles just a few really important features, which may not be that  much of an investment to port/implement.

Offline

#6 2017-12-07 17:39:55

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Interesting - 04 sample compiled with Delphi and running on Linux

Leslie, that's very true! Maybe the initial transition is kinda uncomfortable, but the gains afterwards will be gigantic in terms of extensibility and freedom.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB