[fpc-pascal] FPC MacOSX carbon

2005-12-03 Thread Mattias Gaertner

Where can I get the FPCMacOSAll unit?

The Lazarus carbon interface needs it.

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] DOOM game for FPC

2005-12-03 Thread L505
I got Doom to compile with freepascal and run. But I'm not exactly a gamer.

Someone else maybe want to take on the source code and improve it? 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Fw: [fpc-pascal] FPC MacOSX carbon

2005-12-03 Thread Mattias Gaertner

> Where can I get the FPCMacOSAll unit?

 From . The interfaces are for GPC, 
FPC and MW Pascal. A new version is about to be released in a few days.

Regards,

Adriaan van Os

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Benchmarks for Free Pascal

2005-12-03 Thread Felipe Monteiro de Carvalho
Hello,

I've recently come across some good websites about benchmarks and Free
Pascal is definitevely one of the best compilers in CPU time and
Memory Use on batteries of problems.

On Linux:

http://shootout.alioth.debian.org/

"How can we benchmark a programming language?
We can't - we benchmark programming language implementations.

How can we benchmark language implementations?
We can't - we measure particular programs."

Free Pascal vs C#:

Mono is ~15 times worse in memory use and execution speed.

http://shootout.alioth.debian.org/benchmark.php?test=all&lang=fpascal&lang2=csharp&sort=fullcpu

Free Pascal vs Java JDK: FPC wins by large =P

http://shootout.alioth.debian.org/benchmark.php?test=all&lang=fpascal&lang2=java&sort=fullcpu

Free Pascal vs C: GCC is the only compiler to beat FPC, and for a small margin.

http://shootout.alioth.debian.org/benchmark.php?test=all&lang=fpascal&lang2=gcc&sort=fullcpu

On Windows:

http://dada.perl.it/shootout/

Delphi comes even with Visual Studio c and c++ on the first place.
After, with a margin, comes gcc and free pascal. C#, Java, perl,
python, all come much after free pascal. Visual Basic is perhaps the
worse.

It is obvious that all benchmarks are flawed (as even the benchmark
website says), but it is lot's of fun ^_^

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] db2 connection component

2005-12-03 Thread Bisma Jayadi

Dear all,

I'm currently trying to convert a Delphi database application which access an 
IBM DB2 database server through dbExpress component, onto Lazarus (FPC). I think 
the TxxxConnection database connection components have similar concept with 
dbExpress technology.


But, the problem is I can't find TDB2Connection component. I've search the net 
for similar solutions, but I got no luck. Since I know nothing about 
low-level-database-driver-access, I need a ready-to-use component. I've tried 
ZeosDB object, but it has tons of bugs in the DB2 connection class (thouhg it 
pretty stable for mySQL and Firebird), so I think it's not ready for a 
stable/reliable application.


So, is there anyone here has any URLs, refferences, custom components, or 
anything which able to solve my problem? I'd really appreciate it.


For any kind of helps, I thank you in advance.

-Bee-

has Bee.ography at
http://beeography.blogsome.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] db2 connection component

2005-12-03 Thread Paul Davidson

Mr. Bee, let me know if one turns up!
Thanks

On Dec 3, 2005, at 8:13, Bisma Jayadi wrote:


Dear all,

I'm currently trying to convert a Delphi database application which 
access an IBM DB2 database server through dbExpress component, onto 
Lazarus (FPC). I think the TxxxConnection database connection 
components have similar concept with dbExpress technology.


But, the problem is I can't find TDB2Connection component. I've search 
the net for similar solutions, but I got no luck. Since I know nothing 
about low-level-database-driver-access, I need a ready-to-use 
component. I've tried ZeosDB object, but it has tons of bugs in the 
DB2 connection class (thouhg it pretty stable for mySQL and Firebird), 
so I think it's not ready for a stable/reliable application.


So, is there anyone here has any URLs, refferences, custom components, 
or anything which able to solve my problem? I'd really appreciate it.


For any kind of helps, I thank you in advance.

-Bee-

has Bee.ography at
http://beeography.blogsome.com
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



P Davidson
http://CoraxNetworks.com

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread L505


> I got Doom to compile with freepascal and run. But I'm not exactly a gamer.
>
> Someone else maybe want to take on the source code and improve it?


Here is the

Information link:
 http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Doom-To-Freepascal

Direct Download link:
 http://z505.com/pascal/games/DoomToFreepascal.zip

