Welcome Guest.   Make a donation to an author on the site October 01, 2014, 11:34:02 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Free Pascal - Lazarus?  (Read 11060 times)
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« on: February 20, 2010, 09:25:55 PM »

Hi
I am thinking to start GUI programming and I am thinking that maybe Free pascal + Lazarus
might be a decent choice since both are free and open source.
I normall use Python for my needs but gui stuff is tedius with Python. Since I am a hobbiest I do not want to invest great
deal of time to do some decent looking GUIs. I am not comparing both languages at all , I just have different needs sometimes.
I use TKinter here and there for small needs and seems to be ok for my little needs.


What are your suggstions, ideas about Pascal in general and about GI programming?
« Last Edit: February 20, 2010, 09:27:35 PM by kartal » Logged
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 20, 2010, 10:22:08 PM »

I used pascal for years professionally, and for all of my hobby programs, and I can say that I enjoyed the language.  The caveat is, I used Delphi the whole time.  I've done some Lazarus stuff, and it was painful.  Better than Python on the gui stuff, but really painful.  If you want to go the pascal route, I'd really recommend Turbo Delphi at http://www.turboexplorer.com/.  It's free also, so if open source isn't a necessity, it's an alternative.
Logged

kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #2 on: February 20, 2010, 10:33:32 PM »

wraith808

 Thanks for the suggestion but I am not seeing any free version there. They  are trial versions?

I have used Pascal as well but that was 18 years ago smiley It was Turbo Pascal 5.5
Logged
Edvard
Coding Snacks Author
Charter Honorary Member
***
Posts: 2,561



View Profile Give some DonationCredits to this forum member
« Reply #3 on: February 21, 2010, 10:04:19 AM »

In what way is Lazarus painful?
As long as a given IDE has a parser to handle Pascal, perhaps a better one could be found?
How about Bloodshed Dev-Pascal?

Apparently Borland Delphi has changed hands a few times, and now resides with Embarcadero.
It's Windows-only, 32-bit only, so if you want to go cross-platform, you'll have to look elsewhere.

I've kicked around the idea of learning Pascal for a while, but everyone I've talked to about it seems to think it's going the way of the buffalo.
Sure doesn't look that way...
Logged

All children left unattended will be given a mocha and a puppy.
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: February 21, 2010, 11:15:52 AM »

I've kicked around the idea of learning Pascal for a while, but everyone I've talked to about it seems to think it's going the way of the buffalo.
Sure doesn't look that way...
For the sake of perspective: there's still people developing in Visual Basic.

The first programming language I picked up was Borland Turbo Pascal 6.0, and at the time it was great - super fast compiler, could even compile&link directly to RAM (which made test/modify development cycles a lot faster than going to disk - this was before the days of UDMA harddrives). The IDE and help integration of Borland's products were ahead of everyone else. I even got around to play with Delphi after moving to Windows.

But after I went with C++, I haven't really looked back. My original reason for switching was the lack of 32bit compilers, and a growing feeling that it was a language "with training wheels". Also, the code generation of the compilers kinda sucked (haven't looked at recent Pascal compilers, but I'd be surprised if they're up to par with the leading C++ compilers). I fail to see why anybody would pick up Pascal as a new language today, really - C++ or C# for practical stuff, Java as an introductory language.
Logged

- carpe noctem
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: February 21, 2010, 12:59:50 PM »

wraith808

 Thanks for the suggestion but I am not seeing any free version there. They  are trial versions?

I have used Pascal as well but that was 18 years ago smiley It was Turbo Pascal 5.5

Wow... I hadn't downloaded turbo delphi in a while- I didn't realize that embarcadero had discontinued them.  Sorry about that, should have actually checked the links. Sad

In what way is Lazarus painful?

It's just a lot slower than delphi, and the ide is a lot less polished.  Sometimes, events that I have linked up inexplicably lose their connection, and the database bit is definitely difficult to get going.
Logged

MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: February 21, 2010, 01:48:51 PM »

Depending how extensive/sophisticated the GUI needs to be.. you may want to try AutoIt3.  It comes with KODA, which is a drag & drop form tool.  You can tell the guys who wrote it did Delphi as they emulate the form designer.

It doesn't have dozens of component, but it has enough that you can get your basic form with buttons, edit controls, etc.. then add to it in code.

My FolderCache and ReOpen utilities are AutoIt3.

You can see some screen shots here:
http://www.favessoft.com/hotkeys.html

You can compile to exe and even use ActiveX Controls with AutoIt3, but the weakness there is event handling.  Because it's not true compiled code ActiveX events don't trigger as they will in C++ VB or even C#.  But especially for a single form GUI it's not difficult.  The language itself is similar to basic and very easy to pick up.  It is Windows only though.  Most things absent from the language can be accomplished using DllCall to use WinAPI calls directly.

