Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Martin Schreiber schrieb: >>> http://www.freepascal.org/mantis/view.php?id=6036 >> It doesn't look like that is going to be fixed any time soon. It was >> reported in 2005-06-14 and still hasn't even been acknowledged! I've no clue how it is supposed to work :) >> > :-) > Reference counted widest

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Schnell
Since I assume the DLL use is the scenario that is wanted, it de facto means that you must use widestrings. What about old fashioned PChar ? Everybody using the Windows and Linux APIs is used to that. -Michael ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Paul Ishenin
Michael Van Canneyt wrote: Classes: - No reference counting mess. - Easier to grasp conceptually. In plugin dll? Sure. Why not ? Obviously, the DLL needs to use packages, but that is understood. I mean what is easier to grasp conceptually when you use class in dll instead of interface?

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Martin Schreiber
On Friday 30 November 2007 11.22, Florian Klaempfl wrote: > > I forgot to mention that the Delphi 'implements' keyword > > FPC supports this? Thought some bugs are known iirc. > Is the following from Delphi 7 help possible with FPC? " If the delegate property is of a class type, that class and its

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Felipe Monteiro de Carvalho
On Nov 30, 2007 10:12 AM, Michael Schnell <[EMAIL PROTECTED]> wrote: > What is the advantage of interfaces anyway (seems that I have been > missing something ... ) One advantage is that it can be easely used on many languages, althougth the usefulness of that for ideintf is probably very small. -

Re: [fpc-devel] Controlling the output of the widestring manager

2007-11-30 Thread Daniël Mantione
Op Fri, 30 Nov 2007, schreef Felipe Monteiro de Carvalho: > What do other FPC developers think of this? > > Should it be the responsability of the fpc user to write it's own > routines to override the output of the widestring manager or should > FPC provide this mechanism? The default widestri

Re: [fpc-devel] Controlling the output of the widestring manager

