Don’t put FPC (Free Pascal Compiler) into brackets!
The language you are talking about is called Object Pascal, not
Delphi. Delphi is just one compiler for it. FPC is actually
more close to the Object Pascal standard than Delphi, if I recall
correctly. And FPC has some nicer extensions. And a
really wide range of supported platforms.
There’s an Object Pascal standard? I wasn’t aware of this. I
always thought it was just “Delphi is the de facto standard,
and other implementations are mostly compatible.” Where can I find
a specification?
Oh, seems it was crap what I was talking about. At least Wikipedia
doesn’t say anything about a fixed standard.
“Object Pascal refers to a branch of object-oriented derivatives of
Pascal, […]”
“Today, Object Pascal is used collectively to refer to different
dialects of the Pascal language with object-oriented programming
extension, although these dialects are mostly compatible with
CodeGear’s implementation.”
I don’t know where and what exactly I read but it was something that
FPC has better support for Object Pascal than Delphi. Probably that
was related to some of the FPC extensions.
And there is also GUI support. There is a Delphi clone, based on
FPC, which is called Lazarus and actually it is really
worth the look! Lazarus comes with the LCL (Lazarus Class Library;
basically the pendant to VCL) which is almost
compatible to the VCL (which means you can reuse all your Delphi
code) and has some really nice implementations,
including GTK1, GTK2, Qt, Win32, Carbon (MacOSX native) and some
more.
Yep. Lazarus is great, unless you need frames,
That is not supported? I would wonder if not…
packages (including plugins),
It supports packages. It already comes with some and there are a lot
you can download. Look here:
http://wiki.lazarus.freepascal.org/Install_Packages
or advanced database support,
It has a lot of DB support, at least for MySQL, PostgreSQL, Firebird,
Interbase and SQLite. See here for a full list:
http://wiki.freepascal.org/Databases
Or some more details here:
http://wiki.lazarus.freepascal.org/Lazarus_DB_Faq
which any non-trivial Delphi app needs at least one of. And that’s
not even mentioning its built-in symbolic debugger,
which frankly isn’t worth the bits it takes up on your hard drive.
Even Visual Studio has a better debugger.
From what I have heard, VS has a really good debugger. And the
Lazarus debugger (which actually just uses GDB) was just working, the
last time I checked (but I just did only some basic stuff, as stepping
through the app, set some breakpoints, looking at some variables).
I love open-source software, when it’s done right. Problem is,
Lazarus just plain isn’t done right, and I haven’t seen
any indications over the last 3 years or so that they’re improving
in any of their myriad problems. Sorry, but it’s true.
I’ve made more attempts than I’d like to remember to port my game
engine to Lazarus. They kept running into the
same deficiencies, which never seem to get fixed. If they’d
actually fix them and produce a full-featured Delphi
clone, I’d switch in no time flat. But it’s just not gonna happen.
When was the last time you checked Lazarus? I got the feeling that
they are working a lot on it and more and more developers joined the
project.
Here some documentation:
http://wiki.lazarus.freepascal.org/index.php/Main_Page
http://wiki.lazarus.freepascal.org/Lazarus_Documentation
But they’re [Delphi devs] currently working on a cross-platform
compiler, so that won’t be an issue for too long.
I don’t think they will ever get so far what Lazarus has done
already (in the sense of supported GUI systems) and
never have support for so many platforms (like FPC).
Maybe. And yeah, right now you can compile with FPC to just about
any platform. Problem is, with all the fundamental
Delphi features it has no support for whatsoever, there’s not all
that much you can compile. My money’s on
CodeGear producing a usable cross-platform Delphi compiler long
before the Lazarus team gets its collective
rear in gear and brings their GUI feature set up to spec.
However, as I said in my first post, most of these issues don’t
apply to SDL games. (Though plugins would
be very nice.) So FPC is a good stopgap until CodeGear comes up
with the real deal.
Either way, they’re both far better than C++
We really thought also about porting our C++ game to Object Pascal
(esp. to FPC). But it’s easier said than done, for about 150,000 lines
of code…
Another nice feature, which wasn’t mentioned yet, is the ultra fast
compiling speed of FPC. You get insane if you compare it to GCC
compiling C++ code.Am 27.03.2009 um 00:17 schrieb Mason Wheeler:
----- Original Message ----
From: Albert Zeyer <@Albert_Zeyer>
Subject: Re: [SDL] Format string library?