As example, to find out if Glass is enabled on the user's system you can use this function:

[copy or print]
;returns non 0 if Glass is enabled on Vista/W7
Func _GlassEnabled()
$retValue = DllCall("dwmapi.dll", "int", "DwmIsCompositionEnabled", "int*", "")
If @error Then Return 0
Return $retValue[1]
EndFunc   ;==>_GlassEnabled
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #7 on: February 21, 2010, 04:33:13 PM »

@MilesAhead
Thanks for the suggestion. I already use tiny ahk stuff here and there, maybe I can move to Autoit. But for now I am mpre interested in investing my time time into cross platform stuff. I do not think I will ever make big stuff but would be nice to have the options

Python
So far I have looked into Tkinter(is ok), Pygtk(Glade), Wxpython. Pygtk seems fine and Glade is updated regularly. On the otherhand the Wxwidgets and Wxpython seems nice, cross platform and well documented, but all the Gui designers for Wx are old and has not been updated or abandoned. I do not think that I am interested in investing my time on abandoned projects. Although one can definetely write Gui apps without a designer. In Python it is not so hard, it just gets tedious at least based on my experience with Tkinter.


C++
I have looked into Codeblocks+Wx integration.It looks like very viable visual designer and cross platform developement. The thing is that C++ is whole another universe and I am not suire if starting Gui pogramming with C++ is a good idea or not. I am open to ideas in this regard really.


Pascal-Lazarus
Pascal is an old friend to me that was my main reason for bringing it up.
Logged
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: February 21, 2010, 05:18:43 PM »

Pascal-Lazarus
Pascal is an old friend to me that was my main reason for bringing it up.

Don't get me wrong- Lazarus is impressive.  It's just not as good as native Delphi, just like SharpDevelop is not as good as Visual Studio (of course these are my own opinions).  If you want to go the pascal way, Lazarus is a good way to go.
Logged

f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: February 21, 2010, 05:59:04 PM »

The thing is that C++ is whole another universe and I am not suire if starting Gui pogramming with C++ is a good idea or not. I am open to ideas in this regard really.
It isn't. Really. The GUI toolkits are either relatively painful, or are massive frameworks. Seriously, go with Visual Studio and C# unless you really need portability smiley
Logged

- carpe noctem
app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,228



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: February 21, 2010, 06:13:40 PM »

I am not recommending Delphi to anyone any more until they bring back the free turbos. And I am not recommending Lazarus to anyone unless they are already a Delphi developer and they want to develop for Linux and Mac.

I have only tried Lazarus under Ubuntu and not Windows.

It felt like a crude imitation of Delphi, not even up to the level Delphi 6 was, almost 10 years ago.

I am not sure if it has the same issues in Windows, but my word of advice is if you decide to use it (at least in Ubuntu) don't go more than a few minutes without saving your work. It likes to spontaneously combust. One second it's on your screen, then next, poof it's gone, and so is whatever you were working on.

The only reason why I even tried it was because object pascal is the language I feel most comfortable with, and I wanted to develop some cross platform software.

If it were not for that, I probably wouldn't use it again for another 10 years, and hope by then it at least is as good as Delphi 6.

Seriously, go with Visual Studio and C# unless you really need portability smiley

I agree. And if C# isn't your thing for some reason, there is always vb.net.
Logged

wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: February 21, 2010, 07:40:39 PM »

I am not sure if it has the same issues in Windows, but my word of advice is if you decide to use it (at least in Ubuntu) don't go more than a few minutes without saving your work. It likes to spontaneously combust. One second it's on your screen, then next, poof it's gone, and so is whatever you were working on.
It doesn't have this problem on windows, or I wouldn't have even given it the reserved recommendation that I did.  It's just, as app said, crude.
Logged

electronixtar
Member
**
Posts: 141


View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: February 22, 2010, 06:43:54 AM »

I also have some little Delphi apps to modify
Logged

MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: February 22, 2010, 04:55:40 PM »

It's funny.  After reading this thread I started looking around.  You would think you'd be able to pick up like a used Delphi Pro or something cheap. I didn't notice anything like that though.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #14 on: February 22, 2010, 06:45:54 PM »

Btw I have found 2 alternatives for myself(for now) for Python. One is PyGtk+Glade and the other is WxformBuilder. Pygtk+Glade gives back an xml file which is nice so that the Gui file is seperate. Wxformdesigner looks nice and updated regularly some what

http://www.wxformbuilder.org/ (check out forums for the nightly releases)

Here is a nice Pygtk-Glade tutorial
http://www.learningpython...ui-using-pygtk-and-glade/


I am giving a try with Glade for now, see how it goes smiley



Logged
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: February 22, 2010, 09:44:01 PM »

It's funny.  After reading this thread I started looking around.  You would think you'd be able to pick up like a used Delphi Pro or something cheap. I didn't notice anything like that though.