2007-11-30 Thread Felipe Monteiro de Carvalho
What do other FPC developers think of this? Should it be the responsability of the fpc user to write it's own routines to override the output of the widestring manager or should FPC provide this mechanism? thanks, -- Felipe Monteiro de Carvalho ___ fpc

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Marco van de Voort
> On 30 Nov 2007, at 15:27, Marco van de Voort wrote: > > > Well, those are not numbers I'm interested in anyway. Sparc doesn't > > feature > > binwriter > > Why would the presence/absence of an integrated assembler make a > difference? Performance is not just CPU, but also disk and startup

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Jonas Maebe
On 30 Nov 2007, at 15:27, Marco van de Voort wrote: Well, those are not numbers I'm interested in anyway. Sparc doesn't feature binwriter Why would the presence/absence of an integrated assembler make a difference? At least make -j doesn't do any assembling in parallel with the rest whe

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Micha Nelissen schrieb: > Florian Klaempfl wrote: >> OTOH2, using no build unit but compiling with make -j is faster on multi >> core systems. > if (Micha==0) multi_threaded_fpc=0; else multi_threaded_fpc++; ___ fpc-devel maillist - fpc

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Marco van de Voort schrieb: >> Florian Klaempfl schrieb: >> OTOH, this might be solved indeed in the future by splitting the rtl. >> OTOH2, using no build unit but compiling with make -j is faster on multi >> core systems. > > Is it? Do you have numbers? I tested once on Paul Davidson's quad core

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Micha Nelissen
Florian Klaempfl wrote: OTOH2, using no build unit but compiling with make -j is faster on multi core systems. multi_threaded_fpc++ :-) Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-d

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Florian Klaempfl schrieb: > Micha Nelissen schrieb: >> Florian Klaempfl wrote: >>> Micha Nelissen schrieb: Well, the best optimization is not needing to do something at all ;-). >>> So you see a way to do make cycle in one compiler call ;)? >> Obviously not the three cycles, but maybe one cycl

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Micha Nelissen schrieb: > Florian Klaempfl wrote: >>> 8 seconds instead of 1min20 is better, don't you think? >> >> Oh great, please tell me how you accelerated make and process start >> times. > > Well, the best optimization is not needing to do something at all ;-). > So you see a way to do ma

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Vincent Snijders
Marc Weustink schreef: Vincent Snijders wrote: Michael Van Canneyt schreef: I find classes more natural than interfaces. It 'just works'. Not so with interfaces, because you must do a typecast every time. Compare Function GetPluginInterface : ISOmeThing; begin X:=MyPluginObjectXYZ.Creat

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Schnell
OK, Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Marc Weustink
Vincent Snijders wrote: Michael Van Canneyt schreef: I find classes more natural than interfaces. It 'just works'. Not so with interfaces, because you must do a typecast every time. Compare Function GetPluginInterface : ISOmeThing; begin X:=MyPluginObjectXYZ.Create; Result:=X as ISomet

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Vincent Snijders
Michael Van Canneyt schreef: I find classes more natural than interfaces. It 'just works'. Not so with interfaces, because you must do a typecast every time. Compare Function GetPluginInterface : ISOmeThing; begin X:=MyPluginObjectXYZ.Create; Result:=X as ISomething; end; This is then

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Graeme Geldenhuys
On 30/11/2007, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > and the interface > > method resolution clauses would be useful too. > > What this? > I think he means when a class implements a inferfaces and somewhere in the class hierarchy, there already exists a method with the same name. You

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Schnell
I even do have that book right behind me on the shelf. Silly me should have looked there :(. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Graeme Geldenhuys
On 30/11/2007, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > This works iirc too? That's what I remember as well Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Jonas Maebe
On 30 Nov 2007, at 11:49, Martin Schreiber wrote: Delphi 7 is 10 times faster than FPC 2.2. 8 seconds instead of 1min20 is better, don't you think? That very much depends on the trade-offs. If there are none: fine. However, if it requires to go back to a compiler design similar to that of

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Martin Schreiber
On Friday 30 November 2007 09.59, Florian Klaempfl wrote: > Martin Schreiber schrieb: > >>> http://www.freepascal.org/mantis/view.php?id=6036 > >> > >> It doesn't look like that is going to be fixed any time soon. It was > >> reported in 2005-06-14 and still hasn't even been acknowledged! > > I've

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Van Canneyt
On Fri, 30 Nov 2007, Paul Ishenin wrote: > > > Michael Van Canneyt пишет: > > On Thu, 29 Nov 2007, Mattias Gaertner wrote: > > > > > > > Lazarus has the IDEIntf, the API for IDE plugins. > > > > > > What is better in this case: classes or interfaces? > > > > > > > Classes: > > - No ref

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Marco van de Voort
> > What is better in this case: classes or interfaces? > > > What is the advantage of interfaces anyway (seems that I have been > missing something ... ) A limited form of multiple inheritance. > I _thought_ it would be reference counting, but in the other thread > someone wants to (and do

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Schnell
What is better in this case: classes or interfaces? What is the advantage of interfaces anyway (seems that I have been missing something ... ) I _thought_ it would be reference counting, but in the other thread someone wants to (and does) use Interfaces without reference counting. -Mich

Re: [fpc-devel] zstream, fpc and lazarus

2007-11-30 Thread Vincent Snijders
Daniël Mantione schreef: Op Mon, 26 Nov 2007, schreef Paul Ishenin: Daniël Mantione wrote: This patch is not correct because there might still be unread data in the zlib data buffers; this patch makes no attempt to flush them. Daniël This patch only do repositioning of Source stream to apr

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Martin Schreiber schrieb: > On Friday 30 November 2007 11.23, Graeme Geldenhuys wrote: > >>> Delphi 7 is 10 times faster than FPC 2.2. >>> 8 seconds instead of 1min20 is better, don't you think? >> I'll bite. :-) >> What can I compile to do a speed comparison? How do I compile MSEgui >> under De

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Marco van de Voort
> Micha Nelissen schrieb: > > Florian Klaempfl wrote: > >> OTOH2, using no build unit but compiling with make -j is faster on multi > >> core systems. > > > > if (Micha==0) > multi_threaded_fpc=0; > else > multi_threaded_fpc++; Cough! ___ fp

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Paul Ishenin
Michael Van Canneyt wrote: No-one. The DLL must be recompiled anyway if you use packages. And this is also true if you use interfaces, so using interfaces will not solve the problem you mention. Only if compiler (who provides package system) changed. Ide changes will not cause recompilation o

Re: [fpc-devel] compile fpc for i386 from a 64 bit machine

2007-11-30 Thread Alvise Nicoletti
Daniël Mantione ha scritto: Op Thu, 29 Nov 2007, schreef Alvise Nicoletti: I added a /usr/lib32 link to the fpc.cfg, however I have no "crti.o" in the /usr/lib32/ folder. I got the same error trying to cross-compile to a i386 target. /usr/lib/crti.o is a "ELF 64-bit LSB relocatable, AMD x86

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Marco van de Voort
[ Charset ISO-8859-1 unsupported, converting... ] > On Friday 30 November 2007 11.22, Florian Klaempfl wrote: > > > I forgot to mention that the Delphi 'implements' keyword > > > > FPC supports this? Thought some bugs are known iirc. > > > Is the following from Delphi 7 help possible with FPC? int

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: > On 30/11/2007, Florian Klaempfl <[EMAIL PROTECTED]> wrote: >>> and the interface >>> method resolution clauses would be useful too. >> What this? >> > > > I think he means when a class implements a inferfaces and somewhere in > the class hierarchy, there already exist

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Graeme Geldenhuys
On 30/11/2007, Martin Schreiber <[EMAIL PROTECTED]> wrote: > > > I forgot to mention that the Delphi 'implements' keyword and the interface > method resolution clauses would be useful too. > Aren't those already supported in FPC 2.2.0? I thought 'implements' was around some some time now. > > D

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Martin Schreiber schrieb: > On Friday 30 November 2007 09.59, Florian Klaempfl wrote: >> Martin Schreiber schrieb: > http://www.freepascal.org/mantis/view.php?id=6036 It doesn't look like that is going to be fixed any time soon. It was reported in 2005-06-14 and still hasn't even been

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Graeme Geldenhuys
On 30/11/2007, Michael Schnell <[EMAIL PROTECTED]> wrote: > > > What is the advantage of interfaces anyway (seems that I have been > missing something ... ) > Many others have answered this already, so I'm not going to type out the answer. Instead, I'll just quote some of them This should gi

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Martin Schreiber
On Friday 30 November 2007 10.26, Michael Van Canneyt wrote: > > When you pass an interface that uses ansistrings to a DLL, > the ansistrings in it (or referenced by it) may be disposed > of by the wrong memory manager. > > Since I assume the DLL use is the scenario that is wanted, > it de facto me

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Daniël Mantione
Op Fri, 30 Nov 2007, schreef Martin Schreiber: > On Friday 30 November 2007 10.26, Michael Van Canneyt wrote: > > > > When you pass an interface that uses ansistrings to a DLL, > > the ansistrings in it (or referenced by it) may be disposed > > of by the wrong memory manager. > > > > Since I ass

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Micha Nelissen
Florian Klaempfl wrote: 8 seconds instead of 1min20 is better, don't you think? Oh great, please tell me how you accelerated make and process start times. Well, the best optimization is not needing to do something at all ;-). Micha ___ fpc-devel ma

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Van Canneyt
On Fri, 30 Nov 2007, Paul Ishenin wrote: > Michael Van Canneyt wrote: > > > > > Classes: > > > > - No reference counting mess. - Easier to grasp conceptually. > > > > > > > In plugin dll? > > > > Sure. Why not ? Obviously, the DLL needs to use packages, but that is > > understood. > > I me

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Martin Schreiber
On Friday 30 November 2007 11.23, Graeme Geldenhuys wrote: > > Delphi 7 is 10 times faster than FPC 2.2. > > 8 seconds instead of 1min20 is better, don't you think? > > I'll bite. :-) > What can I compile to do a speed comparison? How do I compile MSEgui > under Delphi 7? > http://www.mail-archi

