Re: [fpc-devel] SSE in FPC

2008-12-11 Thread Thaddy
Alain Michaud wrote: Vinzent Höfler wrote: Alain Michaud wrote: Hi, Not exactly related to this thread, but worth mentioning: Some time ago I was interested in (numerical) computing some Bessel function to the highest precision! I looked at MMX, SSE, SSE2, SSE3, SSE4, FP87, 3D-so

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Florian Klaempfl <[EMAIL PROTECTED]>: > Mattias Gärtner schrieb: > > I'm writing a unit to simplify parallel methods/procedures. > > > > For example: > > DoParallel(@AMethod,StartIndex,EndIndex,Data); > > > > The AMethod is executed with several threads in parallel. > > > > What should

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Luca Olivetti <[EMAIL PROTECTED]>: > En/na Mattias Gärtner ha escrit: > > I'm writing a unit to simplify parallel methods/procedures. > > > > For example: > > DoParallel(@AMethod,StartIndex,EndIndex,Data); > > > > The AMethod is executed with several threads in parallel. > > > > What s

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Michael Van Canneyt
On Thu, 11 Dec 2008, Mattias Gärtner wrote: > Zitat von Florian Klaempfl <[EMAIL PROTECTED]>: > > > Mattias Gärtner schrieb: > > > I'm writing a unit to simplify parallel methods/procedures. > > > > > > For example: > > > DoParallel(@AMethod,StartIndex,EndIndex,Data); > > > > > > The AMethod

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Marco van de Voort
In our previous episode, Mattias G?rtner said: > > > What should happen when an exception occurs? > > > > AFAIK any unhandled exception in a thread will cause it to silently die > > Yes, and that should never happen. At least not for normal exceptions like out > of memory, index out of bounds, io

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: > > > On Thu, 11 Dec 2008, Mattias Gärtner wrote: > > > Zitat von Florian Klaempfl <[EMAIL PROTECTED]>: > > > > > Mattias Gärtner schrieb: > > > > I'm writing a unit to simplify parallel methods/procedures. > > > > > > > > For example: > > > >

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Michael Van Canneyt
On Thu, 11 Dec 2008, Mattias Gärtner wrote: > Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: > > > > > > > On Thu, 11 Dec 2008, Mattias Gärtner wrote: > > > > > Zitat von Florian Klaempfl <[EMAIL PROTECTED]>: > > > > > > > Mattias Gärtner schrieb: > > > > > I'm writing a unit to simplify

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > In our previous episode, Mattias Gärtner said: > > > > What should happen when an exception occurs? > > > > > > AFAIK any unhandled exception in a thread will cause it to silently die > > > > Yes, and that should never happen. At least not for no

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Florian Klaempfl
Mattias Gärtner schrieb: >> raised ? > > It should be raised in the starter thread. The question is how to > - stop an exception in a thread (try..except) > - give it to another thread - the starter thread (giving the object is easy, > but > ...) > - continue the helper thread (this will normally

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Florian Klaempfl <[EMAIL PROTECTED]>: > Mattias Gärtner schrieb: > >> raised ? > > > > It should be raised in the starter thread. The question is how to > > - stop an exception in a thread (try..except) > > - give it to another thread - the starter thread (giving the object is > easy, bu

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: >[...] > This is the problem: At which point should this be done ? > > Can you point at the statement where it should be raised in the following > code: > > try >... >DoParallel(...); >... > except > end; > > There is only 1 possibl

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Florian Klaempfl
Mattias Gärtner schrieb: > Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: > >> [...] >> This is the problem: At which point should this be done ? >> >> Can you point at the statement where it should be raised in the following >> code: >> >> try >>... >>DoParallel(...); >>... >> e

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Vincent Snijders
Florian Klaempfl schreef: Mattias Gärtner schrieb: Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: [...] This is the problem: At which point should this be done ? Can you point at the statement where it should be raised in the following code: try ... DoParallel(...); ... except

Re: [fpc-devel] Exceptions in threads

2008-12-11 Thread Mattias Gärtner
Zitat von Vincent Snijders <[EMAIL PROTECTED]>: > Florian Klaempfl schreef: > > Mattias Gärtner schrieb: > >> Zitat von Michael Van Canneyt <[EMAIL PROTECTED]>: > >> > >>> [...] > >>> This is the problem: At which point should this be done ? > >>> > >>> Can you point at the statement where it shou

[fpc-devel] Whole program optimisation

2008-12-11 Thread Jonas Maebe
Hello, I've just merged the whole program optimisation branch into trunk. For information on what it currently does and how to use it, see http://wiki.freepascal.org/Whole_Program_Optimization Jonas ___ fpc-devel maillist - fpc-devel@lists.freepa

[fpc-devel] What is CreateFileMapping?

2008-12-11 Thread Gilles MARCOU
Hi, I am converting a small project from Delphi to Free Pascal. I am working on a Linux (Debian) box. In several places, the software seems to call to external applications an uses this kind of command: var smfMemHnd : HWND; ... smfMemHnd := CreateFileMapping(HWND($), nil, PAGE_READWRI

Re: [fpc-devel] Whole program optimisation

2008-12-11 Thread Aleš Katona
On Thu, 11 Dec 2008 19:27:18 +0100 Jonas Maebe wrote: > Hello, > > I've just merged the whole program optimisation branch into trunk. For > information on what it currently does and how to use it, see > http://wiki.freepascal.org/Whole_Program_Optimization > > > Jonas Let me be the first t

Re: [fpc-devel] What is CreateFileMapping?

2008-12-11 Thread Jonas Maebe
On 11 Dec 2008, at 19:39, Gilles MARCOU wrote: I am converting a small project from Delphi to Free Pascal. I am working on a Linux (Debian) box. In several places, the software seems to call to external applications an uses this kind of command: var smfMemHnd : HWND; ... smfMemHnd := Create

Re: [fpc-devel] [PATCH] FCL-DB: Extend TLookupList so it can be used as picklist source

2008-12-11 Thread Joost van der Sluis
Op woensdag 15-10-2008 om 02:32 uur [tijdzone +1100], schreef Alexander Klenin: > Attached patch does two things: > 1) Makes TLookupList.FList protected instead of private Maybe it's a better idea to add a protected property for this? Or is that not possible? > 2) Adds new TLookupList methods to

Re: [fpc-devel] [PATCH] FCL-DB: Extend TLookupList so it can be used as picklist source

2008-12-11 Thread Alexander Klenin
On Fri, Dec 12, 2008 at 06:58, Joost van der Sluis wrote: >> Attached patch does two things: >> 1) Makes TLookupList.FList protected instead of private > > Maybe it's a better idea to add a protected property for this? Or is > that not possible? Actually, with other parts of this patch accepted F

Re: [fpc-devel] Whole program optimisation

2008-12-11 Thread Martin Schreiber
On Thursday 11 December 2008 19.27:18 Jonas Maebe wrote: > Hello, > > I've just merged the whole program optimisation branch into trunk. For > information on what it currently does and how to use it, see > http://wiki.freepascal.org/Whole_Program_Optimization > > Great! Martin