2 ms·
Lazarus + FreePascal is an excellent choice if you want to create desktop GUI apps that are: - fast to run (and compile) - native and cross-platform from a si
by open-source-ux 9y ago
Lazarus + FreePascal is an excellent choice if you want to create desktop GUI apps that are:
- fast to run (and compile)
- native and cross-platform from a single code base
- memory-efficient to run (depends on your code of course)
- easy to distribute via a single self-contained exe file with no dependencies
You might think lots of popular languages today can do all the above, but surprisingly there are fewer than you think.
For example, using a dynamic language to create desktop apps will often require gluing together lots of separate libraries and packaging them into a single bundle using another third-party tool. And that's even before you get to speed of execution and responsiveness (yes, performance does matter).
Like other posters have said, Pascal doesn't give you features you won't find in other languages, although if you're coming from a dynamic language, Pascal might make you think a little differently about how you solve problems due to its strong and strict typing features.
- piaste 9y agoHow is FreePascal's interop story? It would be super interesting if you could use Lazarus to build the GUI around a library written in a language with a larger ecosystem and/or with more powerful safety features.
- poizan42 9y agoYou can link to anything with a C ABI just by declaring the functions external[0], there's also tools for automating conversion from C header file declarations[1]. [0]: https://www.freepascal.org/docs-html/prog/progsu147.html https://www.freepascal.org/docs-html/prog/progsu147.html [1]: http://wiki.freepascal.org/Creating_bindings_for_C_libraries http://wiki.freepascal.org/Creating_bindings_for_C_libraries