RE: [fpc-devel] compile fpc for i386 from a 64 bit machine

2007-11-30 Thread Giulio Bernardi
> That's probably the end of that computer lazarus installation, I can't > risk to mess up the libs again. Personally, I use a 32 bit chroot environment to avoid headaches. The only drawback is that you need root privileges to run chroot. I wrote some bash scripts (very ugly and without error c

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Micha Nelissen
Florian Klaempfl wrote: Micha Nelissen schrieb: Well, the best optimization is not needing to do something at all ;-). So you see a way to do make cycle in one compiler call ;)? Obviously not the three cycles, but maybe one cycle could be done by not compiling the RTL, but by starting to co

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Florian Klaempfl
Micha Nelissen schrieb: > Florian Klaempfl wrote: >> Micha Nelissen schrieb: >>> Well, the best optimization is not needing to do something at all ;-). >> >> So you see a way to do make cycle in one compiler call ;)? > > Obviously not the three cycles, but maybe one cycle could be done by not > co

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Micha Nelissen
Florian Klaempfl wrote: Well, problem is that then not all units are build and you don't want to pull in variants etc. into the compiler :) rtl_extra++ :-) Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/ma

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Van Canneyt
On Fri, 30 Nov 2007, Paul Ishenin wrote: > Michael Van Canneyt wrote: > > No-one. The DLL must be recompiled anyway if you use packages. > > And this is also true if you use interfaces, so using interfaces > > will not solve the problem you mention. > > > Only if compiler (who provides packag

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Marco van de Voort
> Florian Klaempfl schrieb: > OTOH, this might be solved indeed in the future by splitting the rtl. > OTOH2, using no build unit but compiling with make -j is faster on multi > core systems. Is it? Do you have numbers? ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Mattias Gaertner
On Fri, 30 Nov 2007 13:22:54 +0100 (CET) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Fri, 30 Nov 2007, Paul Ishenin wrote: > > > Michael Van Canneyt wrote: > > > No-one. The DLL must be recompiled anyway if you use packages. > > > And this is also true if you use interfaces, so usin

Re: [fpc-devel] interfaces vs classes in dll

2007-11-30 Thread Michael Van Canneyt
On Fri, 30 Nov 2007, Mattias Gaertner wrote: > On Fri, 30 Nov 2007 13:22:54 +0100 (CET) > Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > > > > On Fri, 30 Nov 2007, Paul Ishenin wrote: > > > > > Michael Van Canneyt wrote: > > > > No-one. The DLL must be recompiled anyway if you use pa

Re: [fpc-devel] {$Interfaces Corba} and TInterfacedObject

2007-11-30 Thread Marco van de Voort
> Marco van de Voort schrieb: > >> Florian Klaempfl schrieb: > >> OTOH, this might be solved indeed in the future by splitting the rtl. > >> OTOH2, using no build unit but compiling with make -j is faster on multi > >> core systems. > > > > Is it? Do you have numbers? > > I tested once on Paul Da