11 ms·
Lazarus – Professional Free Pascal Rad IDE
- pkphilip 5y agoMy only wish for Lazarus is that it would have been neat if it was possible to write Android and iPhone apps using Lazarus and Freepascal. That would have made it a neat platform to develop tools such as point of sale applications etc. I know there has been some attempts to do this but would appreciate information on whats the status now.
- ARandomerDude 5y agoAn unfortunate name for this software, in light of "the Lazarus Group," a State-sponsored hacking arm of North Korea. https://en.m.wikipedia.org/wiki/Lazarus_Group https://en.m.wikipedia.org/wiki/Lazarus_Group
- djur 5y agoLazarus IDE has been around since 2001, and, y'know, the common source for the name dates back another 2000 years, right?
- progre 5y agoFor those not familiar with the story, Lazarus was a dead guy that got resurected by Jesus of Nasareth in the New Testament. As in, Pascal was all but dead (tha Java hype was happening with full force) and even the Delphi guys put their best efforts into making Delphi a C++ dialect, but this RAD IDE would resurect Pascal.
- clouddrover 5y ago> and even the Delphi guys put their best efforts into making Delphi a C++ dialect In what way is Delphi a C++ dialect?
- petepete 5y agoI don't think that was actually correct, but Borland did release C++Builder in the 90s that looked and felt just like Delphi, other than the language beneath.
- clouddrover 5y agoYes, C++ Builder uses the same IDE and makes use of a lot of the same libraries, but it's still C++ and Delphi is still Object Pascal: https://www.embarcadero.com/products/cbuilder https://www.embarcadero.com/products/cbuilder There's now some Python support too: https://www.embarcadero.com/new-tools/python https://www.embarcadero.com/new-tools/python
- pjmlp 5y agoIt is in the way that Object Pascal grew out of the basic set of extensions added by Apple. From Turbo Pascal 5.5 onwards, the language slowly adopted C++ features, while giving them a Pascal flavour. Class accessors, generics, const variables, construction/destruction, value based OOP, virtual methods are some of those influences. When Borland rebooted the product line into Delphi and C++ Builder, they got symbiotic. In Delphi you can easily use libraries written in C++ Builder, and vice versa, while C++ Builder provides a similar GUI RAD experience.
- johnx123-up 5y agoPlus, unlike Delphi, Lazarus had support for the Linux too. Disclosure: Old Delphi dev
- clouddrover 5y agoToday's Delphi does Windows, macOS, iOS, Android, and Linux: https://www.embarcadero.com/products/delphi https://www.embarcadero.com/products/delphi
- pjmlp 5y agoThen you surely remember Kylix. Modern Delphi does Linux just fine.
- hdjjhhvvhga 5y agoKylix was such a failure! I remember being excited about it and then realized how wrong everything was: starting from licensing to Wine runtime.
- benibela 5y agoUsing Wine sounds perfect Delphi's VCL is tied to much to the Windows API to work without it. Even Lazarus implements a lot of Windows API like functions. E.g. you call one of these functions on Linux and it converts it to a corresponding gtk/qt function call: https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/lcl/include/winapih.inc https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/mai... But it is all less reliable because the Lazarus community is much smaller than the Wine community
- pjmlp 5y agoTurbo Pascal has been inspiring itself with C++ since Turbo Pascal 6.0. Where Turbo Pascal 5.5. was basically the adoption of Object Pascal extensions from Apple. So when Borland rebooted it into Delphi it already had 4 Turbo Pascal releases (5.5, 6.0, 7.0, 1.5 Windows) having such inspiration. Ironically, while everyone is trying to reinvent the wheel how to interop with C++, Delphi and C++ Builder have been doing it for decades, with .NET and Objective-C++ being followers on that front. Best of all, is that it allows for C++ like programming, with security belt on by default, but as usual the industry is full of left turns.
- bytehowl 5y agoThe name doesn't refer to a rise from the death of Pascal but an earlier FOSS Delphi clone. "One of the original projects that made an attempt to build a Delphi clone was Megido. However this effort died. Lazarus as you know was the biblical figure that was raised from the dead by Christ. Soooooo. The project is named Lazarus as it was started/raised from the death of Megido." https://www.lazarus-ide.org/index.php?page=about https://www.lazarus-ide.org/index.php?page=about
- kreelman 5y agoHmmmm, didn't know. But of a shame, but wasn't intentional. Perhaps they should call it Methuselah?
- deleted 5y ago[deleted]
- oofoe 5y agoTo paraphrase from somewhere -- "why should they change their name? It's the other guys that suck."
- wsc981 5y agoOffice Space reference: https://m.youtube.com/watch?v=tyVZFm7P0CQ https://m.youtube.com/watch?v=tyVZFm7P0CQ
- mark_l_watson 5y agoI haven’t used Pascal since the UCSD Pascal, but good memories. I really like seeing old open source projects used and maintained.
- ctoth 5y agoA couple weeks ago I sat down with this and tried to build a simple client for an HTTP API. Three hours later, having read about all sorts of prebuilt proprietary components without being able to try writing any code at all I gave up. Can anyone point me towards a library that will help me make somewhat-complex HTTP Requests on this platform? Something more than GET, that allows me to set headers?
- gfody 5y agohttps://github.com/isemenkov/libpascurl https://github.com/isemenkov/libpascurl
- tomc1985 5y agohttps://wiki.freepascal.org/fphttpclient https://wiki.freepascal.org/fphttpclient isn't good enough? Why do you need a library?
- thijsvandien 5y agoIndy is very popular, especially among Delphi users (shipped with it): https://github.com/IndySockets/Indy https://github.com/IndySockets/Indy.
- edwinyzh 5y agohttps://github.com/synopse/mORMot2 https://github.com/synopse/mORMot2 Very rich and mature feature-set, with active development and active user forums.
- lmz 5y agoIt just seems very odd that (2!) people would recommend an "ORM/SOA framework" when all the poster wanted was an HTTP client library. At least you can link to the HTTP client parts?
- clouddrover 5y agoHere you go: Mormot 1.18 (stable): https://github.com/synopse/mORMot/blob/master/SynCrtSock.pas https://github.com/synopse/mORMot/blob/master/SynCrtSock.pas Mormot 2: https://github.com/synopse/mORMot2/blob/master/src/net/mormot.net.client.pas https://github.com/synopse/mORMot2/blob/master/src/net/mormo... https://synopse.info/files/html/api-1.18/SynCrtSock.html#THTTPCLIENTSOCKET https://synopse.info/files/html/api-1.18/SynCrtSock.html#THT... https://synopse.info/files/html/Synopse%20mORMot%20Framework%20SAD%201.18.html#TITL_135 https://synopse.info/files/html/Synopse%20mORMot%20Framework... They have multiple client implementations. You can pick the one you like (THTTPClientSocket, TWinHTTP, TWinINET, TCurlHTTP, TWinHttpWebSocketClient).
- tomc1985 5y agoSo glad to see this on the front page! I'm no expert, and Pascal is kind of a weird language by modern standards, but Lazarus does cross-platform desktop development using GTK or QT bindings. Electron Devs Hate This App! (ok, maybe not really, but I wish they did!) PeaZip is written in Lazarus (check out https://forum.lazarus.freepascal.org/index.php?topic=52417.0 https://forum.lazarus.freepascal.org/index.php?topic=52417.0), and I've seen a few other odds and ends around the net mention the IDE in passing. Personally I like that it gets and stays out of my way. The UI design copies Visual Basic almost to a T and is a little dated by today's standards, but all the important bits are there.
- webmobdev 5y ago> Lazarus does cross-platform desktop development using GTK or QT bindings Not just GTK (mostly for Linux) or QT (for any) but Win32 (for Windows) and Carbon / Cocoa (for macOS) - so it can produce native GUI. This means smaller codebase and much better user experience.
- andrewshadura 5y agoIf it copies anything, it’s first of all Delphi, around the version 7 :)
- nobleach 5y agoAnd 7 was just "let's try and add some 'web' to Delphi 6". And 6 was "Hey, Kylix is gonna be huge on Linux, so let's try and align Delphi 5"... Still one of my favorite programming experiences in my life.
- tomc1985 5y agoHaving never used Delphi, the parallels to VB were uncanny. So I guess Delphi copied VB
- FpUser 5y agoLOL. Delphi ran circle around VB. It could do what VB did but way better and could also do what MS C++ did. Obviously as you admit you have no real knowledge of the subject.
- adamredwoods 5y agoWindows Mobile 6.5 support. Impressive.
- guessbest 5y agoThat was my favorite version of windows.
- moasda 5y agoHappy to see Lazarus on the front page. I have used it for many years. For me it's still the only IDE with a fast compiler that creates native applications for Linux and Windows (and many other OS). And it doesn't require additional runtime libraries to be installed, so just download and run the application. BTW: I created a Personal Kanban Task Organizer that is automatically built for Linux and Windows. It uses lazbuild in a GitLab CI Docker Container: https://gitlab.com/moasda/task-organizer https://gitlab.com/moasda/task-organizer
- pjmlp 5y agoI am still salty that it took 20 years for .NET to achieve a similar native experience, and lets see if they don't bork it, like the previous features.
- deleted 5y ago[deleted]
- haunter 5y agoThere is also https://www.getlazarus.org/ https://www.getlazarus.org/
- lastdong 5y agoPascal was great! Would love to see a page with currently in production software written in Pascal. Lazarus looks neat, but could a more modern IDE like vs code be used? One thing it always come to mind is how Borland really did their documentation right, with lots of examples. Made it super easy to learn Pascal.
- clouddrover 5y ago> Would love to see a page with currently in production software written in Pascal Here are some lists: https://www.embarcadero.com/case-study https://www.embarcadero.com/case-study https://blogs.embarcadero.com/category/showcase/ https://blogs.embarcadero.com/category/showcase/ https://github.com/Fr0sT-Brutal/awesome-pascal https://github.com/Fr0sT-Brutal/awesome-pascal
- lastdong 5y agoGreat stuff. I’m still so surprised to find Pascal popping up now and then in HN, and actually base for large codebases still in production nowadays.
- andi999 5y agoOriginal standard pascal was shitty. Strings had a strongly typed length, so you couldnt write a function which accepts strings of different length. Also (what I personally really dislike) the syntax doesnt allow you to write your own 'write' function (since lets call it variadic parameters were not allowed). Turbo Pascal was better and Delphi pascal was great.
- pjmlp 5y agoSomething that was already sorted out by USCD and ISO Extended Pascal time, features that were later adopted by Turbo Pascal. VMS Pascal was also quite alright. Also Modula-2, which sorted out all the issues related with original Pascal, was introduced in 1978. So everyone that focused on the original Pascal as reason for not using Pascal, was having a fossilized mindset. I think that biggest culprit for it was the widespread of p2c in UNIX.
- unnouinceput 5y agoI really hope Lazarus will do away with full IDE recompilation and already adopt Delphi's style of pre-compiled objects (aka .DCU's) when adding a new component to palette in it. Until then it still feels like amateur, not "professional". That style is for me personally a source of frustration every time I have to add a new component that shares the same name with an existing one, while in Delphi is just a simple error message and you can quickly switch between whichever you want. Heck, in Delphi I can fully name qualify both of them at the same time for runtime. Try do this in Lazarus with one that uses a design time 3rd party component and you're dead in the water.
- rscho 5y agoBe the change you want to see?
- revanx_ 5y agoThis is because some major refactoring has to happen in RTTI and system units to support dynamic linking so that true delphi-style runtime dynamic packages can be supported. This is easier said then done because of how many platforms are supported by FPC & Lazarus. In contrast, Delphi IDE only runs on windows ...
- unnouinceput 5y ago>In contrast, Delphi IDE only runs on windows ... < And? I don't see that as a minus in a world where virtualization and virtual machines exists. Also in Delphi IDE, in order to target Linux or Android, all you have to do is "select from this drop-down" and rebuild and/or deploy and voila!, you have executables ready to go. You try have a easy switchable Lazarus to compile for a new OS because I gave up. Right now, for each OS I want to target, I have a separate virtual machine with Lazarus installed there. Long live cheap RAM because I can run all 5 Lazarus VM's I need for creating cross-platform executables (Lin/Droid/iOS/MacOS/Win)
- edwinyzh 5y agoLazarus is great! While FPC and Lazarus make it very easy and productive to make cross-platform GUI software, people should know that mORMot (https://github.com/synopse/mORMot2 https://github.com/synopse/mORMot2) makes it very easy to develop cross-platform web apps. mORMot has been around for over a decade, the feature-set is very rich and mature, and the development and user forums are also very active - you can easily confirm that by checking the github repo's commit logs and visiting their forum. mORMot's ORM is quite interesting - it's based on SQLite and supports all other mainstream databases through SQLite's virtual table mechanism.
- xet7 5y agoHow to compile mORMot ? Is there example repo of some Login/CRUD website made with mORMot ?
- beamatronic 5y agoDoes anyone make FAANG money developing desktop apps?
- protomyth 5y agoI understand that there is a company in Redmond WA that does pretty well and the folks who once made printer software.
- birger 5y agoYes. The web is not the holy grail to user applications.
- Qem 5y agoProbably the likes of Autodesk and other expensive, lock-in strong CAD software houses.
- dgoodell 5y agoThe world is going to be a much better place once FAANG is no longer the path to big money and programmers will have to be content with solving real problems for normal amounts of money like the rest of us.
- pjmlp 5y agoNot for consumers, but there are plenty of business applications still being done for desktop, e.g. laboratory automation.
- flipdot 5y agoI don’t know if it’s still the case, but Lazarus used to be a part of the high school IT course in Ukraine. Might be that they’ve already ditched Pascal for Python.
- 74ls00 5y agoUsed to be the same in the UK (was my first language), but now they've revamped computing education up and down the country I'd be very surprised if it's still used anywhere
- digitalsankhara 5y agoI'm a fan of Wirth languages in general and had the pleasure of writing DOS applications in Topspeed Module-2 in the late 90s. I generally find the Pascal/Modula/Oberon languages fit my cognitive abilities well. Perhaps it's because of the need to plan out definition and implementation separately as well as use of units/modules - I don't really know tbh, but it just feels ok to me. I've dipped in and out of FPC/Lazarus over the years, and will give this a re-look, especially now I'm inspired by some of the comments in this post.
- kcartlidge 5y agoUpvoted for TopSpeed Modula-2 under DOS. Amazing for it's day; massively ahead of the competition.
- digitalsankhara 5y agoI found it a very comprehensive dev tool. I still have the manual, having safely survived many moves!
- timbit42 5y agoI've been looking for a copy of Topspeed Modula-2 but could only find Logitech Modula-2 online (yes, that Logitech).
- digitalsankhara 5y agoApologies if this is not allowed on HN, but there is Topspeed Modula-2 at this link. I think it's fully abandoned, but I'm still a bit uncomfortable with the ethics of sites like this. https://vetusware.com/download/Topspeed%20Modula%202%203.10/?id=3783 https://vetusware.com/download/Topspeed%20Modula%202%203.10/... Please - usual security caveats apply of course. I have not installed this myself to check out for malware. It is my intention to try and install it under FreeDOS on an old, air gapped, laptop at some point. Bring back some memories!
- timbit42 5y ago
- ale42 5y agoDoes anybody know an open source platform doing the same in C++ with the same simplicity? I mean an IDE to edit the interface and code. I used both Qt and wxWidgets, but am not very happy with any of them. Qt can do almost everything, but it is incredibly bulky, and QtCreator is not as immediate to use as Lazarus and Delphi. wxWidgets doesn't have a RAD IDE as far as I know.
- pjmlp 5y agoCurrently nothing tops C++ Builder, and I don't see anyone willing to spend such efforts for free. Even Qt/QtCreator, do depend on their commercial customers to keep going. It is incredible that the Lazarus folks are able to still keep the project going, as most people don't care to have nice tooling, rather a couple of free beer plugins for vim/Emacs (and now VSCode).
- janci 5y agoMy pet peeve with Lazarus, Deplhi and other visual RAD tools is lack of reusability and composability. The built-in visual blocks are great, but building your own is nontrivial, you can not build them visually, you must code. To add insult to injury, in Delphi custom components were system-wide, not project scoped and required elaborate installation/registration to show up in the IDE. Also pascal is insanely verbose, i.e. simple list operations (like building list of options for selecbox) span multiple lines of code. I'd like to see a RAD tool with so good component design as Lazarus (the Delphi component model design is great and provides for fast, memory efficie t implementation) with a modern language such as TypeScript. I guess I will need to write my own... once.
- benibela 5y ago>To add insult to injury, in Delphi custom components were system-wide, not project scoped and required elaborate installation/registration to show up in the IDE. It is even worse in Lazarus To install a component, you have to recompile all of Lazarus >Also pascal is insanely verbose, i.e. simple list operations (like building list of options for selecbox) span multiple lines of code. Is one line per element verbose? It is just a function call. You could write an array ['a', 'b', 'c'] like that and iterate over it
- marcodiego 5y agoI'd suggest you take a look at gtk composite widgets. Also, take the care to use it with a modern language. Be warned that there are no good, well maintained, mature RAD IDE right now.
- deleted 5y ago[deleted]
- gtkdev 5y agoI'm developing a desktop GUI app using Gtk4 at the moment, and I quite like it, including the look/feel of it. The "everything is a widget" approach in Gtk4 makes it much easier to create custom widgets than in past versions, and building on Windows was surprisingly simple (with MSYS2). How does Lazarus compare? I get that it's a whole RAD tool, including IDE, but just in terms of functionality, and ease of extending the components if necessary?
- ralphc 5y agoDoes this modernish Pascal have any provisions for OOP or FP?