[fpc-devel] strange code in TThread in classesh.inc

2006-09-29 Thread Graeme Geldenhuys
What is the point of these ifdef's, they are identical in the sense of variable names and types...? --Line 1208 in classesh.inc snip property Terminated: Boolean read FTerminated; {$ifdef Unix} private // see tthread.inc, ThreadFunc and TThread.Resume

Re: [fpc-devel] strange code in TThread in classesh.inc

2006-09-29 Thread Tomas Hajny
Graeme Geldenhuys wrote: What is the point of these ifdef's, they are identical in the sense of variable names and types...? --Line 1208 in classesh.inc snip property Terminated: Boolean read FTerminated; {$ifdef Unix} private // see tthread.inc,

Re: [fpc-devel] strange code in TThread in classesh.inc

2006-09-29 Thread Graeme Geldenhuys
On 29/09/06, Tomas Hajny [EMAIL PROTECTED] wrote: What would be your suggestion - change it to {$IF defined(UNIX) or defined(NETWLIBC)}? I'd say that it would be better to make the interface completely common, i.e. to get rid of these IFDEFs completely (e.g. by including a record defined in

Re: [fpc-devel] strange code in TThread in classesh.inc

2006-09-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 29/09/06, Tomas Hajny [EMAIL PROTECTED] wrote: What would be your suggestion - change it to {$IF defined(UNIX) or defined(NETWLIBC)}? I'd say that it would be better to make the interface completely common, i.e. to get rid of these IFDEFs completely (e.g. by

[fpc-devel] TLCLMemanager

2006-09-29 Thread Vincent Snijders
Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that you rename it and add it to the FCL. It contains some simple (base) clasess for pooling records and objects. For the binary trees benchmark at

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Michael Van Canneyt
On Fri, 29 Sep 2006, Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that you rename it and add it to the FCL. It contains some simple (base) clasess for pooling

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Vincent Snijders
Michael Van Canneyt schreef: On Fri, 29 Sep 2006, Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that you rename it and add it to the FCL. It contains some simple

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Vincent Snijders
Vincent Snijders schreef: Michael Van Canneyt schreef: If the lazarus people agree with this, I see no problem in doing so. I think they will agree, but I will ask to make sure. Mattias, who wrote the unit, agrees. Vincent ___ fpc-devel

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Michael Van Canneyt
On Fri, 29 Sep 2006, Vincent Snijders wrote: Michael Van Canneyt schreef: On Fri, 29 Sep 2006, Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Mattias Gaertner
On Fri, 29 Sep 2006 16:32:23 +0200 (CEST) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Fri, 29 Sep 2006, Vincent Snijders wrote: Michael Van Canneyt schreef: On Fri, 29 Sep 2006, Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager:

[fpc-devel] sse2 registers

2006-09-29 Thread Vincent Snijders
I am trying out the sse2 support in fpc 2.1.1 and compile my code with -Cfsse2. The program is the mandelbrot benchmark: http://shootout.alioth.debian.org/gp4/benchmark.php?test=mandelbrotlang=fpascal The innerloop is like this: Zr := 0; Zi := 0; Tr := 0; Ti := 0; i := 0;

[fpc-devel] Shootout

2006-09-29 Thread Daniël Mantione
Hi, Encouraged by Vincent I made an attempt to implement the Chameneos benchmark of the Shootout. It turned out to be really hard, because we don't have real semafores (which makes it for example impossible to translate the C version). However, with the RTLevent* routines, it is possible to

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Micha Nelissen
Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that you rename it and add it to the FCL. Aren't there more units that can be moved ? Some things in LCLProc,

Re: [fpc-devel] Shootout

2006-09-29 Thread Marc Weustink
Daniël Mantione wrote: Hi, Encouraged by Vincent I made an attempt to implement the Chameneos benchmark of the Shootout. ??? Last week I submitted chamenos to shootout and it got accepted. It's only the work of one night, so it might need some improvement (it' isn't faster that the C

Re: [fpc-devel] TLCLMemanager

2006-09-29 Thread Marc Weustink
Micha Nelissen wrote: Vincent Snijders wrote: Hi, The LCL contains the non-visual unit LCLMemManager: http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas I would like to propose that you rename it and add it to the FCL. Aren't there more units that can be moved ? Some things