Lazarus 4 is the latest version of the all-FOSS but Delphi-compatible IDE for the FreePascal compiler.… The IDE is developed independently from the underlying Pascal language that it's written in, so ...
I've learned all this stuff through first-hand experience.