Skip to main content

Object Pascal – 26 Things You Didn’t Know About Neeraj Mishra The Crazy Programmer

Nearly all software developers of a certain generation learned to program with a version of the Pascal programming language. Niklaus Wirth designed the Pascal language with the intention of encouraging good programming practices using structured programming and data structuring. This made it perfect for teaching programming. Pascal has come a long way since it was first introduced in 1970, later evolving into Object Pascal, in much the same way and about the same time that C evolved into C++.

In celebration of the 26th Birthday of Delphi, the most popular evolution of Object Pascal, here are 26 things you didn’t know about Object Pascal. Or do you?

Niklaus Wirth

  1. Object Pascal has many modern implementations. A few of the modern implementations of Object Pascal include Delphi, Free Pascal, Oxygene, Smart Mobile Studio, and DelphiWebScript. All with regular updates and many new features from the original Object Pascal.
  2. Object Pascal is a multi-paradigm programming language supporting procedural, object-oriented, generic, imperative, event-driven, functional (partial), and structural programming.
  3. Delphi, the most popular evolution of Object Pascal, was introduced in 1995, the same year as Java, JavaScript, Ruby, and 4 years after Python.
  4. Object Pascal provides memory safety without the overhead of garbage collection, with optional reference counting. It also permits raw pointer functions and manual memory management, bypassing all abstractions.
  5. Object Pascal includes numerous concurrency features for asynchronous programming, such as thread pools, tasks, futures, and background threads.
  6. Object Pascal is self-extensible. It doesn’t require another language to add libraries, components, or interfaces. Delphi is written in Delphi, as are most other implementations. 
  7. Delphi combines native compilation to machine code with rich reflective functionality via Enhanced Run-Time Type Information (RTTI). 
  8. Object Pascal allows for object inheritance, polymorphism, interfaces, generics, closures, and dependency injection.
  9. Object Pascal has a strongly typed foundation, with support for variants, type inference, and duck typing.
  10. Embarcadero’s Delphi compiles modern Object Pascal to native 64-bit x86 for Windows, Linux, and Mac OS, with native 64-bit ARM support for Android and iOS.
  11. The RemObjects’ Oxygene compiler for Object Pascal adds targets .NET, WebAssembly, Cocoa, and Java.
  12. Free Pascal adds additional compiler platform targets like PowerPC64 and FreeBSD.
  13. Smart Mobile Studio and Free Pascal also transpile Object Pascal to JavaScript.
  14. The vast component library and property, method, event system made Delphi the first “Low Code” solution, while also giving you the freedom to write as much code as you want (see #6: Self-Extensible).
  15. Object Pascal is ahead of the curve: Object Pascal inspired many features of other languages such as C# and Java.
  16. Anders Hejlsberg, the architect of Turbo Pascal and Delphi, went on to architect C# and TypeScript, receiving the 2001 Dr. Dobb’s Excellence in Programming Award.
  17. PascalCoin is a cryptocurrency implemented in Object Pascal.
  18. Delphi supports building decentralized applications that interact with smart contracts on the Ethereum Blockchain.
  19. HeidiSQL is a very popular, open-source, database management client written in Delphi. Many other database management systems are written in Delphi thanks to its included database functionality.
  20. A 2017 research paper testing the energy efficiency of programming languages found Free Pascal to be the most memory-efficient programming language, and in the top tier for energy and performance.
  21. While Delphi continues to evolve, it is also committed to backward compatibility. Many 26-year-old programs can be recompiled with very few changes to gain access to new functionality and platforms.
  22. Object Pascal uses the source: The latest version of Delphi ships with 2637 source files, and 1258 sample files, for a total of 2,678,978 lines of Object Pascal source code.
  23. There is a component for that: Combining the shipping source with Delphi’s robust component model helps fuel the vibrant community of commercial and open-source components and libraries.
  24. Delphi supported building native apps for the Microsoft Store before Visual Studio.
  25. The best-known application written in Delphi was the user interface for the original Skype for Windows client. That technology was used when Microsoft acquired Skype for $8.5 billion USD — that is, they bought a Delphi application for that amount. Microsoft kept using Delphi for the Windows client until recently (for better or worse).
  26. There are multiple Delphi applications exceeding 10 million lines of Object Pascal source code that build to a single executable file, most with little to no dependencies. These compiled Delphi applications allow “xcopy” installation: no need for .NET runtime, JVM, language compiler or tools, runtime DLL, or any other file is required on the target platform. Your executable file is all you need. Delphi also allows for dynamic linking if that is your preference. 

Note: Unless otherwise specified, these facts are true at least for Embarcadero’s Delphi, and may vary for other Object Pascal implementations. There is such a huge variety in Object Pascal usage it is hard to make a single blanket statement that applies to all of them.

How many of these facts did you know? Have you kept up with Object Pascal as well as it’s kept up with the ever-changing demands of software developers like yourself? Not to worry if you’ve fallen behind; even if you are new to Object Pascal, it is surprisingly easy to learn and get up to speed as a productive programmer. Here is a list of free resources to get you started.

  • Free Delphi Community Edition – The IDE Runs on Windows but allows you to cross-compile to many other platforms
  • Free Pascal and the Lazarus IDE – Open source and runs on most platforms, even Raspberry Pi.
  • Trial of Oxygene – Part of the Elements family of languages, it runs in Visual Studio on Windows or its own Fire IDE on macOS
  • Smart Mobile Studio – The command-line compiler is free, or you can download the IDE Trial, and start transpiling Object Pascal to JavaScript.

The post Object Pascal – 26 Things You Didn’t Know About appeared first on The Crazy Programmer.



from The Crazy Programmer https://ift.tt/3bwjiZy

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20