4 ms·
In my experience (talking FreePascal/Lazarus here, as I'm on Linux most of the time), the library situation is not that bad, actually. The standard lib has most
by samuell 9y ago
In my experience (talking FreePascal/Lazarus here, as I'm on Linux most of the time), the library situation is not that bad, actually. The standard lib has most of the mundane stuff, and a little github-searching can often find a working version of more specific stuff (like SSH2 which I needed recently).
To the contrary, in some areas (like GUI tooling) it is far far beyond newer alternatives like Go.
Also, I think the higher level of the language than C/C++ etc can make it easier to develop your own solution, should you have to.
- s_kilk 9y agoThat's cool, this thread has definitely piqued my interest in Pascal!
- oneweekwonder 9y agoWe needed a app for branding. That login to a website. So it needed to do a POST request. I struggled with fp and google for 30 min, and dropped to the `RunCommand('curl',['https://ifconfig.co' https://ifconfig.co'],s, opt)` clutch with curl.exe(with licence file) bundled into my innosetup file... magic?!
- badsectoracula 9y agoFYI Free Pascal (and by extension, Lazarus) comes with fcl-web which contains, among others, an HTTP client. See: http://wiki.lazarus.freepascal.org/fphttpclient http://wiki.lazarus.freepascal.org/fphttpclient
- oneweekwonder 9y agoThanks this is the kind of info I needed. Only had a day in laz land and time was running out for my product. So had to cut corners. #TODO
- conductor 9y agolibcurl (with examples) is bundled in the FreePascal distribution, as well as simpler alternatives like fphttp, fphttpclient, fphttpwebclient, etc.
- oneweekwonder 9y agoThanks will look into it. It is hard to get the boss to allow you to write a mvp in non mainstream language. So I had a quick swing at the libs and wondered about so/dll dependancies compiled against my exe; and just went for a bundled exe, yum and apt curl install script... under a day native win and ubuntu support?!:D I'm sure there is a TODO tag above my command for the junior that is going to hate me because he now needs to code in lazarus... ;)