Recent

Author Topic: Is FPC mature enough to fulfill my needs?  (Read 9545 times)

Wodzu

  • Full Member
  • ***
  • Posts: 171
Is FPC mature enough to fulfill my needs?
« on: November 16, 2009, 10:00:38 pm »
Hi guys.

I've posted this topic on FPC site but you are way more active so I think I'll also ask here.

I am using FPC from time to time under windows but only in coding contests. I would like to ask more advanced FPC users if I can realize my project (described below) in FPC.

What I would like to do is a service working 24/7 under linux.
This service need to communicate with some relational database hosted also on linux (the same machine). I guess Firebrid would be a right choice?
Also I would like to that clients of this service communicate with it through a ssl or in other safe way.

So it should look like this:
1. Client asks service for some data (message send to service must be secured in some way).
2. Service decrypts message and get requested data from database.
3. Service responds to client in encrypted message.

I am an experienced Delphi developper but I have almost none Linux experience. Also I don't know what FPC offers me today...

I don't even know what Linux distribution would be best for my needs :)

One more thing: As goes for the service I would like to not use a WSDL. I just want to send a simple encrypted string in two ways (as small as possible). Is for example Indy sufficient for this?

So if someone would be so kind and give me detailed information what compontents do I need and what obstacles I need to overcome it would be great...
 

Thanks for your time.
« Last Edit: November 16, 2009, 10:03:15 pm by Wodzu »

alter

  • Full Member
  • ***
  • Posts: 151
    • KSP website
Re: Is FPC mature enough to fulfill my needs?
« Reply #1 on: November 16, 2009, 10:32:19 pm »
With SSL not so sure how Indy or Synapse can handle it however I think that Indy has proper set of classes.
As for Linux distro: http://www.lazarus.freepascal.org/index.php/topic,7831.0.html and a few other topics in this category
As for the rest of questions: yes, it can be done. It doesn't have to be Firebird if you don't like it. Postgres, Firebird, Interbase, Oracle. Search for Zeos on this forum

Gl3nn

  • New Member
  • *
  • Posts: 31
  • My world is only ones and zeroes...
    • My personal hideout
Re: Is FPC mature enough to fulfill my needs?
« Reply #2 on: November 16, 2009, 10:54:52 pm »
Well Lazarus/Free Pascal is more than mature for that task.

Currently i'm coding a client/server application using Lazarus and its works very well.
You can also code daemons (linux equivalent to windows services) with lazarus.
I have chosen MySQL for my project, but i think its a matter of taste and what particular problem you're going to solve.

I can recommend the CodeTyphon project over at www.pilotligic.com. its the latest Lazarus/Free Pascal release with lots of components (Indy and ZeosDB is installed by default) and IDE enhancements installed and for a Delphi pro its quite easy to get started with cross-platform development.
Btw i would go for the Indy components as they're thread-safe and would not create a bottleneck at that point.
For stabillity - it only depends of the quality of your code :)

For distributions i use Ubuntu myself and it works quite good :)

best regards
Glenn

« Last Edit: November 16, 2009, 10:58:09 pm by Funtex »
What's coded today is saved tomorrow.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1891

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Is FPC mature enough to fulfill my needs?
« Reply #4 on: November 16, 2009, 11:14:51 pm »
Thank you guys.

Funtex:

You made a typo in the link :) It should be --> http://www.pilotlogic.com

But I have found it, thanks :)

So firstly I should install Ubuntu and than download the goodies for the site you've mentioned? :)

Would you be so kind to answer few more questions that will arise along my journey to the cross platform development? ;-)

One more thing: Can Ubuntu and Windows Vista live on the same partition?
« Last Edit: November 16, 2009, 11:16:55 pm by Wodzu »

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1891
Re: Is FPC mature enough to fulfill my needs?
« Reply #5 on: November 16, 2009, 11:19:35 pm »
One more thing: Can Ubuntu and Windows Vista live on the same partition?

