Free Pascal 2.2 Has Been Released 284
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."
Mixed Reaction.... (Score:5, Funny)
The other half is looking very confused and asking "why?"
Re:Mixed Reaction.... (Score:5, Interesting)
Re:Mixed Reaction.... (Score:5, Funny)
OMG, powerful alliteration and anthropomorphism. Here I am with a visual image of a young code snippet out in the winter cold, begging people for a couple pence for a "cuppa tea".
Re:Mixed Reaction.... (Score:5, Informative)
Re:Mixed Reaction.... (Score:5, Funny)
You probly can't even read good either.
Re:Mixed Reaction.... (Score:5, Funny)
Mod parent up (Score:2)
Re:Mixed Reaction.... (Score:5, Interesting)
The suits will win in the end, because they're breeding faster. There's not a lot of incentive to become a Pascal expert, because it's perceived as a fringe language. (To some extent, that's a self-fulfilling prophecy, but that doesn't make it any less true.) So there will be fewer and fewer developers who insist on working in Pascal, and always the same number of managers who insist on switching to a "standard" language.
So Pascal is doomed. Yes, they've been saying that for a long time, because it's been true for a long time. Religions don't die quickly.
Personal note: I used to work for Borland and was responsible for documenting a big chunk of the Delphi API. Fell in love with the language during those years. Driven out by the sheer insanity of Borland management. Now I can't bear to work in the language — too depressing.
Re: (Score:2, Interesting)
I've used Free Pascal for the odd project here or there, but, well, sadly, these days I find myself mostly using C a
Re:Mixed Reaction.... (Score:5, Interesting)
Thing is with Pascal: it's designed to be very easy to compile. (So CS students could use it for their first stab at writing a compiler; this was before grammar generators made hand-built compilers obsolete.) So compiling only takes one pass, and even that pass executes quickly. Very handy when you're working with an IDE....
Ach. Getting depressed again.
Re: (Score:2)
Re: (Score:2)
That's about when I decided: Closed source compilers: Never Again!!!
Re:Mixed Reaction.... (Score:4, Interesting)
What we instead got was a buggy product that appeared to have alot of winelib in it (what the heck was that font thing?), and more to the point, it treated the GPL as if it was shareware. If one got the 'open source' version, which wasn't actually open source, we could make 'gpl' programs only, but by GPL, it meant "Well your program is GPL, but we are going to force a splash screen on your program that says its gpl and suggest updating to the full version." That was insulting as hell, and completely wrote it all off as an option for us.
Borlands problem is the attentiveness it paid the low-end and hobbyist market in the turbo days was completely blown out the window by the time it moved to Kylix. Hobbyists, students and small business MUST be paid attention to, or how the hells a kid supposed to learn your platform. Linux still has a large hobbyist contingent motoring it along, and in fact proved that hobbyist gift culture could power industry and commerce too.
What was really hard, was Delphi coders understood open source well. We loved sites like torry.ru that had huge collections of awesome open source librarys we could mash into our stuff to make our work days easier. In return we often packaged up our own little inventions and put them out there for other coders to use. Thats why we where so excited about kylix. What a let down.
Now of course we are being enticed back in with the 'turbo explorers' ('Hey kids! Its free!').
Except one cant install open source libraries by design. Way to piss on the Fanbase Borland!. Its a shame too. I was looking forward to returning to Delphi after all those years. Us hobbyists are still out in the cold.
I just hope people put some support into finally getting Lazarus and Free Pascal 'finished'. Its 95% there, and when that happens, we can finally tell the boss to cancel that Borland subscription, because coders *hate* being taken for granted.
Re: (Score:3, Insightful)
This was a marketing ploy that always bothered me. I was the only one at Borland who actually had serious VB experience, and the notion that skills in that environment were transferable to Object Pascal was absurd.
Your experience was different from mine. I'm very curious what was different about your system, but I d
Re: (Score:2, Interesting)
You probably should have said "easier and faste
Re: (Score:2)
They may be more like each other than Lisp, Forth, or Haskell (they're all basically procedural for one thing) but they're still very different and have very different programmer cultures. That's why only one language on your list (C) is still widely used
Re: (Score:2)
> there is out there looking for a support route.
Here's an option - a Java to Delphi [blogs.com] converter (in the second paragraph).
Re:Mixed Reaction.... (Score:5, Funny)
I'm also feeling rather blaise about it...
Re: (Score:2)
Re: (Score:2)
We should believe in supporting 2.2... because there's no downside.
--Rob
Re: (Score:2, Insightful)
Re: (Score:2)
And oh, if they are already using a for-profit Pascal compiler, they've already payed for it. If they haven't payed for it then they are getting good pirated copies and don't intend to pay for it anyway. And if they are starting a new project they will not be choosing Pascal to write it in (even if they can get a fr
Pascal is like a classic car (Score:2)
END. (* PROGRAM *)
Pascal is so '80s (Score:2, Informative)
Re: (Score:3, Insightful)
Basically, please remember that there are lands beyond your horizon. Just because you can't see them doesn't mean that they don't exist nor does it mean th
Re: (Score:2)
So you are saying that there was one person that used it six years ago?
And why would you want a "learning language" that you will never use again? Niche languages that are good at specific tasks (Fortran, etc) are one thing, but Pascal is just an outdated procedural language - the only thing keeping it going at this point is nostalgia.
Pascal is alive and well in installers (Score:4, Informative)
Re: (Score:2)
Actually, it's fairly well known to suck as a learning language.
Or at least some people think so [virginia.edu].
Classic Pascal != Borland Pascal (Score:3, Interesting)
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.
Re: (Score:2)
Re: (Score:2)
Ugh.
Re: (Score:2)
Yeah, original Pascal is 80s. Modern Pascal (read: Object Pascal) is not, although it is 90s - it has good support for OO, but Delphi only recently added support for generics/templates.
Pascal and Modula 2 in the '80s (Score:2)
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.
Re: (Score:2)
Re: (Score:2)
Re: (Score:3, Informative)
I still like Pascal (Score:4, Funny)
I still need a blue screen to write code quickly.
Re:I still like Pascal (Score:5, Interesting)
I still need a blue screen to write code quickly.
FreePascal is probably the best representation of what Pascal used to be. Unfortunately after years and years of incompetent management, Delphi remains just an empty shell of its former self. The project was tossed around too many times now, shrunk down, and there are no guarantees for how long it'll exist or be sold to unknown 3rd party.
Many companies with active Delphi code projects are porting to FreePascal (other reasons aside from the sad state of Delphi include compatibility with Mac and other platforms).
Re: (Score:2)
Explanation of VistA (Score:3, Informative)
For those who can't tell VistA from Windows Vista, VistA [wikipedia.org] (notice final capital letter) is the electronic health record system used by veterans' hospitals under the United States Department of Veterans Affairs [wikipedia.org]. VistA CPRS [va.gov] is its GUI front end.
Re:I still like Pascal (Score:5, Funny)
Re: (Score:2)
That's
Good Stuff (Score:2, Insightful)
Re: (Score:2)
FPC has been my sidekick ever since Delphi did it's magic trick of fading into obscurity and uselessness.
If you're looking for a Delphi replacement, you might want to consider Chrome [remobjects.com], which is Object Pascal with a variety of nice extra features, including lambda expressions, generics, nullable types, and design by contract. The downsides are that it is a .NET langauge (though it works with Mono [remobjects.com] apparently), and that only the command line tools are free -- the whole suite is pricey (though comparable in cost to Delphi I guess). It is, at the least, worth looking into if you're a Pascal fan.
Always nice with cross platform native compilers (Score:2)
Re: (Score:2)
For some definition of the word 'free' (Score:5, Informative)
C# programs even work in Linux, without a recompile, using Mono
Re:For some definition of the word 'free' (Score:4, Insightful)
It's this childish "Waah, its MS and not FOSS" attitude that make all of
Ugh...
Re: (Score:2, Funny)
Re: (Score:2)
Now that is funny, because I recall in the late 80's getting books from my local library telling me how to obtain 'free software' (for a nominal S&H fee) which was **not** open source, merely people who had the good nature to release software for free. Get off your high horse, RMS doesn't have an exclusive lock on the word 'free'.
Re:[ac]For some definition of the word 'free' (Score:2)
Ah (Score:2)
Slashdotted (Score:2)
Cue the "the server must be written in Pascal" jokes...
Here's a MirrorDot [mirrordot.org] link for the FreePascal site.
Mirror (Score:2)
and
http://www.networkmirror.com/06poF0hRSRppE66S/www.osnews.com/story.php/18592/index.html [networkmirror.com]
I freed myself of Pascal... (Score:2, Funny)
80's college nostalgia (Score:5, Insightful)
Re: (Score:2)
Pascal isn't native code. Pascal compilers may compile the language to native code, but Java compilers can do that, too.
Re: (Score:2)
And the way I remember it, Apple ][ Pascal compiled to a variant of UCSD p-Code, [wikipedia.org] which seemed obscure at the time but seems kind of ahead of its time now.
Re: (Score:2)
Re: (Score:2, Informative)
I've been reading through that and it seems pretty decent.
Googling "pascal tutorials" or something similar turns up quite a few results as well.
Re:80's college nostalgia (Score:5, Informative)
Pascal is arguably one of the easiest languages to learn there ever was. It's very verboseness leads to readable code, but don't confuse that with weakness. Modern Pascal implementations like Delphi and Free Pascal are powerful languages.
The basics of pascal are simple:
Note the difference in the way the function and the procedure are declared above. Pascal passes parameters either by reference or by value. Using the var directive in the procedure declaration of x as integer I told the compiler to pass the value in by reference and therefor that value can be changed by the procedure. Note that when declaring the parameter this way I can ONLY pass a variable to it of the same type, or typecast a variable of a similar type. If I do NOT use the var invocation in declaring the parameter I can pass either a variable or a literal as below:
This should give you a basic start, the rest is really easy. Pascal does pointers, Structures, file I/O with either typed or untyped files, Inline Coding, Inline Assembler, pretty much everything you would expect from a robust language.
Re: (Score:2)
thank god it isn't like that anymore, at least not in the delphi compiler I am using.
Because of lame reasons I have plenty of delphi projects on win32, I have used delphi for 3 years, and I have learned to hate it. Yep, I hate pascal's syntax, I guess there is some time in life in which the verboness stops appealing you. The lack of a keyword to set result AND exit the function is something you would get to miss if you are used to any other l
Wow... (Score:2)
I am not a programmer really (Score:2)
Not the first free compiler to support win64 (Score:3, Informative)
64-bit Windows (Score:5, Insightful)
Sure, but then you have to write it in Pascal!
What? No 65816 support? (Score:2)
What's the advantage? (Score:2)
What's the advantage of Free Pascal? Just curious, not being sarcastic...
What's pascal like now? (Score:3, Interesting)
Re: (Score:3, Informative)
Small is relative. Pascal language is now Object Pascal. It is not a small language.
> 2. 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.
Delphi and FreePascal have PChar as well as AnsiString.
> 3. I don't think there was any (standard) way to defeat the strong typing in cases
Yay (Score:2)
is;
great('news');
SYNTAX ERROR: Missing " " after ";"
Dennis Ritchie on Pascal (Score:3, Informative)
I sincerely hope the language has been fixed since that was written...
Re: (Score:2, Insightful)
Some of the typing weirdness remains, although it is better hidden. Some of the cosmetic issues remain.
Really the big problem with Free Pasc
Re: (Score:2)
increasing the programmer comfort. (Score:2)
Object code efficiency (Score:2)
Anyone remember the paper, and have a pointer to it? The requisite five minutes with google haven't been successful for me.
A Valuable Resource (Score:5, Informative)
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.
Hmph. (Score:2, Funny)
Re: (Score:2)
Re: (Score:2)
Object Pascal supports multitasking and objects for quite some time, so I guess the question should be the other way around.
And I suppose in this case the answer would be "Ada compilers are not widely available (and free) for as many platforms". Not to mention the huge libraries of Pascal code out there.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Do you think so? Ada is available (as others have stated) as part of the GNU compiler collection, so is available on a large number of systems. Other compiler vendors supply compilers for other more obscure processors. How do you know that Pascal is more available?
* Great support for interfacing with external code.
It's pretty ordinary in comparison to Ada's Interface package hierarchy and collection of pragmas allowing you to specify in very fin
Re: (Score:2)
> If it's using gcc to do the code generation, then Gnat (which also uses gcc) should do the same job. I don't know about other compilers.
I think all your other points are quite valid. Ada was always a better specified language.
GPC (GCC), Lazarus, Virtual Pascal and Delphi are different compilers. GPC may be comparable to Gnat (I only had passing experience with it). Delphi is arguably the fastest native compiler I have s
Re: (Score:2)
Possibly. I think for similar programs though the extra checks shouldn't come into account. Pascal always checked array boundaries, and so long as you are only doing standard programming (no subtypes, no derived types etc.) it should be comparable.
Gnat Ada does use a source file model for the packages, so has to rescan any "with"ed packages (similar to #include) with every compilation unit. Does FreePascal
Re:What advantages does this have over Ada? (Score:4, Funny)
It's not Ada. Isn't that enough?
Re: (Score:2)
Re: (Score:2)
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?
You might as well ask what advantages it offers over Eiffel, another language that offers strong typing, object support, and clean clear syntax. Better yet Eiffel not only has a GPL compiler with LGPL libraries [loria.fr], you can also opt for a GPL compiler suite, libraries and complete development environment [origo.ethz.ch].
The advantage, in the end, is that it is Pascal, and if that's the language that someone wants then other languages like Ada and Eiffel, despite similarities just aren't Pascal.
Re:um? size? (Score:4, Informative)
Yes, simply looking at obj size will make this look bad. Actually looking at the object itself makes it pretty clear what's really happening. Remember, 'file' is your friend.
Re: (Score:2)
Normally it's the opposite that you want static binaries in only odd situations [e.g. to make an application binary-wise portable, to use it when glibc or other libs may not be available, to free up a register on non-PIC friendly platforms, e.g. x86-32].
Tom
Re: (Score:2)
Um.. isn't application portability one of the strong suits of the FPC compiler.
Re: (Score:2)
Re:um? size? (Score:5, Informative)
That's bad pascal. You lack the program declaration with specification of IO, and you also have a null statement at the end (the semicolon that should not be there). Try:
You might want a stronger typed language than C, where there's no risk of signed/unsigned typecasting behind your back, or where you can limit the data type. There's no risk of your plane thinking it's flying upside down when you cross the dateline, for example. Or of spinning clockwise 182 times to make a 65535 degree turn, when you really wanted a 1 degree left turn.
Then there's legibility. Pascal
I personally miss UCSD-pascal and p-code. It did what java was meant to do -- run as a pseudo-machine with pre-compiled bytecode in a machine independent fashion. Too many youngsters today think that Sun created that concept with java, when in reality it was a ripoff of USCD-pascal's p-code for a C++-like language.
Regards,
--
*Art
Re: (Score:2)
I've heard the "pascal lets no error occur" bullshit argument, also paraphrased for C++, Java, C#, etc.
I don't know about you, but I try to develop software that I can verify, or at the very least test properly. I also write code with buffer management, type management, etc, in mind. I also use as many warning flags as practical, etc.
If you don't just sit down and crack out l
Secure p-code (Score:2)
Re:um? size? (Score:2)
And yeah, I would be for ranting against Cobol as it's ancient and not very useful. Fortran from what I hear still serv
Re: (Score:2)
Re: (Score:2)
That's too bad. High quality public domain code is rare. Thank you for all your hard work.
Re: (Score:2)
Thank god I came to my senses.
I loved Apple Pascal (Score:2)
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".