Actually, older version of delphi sell for *more* strangely enough.  I have no idea why that is.
Logged

MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #16 on: February 22, 2010, 10:58:10 PM »

It's funny.  After reading this thread I started looking around.  You would think you'd be able to pick up like a used Delphi Pro or something cheap. I didn't notice anything like that though.


Actually, older version of delphi sell for *more* strangely enough.  I have no idea why that is.

Was Delphi 5 the last to produce VCL stand-alone .exe?  I don't know.  I know it's the last version I bought.  Delphi 5 Pro.  The only reason I don't have it set up anymore is if I install Delphi 5, then I'll feel compelled to put on the Jedi stuff.  Besides, for the stuff I'm doing now AutoIt3 and AHK are simpler and less maintenance.  Small programs seem to compile to around 300 KB no matter which one I use.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: February 22, 2010, 11:42:46 PM »

Was Delphi 5 the last to produce VCL stand-alone .exe?

No, all versions produce VCL stand-alone .exes other than Delphi 8 (which was .net only)
Logged

app103
That scary taskbar girl
Global Moderator
*****
Posts: 5,228



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #18 on: February 22, 2010, 11:54:02 PM »

It's funny.  After reading this thread I started looking around.  You would think you'd be able to pick up like a used Delphi Pro or something cheap. I didn't notice anything like that though.


There is an additional problem with older versions: After the sale to Embarcadero, they pulled all the updates to the older version off the site, and now even registered users can no longer get copies of the updates and bug fixes for them. This took effect August 2009 and affects BDS 2006 and all versions of Delphi v7 and older.

And you can no longer register those versions, too. So there would be no way you could use it unless you had already previously registered it.

I think Embarcadero is trying to force developers to upgrade to a non-Borland release in order to make some money on the whole deal.
« Last Edit: February 22, 2010, 11:55:54 PM by app103 » Logged

wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: February 23, 2010, 08:41:36 AM »

There is an additional problem with older versions: After the sale to Embarcadero, they pulled all the updates to the older version off the site, and now even registered users can no longer get copies of the updates and bug fixes for them. This took effect August 2009 and affects BDS 2006 and all versions of Delphi v7 and older.

And you can no longer register those versions, too. So there would be no way you could use it unless you had already previously registered it.

I think Embarcadero is trying to force developers to upgrade to a non-Borland release in order to make some money on the whole deal.

Are you serious?  That's just totally crazy!  Actually, before D8, you could use your copy indefinitely without registering- that online registration stuff only went live with D8.  

And people wonder why consumers grumble about heavy handed DRM... Sad

I wonder if you contacted them and complained would they let you activate it...?

And the funny thing about this is I was considering buying the Embarcadero release even though I don't use Delphi much- just because it looked like a good environment, and I go back to Delphi every once in a while.  Now?  I don't think so.  When I get my new computer and try to install BDS 2006, I guess I'll see...
« Last Edit: February 23, 2010, 08:43:13 AM by wraith808 » Logged

MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #20 on: February 23, 2010, 03:38:36 PM »

afa the update, yes there were definitely some fixes to Delphi 5 Pro you needed to install.  I used to keep the update files.  If you need them and can't find them online anymore I suggest investigating the Jedi stuff.  The last time I installed the JVCL installer that put on the whole package for D5 had an option to install the fix package, believe it or not.  It all goes on seamlessly, if you can still get those JVCL installers. I think for D5 you need to use the installer that's a couple of versions back from the latest.

Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Ath
Supporting Member
**
Posts: 2,223



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #21 on: February 26, 2010, 04:17:23 PM »

Hm, I'd wait another 6 weeks or so (April 12 is the planned release date...), and get the VS2010 C# Express edition (but the RC I have installed in a VM is much, much better than the beta 2 of a few months ago). Looks like VS is nearly up to par with Eclipse for an IDE (I still like Eclipse better, and it's always improving Wink) but VS2010 Express has big potential, and the price is right cheesy
Logged

kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #22 on: February 26, 2010, 04:25:54 PM »

VS always installs butt load of stuff on my computer, I can almost call it bloatware.
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #23 on: February 26, 2010, 05:49:28 PM »

VS always installs butt load of stuff on my computer, I can almost call it bloatware.
It's a pretty big and fully-featured IDE - wouldn't call it bloatware, though. Don't install functionality you don't need smiley
Logged

- carpe noctem
wraith808
Supporting Member
**
Posts: 6,340



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #24 on: February 26, 2010, 10:00:54 PM »

VS always installs butt load of stuff on my computer, I can almost call it bloatware.
It's a pretty big and fully-featured IDE - wouldn't call it bloatware, though. Don't install functionality you don't need smiley

Custom install is your friend smiley
Logged

Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.054s | Server load: 0.03 ]