Your opinions on Lazarus / Free Pascal lazarus / 3-General ---------------------------------------------------------------------- thomasaaron · 2008-07-09 20:47 Hello, all. I'm new here. I just downloaded Lazarus / Free Pascal, and I like what I see. I'm already an accomplished programmer with Python and Java. However, I'm liking Lazarus / Free Pascal's ability to write once & compile anywhere. So, I'm thinking pretty hard about using it for an application I'm planning. It will be a fairly complex database front end. Before I make the leap, though, I'd like to get some input on a couple things. 1. Is Lazarus / Free Pascal alive and vital? From what I can tell, it looks like there are a small number of people putting fairly consistent work into it, and forum posts seem a little slow and sparse compared to some other forums I'm used to working with. What can you tell me about the state of Laz/Pascal, it's community, etc? Is it here for the long haul, or is it on the way out? 2. Realisticallly speaking, how much trouble is it to get GUIs to be cross-platform with macs? (I'm working on a Linux box, but I must be able to port to macs without it being an utter nightmare.) I've seen the posts on the wiki about this, but I'd like to get current thoughts on it. 3. What are the greatest remaining weaknesses with Laz/Pascal? Where might I hit walls in designing applications with embedded databases and cross-platform GUIs? Thank you in advance for your time. Best, Tom ---------------------------------------------------------------------- Vincent Snijders · 2008-07-10 10:10 I think it is here for the long haul. It is now more than 9 years old and still gaining in popularity. ---------------------------------------------------------------------- WibblyTim · 2008-07-10 12:13 Don't know about Macs, I develop for Windows and Linux. The biggest differences between the GUI's seems to be widget placement. There are subtle differences between the two. I have found it to be a simple matter to rearrange the layout and after that the app compiles without any problems on either Windows or Linux using exactly the same code. I came from a Delphi background and yes, there is a learning curve involved, but in my opinion it is worth it simply for the freedom to use the cross platform abilities within FPC/Lazarus. I had hoped that Kylix would do the job but Borland just seemed to lose interest. Shame. ---------------------------------------------------------------------- bee · 2008-07-11 06:11 > I just downloaded Lazarus / Free Pascal, and I like what I see. I'm already an accomplished programmer with Python and Java. However, I'm liking Lazarus / Free Pascal's ability to write once & compile anywhere. So, I'm thinking pretty hard about using it for an application I'm planning. It will be a fairly complex database front end. It's interesting to know that a Python/Java programmer could be interested to Pascal. Python and Java is already cross platform, though slightly different with pascal as it goes with write once and run everywhere. Can you share with us, what are the main reasons why you're interested in FPC/Laz since Python and Java is able to do the job? > 1. Is Lazarus / Free Pascal alive and vital? From what I can tell, it looks like there are a small number of people putting fairly consistent work into it, and forum posts seem a little slow and sparse compared to some other forums I'm used to working with. What can you tell me about the state of Laz/Pascal, it's community, etc? Is it here for the long haul, or is it on the way out? FPC/Laz is alive and will always be. I've been following this project for more than 2 years and it shows very wonderful progress. However, Pascal both as language and community is niche. > 2. Realisticallly speaking, how much trouble is it to get GUIs to be cross-platform with macs? (I'm working on a Linux box, but I must be able to port to macs without it being an utter nightmare.) I've seen the posts on the wiki about this, but I'd like to get current thoughts on it. I'm using FPC/Laz on Mac x86 and Linux on daily basis. Sorry, I got no windows machine. I'm using Carbon widgetset on Mac (Cocoa is on the way) and gtk2 on Linux. Both widgetsets are fairly stable and very usable. As long as you keep working on RTL and LCL level, there's almost no differences between the two widgetsets. Sometimes you got a little bit "incompatibility" here and there, but this can be solved easily using IFDEFs and you should report the problem to mantis. FPC/Laz does "write once and compile everywhere" very well. > 3. What are the greatest remaining weaknesses with Laz/Pascal? Where might I hit walls in designing applications with embedded databases and cross-platform GUIs? So far, I see Laz's db-aware components are not quite ready for production. But since I don't need db-aware components because I use my own database-cache classes and display the data on standard controls (no db-aware), it's no problem at all to me. Anyway, it becomes more no problem as I gradually converting my dektop apps to web based apps. Yes, still using pascal (FPC/Laz). HTH. -Bee- ---------------------------------------------------------------------- thomasaaron · 2008-07-11 13:40 The reason I'm looking into Laz/FPC, even though Python and Java are both cross-platform is this... Java requires my end users to download the JVM. You and I know that this is easy and no big deal, but I find that a lot of my user base sees this as an inconvenience and some are even scared by it. Go figure. Same with Python -- you've got to have it installed on your system. I like that FPC can be compiled for the platforms I'm working with and can be packaged and installed without having to deal with Python or Java installations and versioning. ---------------------------------------------------------------------- bee · 2008-07-11 16:00 > Java requires my end users to download the JVM. You and I know that this is easy and no big deal, but I find that a lot of my user base sees this as an inconvenience and some are even scared by it. Go figure. Python might has the case, since most common users don't know about it or even ever heard of it. But Java? Hmmm... then how Java can become the mainstream now? Do their users feel the requirement to install JVM inconvenience? It's even installed on common cell phones nowadays. Most common users, usually know about it and could accept if some applications require it. > I like that FPC can be compiled for the platforms I'm working with and can be packaged and installed without having to deal with Python or Java installations and versioning. Cross platform programming doesn't only face installation and versioning problems. There are more, e.g. OS versions incompatibility (kernel, libraries, etc), architectures differences (x86, ppc, sparc, etc), widgetsets behavior (gdi, gdi+, gtk1, gtk2, carbon, cocoa, etc). Every language that has cross platform ability would face those same problems. In non native cross platform programming, such as Java, most of those problems are hided by the VM. But in native cross platform programming, you must face them directly. For some developers, those problems are scarier because harder to solve than just Java installation and versioning problems. I hope you could understand those problems at the first place and be ready to fight against it. I'm afraid you just too excited after you discovered FPC/Laz but not really understood the real problems with native cross platform programming. I'm assuming this because you came from Python and Java background. I don't want you to get disappointed (then blaming FPC/Laz for it) and end up rewriting the whole application using Python/Java. I'm not trying to scare you or suggesting you to back to Python/Java. I just want to make sure you would choose a right decision for you. If you do sure to use FPC/Laz and ready to go with it... then welcome to the jungle, dude! ---------------------------------------------------------------------- theo · 2008-07-11 23:40 I agree with what you say bee, mainly not to dissapoint the op. But it might sound a bit too negative for Lazarus. I've been thinking long about it: I've found nothing like the perfect solution for cross-platform GUI development. You can go with Java, .Net, Mono but it may not be the right solution for every case. When it comes to Lazarus, I think it's a remarkable attempt to reach a goal, namely hiding all platform/widgetset differences behind the LCL, which will probably never be fully possible (even in theory). Otoh, I don't know any better and easier solution for cross-platform development. It's in it's nature that e.g. Windows/Delphi people ask for TRichEdit, TWebbrowser or better OLE, Activex blah support and KDE people ask for Kparts etc. These items are not portable and you have to live with it. There's always the "Lowest Common Denominator" that Lazarus can cover. The gaps could be and are filled with native solutions. Lazarus is not perfect yet, but what is better? ---------------------------------------------------------------------- bee · 2008-07-12 10:21 > I agree with what you say bee, mainly not to dissapoint the op. But it might sound a bit too negative for Lazarus. That's what I was afraid of. You know that I'm also a happy user of FPC/Laz so I got no intention whatsoever to discourage new comers. I just want him to know the risks and consequences of using FPC/Laz for native cross platform programming. > It's in it's nature that e.g. Windows/Delphi people ask for TRichEdit, TWebbrowser or better OLE, Activex blah support and KDE people ask for Kparts etc. These items are not portable and you have to live with it. These are good example of the case. Specially developers that came from managed language e.g. Java, Python, etc, usually would ask about garbage collector. Most developers that don't understand it usually would make black campaign against FPC/Laz, whether on blog, forum, list, etc. That's what I want to prevent. > Lazarus is not perfect yet, but what is better? For general cross platform solution, I agree with you. But particularly on Object Pascal, FPC/Laz is simply the best! ---------------------------------------------------------------------- thomasaaron · 2008-07-12 14:07 Well, this is indeed the kind of discussion I was hoping to see. Very informative. I'll definitely be taking all of these things into account before making a decision. Um, what was that about garbage collection? Java and Python handle garbage collection automatically. FPascal does too, right? ---------------------------------------------------------------------- theo · 2008-07-12 15:55 Quote from: "thomasaaron"Java and Python handle garbage collection automatically. FPascal does too, right? Please read here about Delphi, it's the same for Freepascal. http://en.wikipedia.org/wiki/Reference_counting#Delphi ---------------------------------------------------------------------- thomasaaron · 2008-07-12 23:57 OK, thanks. That's good to know. Since I don't have to deal with garbage collection in Java and Python, I would have assumed that Pascal would be the same. I do use a fair number of user-defined types, so that probably would've bitten me. ---------------------------------------------------------------------- theo · 2008-07-13 11:29 Quote from: "thomasaaron"and forum posts seem a little slow and sparse compared to some other forums I'm used to working with. There is not only this Forum. There are mailing lists (see Archives): http://www.mail-archive.com/lazarus@lazarus.freepascal.org/ http://www.mail-archive.com/fpc-devel@lists.freepascal.org/ and more, IRC and several forums in other languages: German: http://www.lazarusforum.de/ French: http://lazforum-fr.tuxfamily.org/ Portuguese: http://www.lazarusbrasil.org/index.php                   http://lazaruspascal.codigolivre.org.br/portal.php Russian: http://freepascal.ru/ and probably more. The bugtracker: http://bugs.freepascal.org/view_all_bug_page.php etc. ---------------------------------------------------------------------- tech-pro · 2008-07-17 12:04 Perhaps there would be more activity in the forum of there was a section for using/programming in Lazarus. Reading the descriptions for the different forum topics, it seems that they are really meant for problems/questions with installing the Lazarus IDE, or for problems/questions to do with LCL. People do ask general programming questions here, but it is not nearly so busy as the Borland Delphi newsgroups, and I suspect that we are supposed to use the Free Pascal lists for topics that are not specificaly Lazarus related. I hate the software the Free Pascal site uses, and would much rather be able to discuss general development issues here, which might then give the impression of a livelier community. ---------------------------------------------------------------------- Troodon · 2008-07-29 15:42 Lazarus/FPC are absolutelly great!! Documentation is a bit scarce, so some previous experience with Delphi/OOPascal helps, but I can't complain. Keep up the good work! And yes, a section for programming discussions only, as suggested above by tech-pro, would be welcome. This software is so great that I can't help wondering: if Embarcadero hired the main Lazarus/FPC developers, what would happen to this open- source project? ---------------------------------------------------------------------- piper62 · 2008-07-29 17:42 I can recommend the combination of FPC/Lazarus also for larger projects. We develop mainly applications which use complex database backends. As an addition to FPC/Lazarus we have ZEOS as the database abstraction layer. After a LOT of projects with different development systems I can say that we are VERY satisfied with FPC/Lazarus and ZEOS. This is really platform independent Rapid Application Development ! The situation with the documentation becomes better more and more. In Germany we expect within the next weeks two new books about FPC and Lazarus. But I don't know if they plan to publish them also in English?... And I know that there's work in progress regarding a book about database programming with FPC/Lazarus and ZEOS. And this will be in English primary. ---------------------------------------------------------------------- felipemdc · 2008-07-30 02:39 The Toolbox magazine (in german) has a lot of articles about FPC/Lazarus: http://www.toolbox-mag.de/ ---------------------------------------------------------------------- normanp · 2008-09-06 07:49 I have used Delphi and C++Builder for years as a teacher and would like to try Lazarus with my students. At first sight it looks great but I have an immediate problem: for every LCL component I must have a list of properties and methods with at least brief descriptions and examples whever possible (see the excellent Delphi help - press f1 and you get the right help page). Is it not possible for every LCL component developer to create a help page every time? I teach my students that documentation is essential so that you or other developers can perform maintenance, upgrades etc... Maybe the LCL is fully documented somewhere but I can't find it! Ok I can look at Delphi documentation but lots of the components in Lazarus are not in my Delphi - besides I would like to eliminate Delphi if Lazarus were up to it. It looks fantastic and is a huge achievement - I'd love to use this for my students. ---------------------------------------------------------------------- bee · 2008-09-06 08:09 @normanp: Maybe it's a good time to teach your student about how to involve in open source project and become the part of the community. Unlike if they're using a closed and commercial product which they would receive a professional document and support, it's not the case when they're using an open source project that build by the community, especially if the project sets the focus more on technical things (new features, bug fixing, stabilizing, etc) as Lazarus. Since Lazarus and Delphi share many things in common, your students may start the contribution to this project by studying Delphi documentation first. As soon as they understand them, they can help to complete documentation of this project. This way, those students don't only learn how to use a product, but also how to participate in a project, especially in an open source project. A few years since now, this project would have more supports from students like them. It's good for them and this project as well. What do you think? ---------------------------------------------------------------------- normanp · 2008-09-06 09:01 Hi Bee - thanks for the quick reply. My students are still school students 16-18 yrs old and are complete beginners in programming. Certainly some of them after a while could contribute but the majority probably wouldn't be capable at this level. It looks as if Lazarus would be great for console programming for these beginners, and in fact there wouldn't be a problem over standard components - buttons, list boxes etc where I am very familiar from Delphi. Of course students like to be entertained too - and this is where the more exotic components can be fun and keep them interested - and it is these components that need the documentation (for example TIpHtmlPanel which I cannot make function!). We also like to get students creating DB front ends. Here I would need very thorough documentation for TMySQL50Connection and query components. Obviously someone could contribute documentation - but wouldn't the developer be the best person? (I have just found this http://wiki.lazarus.freepascal.org/MySQLDatabases  - looks like a good start) BTW I think school teachers can contribute in a little way by expanding the user base of Lazarus. ---------------------------------------------------------------------- Phil · 2008-09-06 15:34 Quote from: "normanp"for every LCL component I must have a list of properties and methods with at least brief descriptions and examples whever possible (see the excellent Delphi help - press f1 and you get the right help page). Is it not possible for every LCL component developer to create a help page every time? There is on-line documentation, although not as easy to use as the Delphi (or most program) help: http://lazarus-ccr.sourceforge.net/docs/lcl/ Say somebody has a question about a TLabel property. Now they would need to know that it's in the StdCtrls unit, but once there click Classes link at the top of the page and then TLabel in the list of StdCtrls classes. This brings up a list of all TLabel properties and a brief description. Clicking the property gives more detail. Not sure if this is available in other languages, though, maybe just English. Thanks. -Phil ---------------------------------------------------------------------- felipemdc · 2008-09-06 17:47 If you select an element or even put your cursor in a class name or similar and press F1 it will open a browser in the adequate documentation page. It is possible to download the docs and configure Lazarus to use the local docs instead of the online ones. A lot of the documentation however is skeletons. But, as mentioned, we accept contributions. The documentation is only available in english. If you would like it to be available in another language, please contribute. http://wiki.lazarus.freepascal.org/LCL_Documentation_Roadmap ---------------------------------------------------------------------- Phil · 2008-09-06 21:19 Quote from: "sekel"If you select an element or even put your cursor in a class name or similar and press F1 it will open a browser in the adequate documentation page. Does that work with all widgetsets? I can't seem to figure out how to do that with the Carbon IDE on OS X. And looking through the key mappings I don't see any offhand for help. Thanks. -Phil ---------------------------------------------------------------------- Tombo · 2008-09-08 12:34 Yes. It is under Help menu commands / context sensitive help. It set to Help key under Carbon, because Cmd+? is not supported properly yet. ---------------------------------------------------------------------- normanp · 2008-09-08 16:18 Thanks Phil - I hadn't worked out how to click through like that. I have started one class using Lazarus today - it went well - and will do the same for another tomorrow. A colleague will use it with a couple of classes too. Lazarus is a breath of fresh air and I hope will be widely adopted. The MySQL support is great - I just need to get up to speed with the 'exotic' components. Once comfortable with it I will try to contribute to the Wiki - maybe a 'Quick start for teachers' of some sort which includes random access files and Db stuff - the things needed for many school student projects?