I talked to Jimmy and we are going to make it one single project (maybe throw 
in some
IFDEF's for freepascal..)

Also, this project will help solve some Delphi incompatibilities with 
freepascal in
Delphi mode. I came across a few (but not many!).


--
L505

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread Felipe Monteiro de Carvalho
On 12/3/05, L505 <[EMAIL PROTECTED]> wrote:
> I got Doom to compile with freepascal and run. But I'm not exactly a gamer.
>
> Someone else maybe want to take on the source code and improve it?
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>

Hello,

You manually converted c code from doom to pascal and made it compile?

Where can one find the source code?

In what licence Doom is? If you need hosting space and doom is free
software maybe you could use Source-forge. There is the lazarus code
and components repository project.

Maybe you could add a link to the Wiki? Lazarus wiki at least has a
"Projects" section.

thanks,
--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread Elio Cuevas Gómez
El Sáb 03 Dic 2005 04:13, Felipe Monteiro de Carvalho escribió:
>
> Hello,
>
> You manually converted c code from doom to pascal and made it compile?
>
> Where can one find the source code?
>
> In what licence Doom is? If you need hosting space and doom is free
> software maybe you could use Source-forge. There is the lazarus code
> and components repository project.

IIRC Doom is GPL'ed, but the translation doesn't have to be.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread Kornel Kisielewicz

L505 wrote:

I got Doom to compile with freepascal and run. But I'm not exactly a gamer.

Someone else maybe want to take on the source code and improve it? 


This is amazing!
Anyway, I took a peek, and by the look of it I have two suspicions for 
that graphics mess:


1. Floating Point operations.
2. Floating point comparition.

I'm not much of a gamer, but a Doom fan :-P. I even made a freepascal 
Doom Roguelike game :-P.

--
At your service,
Kornel Kisielewicz (adminATchaosforge.org) [http://chaosforge.org]
Carceri -- A prelude to GenRogue... Coming Soon
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread L505



> Hello,

> You manually converted c code from doom to pascal and made it compile?

Jimmy did the work, I just ported it to run on freepascal. It's all in the 
ReadMe.txt
file :-).  Jimmy ported all the C code to Delphi, and I saw his post on Pascal 
Game
Development website. I'm not exactly a gamer, but I decided to run it through 
the
freepascal compiler just for fun.

> Where can one find the source code?

The C code?

ID Software (the maker's of doom) released Doom source code... There are even
versions of Doom that run on linux, AFAIR.

Problem is, the game runs really slow on freepascal and the walls "jump into 
your
face".
Could someone please confirm that the walls are rammed into your face, when you 
play
the game? It could just be my video card, but I think that is optimistic.

I'm sure this project will help us optimize the freepascal compiler. It could 
be that
this Doom code has some "bad code" in it, and that Delphi optimizes "bad code" 
better
than freepascal?

The other problem is the keyboard is really "sticky". You have to hold down the 
keys
longer in the freepascal version than the Delphi one.

If I had Atttention Deficit disorder, I'd think of running over to Quake 2 and 
try
compiling it.. but alas... now it's back to Syn text editor work ;-)

--
L505

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread L505
> Anyway, I took a peek, and by the look of it I have two suspicions for 
> that graphics mess:
> 
> 1. Floating Point operations.
> 2. Floating point comparition.
> 
> I'm not much of a gamer, but a Doom fan :-P. I even made a freepascal 
> Doom Roguelike game :-P.

So you think Delphi optimizes these operations significantly?
So you did see walls and bricks rammed into your face when you played too?
It's not just my video card?

How about the keyboard? Was it sticky and slow? As if you had molasses on it?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] DOOM game for FPC

2005-12-03 Thread Kornel Kisielewicz



L505 wrote:
Anyway, I took a peek, and by the look of it I have two suspicions for 
that graphics mess:


1. Floating Point operations.
2. Floating point comparition.

I'm not much of a gamer, but a Doom fan :-P. I even made a freepascal 
Doom Roguelike game :-P.


So you think Delphi optimizes these operations significantly?


No, I think that the error is in the BSP building algorithm. Original 
C-source probably used some float-model-specific optimizations, the guy 
who ported it to Delphi converted them to delphi-float-model-specific 
results, and while porting to FPC those things got broken. I know that 
in the "old-days" there were several machine-wise tricks on floats that 
were used for BSP trees, and I imagine that could be the main source of 
the problem.



So you did see walls and bricks rammed into your face when you played too?


Yes.


It's not just my video card?


No :-). Or both of ours :-D.


How about the keyboard? Was it sticky and slow? As if you had molasses on it?


Yes.

I wonder how much work would it be porting this code to JEDI-SDL... 
Hell, I might even give it a try... tough it seems useless, for there 
would be no gain for anyone from that -- we already have several supreme 
Doom-clones... :-]

--
At your service,
Kornel Kisielewicz (adminATchaosforge.org) [http://chaosforge.org]
Carceri -- A prelude to GenRogue... Coming Soon
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal