How is Lazarus' progress comparing to Delphi? lazarus / 8-Other ---------------------------------------------------------------------- Langecrew · 2006-12-11 15:05 Hi all! About a year ago, I heard someone refer to Lazarus as being on-par with the level of Delphi 5...or somewhere in that ballpark.  I am curious what comparison could be made now? basically, I have to use Delphi 2006 at work.  I HATE IT.  it is easily the buggiest software I have ever used in my entire life.  I'm actually kind-of surprised they can still get away with selling it. Unfortunately, the ideas were good, so I went looking for Delphi alternatives.  I downloaded Lazarus about a year ago to show to my coworkers, but at that time it just couldn't do what we needed.  I also seem to remember something about having to re-compile the entire IDE whenever I want to install a new component.  Is that true? I'm curious, how far away from the level of Delphi 6 are we?  and to that end, is it yet possible to install a component without re- compiling the IDE? Thanks, -Langecrew- ---------------------------------------------------------------------- Vincent Snijders · 2006-12-11 15:31 I don't know Delphi 6 and what has changed since Delphi 5, so I cannot comment on that part. I guess you can best test that for yourself, knowing these products better. You still need to recompile the IDE to install a new component. FPC still doesn't support packages and although on the roadmap, it is not planned for the next release. (Kind of like native win64 for Delphi :-) ). ---------------------------------------------------------------------- Langecrew · 2006-12-11 19:39 works for me...Thanks! -Langecrew- ---------------------------------------------------------------------- Phil · 2006-12-13 21:55 Quote from: "Langecrew"basically, I have to use Delphi 2006 at work.  I HATE IT.  it is easily the buggiest software I have ever used in my entire life.  I'm actually kind-of surprised they can still get away with selling it. "Basically" I couldn't let these statements go unchallenged. You don't mention any specifics, so could you please point out one or two actual problems with Delphi 2006 (Win32)? I've used the free Turbo Explorer for Delphi Win32 and it's rock solid and moved 200,000 lines of my code from Delphi 7 without requiring a single change. If you're using Delphi 2006 .NET that's N/A since Free Pascal is not a .NET language. Coming from Delphi, here are some things missing in Laz/FPC that could be challenging, particularly if you want to maintain your code in Delphi and use Lazarus to create OS X and Linux versions: (1) No COM/Automation. This is commonly used to manipulate Word, Excel, OpenOffice, etc. remotely. (2) No TRichEdit. (3) No equivalent to Delphi's wsdlimp.exe. To use a Web service from within your Delphi program all you need to do is download the Web service's .wsdl file, run wsdlimp against it to create your Delphi classes, and start programming. It takes about 2 minutes to get started. There is a way to call Web services with Free Pascal, but it's very complicated. (4) XML classes incompatible with Delphi's. (5) No TChart. If you're serious about cross-platform development it is possible to work around these things, but be prepared to put in some effort. ---------------------------------------------------------------------- theo · 2006-12-13 22:44 I think the comparison is just not possible. Lazarus is cross platform and will never be as good as Delphi for (on) Windows (only). These are different design goals and you can't compare them. The question wether Lazarus or Delphi is better is obsolete. If you need (VCL/LCL) crossplatform, there is only Lazarus (since Kylix is dead), if you need Windows specific features there's only Delphi. ---------------------------------------------------------------------- felipemdc · 2006-12-14 02:37 Quote from: "theo"if you need Windows specific features there's only Delphi. Not really. For a subset of all things possible to be programmer on Windows there is only Delphi for Object Pascal language. There are lot´s of Windows specific things Free Pascal is capable of. Anyway, the original poster talked about hating Delphi. Hate is a feeling. I don´t think that logical argumentation of the features supported by both tools really fit´s in the paradigm of feelings =) ---------------------------------------------------------------------- Phil · 2006-12-14 03:07 Quote from: "theo"These are different design goals and you can't compare them. Why limit your vision? Except for COM, there's nothing Windows- specific about the other items on my list. It just means there's still work to do. The Web Service Toolkit is a great start, but if you've seen how simple it is to access Web services in a Delphi app... well, you would naturally want that in Free Pascal too. ---------------------------------------------------------------------- chrnobel · 2006-12-14 10:42 Quote from: "Phil" (3) No equivalent to Delphi's wsdlimp.exe. To use a Web service from within your Delphi program all you need to do is download the Web service's .wsdl file, run wsdlimp against it to create your Delphi classes, and start programming. It takes about 2 minutes to get started. There is a way to call Web services with Free Pascal, but it's very complicated. I have been working with PSP/PWU for a while now, and I would not exactly use the phrase complicated, actually more the opposite! And one really cool thing about PSP is that the webserver is an Apache, not MS IIS. /Christian ---------------------------------------------------------------------- Phil · 2006-12-14 14:08 Quote from: "chrnobel"Quote from: "Phil"I have been working with PSP/PWU for a while now, and I would not exactly use the phrase complicated, actually more the opposite! We may be talking about different things. I'm talking about: http://wiki.lazarus.freepascal.org/Web_Service_Toolkit Maybe you could write up something about PSP/PWU for the rest of us. I'm not familiar with it at all. Thanks. ---------------------------------------------------------------------- marmin · 2006-12-17 09:44 The, why not make Lazarus semi-crosplatform, by that I mean a Lazarus- win, a Lazarus-Mac and a Lazarus-Linux. A bit like Delphi and Kylix. They all share the same pascal code but are tweaked for optimum performance on these systems. Linux-data not needed for win, and vice versa. ---------------------------------------------------------------------- Vincent Snijders · 2006-12-17 09:55 I fear that lazarus Mac will be abandonned ((like Kylix) first and the Lazarus-win32 second, because of a lack of developers for those platforms, if they get too much separated. ---------------------------------------------------------------------- marmin · 2006-12-17 11:54 That's true. But i'm asking myself how it comes that there are so few developers in comparison with other projects like Ubuntu. Is it purely a financial question? And so why not raise a donation system (there's even a poll from a year back that support it).  It may be that few people know they can be a developer of lazarus, may be a banner should be placed on top: Developers needed! ---------------------------------------------------------------------- felipemdc · 2006-12-17 12:09 Quote from: "marmin"The, why not make Lazarus semi-crosplatform, by that I mean a Lazarus-win, a Lazarus-Mac and a Lazarus-Linux. A bit like Delphi and Kylix. But Lazarus is good exactly because it´s crossplatform =) Also you don´t need to split the project to optimize a interface. Look how Gtk 1 and win32 interfaces are optimized. Further, I think this is one of the reasons why Kylix didn´t survive. Also there is no data from other platforms added. There is only abstraction. ---------------------------------------------------------------------- felipemdc · 2006-12-17 12:23 Quote from: "marmin"That's true. But i'm asking myself how it comes that there are so few developers in comparison with other projects like Ubuntu. You can´t really compare Lazarus to Ubuntu, they are *very* different ... better compare Lazarus to wxWidgets. Quote Is it purely a financial question? No, but now that you mentioned, Ubuntu is banked by a diamonds billionaire from south africa. Further I think Lazarus is doing great. There is a steady increase of both users and community patches. Quote And so why not raise a donation system (there's even a poll from a year back that support it). We do have the bounties. ---------------------------------------------------------------------- Vincent Snijders · 2006-12-17 12:25 Quote from: "marmin"That's true. But i'm asking myself how it comes that there are so few developers in comparison with other projects like Ubuntu. Is it purely a financial question? I don't know either. I think financials is one point. There is no millionaire paying lazarus developers (yet ;-) ). Another point is number of users. Maybe Ubuntu has 100 or 1000 times as many users, no wonder they can attract more developers too. QuoteAnd so why not raise a donation system (there's even a poll from a year back that support it). I think the outcome was that it would not be worth the trouble (setting up a foundation for a couple of thousands of dollars, at most). Of course people can sponsor features with the Lazarus bounties. Quote It may be that few people know they can be a developer of lazarus, may be a banner should be placed on top: Developers needed! Or put a message in the about screen of Lazarus. Wait, that is there already a couple of years. ---------------------------------------------------------------------- jrmarino · 2006-12-17 15:09 Sekel, Ubuntu is supported by Mark Shuttleworth.  He earned his original fortune founding Thawte for digital signatures, which he then sold to verisign.  Not all rich guys from South Africa are heirs to diamond cartels.  He may only be merely a multi-millionaire (not billionaire) for that matter. http://en.wikipedia.org/wiki/Mark_Shuttleworth ---------------------------------------------------------------------- Phil · 2006-12-18 22:26 Quote from: "Vincent"Of course people can sponsor features with the Lazarus bounties. What kind of bounty do you think it would take to get the Carbon widgetset jump started? So much per widget? With maybe a bonus if they finish a given number of the core widgets? Of course, probably no bounty that we come up with would be proper compensation for the amount of work it would take, but it would have symbolic (and maybe motivational) value. Currently I believe there are only a few widgets working with the Carbon widgetset: TForm, TEdit, TButton, TCheckBox. It would be nice if it were on a par with the Qt widgeset, which now has over 2 dozen widgets working! For anybody interested in working on the Carbon widgetset, here's a useful document which describes some of the decisions necessary. It's about the GTK native port to OS X "Quartz" but many of the same implementation decisions about fonts, menus, etc. would probably apply to the Carbon widgetset as well. http://developer.imendio.com/files/developer/Porting-Gtk-MacOSX.pdf Thanks. ---------------------------------------------------------------------- Langecrew · 2006-12-19 21:59 Yo, Phil!  Thanks for your input, it was very valuable to me.  sorry I've been absent from the forum here...I didn't think anybody else would post here. About Delphi 2006 though: OH, LET ME COUNT THE WAYS... I really, honestly do think that D2006 should have never been pressed onto CD images.  But, to that note, I am basically 100% convinced that Borland has released a bad build of Delphi, no matter if they knew it or not.  I say that simply based on the fact that just as many people seem to share my pain, as there are people that have no idea what I'm talking about.  I do realize that Delphi is the King of RAD (sort-of) and I really do like a number of the features included...which is why I keep checking up on the state of Lazarus, because it's so similar.  If you really want to know why I hate Delphi, please read on. I know you probably don't want to read a novel, so I'll just do my personal favorites...As I go down this list, I would like for you to imagine that what I describe are DAILY, often HOURLY occurrences: For starters, I remember one time when Delphi catastrophically crashed, losing (thank GOD) ONLY about 20 minutes worth of work.  The error I got was "Out Of System Resources."  This happened because I was trying to load an ICO file into my project.  AN ICON???  keep in mind that my computer was manufactured after April 2006.  So, on a brand new computer, you are telling me that I don't have the resources to load one simple icon...I don't think so... Another instance:  I go to the object inspector and double click on the "OnClick" event for a button so as to generate the "OnClick" skeleton code.  I was met with the error:  "Property and method FormCreate are not compatable"  Well, I'm sure they're not, but I was trying to create an OnClick. Once, while I was typing code into the code editor, completely and totally out of the blue, and error dialog popped up that said only (and I quote) "Catastrophic Failure"...The dialog didn't even have an "OK" button.  Whatever melee I caused by simply typing was enough to cause the IDE to be unusable until restart. Actually, that las one goes a little deeper:  The message "Catastrophic Failure" happens often enough that I can't even keep track of all the things that cause it. While I'm on it, let's talk about these error messages.  Two things: "Abstract Error" and "Probably Internal Bug".  OK, I'm rather crass and judgemental at times, but I'd better not be alone when I say that I think these two error messages are blatantly idiotic.  "Probably Internal Bug"?????  I question if the developer really even had the slightest clue.  Would you put such an error in your software?  I wouldn't be caught dead.  Error messages like that make me think that Borland either couldn't fix the bug, whatever it was, or that they didn't even try to fix it.  I can't decide which is worse. Several times, (granted, with D2005) several times I was greeted with an access violation simply because I clicked on a blank area of the screen within the IDE. Here is another of my all-time-favs:  Imagine that you open Delphi, and open your project and hit the "Run" button without even glancing at your code...execution stops before it even starts, and you notice that there is a breakpoint that "Magically" appeared in your code.  "Wait, I didn't create any breakpoints...why is this one here"  Is what I said. Oh, this one was great:  Delphi 2005 AND 2006 both are responsible for re-arranging my forms.  Lets say you have a form of size (X,Y) and a button with size (A,B).  Now let's say you save the project and close Delphi, re-open it, and re-open your project.  Now, suddenly and magically, your form is of size (X + 20, Y + 20) and the button is now of size (A - 10, B - 10).  Wouldn't that suck?  Well, let me tell you, it does.  With one project, it got so bad that I had to hard-code the size and position of almost 100 components on one of my forms. Before, it has happened that my program threw an error, and I hit the "Break" button instead of "Continue".  I got an error that said that some wierd "Internal Assertion Failed".  I clicked "OK" to get rid of the dialog, and another popped up instantly...this continued in a loop until the screen was full of error dialogs and Delphi had to be "Killed" using TaskManager because I couldn't even see the IDE anymore to close it! I noticed once that, when I had the TaskManager open, Delphi seems to need over 60% of my system resources to simply scroll source code along with mouse wheel signals.  I thought that scrolling text was hammered out in the 60's or the 70's, but it looks like I'm wrong again.  Also, the CPU usage commonly jumps to 30 or 40% just while simply typing! And Last (for now) but not least:  D2006 crashes, non- catastrophically, 100% of the time I run a project after initially opening the IDE.  When I say 100%, that's not an exaggeration.  I really don't like how the "Messages" window pops up after each program execution, it gets in the way and often doesn't really tell me much.  So, I decided to use the Docking properties of the IDE to move "Messages" to a different tabsheet.  BAD IDEA.  Now, the "Messages" window is in the same tabsheet as the Tool Palette.  So now, if I save a project, close Delphi, re-open Delphi, re-open my project, and hit the run button, Delphi 2006 WILL crash...everytime.  I get an error that says there is an error in some BDPConnections.xml document...then I get another message that says "Object reference not set to instance of an object", and then BOTH the "Stop" and "Run" buttons will be active.  Can't even use the IDE until I hit the "Stop" button.  Then everything is fine. Dude, Phil, I'm really sorry if I seem angry or hostile.  NONE of it is directed to you at all.  It's just what has happened to my brain after fighting against all these DAILY errors, trying desperately to kick out quality software.  I'm really, honestly serious when I say that these are daily occurrences at the office.  It's not me either...the experience of the programmer across the hall (our ONLY other programmer) mirrors my experience.  Re-installed Delphi at least 5 times by now...no change.  The hotfixes made it faster, but not more stable. I can even (theoretically) back up my claims.  I say "Theoretically" simply because I only have screen shots of these errors.  Screen shots can be doctored in many ways, so to look at them you'd really just have to take what I say at face value anyway...but the screen shots exist if you really want to see them.  Once again, I am 100% convinced that there are bad builds of Delphi out there.  Some people have these issues, some don't.  Phil, if you have never had these problems, or if you can actually put up with ANY of them...then know that I envy you. Crimony, I did write a novel.  I'm sorry.  But I suppose your question made it imperitive that you understand that my hatred of Delphi is an ernest hatred. Thanks for the understang ear, have a Great day  :-) -Langecrew- ---------------------------------------------------------------------- Vincent Snijders · 2006-12-19 22:32 WOW, what a read. ---------------------------------------------------------------------- MarcP · 2006-12-20 10:12 I use Delphi 2006 (Win32, not .Net), with tons of third party components and never get so much problems. Ok, i agree that the IDE uses tons of memory. But i didn't have tons and tons of bugs as you seems to have ! I think i had a crash very two or three month, and hard to know if it's windows, delphi or the tons of software in background But i agree that Delphi IDE lacks on some points : - Code folding is really not efficient (unfold too often) - The '(' highlighting is one of the worse i've ever seen in an IDE, and there is none for the begin/end blocks. - The component filter is really bad too (and a search unflod folded tabs and did not close them after) ---------------------------------------------------------------------- jrmarino · 2006-12-20 11:11 Langecrew, have you used Turbo Delphi yet?  I'm wondering if it suffers the same sort of things.  I'd like to transition off of D7 for license reasons, but it would be nice to know that Turbo Delphi is a stable "good" build. ---------------------------------------------------------------------- Langecrew · 2006-12-20 13:46 You know, I have used Turbo Delphi. To be quite honest, I liked it a lot.  But this only comes from very limited experience.  From what I've seen, while it is kind-of on the buggy side, it's noticably better than D2006 and DEFINITELY more stable than 2005.  It seems like it is basically just a memory fix of 2006, because it's much faster. I don't know though...at my company, we started using some new components after we upgraded to 2005.  unfortunately, these components are not compatable with earlier versions of Delphi...I think...we can't switch back because of the guy across the hall...you'll have to ask him.  If the components were compatable, we've agreed that we'd rather revert to D6.  Yup, that's right, we've had such bad experience with Delphi2005 and 2006 that we'd rather revert 4 major versions. Oh well.  Turbo Delphi is not so bad.  We're thinking of trying that next. MarcP...You don't have problems with Delphi?  I envy you...you don't know how lucky you are, trust me. Have a great day! -Langecrew- ---------------------------------------------------------------------- Phil · 2006-12-20 14:30 Quote from: "jrmarino"it would be nice to know that Turbo Delphi is a stable "good" build. I just ordered two copies of Turbo Delphi 2006 Professional yesterday. Borland is running a nice offer right now for upgrading from the free Turbo Explorer at a reduced price. ---------------------------------------------------------------------- Langecrew · 2006-12-20 17:47 Yes, they are running a nice deal.  We're thinking of doing that here at work too. ---------------------------------------------------------------------- MarcP · 2006-12-20 18:01 No, i run Delphi on a Athlon Xp 3200+, 2GB RAM, and Laptop (Xp Home, 1GB RAM, AMD Turion 2400+). There is no big difference in speed, but on big software it's better with 2GB. If you have 512MB of RAM, it could explain some problems. Also, i only install the Win32, when i installed with .net and win32 it was really more slower. ---------------------------------------------------------------------- bee · 2006-12-21 12:04 I've been playing around with Turbo Delphi Explorer (TDE) for Win32 for a few months, and found it pretty fast and stable. But, I doubt I will purchase Turbo Delphi Pro since I have all my needs fulfilled by TDE. And I agree with Langecrew, BDS 2005 is totally SUCKS! BDS 2006 is A LITTLE BIT better, but still SUCKS! Don't blame me if I got traumatic experiences using BDS 2005 and 2006. Now, I'm pretty satisfied using TDE and Lazarus 9.20. ---------------------------------------------------------------------- Danail · 2006-12-22 15:38 Both Lazarus and Delphy have pros and cons and it epends what you are going to use them for. I use Lazarus because it is absolutely legally free for all sort of programing including comercial. Lazarus also comes with its code so if you don't like something or you want to see how something is being made you can see it. Both Lazarus and Delphy deal very nice with many tasks - if you believe the forums for Delphy. The "bad" things of the Lazarus project is mainly the icons problem - you can't actually change the icon of your software made with Lazarus - at least with the versions that I use . ---------------------------------------------------------------------- felipemdc · 2006-12-22 15:57 > you can't actually change the icon of your software made with Lazarus - at least with the versions that I use Of course you can. You just can´t use the IDE to do it. Append your own .RES resource file and do it by code. if you need an example download the magnifier: http://sourceforge.net/projects/magnifier ---------------------------------------------------------------------- Almindor · 2006-12-23 20:35 The main problem isn't money, but manpower and time. The best way to help lazarus/fpc is to actually start working on it. And the first person who starts to whine about lack of skill here get's a kick! There's no such thing as lack of skill, there's only lack of motivation. ---------------------------------------------------------------------- Danail · 2006-12-24 19:24 So Lazarus can change the icon Cool Well... in that case I don't know how to improve Lazarus more. I am new, but I can't see in Delphy something that Lazarus don't have ) ---------------------------------------------------------------------- Danail · 2006-12-24 19:43 I downloaded the magnifier and its source. However I didn't manage to understand how it has an icon If I have to make my own resource file, then how and what with to make it? Will please some one who knows that explain me step by step how to place an icon. Thanks in regards. ---------------------------------------------------------------------- felipemdc · 2006-12-24 20:42 Simple, it includes a resource (*.RES) file. Look at the code, you will find a {$R magnifier.res} There is also a magnifier.rc which is the source file for the .res file. There are 2 batch scripts. One will use windres GNU tool that comes with Lazarus to compile magnifier.rc into magnifier.res The other uses a tool that comes with Delphi. One of the icons included by magnifier.rc is the main program icon. ---------------------------------------------------------------------- Danail · 2006-12-24 21:31 OK thanks sekel and Mery Chrystmas and Hapy New Year If I can't go again in the forum until the end of the celebrations.