7

I was using Turbo Pascal for about 20 years, but now I have changed my computer, and I have Windows 7 now. TP does not work under it. What similar language can I use instead of TP, that will require from me to spend minimum possible time studying it.

1
  • there is a language nim (formerly nimrod) which takes a lot from pascal and python syntax. check out at nim-lang.org
    – den.run.ai
    Mar 15, 2015 at 16:46

11 Answers 11

20

There is FreePascal:

http://www.freepascal.org/

It appears to be supported, I'm not sure how different it is to the Borland variant though.

Delphi is another option.

5
  • Differences here: freepascal.org/port.var Sep 28, 2010 at 22:38
  • This guy also had the same problem - the suggestion there is to use Dosbox to run TurboPascal - social.answers.microsoft.com/Forums/en-US/w7programs/thread/… Sep 28, 2010 at 22:40
  • 1
    Freepascal is the same as a language, but the entire OS interfacing will be different. Even on Dos (due to the extender). Still I think this (short of the bigger jump to Delphi) is the only viable choice. Sep 30, 2010 at 19:48
  • No, I don't think it is exactly the same language- take a look at the link. I wasn't suggesting FreePascal on Dosbox, I was suggesting Turbopascal by the way Sep 30, 2010 at 20:13
  • 1
    FPC language is nearly exactly the same. (and most users won't be able to find the differences) It doesn't fully emulate dos and 16-bits though. But setting up and maintaining emulators costs time too, and might become more difficult with 64-bit Windows versions. It might be worth to clean out the dirtiest aspects of TP programming and migrate to FPC or Delphi. Oct 3, 2010 at 17:20
6

If you want to run the 20 year old Turbo Pascal on Win 7, you still can.

Download DosBox, and run TurboPascal in there. http://www.dosbox.com/

2
  • My experience is you can't. Turbo Pascal has a delay loop that's calibrated by timing how long it takes to execute, and on any modern machine the timing comes out at zero, leading to DivideByZero errors from the runtime.
    – Jules
    Apr 29, 2012 at 16:58
  • It appears that there are fixes. But I don't know where to find them: en.wikipedia.org/wiki/…
    – cyco130
    Oct 13, 2013 at 9:12
5

Turbo Pascal evolved into Delphi, which is still used today but might be hard to find.

Your options are probably:

3
  • Thank you! Can I just run my TP programs under GNU or Free Pascal with no amendments in them?
    – Nick
    Sep 30, 2010 at 15:39
  • 1
    @Nick: I can't promise there will be no changes, but as I understand it the languages are largely compatible. There may be minor changes required. (I used TP many years ago, but not since around 1994 so I've never used the newer compilers.) Sep 30, 2010 at 18:36
  • 1
    Delphi can be ordered nearly everywhere where they sell development softawre? It is the second most sold IDE after VS. However there are no free versions anymore, and the entry pricing ($1000 magnitude) is stiff, so I suggest Free Pascal (which is more TP compatible). Forget GNU Pascal, even basic string manipulation doesn't work. Sep 30, 2010 at 19:54
5

FreePascal has a switch for TurboPascal compatibility (so you will have no need to change your programming habbits), and it can generate DOS, WIN32, WIN64 and other executables.

1
  • Thank you! It seems to me that using Free Pascal is a good idea in my case!
    – Nick
    Sep 30, 2010 at 15:40
3

Turbo Pascal to Delphi (~ object oriented Pascal) would seem like the natural choice / progression.

Although a lot of other languages today are relatively easy to pick up as well (Python, Ruby, etc...).

2
  • Thank you! Can I use my old TP programs to run under Delphi with little or now amendments in them?
    – Nick
    Sep 30, 2010 at 15:36
  • 4
    If it is pure calculating pascal code, it will work to a fairly high degree. Howver, if it is full of 16-bittisms and dosisms like most TP code, you can take it nowhere but a dos emulator. So basically the question is if you want total standstill (-> emulator) or modest adaption (going to FPC or Delphi to make real Windows programs). Sep 30, 2010 at 19:50
3

Yes, the natural progression would be to change to Lazarus/Freepascal or Delphi. I strongly agree that you can still run TP if you liked, though.

