Replacement for Turbo Pascal (3.0) - windows-7

I have a family member who is dearly attached to this antiquated pascal implementation by Borland.
He recently purchased a new laptop with windows 7 (64 bit), and I was able to help him get his old Turbo Pascal environment up through DOSBox, but this is less than ideal. It's slow, and a bit esoteric.
He does recognize that this environment is a thing of the past, but he's comfortable with it and doesn't want to change.

Try FreePascal.... Works fine for me ;]
Mike.

You could also look at Free Pascal which is Turbo Pascal compatible, free and even has a selection of IDEs available for it, Lazarus (no relation) being one.

http://en.wikipedia.org/wiki/Embarcadero_Delphi
http://www.embarcadero.com/products/delphi

Related

Pascal integer to string conversion

Is there a built in function that converts integers to strings in Free Pascal, as in returns a string object of the integer input? I've scowered the Google and the docs for 2 hours now and have found nothing but false hope and disappointment. Using Lazarus 1.4.4 on Windows 10.
Also, why is pascal so complex/aggravating? There are tons of versions, IDEs, application support vs not application support, and the docs are mediocre at best (at least for Free Pascal, although Delphi's doesn't look too good at a glance either). It's so all over the place, it's like a giant tangled pair of earbuds.
Thank you!
As said there is inttostr, which is Delphi's way of doing it. The classic Pascal solution is str. Both work in FPC and Delphi, though inttostr might require a object oriented (Delphi alike) mode in FPC.
A string is not an object btw, but a first class native type.
Basically Lazarus/FPC and Delphi are the only really active native Pascal products. Typically the two last versions of Lazarus are in active use (1.4.4 and rc's for the upcoming 1.6). Some older versions are still visible on specially Debian and derivatives(because these versions are default in that Debian Stable).
For Delphi of course there are more versions in active use because a new version must be bought (in the Eur/$ 500-600 range).
The FPC docs are quite good, there are several thousands of pages (and the doxygen like tool is set not to generate pages without content). Lazarus has a different setting and generates also pages with skeleton info only.
For a totally self supported project (no major, continuous corporate sponsors, no dedicated FTEs, either directly it the project (like Firefox) or at sponsors (like e.g. LLVM) ) this is quite good.
I believe IntToStr() converts int to string in Free Pascal.

Pascal IDE for Mac OS X

i'm a beginner Pascal programmer and I recently migrated to the Mac OS X. Today I spent many hours searching for a good Pascal IDE for this OS and found nothing. I used to write code with Geany on Windows and it worked like a charm, I also enjoyed the compiling and running capacity of Geany.
Do you know any Geany-like IDE or at least one that highlights, compiles and runs pascal code on the Mac OS X?
Thank you very much!
Let's try Lazarus, integrated development environment for Free Pascal.
http://www.lazarus.freepascal.org/
People use XCode with a suitable set of templates, but XCode lost pascal syntax highlighting a way back. There are other options:
Pascal Gladiator
Lightweight IDE
But I also still like Lazarus best.
#Thiago: Try with only { "cmd": ["fpc", "$file"]}
http://freepascal.org/down/i386/macosx.var
I like Free Pascal the most, for beginning I believe it is the best because you don't have too much fancy GUI features to distract you from programming for beginners (algorithms, procedural thinking...).
I didn't try to run this on Mac but it should work... I have used Free Pascal on Linux and Windows with satisfaction.

Delphi cross compiler for linux

I was wondering if there is any Borland cross compiler that can make my windows code work on linux without wine.I'm using winxp with delphi 7. I was always wondering if it was possible to code same tool I coded in windows , again in Linux and how is it possible to code same tool by using pascal code in linux.Thanks
The best solution is Lazarus, the delphi-like GUI for Free Pascal. If you were using "pure" vcl, without Windows internales or any special add-ons the migration will be a pice of cake :)
Take a look here: http://lazarus.freepascal.org
BTW - Lazarus and FPC are true mulitplatform - you can compile code for Linux, Windows, MacOS and more with the same codebase :)
Your only option, if you want a Borland Delphi cross-compiler, is CrossKylix. This isn't a real cross-compiler. Instead you run the Kylix compiler for Linux under an emulated Linux environment.
Note that you'll be forced to use CLX rather than VCL and that Kylix is well and truly dead nowadays. Personally I think Wine is probably an easier and better option.
First of all, it all depends on what system functions you used in your programm. In most cases, there will be no possibility to cross-compile it under linux.
But, in some cases Borland Kylix can help, but, afaik, it's almost dead now.
Delphi 10.2 Tokyo supports Linux 64-bit Native Code Compilations.
To get some preview screenshots, click this post:
https://helloacm.com/delphi-compiles-code-to-linux-64-bit-server/