Afaik no. Unless you use VirtualBox ;-)

Linux has tools to shrink partitions though, to create a new one (or two)
« Last Edit: November 16, 2009, 11:21:14 pm by theo »

tuyen

  • New member
  • *
  • Posts: 9
Re: Is FPC mature enough to fulfill my needs?
« Reply #6 on: November 16, 2009, 11:25:35 pm »
One more thing: Can Ubuntu and Windows Vista live on the same partition?

Why would you want them to?
Those two operating systems have absolutely no business being on the same partition.  Do yourself a very big favor and keep your different operating systems on different partitions.

Gl3nn

  • New Member
  • *
  • Posts: 31
  • My world is only ones and zeroes...
    • My personal hideout
Re: Is FPC mature enough to fulfill my needs?
« Reply #7 on: November 16, 2009, 11:54:05 pm »
Wodzu:

Oh yes, it was a typo :$

As mentioned, its best practice to keep windows and linux on seperate partitions.
Ubuntu can even help you to shrink the partition and correctly setup the new bootloader for you.

When you have downloaded the CodeTyphon archive you also need an updated script as in ubuntu 9.10 some packages has been moved around: http://www.pilotlogic.com/sitejoom/images/fbfiles/files/ln1_Install_SysLibraries_For_Ubuntu_910.zip

Sure, you're welcome to ask as much as you like :)

best regards
Glenn
What's coded today is saved tomorrow.

Blaazen

  • Hero Member
  • *****
  • Posts: 2912
  • POKE 54296,15
    • Eye-Candy Controls
Re: Is FPC mature enough to fulfill my needs?
« Reply #8 on: November 17, 2009, 12:11:09 am »
It is recommended install windows first and then linux. Reason is that linux GRUB is more clever, respect win partitions and also will create nice menu where you can choose what OS you want boot.
Some people have bad experince when they installed linux first, everything was OK and when then installed Windows, linux was lost, because Windows rewrote some boot up header. The reparation is complicated usually from some CD distro like Knoppix.

I believe you will find some HowTo in your languague,
I know some, but in Czech.

B.
Lazarus 2.1.0 r63881 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6605
  • Debugger - SynEdit - and more
    • wiki
Re: Is FPC mature enough to fulfill my needs?
« Reply #9 on: November 17, 2009, 12:33:00 am »
If you want/need to (or more) OS on a single PC, I recommend use VirtualBox (or any other virtual machine).

Saves a loot of trouble:
- no partitons or boot-loaders that could conflict.
- no time lost for countless reboots
- extensible to as many OS as you like (as long as your disk is big enough, but no re-partitioning needed)
- copy and paste between both OS.
- ....

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Is FPC mature enough to fulfill my needs?
« Reply #10 on: November 17, 2009, 08:00:59 am »
Once again, thank you guys  :)

So I guess the right choice for me will be run Ubuntu under VirtualBox.

Funtex:

Thanks for the additional info :)

kees

  • New Member
  • *
  • Posts: 13
Re: Is FPC mature enough to fulfill my needs?
« Reply #11 on: November 17, 2009, 11:57:40 am »
You can also install Ubuntu in Windows with Wubi.
This creates a file in the Windows file system which is the Ubuntu installation.
It also installs an Ubuntu option in the Windows boot_loader, so you can choose at boot time between Windows and Ubuntu.

This is the easiest way to install Ubuntu on a Windows system to test it.
If you want to remove Ubuntu, simply remove the file and the Ubuntu option in c:\boot.ini

Download wubi.exe and the ubuntu ISO in the same directory and start Wubi, you don't even have to burn a CD, but if you already have a CD you can use it as well with Wubi.

Regards,

Kees

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Is FPC mature enough to fulfill my needs?
« Reply #12 on: November 17, 2009, 12:11:25 pm »
Kees thank you very much!

That is an ideal solution for me :)

 

TinyPortal © 2005-2018