Free Pascal 2.2 Has Been Released
Daniel Mantione writes "Free Pascal 2.2 has been released. Several new platforms are supported, like the Mac OS X on Intel platform, the Game Boy Advance, Windows CE and 64-Windows. Free Pascal is now the first and only free software compiler that targets 64-bit Windows. These advancements were made possible by Free Pascal's internal assembler and linker allowing support for platforms not supported by the GNU binutils. The advancement in internal assembling and linking also allow faster compilation times and smaller executables, increasing the programmer comfort. Other new features are stabs debug support, many new code optimizations, resourcestring smart-linking and more."
Half of me is saying "cool!"
The other half is looking very confused and asking "why?"
I learned Pascal in the 1980's when I was in college. Haven't used it since. I never did like the strict type checking or the whacky for loops that had to run at least once. FORTRAN and then C/C++ have served me pretty well over the years, although I write a lot of PHP, bash, and some C# now.
If you don't want crime to pay, let the government run it.
TurboPascal was great. Or is it Delphi now?
I still need a blue screen to write code quickly.
Deleted
I started programming in Pascal. It was/is widely used for teaching in highschool (in Romania), along with C. FreePascal was great for replacing Borland's Turbo Pascal, which had a nasty bug causing a division by zero when the graphics headers were used on processors faster than 200MHz. I am feeling a little nostalgic about all the programming contests I participated in and used Pascal as the language.
FreePascal has come a long way, and at least for me, it's a very valuable tool. I may not be exactly the target audience, but I prefer Object Pascal over C(++) any day for many reasons, and FPC has been my sidekick ever since Delphi did it's magic trick of fading into obscurity and uselessness. Lazarus needs some more work though, but it's getting there. Hell, if I had the time to spare, I'd contribute myself (sadly, I don't). "Good work" and thanks to the guys that made it all happen!
Ada has the strong typing capabilities of Pascal, with multitasking and object support as well. It seems to be the main Pascal-like language for serious, high-reliability applications. Does Free Pascal offer any advantages over Ada?
Don't feed the trolls, it only encourages them.
With all the focus on JIT compiled and interpreted languages, it's nice to see this niche still being worked on and kept up to date with current software, like 64-bit Windows. There are still reasons to build applications for these platforms, while at the same time seeing cross platform source code as a benefit. This is why I also like the D programming language, although I have to admit Free Pascal got it beat as for the cross platform support, where it's still lacking things like native 64-bit and Windows CE compiling.
Beware: In C++, your friends can see your privates!
Microsoft's free C++ compiler has been able to target x64 for quite some time ... it isn't open source, but is free as in beer.
:)
C# programs even work in Linux, without a recompile, using Mono
Pascal. The eight wonder of the IT world.
load "$",8,1
Oh and that comment of mine was missing that there's also an IDE for cross platform GUI development? Wow, now we're starting to get into rare territory... I've been looking for *good* IDE's for this purpose in the past, the closest I came to was something like wxWidgets. I dislike large libraries that need to be installed for GUI support, and this one apparently only needs GTK for Linux, and nothing special at all for Windows. Getting more interesting... :-) If I only knew Pascal better, it was something like a decade since I worked on it last time...
Beware: In C++, your friends can see your privates!
Cue the "the server must be written in Pascal" jokes...
Here's a MirrorDot link for the FreePascal site.
Does Free Pascal offer any advantages over Ada?
Perhaps Free Pascal does not make you want to kill yourself?
I kid, I kid.
Wait, let me get out the Depeche Mode album that I played while writing my high-school computers class assignments.
Who uses Pascal? Isn't Java or .NET the new Pascal?
when I got out of college. I have been clean and sober from Pascal since then and I plan to stay on the wagon.
http://www.networkmirror.com/p0HL5pKL5D9ZVmgq/www.freepascal.org/index.html
and
http://www.networkmirror.com/06poF0hRSRppE66S/www.osnews.com/story.php/18592/index.html
"I'd rather be a lightning rod than a seismometer." -Ken Kesey
I always liked coding in Pascal in college. I don't know what I'd use it for now, except maybe to see if my old code from school would compile and run.
Anyways, its nice to know that someone out there is still supporting the language. Maybe we can replace Javascript with some variant of Pascal? That would be pretty sweet.
Like many others here, I learnt Pascal at school in the early 80s before C, then C++ and finally Java became the standard teaching languages. The thing about Pascal, of course, is that it was designed to be a teaching language. All of that verbose syntax is meant to teach good structured programming. While Object Pascal will never reach the mainstream in any way more than Delphi did, it would perhaps have eliminated many of the errors made by coders due to the byzantine complexity of C++. At least thats what I think. That enforced verbosity made the code very readable, in a similar way to the way Java is, except that Pascal is native code.
I too learned Pascal in the early 80's when it was that or Fortran IV. Both seemed to me to require a lot of typing to accomplish anything. I picked up Modula2 for my Amiga as I already knew Pascal and it was quite similar, the Modula2 compiler was relatively inexpensive and the executables were tight and fast. Eventually I picked up Lattice C for the Amiga (an earlier version in a bargain bin, which I paid a bit more and upgraded to the latest release :o) and never looked back.
A feeling of having made the same mistake before: Deja Foobar
In Denver. Now, that's artistry.
Pascal is still around? I used to do some light coding in Pascal back in the mid-1980s. So when is a new version of Modula going to be released? :-)
You want to know who isn't running Firefox 2.x? They spell it "definately" and "rediculous".
. . .but I learned three programming languages: BASIC, Pascal, and FORTRAN, in that order. That is all. Well, there was HP-41 synthetic programming and HP-48 too.
...the future crusty old bastards are already drinking the Kool-Aid.
Just the first free compiler that has an official release. The trunk of GCC supports Win64 for a while now. Just there has not been a release yet. This has been true since 2007-03-30. Binutils support win64 was added 2006-09-20.
This is one of my returning nightmares, after having programmed in c++ for years I had to take turbo pascal classes for one semester, then another one for an ancient version of delphi.
Everyone keeps saying it's a great learning tool. Can someone please recommend a book to teach us?
I just installed 2.2.0 on my x86_64 box and this is what I got for hello world ...
... why would I want Pascal?
tom@core2 ~ $ ls -lrt test?
-rwxr-xr-x 1 tom users 145208 Sep 10 19:03 testp
-rwxr-xr-x 1 tom users 6384 Sep 10 19:05 testc
Both were run through "strip" to remove any possible debug/extra details. testp is from this pascal program
begin
writeln('hello world');
end.
And testc from
#include <stdio.h>
int main(void)
{
puts("Hello World");
return 0;
}
Aside from the ubiquity of C, the fact that there are few moving targets [e.g. aim for C90 and you're usually fine], and that it seems to produce smaller binaries
Don't get me wrong, I was a pascal whore when I was kid too. But let's face it. Everything [that matters] is written in C, C compilers are everywhere, and their optimizers are highly kick ass. I just don't see why FPC matters beyond being a nice hobby project to rekindle "the old days."
Someday, I'll have a real sig.
Free Pascal is now the first and only free software compiler that targets 64-bit Windows.
Sure, but then you have to write it in Pascal!
"Don't get me wrong, I was a pascal whore when I was kid too. But let's face it. Everything [that matters] is written in C, C compilers are everywhere, and their optimizers are highly kick ass. I just don't see why FPC matters beyond being a nice hobby project to rekindle "the old days.""
*sigh* There's always a C bigot in every language discussion. Everything that matters is written in different languages.
"I just don't see why FPC matters beyond being a nice hobby project to rekindle "the old days."
Bet you have the same problem with Fortran or Cobol too.
Wizardry I was written in Apple Pascal. I'd love to see the source code for it, for nostalgic reasons.
How do you expect me to use Pascal on my Apple IIgs or port my games to Super Famicom?
“Common sense is not so common.” — Voltaire
InstallShield and InnoSetup installers contain PascalScript engines. InnoSetup is written using Delphi -- Pascal. I believe InstallShield is too, but it's been a while since I quit using InstallShield in favor of InnoSetup.
What's the advantage of Free Pascal? Just curious, not being sarcastic...
Advice: on VPS providers
- The standardized language was very small, so there was a tendency for it to fracture into many incompatible languages.
- At that time, the implementations represented a string as a length byte followed by the string data, so you were limited to strings of length 255.
- I don't think there was any (standard) way to defeat the strong typing in cases where you needed to.
- Was there garbage collection? If so, I don't recall it as being an idiomatic part of the language, except maybe for strings...? Well, most languages back then didn't have it (and gc's sucked back then, so gc languages tended to be slow), but today...
- I was always annoyed by the gotchas in the syntax -- the language seemed unnecessarily picky about periods and semicolons.
Has any of this changed? Has modern pascal settled on a single standardized version of the language? Is gc easy, idiomatic, and consistently supported in libraries and language constructs? Is there good unicode support? It seems to me that today, if I wanted a typesafe language I'd use java, and if I wanted a language that compiled to native code I'd use C or OCaml.Find free books.
Oberon is the grandchild of Pascal and way cooler. It's seriously a bondage&discipline language: http://www.oberon.ethz.ch/
this;
is;
great('news');
SYNTAX ERROR: Missing " " after ";"
Now there's a definite possibility I'll have a working copy of ZZT on my GBA!
Programming in ZZT-OOP is going to be a bitch without a keyboard, though.
http://www.lysator.liu.se/c/bwk-on-pascal.html
I sincerely hope the language has been fixed since that was written...
No sig today...
For those who can't tell VistA from Windows Vista, VistA (notice final capital letter) is the electronic health record system used by veterans' hospitals under the United States Department of Veterans Affairs. VistA CPRS is its GUI front end.
Is it bad that I looked at my RSS feed for this seeing the "2.2" part first, and I thought it was the WoW 2.2 patch?
Because the roguelike game "doomrl" was in fact written in FreePascal!
Now if only he'd finish coding and release the src code so I can compile it on my Unix platform of choice...
Windows Forms? no... but prettymuch everything else does. I use it as a scripting language to write tools, not pretty GUI's :)
increasing the programmer comfort. I do not get this statement. What the heck does anyting in this article have to do with my comfort? Since this is a compiler, do you speak of my comfort at compile time? That would be helped by code that is better checked at compile time. Errrr! Not Pascal! You need a managed language like Java or C#. I understand that there is a .Net Pascal out there, but this announcement just does not interest me. It is 2007, not 1997! We are building big, complex systems with our software, and we need languages that are type safe and can help achieve more predictable results than C++.
WTF does this have to do with that?
Great ideas often receive violent opposition from mediocre minds. - Albert Einstein
MS 64-bit SDK still comes with a "free" compiler and other tools. This is the amd64 64-bit world. The SDK is free for the download. It is the identical 64-bit compiler that comes in the $2500 Visual Studio package (cmd line compiler & tools). Of course that can't compete with a PASCAL compiler. Woooah!! Kahn, the father of pascal as you know it. is dig ginghis stinkin' corpse from his grave as I write.
I used P-code also, and other ancient virtual machines from the '60s. IMHO, however, the key feature of the Java virtual machine is the ability to create a secure sandbox for arbitrary p-code. The byte-code verifier allows maintaining the security even when compiling to native code. I don't know whether Java was the first with these features (and I seem to recall a similar verifier for some other obscure language), but it has succeeded in becoming the first widely used language with such features. As I recall, a subset of Java was even proved secure (in that you couldn't escape the VM semantics). Naturally, JNI libraries are necessary to do anything useful (like IO), and every JNI library is a potential security hole (as is every SecurityManager method). But at least Java VM security narrows the areas of concern.
Years ago (early 90's maybe?) I remember reading a paper about an empirical study -- as opposed to unsupported but vehement opinions -- of the relative efficiency of Pascal and C object code. As I recall, the conclusion was that Pascal fared better, because Pascal's strong typing and other semantic clues make it an easier target for an optimizer.
Anyone remember the paper, and have a pointer to it? The requisite five minutes with google haven't been successful for me.
Free Pascal/CGI vs. RoR vs. PHP5 vs. CakePHP? Am I right? I said am I right, folks?
Visual Basic Programmer's Journal, issue 1997, oct. "Inside the VB5 Compiler engine"...
That's where Microsoft's VB5, & VC++5.x got the shit kicked out of them on 7-10 tests by Borland Delphi 2.0!
(& most importantly, on math & strings processing, which every program does. Delphi won by HUGE margins on those (like 2.6x as fast iirc) & only lost to VC++ on form paints (by NOT that big of margins as it won by & text form loads))
The rest went almost across the boards to Delphi 2.0 vs. those 2 MS products.
Well - VB won 1 area over BOTH MSVC++ 5.x & even Delphi 2.0 was ActiveX form loads (which it is/was (since the VB5/6 line just died a year or so back) HEAVILY oriented to)...
There you go: One documented proof in publication in a competing trade journal's pages no less, where Delphi (object pascal 7 engines based) did in BOTH VB & VC++...
APK
P.S.=> & on std. single executable design Win32 PE format executables - fastest thing under the sun, especially when compiled with a good optimizing compiler (which Delphi has, best there is no less proven above as so vs. its major competitors) & inlined assembly + hand optimization techniques, & good error trapping on a coder's part... apk
That's what I thought too. Just download and install the PSDK. Perhaps it also works with VS2005 Express Edition (free too) for the Visual Studio environment. I have VS2005 Pro but used to build x64 applications with the PSDK.
I had only written in basic up until then. Losing the line numbers and gotos was like having a light shine down from heaven.
I will always think fondly of Pascal. To this day, whenever I'm writing in C, when I see an opening brace I think "begin". When I see a close brace I think "end".
Weaselmancer
rediculous.
Bravo.
Bill Catambay has done yeoman work in keeping the Pascal spark alive in all its flavors. For those of you who are nostalgic, curious, desperate, eager to find a centralized repository for mockery, or want to try one of the easiest, most powerful tools you've ever used, visit Pascal Central. Tools, compilers, source code, links, Bill's article on the reasons Pascal is still relevant (which I helped edit), and a community of people ready, willing, and able to get those of you interested in giving the language another look (or a first look) a lot of help and support.
If you want power, readability, a maintainable code base, easier string-handling, no-brainer memory management, and an elegant "No-BS" language, try Pascal. It has survived this long for a reason.
on the Apple //e's in our computer lab in the mid 80's. Those were great classes, but of course I never used Pascal again. I admit it was more interesting than Basic.
I think part of the appeal was that the original Wizardry was written in Pascal. Then when I graduated I got trained on an answering service system (based on PCs) that was also written in Pascal.
It's worth pointing out that most, if not all, of the objections in Kernighan's famous essay do not apply to Borland's Pascal dialect.
dragonhawk@iname.microsoft.com
I do not like Microsoft. Remove them from my email address.
I view Turbo/Object Pascal the same way a lot of people view a classic car: It may have been eclipsed by more modern technology, but it still has a certain elegance and appeal to those who knew it in its heyday. Sure, the latest cars have electronic fuel injection and engine monitors and other advanced technology, but there's still nothing like working on a classic engine. It's nostalgia, yes, but good stuff, still.
END. (* PROGRAM *)
dragonhawk@iname.microsoft.com
I do not like Microsoft. Remove them from my email address.
I had to write a small program to create some special text files a few weeks ago. It was easy to write it in 20 mins, compiled and runs on any dos based machine. Means I could just run the exe anywhere on any system and it would just work. No special runtimes or funky dll files. It just did the job i asked.
Rock on pascal!
http://www.writeitfor.us - Writing IT for the IT generation.
I learned Pascal at the university in 1980. It was my second language
after BASIC. For a lot of years I was a big fan of Pascal.
Missing features of Pascal (and other programming languages)
lead me to the idea of an extensible programming lanuage.
For my diploma thesis (and later the dissertation) I wrote a
preprocessor in Pascal which produced Pascal code as output.
The preprocessor should provide an implementation for my
extensible programming language MASTER. As it showed, Pascal
is not a good target language. The portability of Pascal programs
was also bad at that time. Because of this reasons the
implementation of Seed7 (which is a successor of MASTER) uses
C as implementation and target language. I still think that the
basic ideas of Pascal are great. This is clear when you look at
Seed7:
The statements are like in Pascal/Modula2, everything must be
declared and the Seed7 interpreter uses one pass to read the
program. The Seed7 compiler compiles to C which compiles to
native code. Other features try to extend the possibilitys like:
Declaring new operators, statements, templates, abstract data
types, object orientation, multiple dispatch, and so on.
If someone likes Pascal he would probably like Seed7 too.
Greetings Thomas Mertes
Seed7 Homepage: http://seed7.sourceforge.net/
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch.
There is one Free Software and RMS is it's prophet!
*fires AK round in air* Slay the infidels who insult the high and mighty FSF. GNU will DOMINATE the WORLD!
Did you guys know, Pixel image editor is written using this FreePascal compiler? Well there's some C and assembler used, but still perfect example: http://www.kanzelsberger.com/
Photoshop for Linux? Wine? No. http://www.kanzelsberger.com
Unless I'm mistaken I believe Free Pascal is still used at the University of South Africa for it's first programming course. A great way to save students money.
Daniel Mantione and ScuttleMonkey: write those names down right away. Two of teh biggest, most classic frigtards on teh Web.
I seem to remember that in Pascal, in order to pass a string from one function to another, they had to be declared to be of the same length. That was back in Turbo Pascal for DOS days, and maybe they fixed that up by then.
This is my sig.
You know what free software means don't you?
"Free from GNU"
That is not as ethereal as you'd expect. GNU is getting an awful lot of power. And no, that is not because of the GPL. (v2/v3)
It is because the grunts doing work on GNU projects sign their copyrights away to the GNU politbureau. Who get an awful lot of power this way.
the GGP post didn't mention onomatopoeia...
If I wanted what you describe, I would pick Ada. It is much better than Pascal in all regards, and it has a good real-world implementation that uses a good back-end (gnat->gcc). /David
http://youtube.com/watch?v=4BORxQ7L2BU/ Free Pascal kicks ass when it comes to cutting-edge textmode lightsourcing and particle effects.
Even leaves Java in the dust.
Maybe a little thing - but man I like that.... C++ has worn me down this way.
I am very small, utmostly microscopic.
1980 called and it wants its headline back
hmm.
Free, as in the banana in that box you see over there, monkey.
Yeah, that's right, just put your hand in that little gap between the bars. Just big enough for your hand. No, no, don't worry about whether it'll be big enough for your hand when it's holding the banana. Nothing to worry about at all.
Besides, when we come to help you, we'll give you a whole bunch of bananas and a nice little cage to ride in.
yes, see Powtils for that: http://www.google.com/search?q=powtils
Really, I can do anything in Pascal that I can in C/C++, just differently. I like the more "rigorous structure" and cleaner syntax of Pascal - if it compiles, it probably will run too. I find a bit smaller bug count in Pascal code than in C. Maybe just because it makes me settle down a bit and put variable declarations and stuff together in a VAR block instead of accidentally just declaring them where I think it's needed like you can do in C, so scope problems are reduced.
And Pascal is a wee bit nicer for string handling.
The grunts behind freepascal decided to release freepascal under the GNU license. Irony?
ohp does not pwn