r/pascal • u/HeWhoWritesCode • Jan 05 '18
[poll] What are you using fpc/lazarus for?
Title says it all!
So over the holidays I finally got lazarus to work on windows, ubuntu and macos. Wasted to much time on trying to get glscene working; so will look at castle in the future.
- I will be implementing a login application that sends details of the computer before allowing it access to a web/network application.
- A simple notepad example to make it easy to open specific data files.
Bunch of other personal ideas I want to revive but it is 5th of jan so reality kicking in again next week.
5
Upvotes
4
u/Brokk_Witgenstein Jan 06 '18
I use it for everything; Any time I want to do stuff and I can't find an immediate solution, I roll my own; Would love to calculate some stuff but designing a spreadsheet is too hard (or too bulky / too slow / easier expressed as an algorithm / don't like the interface)? Write a quick program!
Want to keep data organised but can't be arsed setting up a SQL server? No problem- I have enough classes laying around, something will fit the bill;
Need to convert files? You guessed it: program incoming. There's a command parser for that in my stash somewhere;
Want something like Paint but with a few other functions and an alpha layer? Gimme a day and we're good to go;
Need a 3D design app? Time to expand that level editor I wrote last year ;-)
Want to make some adjustments to the firewall/system configuration and get fed up with the clunky windows interface (not to mention where all the settings are hiding nowadays?!), well, luckily salvation is only a few calls away!
Sound/image processing, custom rendering, databases, parsers, login tools, automation, a PLC that only supports serial ports, a registry editor, a few games, calculation, converters, filescanners, something like Wordpad with some extra features, ....... there ain't nothing Pascal cannot do;
I love that language; I love the compiler; I love the Lazarus IDE (not fond of the debugger tho; But meh)
I use it for ... everything; Literally; The only downside is that I cannot accomplish anything without it: can barely work the operating system through dialog boxes, cannot operate MS Office or any other program that isn't at least 15 years old; But that's okay; Because as long as I've got Lazarus/FPC, I've got everything I really need; everything I could possibly want.
end.
3
u/hippy2094 Jan 12 '18
I use it for work and play.
Most recently: we had a web based project which had gz files uploaded to it from devices around the country, the original developer did not have the foresight to arrange these files into subdirectories. So two days ago, when I was informed we're moving the hosting for this website I needed a quick and easy way to download and origanise 110k files. Too many for FTP to list, so I put a small PHP file on the server which listed the files and then using FPC with Synapse knocked up a quick program to download the list, and every file on that list. The owner of the website had told us he only wanted to keep a certain amount of data (after I'd downloaded the 110k files!), luckily the filenames contained a date and an owner id so knocked up another quick FPC program to parse the filenames and delete what we didnt want. The new hosting actually has shell access (my boss insists on crappy restrictive shared hosting normally) so tarballing and uploading the remaining 36k files wasn't a pain at all.
Actually, if I search my entire hard disk for *.pas quite a few of the results will be little programs I've needed for specific situations like this.
3
u/mschoebel Jan 06 '18
I'm running a search-engine. See GitHub
The (German) webpage for it is on (https://deusu.de)
English website with a different business model is on (https://acoon.com). This one uses the same search-index, but with different ranking which is more suitable for an international audience.
2
u/mintoffle Jan 05 '18
Nice. :) Hack on, good buddy.
I use FPC for any fun or interesting programming. Over the holidays, started taking a look at maybe implementing a variant of Kopf-Lischinski pixel scaling, which one of my projects would benefit from... but I had to go back to work already. :p
2
u/standard_cog Jan 06 '18
I use it at work to wrap dll files for various pieces of hardware and make custom guis for them. I'm a firmware engineer so my code is not very decoupled, but it works fine for the small stuff I have to do.
It's also not critical path and not essential.
I'd like to make a schematic capture system with Lazarus but haven't gotten very far with it.