Re: [fpc-devel] weird syntax

2007-12-11 Thread Marco van de Voort
Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then I suppose also it would be possible then to do: if X 3 or -1 or = 4000 or = 100 then... Not likely. See e.g. the FAQ about extensions:

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Michael Schnell
I don't suppose that anybody will start implementing real parallel loops like suggested on the wiki page any time soon. The examples are very artificial to demonstrate the problems. Some real world examples / tutorials should be added on a new page. Parallel algorithms are seldom taught

Re: [fpc-devel] weird syntax

2007-12-11 Thread Michael Schnell
Andrew Haines wrote: Hi, Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then The or operator is stronger than the operator by definition. This can't be changed. In C we have a logical or (||) and a binary or (|), as

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Florian Klaempfl
Mattias Gärtner schrieb: Zitat von Michael Schnell [EMAIL PROTECTED]: Think about the alternative: It is much harder to implement the same parallel loop with TThread. So OpenMP makes parallel loops much easier to implement. For me this is the 'Delphi' way: Makes things easy and readable.

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Daniël Mantione
Op Tue, 11 Dec 2007, schreef Florian Klaempfl: Mattias Gärtner schrieb: Zitat von Michael Schnell [EMAIL PROTECTED]: Think about the alternative: It is much harder to implement the same parallel loop with TThread. So OpenMP makes parallel loops much easier to implement. For me this

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Michael Schnell
For me the whole OpenMP approach is really artifical, I don't see a real use in real world code for it honestly IMHO, it _would_ be nice to do a matrix multiplication like this (or according to proposal 2 with parallel for): procedure MultMatrix(const mr, m1, m2: TMatrix;); var ll:

[fpc-devel] IsMultiThread variable

2007-12-11 Thread Graeme Geldenhuys
Hi, Do I need to set IsMultiThread variable or does it get done automatically by FPC? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___

Re: [fpc-devel] weird syntax

2007-12-11 Thread Bram Kuijvenhoven
Michael Schnell wrote: Andrew Haines wrote: Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then The or operator is stronger than the operator by definition. This can't be changed. In C we have a logical or (||) and a

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Mark Morgan Lloyd
Florian Klaempfl wrote: It is common in the scientistware I benchmark daily. The evil geniuses parallelize their applications by placing a some OpenMP hints in their source code. Yes, but only some loops. But just imagine how OpenMP could help in parallelization of the compiler? It can't

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Daniël Mantione
Op Tue, 11 Dec 2007, schreef Mark Morgan Lloyd: Florian Klaempfl wrote: It is common in the scientistware I benchmark daily. The evil geniuses parallelize their applications by placing a some OpenMP hints in their source code. Yes, but only some loops. But just imagine how

Re: [fpc-devel] Parallel Computing

2007-12-11 Thread Mattias Gaertner
On Tue, 11 Dec 2007 19:24:59 +0100 (CET) Daniël Mantione [EMAIL PROTECTED] wrote: Op Tue, 11 Dec 2007, schreef Mark Morgan Lloyd: Florian Klaempfl wrote: It is common in the scientistware I benchmark daily. The evil geniuses parallelize their applications by placing a some

Re: [fpc-devel] weird syntax

2007-12-11 Thread Vinzent Hoefler
On Tuesday 11 December 2007 10:04, Michael Schnell wrote: Andrew Haines wrote: Hi, Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then The or operator is stronger than the operator by definition. This can't

Re: [fpc-devel] weird syntax

2007-12-11 Thread Florian Klaempfl
Vinzent Hoefler schrieb: On Tuesday 11 December 2007 10:04, Michael Schnell wrote: Andrew Haines wrote: Hi, Is it possible to make this work: if X 3 or 10 then ... of course it would be shorthand for: if (X3) or (X10) then The or operator is stronger than the operator by