What language can I use instead of Turbo Pascal? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
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.
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.
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/
Turbo Pascal evolved into Delphi, which is still used today but might be hard to find.
Your options are probably:
Delphi
GNU Pascal
Free Pascal
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.
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...).
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
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.
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
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
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.
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.

Windows IDE / editor for a beginner

I'm teaching (or trying to teach) computer programming to a grad-student. Her previous experience amounts to little more than writing spreadsheet formulae. Which IDE or text editor should I recommend?
Please bear in mind that:
I only meet my student about once a week.
She uses Windows and I use Linux.
She doesn't have a community of users on hand.
She doesn't have much money to spend.
Edit: The languages she's learning at the moment are Perl and R. (Sorry ... for forgetting to mention them earlier.)
Edit: Thanks for all your answers!
The most highly recommended editors are jEdit and Notepad++.
If I can find a way to give my student adequate support for Notepad++ (e.g. by running it under Wine) or if I think that she can manage without support from me, then I'll recommend that. If not, I'll go for jEdit.
Apologies, once again, to those who saw the question before I got around to listing the languages that I'm teaching.
The Visual Studio Express products are all free. Unless the fact that you're using Linux changes things :)
Start off simple. Do not not scare her with an IDE! They are overwhelming at first and are not core to developing software. I learnt rudimentary Java with Crimson Editor.
If I started again I'd probably go for Notepad++.
Eclipse might be a good option (if a little overwhelming at first).
You obviously need to look at a cross-platform IDE. Eclipse is one of the best in this regard, as well as having support for many languages. It also comes with a good set of tutorials.
Since you didn't mention what programming language (guess it doesn't matter) you were teaching, I'll stick to something that supports multiple programming languages and multiple platforms. Given your situation, I would use jEdit (http://www.jedit.org).
jEdit is a programmer's text editor with hundreds of plugins, auto indent, and syntax highlighting for more than 130 languages and since it's written in Java, it runs beautifully on Linux, Windows or MAC. Hope this helps.
The best, most documented, IDE that is free in my opinion is Visual Studio Express. There are tons of blogs, howtos, videos, training, etc. You can find more information about them here:
http://www.microsoft.com/Express/
Also, if you are a student, Microsoft provides an entire stack of software free to students just for this purpose. This is through a program called DreamSpark. Included is an operating system, the professional version of the IDE, SQL Server, XNA Game studio and Expression. Any student can get this. More information is here:
https://downloads.channel8.msdn.com/
Hope that helps.
I have used Notepad++]1 a lot for various editing tasks, and I find it quite useful and competent.
Depends on the programming language. FoR C/C++ and anything .net Visual Studio is the way to go. The Express edition is free.
Eclipse or Jedit, if Eclipse is too complicated. jEdit is cross platform, free and supports a number of different languages.
Crimson Editor is also very nice; it's similar to Edit Plus. Syntax highlighting, tabs, etc.
Notepad++ for editing is awesome to me: it's Windows only, but maybe you can use it with Wine under Linux. But if you want someting more like an IDE, then Eclipse, or NetBean (both use java) can be very useful, although they are very resource expensive on old PC.
My suggestion is Textpad. You can teach her javascript, all the basic, and some advanced concepts are there. It's fun for the student see the output in a browser, and you can even teach a little HTML if the mood strikes.
Komodo Edit from active vision is free, open source, and available for Windows and Linux. Very nice features.
Otherwise, Emacs as it is available on both platforms and can be configured for CUA controls.
The Cream version of VIM is also a good option.
It really depends on the language you are teaching her.
EditPlus is a good simple editor. Free trial version and pretty cheap license.
Dev-C++ as a non-MS alternative.
Quote: "Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler."
Code::Blocks is also another good one, free and cross platform. Unless you need something for using VB / C# or other .NET languages as it is mostly C/C++. For the .NET languages on linux I would recommed MonoDevelop
Aptana is very handy for web-oriented programming.
http://www.aptana.com
That depends at least in part on the programming language you intend to teach her. That said, you might want to take a look at Eclipse. Though it started primarily as a Java IDE, it's been extended via plugins to support many others (including C/C++, Flex, Haskell, and ColdFusion, to name a few), and can fairly easily be adapted to a new language if support isn't already out there.
Add to that the fact that the IDE is cross-platform so you can both use the same tool on your platforms of choice, and it looks like this might be a good fit.
I'd recommend SciTE, as it's both available for *nix and Windows and free (as in beer). It supports pretty much anything you'd expect from a decent editor and, if she goes on to use it, quite customizable. It also isn't too complex, so it should be easy for her to get going with it.
+1 to the Notepad++ suggestion - Anything I do that's not .Net-related I do in that.
For Java, BlueJ is an excellent teaching IDE. It doesn't confuse the new student with a lot of advanced functionality (stuff they won't use for years to come). Eclipse is a great IDE, but there is a LOT of stuff there they could drown in. The same is true for Visual Studio, but I don't know of a simpler IDE for .NET languages.
You may also consider Ruby with Scite as a teaching option. The IDE isn't that fancy, but along with the ease-of-startup of learning Ruby this could work very well. Ruby certainly has some advantages over Java/C#/C++ for the beginning student (mostly in that you don't have to create a full class with a main method just to get a program running).
For the easy to teach Component Pascal language (a successor to Niklaus Wirth's Pascal and Oberon) try the free, open source BlackBox IDE and the book Computing Fundamentals by Stan Warford.
Regards,
tamberg
If you are writing software targeted at a Windows platform then Visual Studio is more or less the standard IDE. Since you are teaching a graduate student I would recommend getting the academic license for the professional edition if they are going to be writing a lot of software, otherwise the express editions should be enough for leaning purposes.
In terms of text editors, the one that I currently use the most is Notepad++ which is free, open source, and support a wide variety of features that are useful to software development. There are also also a number of useful plug-ins available for it as well.
I can't believe nobody has mentioned vi. I'll argue that the less your tool does for you in the beginning the better coder you'll be in the end. For a newbie, give them syntax highlighting and some helpers for dealing with blocks and lines. Something like vi is great, emacs is also fine, or if you absolutely must be on Windows, something like notepad++ or jedit will be decent. The main point is to learn to program before you learn to let your IDE insert code that you don't understand for you.
MultiEdit
Extremely powerfull (and extensible on emacs level) text editor with many IDE features (integration with compilers/debuggers etc). Beats all other suggested editors on every aspect.
Much easier to learn and use than editors with UNIX/terminal roots like vi or Emacs.
Not free (not too expensive though), and requires some learning to use effectively.
Another full blown IDE is SharpDevelop. It's OpenSource.
http://www.icsharpcode.net/OpenSource/SD/
Zeus - http://www.zeusedit.com
I have to mention PSPad.
It is very good, feature rich free editor. I have used UtraEdit and finally found free alternative in PSPad

Resources