However, it is a very good opportunity for an update. C# is a programming language that was developed by the creator of Turbo Pascal/Delphi, and indeed it has many features borrowed from Object Pascal.

If you choose C# development of Mono, you can use very modern GUI such as Monodevelop and create multi-platform applications with GTK# without any effort.

http://www.mono-project.com/Main_Page

http://monodevelop.com/

If you don't care about being multiplatform, you prefer to write software only for Windows, then you can choose Visual C# 2010 Express (its free):

http://www.microsoft.com/express/Downloads/#2010-Visual-CS

2
  • Thank you! But programming is not my business, so I prefer the solution, which does not require me to learn new language, and to write all my programs again in new language.
    – Nick
    Sep 30, 2010 at 15:42
  • 1
    Hope you are still switching to FreePascal, at least.
    – Baltasarq
    Sep 30, 2010 at 16:21
0

What kind of software do you expect to be able to write? Is this for professional development, hobby use,...?

If you are writing COTS software for Windows, I'd suggest one of the .NET languages. C# probably has the most publicly available tutorials, free code, controls, and such. Or learn Ruby and separate yourself from the crowd.

2
  • Just simple programs, that work with stock quotes archives, and apply different kind of technical analisys, which is invented by myself and differs from classical approach.
    – Nick
    Sep 28, 2010 at 22:51
  • Then, as others have suggested, probably better to just stick with what you know. If you do switch, I recommend learning the language that is most useful, not the one that is easiest to learn. If the programs are not complex, it will probably be a pretty easy switch to something like C# - but then again, I know it, so of course I think it's easy. ;) Good luck.
    – PatrickV
    Sep 28, 2010 at 23:24
0

Maybe its time to learn C# or something. Its probably going to save you more time in the long run. However you could purchase embarcadero . This is a recent version of the pascal language that supports some more modern features like generics. Old pascal code bases are compatible with it. There's also oxygene which allows you to use all the advantages of .net with pascal like syntax. There is of course also free pascal

0

Well, I learnt PASCAL (Turbo Pascal) during my secondary school just for OI.But I strongly recommend Free Pascal OR Delphi. Reasons: 1.Absolutely support OOP(especially Delphi). 2.Support to compile your code by Turbo Pascal. 3.New functions: (a).Opreator reloading.(like c++) (b).Ansi String.(I think it is very important for NO-ENGLISH countries. (c).IT IS A GOOD BRIGE FOR YOU TO LEARN OTHER OOP Languages like:C++,JAVA,PYTHON. (d).The VLC(like MFC in visual c++) function is very strong,for example:Indy in Delphi(for Net programming); 4.Download Url: http://www.freepascal.org/ http://www.embarcadero.com/cn/products/delphi

-1

Python.

Cross platform, free, open source.

Has PyGTK, Tcl, wxWidgets and many more libraries for GUIs.

An application you write in Python will likely run well on all three main OSes (Windows, Linux, Mac) with little to no changes.

Python's syntax is similar to Pascal's but there are several important differences. For one, you don't define variables, and the types of variables are free to change. And there are no if ... then ... begin ... end statements as indentation is used.

It is also much more forgiving than Pascal syntax and type wise (not that that should be a reason for choosing a language!)

Because it is interpreted it will be slower. That can be a disadvantage for some applications, but it's usually not noticeable.

3
  • It also doesn't create standalone binaries? For small util work that would hurt for me more than a bit of speed. Sep 30, 2010 at 19:51
  • py2exe and various other programs can turn Python scripts into standalone executables. (AFAIK they require a Python dll in the current directory but not Python installed.) They are available for Windows, Linux and I think Macs.
    – Thomas O
    Sep 30, 2010 at 20:38
  • Well - no - Python doesn't create standalone binaries, but there are programs to create them from Python scripts, as I said.
    – Thomas O
    Oct 3, 2010 at 18:15
-1

If you've learned Pascal well, then there are two ways: c++ (programming language that was written on Pascal) and Delphi (the reincarnation of Pascal). C++ looks similar to Pascal, but it is more powerful. Delphi uses VCL (visual components library), so you can create windowed applications very fast.

Good luck.

Not the answer you're looking for? Browse other questions tagged or ask your own question.