COBOL vs FPC lazarus / 8-Other ---------------------------------------------------------------------- janvb · 2014-08-24 12:49 Why is Object Pascal dying? Is it actually dying? COBOL was in 2000 responsible for 80% of the world's business system and in 2007 it still had 65% of the marked. More recent numbers show a slow decrease in usage. To understand this you need to realise that COBOL is used in systems with a very long life-span and that the cost of migrating those are hirendous. I see some companies still advertising for Delphi resources due to the same reasons. In the freelancer marked you get hired on the day if you have COBOL skills since COBOL developers are becoming extinct. Many COBOL users did in early years migrate, or become out-competed by more effective PC alternatives driven by early 4GL languages, Delphi, VB or similar. The introduction of Java and internet changed this. It allowed COBOL users to continue maintaining their back-end while providing internet/intranet front-end's through Java. Java fastly became the main path forward for a slowly dying COBOL world attracting the worlds largest user base. Delphi was very attractive as a PC/desk-top alternative, but like VB,  C++/MFC and many others it failed to compete with Java on web applications. Microsoft, being a major player on desc-top marked recognized this threat as people would not need Windows any more. They created .NET with C# to compete and force users to stay on Windows. They also provided VB.NET to preserve their existing VB users and C# is basically a hybrid between Java and Delphi created to attract both user bases. They even fuled Mono to make sure C# became a standard as you need multiple vendors for this. A waste majority of C# applications are ASP (Internet/Intranet). C/C++ usage has not really changed over the years. The language did for some time attract even banking users, but that was lost to Java and C#. The banking industry around London is still a heavy C++ user. C/C++ is dominating on embedded systems, real-time systems and performance hungry systems. It is also heavily used inside both COBOL, Java and C# since neither of the languages are suitable for what C/C++ is very good at. In 2014 C is yet again the #1 language on Tiobe as even Java seem to have stalled it's expansion due to html5. So where does this leave Object Pascal? We need to recognize that Delphi is still an attractive alternative for desk-top development and enabling a free, open source version with multi-platform support will attract many. But, it will need more, far more to become a real player again! The next generation language/IDE will need to address new technology and concepts rather than getting stuck in what once was! - The internet of things exist. It must be easy to create stunning internet applications. - The desc-top marked will not go away - not all applications will be happy on the net. - Networks exist - we create distributed systems consisting of many applications that work together these days. - Databases exist and language integration to a db has not really evolved that much since COBOL. - Multiple cores exist. A single EXE file will only use a single core, we need to address multiple cores and parallelism. - A modern language must be generic, sexy and stream-lined because developers care about more than productivity. - A modern system run on several computers with 1 to numerous cores. Modules are written in many languages. And keep in mind that schools are often the key - a free system that is attractive for school usage will over time fuel usage. I believe it can be done, and I am impressed over what you already have achieved in here, so keep up the good work! ---------------------------------------------------------------------- marcov · 2014-08-24 14:51 It is not dying, but it did collapse a bit, and has degraded from Tier 1 in the nineties to Tier 2 nowadays. Personally I think that it is mainly that no major vendor of OSes (read:Microsoft) or databases (read: Oracle) chose the language. Embarcadero, as Borland before them is only a two bit player, and its tool business must survive on the revenue of the tools business alone. For Microsoft and Oracle the tool division is also to get developers to develop for their other products. I do think C usage collapsed for normal application development, and it mostly retracted to the embedded and unix/Linux niches.  C++ took over, and is simply the only true multivendor language. It is an exception. Java is widely supported, but it is only one vendor that owns it. As for Object Pascal, personally I think that first one must forget about competing with the likes of VS, Java and whatever. Even for Delphi that is becoming a stretch, let alone for Lazarus/FPC. Then, the strong points are (compare to other free suites) IMHO integration (IDE, designer etc)  first class windows support (not based on *nix emulations) native apps without runtime dependencies and general good deployability A large set of components and other source from Delphi if you need something not provided directly by the Lazarus/FPC (and -CCR) projects I don't think it is wise to go on a wild goose chase to attract new users. Before such changes pay off, the choices you make now are already old. Specially hype things like internet of things. (I'm not saying the internet of things will necessarily amount to nothing, but there is a big chance that the technology choices you make now are not the ones that will eventually dominate) ---------------------------------------------------------------------- janvb · 2014-08-24 18:59 These old things are more exiting these days than ever since we seem to be watching a new episode in "battle of the OS" on the mobile marked between Microsoft and Google. Android is a funny thing - I bought a MK808 from China for ca 30.- USD some time ago to use as a media computer. I basically have everything I needed for a PC except screen, keyboard and mouse. What I miss is a proper development tool like lazarus/FCP that could be used on Android directly. Android is a bit too complicated to develope for in my opinion and that will not be to their advantage in the long run. C++/Qt has become available on Android, C# have been some time and I am happy to see lazarus/FPC on this arena. I have 3 Android computers - 2 tablets so I actually plan testing this out. I will not rule out that Lazarus might be very attractive on this platform. ---------------------------------------------------------------------- jmpessoa · 2014-08-24 19:38 Well, here is my "Lazarus For Android" trial/experimental project: https://github.com/jmpessoa/lazandroidmodulewizard http://forum.lazarus.freepascal.org/index.php/topic,21919.135.html Greetings! ---------------------------------------------------------------------- User137 · 2014-08-24 22:49 Quote from: janvb on August 24, 2014, 02:49:14 pm- Multiple cores exist. A single EXE file will only use a single core, we need to address multiple cores and parallelism. - A modern system run on several computers with 1 to numerous cores. Modules are written in many languages. Single software only ever runs on single computer at the time, as far as i know even for supercomputers. They communicate where necessary using various ways. I'm not sure what you refer to, but object pascal has always supported multithreading on several cpu cores. I might add, compared to many other languages it is really easy. Personally i've never seen cobol code nor really heard of it at all, and i started learning programming since 1989 or so. ---------------------------------------------------------------------- Laksen · 2014-08-25 06:42 QuoteTo use several cores you need the later and in C++/FPC you need to start several EXE filesThis is incorrect. I'm not sure where you got that from. If you start 4 threads in a pascal program on a computer with 4 cores you will waste all processor time on all cores in the system. This is the same in just about any language. .Net does not do anything special in this regard, other than waste cycles on a lot of other things simultaneously ---------------------------------------------------------------------- janvb · 2014-08-25 08:45 Quote from: User137 on August 25, 2014, 12:49:23 amPersonally i've never seen cobol code nor really heard of it at all, and i started learning programming since 1989 or so. I have only briefly programmed in it myself. The syntax was intenden to be verbouse so users could read it and it had the database integrated - it became dominating in business in 60's, 70's and did continued to increase in usage until ca 2000. These numbers stun me, but do a search on web and you will find them. My reference to "COBOL" is more to the huge marked segment it held! ---------------------------------------------------------------------- janvb · 2014-08-25 10:08 Quote from: Laksen on August 25, 2014, 08:42:25 amQuoteTo use several cores you need the later and in C++/FPC you need to start several EXE filesThis is incorrect. I'm not sure where you got that from. If you start 4 threads in a pascal program on a computer with 4 cores you will waste all processor time on all cores in the system. This is the same in just about any language. .Net does not do anything special in this regard, other than waste cycles on a lot of other things simultaneously That depends on what OS you use. I must admit that I might have overseen that the changes are in Windows, not in .NET - some time since I wrote native applications on Windows - have to use .NJET these days. ---------------------------------------------------------------------- marcov · 2014-08-25 10:09 Quote from: janvb on August 24, 2014, 08:59:48 pmWhat I miss is a proper development tool like lazarus/FCP that could be used on Android directly. Android is a bit too complicated to develope for in my opinion and that will not be to their advantage in the long run. The question is also if there really is an incentive for e.g. Google to make programming easier for Android. Systematic progress in that area must come from Google. (e..g stabilization of APIs etc) QuoteC++/Qt has become available on Android, C# have been some time and I am happy to see lazarus/FPC on this arena. I have 3 Android computers - 2 tablets so I actually plan testing this out. I will not rule out that Lazarus might be very attractive on this platform. It could be. But currently Android is a versioned mess. ---------------------------------------------------------------------- marcov · 2014-08-25 10:11 Quote from: janvb on August 25, 2014, 12:08:46 pmThat depends on what OS you use. I must admit that I might have overseen that the changes are in Windows, not in .NET - some time since I wrote native applications on Windows - have to use .NJET these days. Threading worked fine in Windows 95.  Though it is considerably more optimal in NT (2000,XP,Vista etc) based variants. (and for any form of SMP you need NT based versions). Similarly in Linux. Threading worked but was a suboptimal till 2.2/2.4 versions. (and with FreeBSD that shift is between 4 and 5) After that it is plain sailing. All of those versions are older than .NET ;-) ---------------------------------------------------------------------- janvb · 2014-08-25 11:51 Quote from: marcov on August 25, 2014, 12:11:38 pmThreading worked fine in Windows 95.  Though it is considerably more optimal in NT (2000,XP,Vista etc) based variants. (and for any form of SMP you need NT based versions). Similarly in Linux. Threading worked but was a suboptimal till 2.2/2.4 versions. (and with FreeBSD that shift is between 4 and 5) After that it is plain sailing. All of those versions are older than .NET ;-) Threading yes, but threading over multiple cores from a single process (read EXE file) did not work on XP - at least not in my test. Vista and later 7 have changed this I am told - me need to test ---------------------------------------------------------------------- marcov · 2014-08-25 12:40 Quote from: janvb on August 25, 2014, 01:51:14 pmThreading yes, but threading over multiple cores from a single process (read EXE file) did not work on XP Yes it does. I've ran production for years on it.  And WINNT and WIN2000 also (though that were not strictly multicore but SMP multiprocessor configurations) Win9x never supported SMP in any form. ---------------------------------------------------------------------- mirce.vladimirov · 2014-08-25 13:35 COBOL vs FPC ?  Are you joking ? I was COBOL programer until few years a go and I dont regret i abandoned my old COBOL applications. Thats right, I have rewriten from zero all my old applications in FPC/Lazarus and I dont regret it. We're sill in transition from old apps to new ones, In the begining it was a lot of pain (i mean a lot!), now it still is painfull but much less then the begining. And I dont regret. First of all COBOL developing tools costs too much, in 2002 my company payed for AcuCobol compiler and 20 concurent runtime licences nearly 3000 Euro ,   no GUI, no RAD, no IDE, no SQL !! FPC/Lazarus has all that, I develop waaay faster and its all for free (thank you guys). Second, you cant hire since there are very small number of COBOL programers left in the world. The few remaining active COBOL programers are old, so it's very easy to predict where the path of COBOL is going. I decided to use FPC  because for me Pascal was easier to learn then C/C++ and Java. C# was not in my interest because there was no multi- platform support for it, I love the posibility to choose things, it makes me feel comfortable when I am sure that there are alternatives.  C# doesnot offer that, works only under Windows. Also, FPC and Delphi both provide binaries that dont depend on other software while C# always complains about version of .Net libraries. Shortly, my advice : People, dont use COBOL. Use anything else that costs less and is widely used. Anything else. ---------------------------------------------------------------------- janvb · 2014-08-25 13:57 Quote from: mirce.vladimirov on August 25, 2014, 03:35:26 pmCOBOL vs FPC ?  Are you joking ? Yes - the title itself was a joke , but the content is serious as I am questioning where FPC is heading. ---------------------------------------------------------------------- eny · 2014-08-25 15:33 Quote from: janvb on August 25, 2014, 03:57:35 pmQuote from: mirce.vladimirov on August 25, 2014, 03:35:26 pmCOBOL vs FPC ?  Are you joking ? Yes - the title was a joke We're going absolutely nowhere with this thread.. really really fast... ---------------------------------------------------------------------- janvb · 2014-08-25 16:19 Quote from: marcov on August 25, 2014, 02:40:48 pmYes it does. I've ran production for years on it. Your right - I just re-tested on both Windows 7 and Windows XP - all CPU's fill up nicely. The app I did back in 2010 includes something else that I had forgotten + text on web indicate that XP had problems with multi-core - but this works smoothly. Regardless - my point is that I would like to address distributed systems where the system can scale up on threads, processes and various computers. I know this can be done in FPC and C++ stand-alone, but I also know it is a bit of work involved to get there. ---------------------------------------------------------------------- Leledumbo · 2014-08-25 17:19 Quote from: janvb on August 25, 2014, 03:57:35 pmQuote from: mirce.vladimirov on August 25, 2014, 03:35:26 pmCOBOL vs FPC ?  Are you joking ? Yes - the title itself was a joke , but the content is serious as I am questioning where FPC is heading. You can use the search feature of the forum. You're not the first person to ask for FPC/Lazarus future. Many have done so, some stayed, some left. The traces are still here. ---------------------------------------------------------------------- marcov · 2014-08-25 20:03 Quote from: janvb on August 25, 2014, 06:19:43 pmRegardless - my point is that I would like to address distributed systems where the system can scale up on threads, processes and various computers. I know this can be done in FPC and C++ stand-alone, but I also know it is a bit of work involved to get there. I think that is a matter of libraries, not language.