Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-12 Thread Uberto Barbini
Thanks! I wonder if anyone has checked why Kylix version is faster comparing the assembler code. I read the thread but I haven't studied well! ;) Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-12 Thread Uberto Barbini
modify the string by not calling > UniqueString at all. If I understood well, with modern processor an unpredicatable branch (i.e. one with similar probability) is much more time-consuming that an unnecessary function call. Bye Uberto ps. is there a way to see the a

Re: [fpc-devel] type discussion

2005-06-02 Thread Uberto Barbini
> be different. I'm not a grear fan of them, but managed objects are indeed very useful for modelling business applications. But they don't make sense for "system" classes, so all in all I'm against them. Some OPF like InstantObjects offer a kinda of them

Re: [fpc-devel] type discussion

2005-06-02 Thread Uberto Barbini
roblem to pass parameters to the constructor. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] TCustomConnection - why?

2005-05-08 Thread Uberto Barbini
> yes. In that case we should make TCustomConnection an alias for > TDBDatabase. If the interfaces are identical I see no problems. Anyway could you rename TDBDatabase? It's orrible and I overlooked it when I searched for a TConnection replacement... ;)

Re: [fpc-devel] About TDataSet master/detail design in fpc

2005-05-06 Thread Uberto Barbini
tantObject (http://www.instantobjects.org/) too. Just now the core part of InstantObject (i.e. without presentation) works in fpc. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] gdb for win

2005-05-01 Thread Uberto Barbini
On Sunday 01 May 2005 21:39, Florian Klaempfl wrote: > Uberto Barbini wrote: > > Hi, > > I'd like to understand which gdb is better to use for current fpc-cvs, > > the one in cvs/install/binw32 or mingw one? > > If that one in cvs/install/... makes no trouble for

[fpc-devel] gdb for win

2005-05-01 Thread Uberto Barbini
Hi, I'd like to understand which gdb is better to use for current fpc-cvs, the one in cvs/install/binw32 or mingw one? BTW what are the differences? TIA Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepasca

Re: [fpc-devel] problem with "is" operator

2005-04-18 Thread Uberto Barbini
er of fact there was an article on DelphiMagazine to show how to grab the vmt of the object of an interface, via dirty magic of pointers arithmetics. Maybe in fpc it'd be in a cleaner way, but why? Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] problem with "is" operator

2005-04-18 Thread Uberto Barbini
27;d be plainly wrong: using interfaces you lost the rights to know the original class. Sometimes I added a GetUnderObject() to my interfaces to get the actual object. But it's a choice up to the interface author. BTW I needed it to release the object through the interface. I suspect that if

Re: [fpc-devel] Fpc and Ipaq

2005-04-05 Thread Uberto Barbini
need a Zaurus now! ;)) Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Fpc and Ipaq

2005-04-05 Thread Uberto Barbini
> Did you check the link I gave you above :)? The 1.9.8 arm release is a > cross compiler. :(( I've read hastly and I understood that was for the arm-linux itself! I'll try asap. Uberto ___ fpc-devel maillist - fpc-devel@lists.fre

Re: [fpc-devel] Fpc and Ipaq

2005-04-05 Thread Uberto Barbini
On Tuesday 05 April 2005 21:13, Florian Klaempfl wrote: > Uberto Barbini wrote: > > Does anyone have experience with fpc and linux on handhelds? > > http://www.de.freepascal.org/down2-linux-arm.html > > More information can be found in the fpc wiki. Do you mean here: http

[fpc-devel] Fpc and Ipaq

2005-04-04 Thread Uberto Barbini
Does anyone have experience with fpc and linux on handhelds? May the 6th, I'll show fpc at a Delphi workshop, and I'll concentrate on thinks Delphi doesn't do. I can borrow an Ipaq with linux and opie, and I like to show some fpc application on

Re: [fpc-devel] Hint: Parameter "sender" not used

2005-03-21 Thread Uberto Barbini
you find useful those hints? Are you theorically against it? I'd like it but it doesn't worth the changing of error.msg. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Hint: Parameter "sender" not used

2005-03-21 Thread Uberto Barbini
N} > > I remove all useful hints as well. Yes! Exactly my point. But now the useful hints are sunk into tons of completely useless ones. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] Hint: Parameter "sender" not used

2005-03-11 Thread Uberto Barbini
ne. But in published methods the parameter list is mandatory, so it doesn't make sense to "hint" them. Moreover they hide real hints. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Compiling error: Invalid Floating point operation

2005-03-10 Thread Uberto Barbini
On Thursday 10 March 2005 19:17, Uberto Barbini wrote: > > The call to GetSystemMetrics changes the FPU control word from $1372 to > > $1272, i.e. the Rounding precision is changed from extended to double. > > > > In the attached patch I set it back to the original value. N

Re: [fpc-devel] utf8 reading

2005-03-10 Thread Uberto Barbini
On Thursday 10 March 2005 19:51, Uberto Barbini wrote: > > >UCS-2 is different from utf-16 (which is escaped), > > > > nope. UCS originally wasn't escaped, but they changed that "recently" > > Could you point me to a official document? > In the Unic

Re: [fpc-devel] utf8 reading

2005-03-10 Thread Uberto Barbini
is utf-16 without encoding? Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] utf8 reading

2005-03-10 Thread Uberto Barbini
likely. > > Using natively utf-8 I think is impossible, because the encoding. > > Why? Because every simple function on strings (like copy) should require to start reading the string from beginning Bye Uberto ___ fpc-devel mail

Re: [fpc-devel] Compiling error: Invalid Floating point operation

2005-03-10 Thread Uberto Barbini
I've not swapped the constants anyway. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] utf8 reading

2005-03-10 Thread Uberto Barbini
Please note that at every Borland conference there is someone asking for Unicode support since Delphi2... There are several opensource library for managing unicode strings in delphi but they are implemented as standard classes, not refcounted first class ci

Re: [fpc-devel] utf8 reading

2005-03-09 Thread Uberto Barbini
think that the ultimate solution is to implement Unicode strings, I mean not escaped Unicode, and then convert utf-8 to unicode string. I'm not sure how Delphi manage that, Java has Unicode string. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.fr

Re: [fpc-devel] Compiling error: Invalid Floating point operation

2005-03-04 Thread uberto
erstand the actual limits. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] Compiling error: Invalid Floating point operation

2005-03-04 Thread uberto
dering why I'm the only one with this problem. sysstrh.inc is version 1.15 last change by peter at 2005/2/14 17:13:31 Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
lengthy discussion differs here: in delphi try ... finally ... end; is almost negible, without exception raised at least. I've no data here but with or without the block the time is quite the same. try ... except ...end; instead is really really really slow. with kylix

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
; Using the C++ ABI the overhead is almost zero. Out of curiosity, can you be more specific on why using C++ Application Binary Interface will reduce overhead? Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
tions. GC have to release the control as fast as possible and be able to resume the job where it left it. > True parallell GC's exists, but they are then not simple. Do you mean in SMP systems? Bye Uberto ___ fpc-devel maillist - fpc-devel@lis

Re: [fpc-devel] InstantObjects

2005-02-27 Thread Uberto Barbini
ould write using text files only if you need this. Yes, I agree. Maybe there were some minor issues with text too anyway (like cr/lf or floating point formats). Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] InstantObjects

2005-02-27 Thread Uberto Barbini
is case it'd be not possible to share config files. Annoying but not dramatic. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
On Sunday 27 February 2005 15:29, Peter Vreman wrote: > Why are you looking at GC/Refcounting when the problem is the try..finally? > It is better to rewrite the try..finally code using the C++ ABI for > exception handling. +1 and it'd be benefical to all application

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
f stuff on GC theories and all python and Java sources to study! ;) Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
n used them till version 2.x, but I don't think they should stay in pascal. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
, why you're saying that refcount is slow? Do you have any benchmark? If I recall you mentioned try..finally as the bottleneck, but AFAIK modern cpu should do it almost with zero overhead, differently from try..except. Bye Uberto Bye Uberto _

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
> > I also thought immediately what Uberto already said: how do you recognize > > a valid/invalid reference without accessing memory that is invalid in the > > mean time. > > How does a GC do this? It would have the same problem? A GC dont' try to recognize a v

Re: [fpc-devel] Improving Ref Counting

2005-02-27 Thread Uberto Barbini
gt; appropriate). If so raising an exception will freeze your application, checking some thousand hundreds of lists. And how do you reconnaize a valid reference from an invalid one? Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.free

Re: [fpc-devel] compiling fpc from cvs

2005-02-22 Thread Uberto Barbini
s > Start cmd.exe > Go to the new fpc directory > Type 'make all' > > Not much different from compiling any other C project. OK, tried, done... I'm definitely a complete idiot! ;) Thanks to all. Bye Uberto ___ fpc-devel mail

Re: [fpc-devel] compiling fpc from cvs

2005-02-21 Thread Uberto Barbini
ng. So let's assume I'm a completely idiot and I have downloaded fpc from cvs to compile it on a windows system. Do I have any hope to compile it? Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] compiling fpc from cvs

2005-02-21 Thread Uberto Barbini
On Monday 21 February 2005 21:04, Uberto Barbini wrote: > Where can I find info about compiling fpc from cvs? > I browsed doc and faq but I wasn't able to understand exactly where to > start. BTW today's daily win bin snapshot doesn't run (segmentation fault > in install

[fpc-devel] compiling fpc from cvs

2005-02-21 Thread Uberto Barbini
Where can I find info about compiling fpc from cvs? I browsed doc and faq but I wasn't able to understand exactly where to start. BTW today's daily win bin snapshot doesn't run (segmentation fault in install.exe). Bye Uberto ___ fpc

Re: [fpc-devel] InstantObjects

2005-02-19 Thread Uberto Barbini
e functions are in sysutils or strutils. They have no place in > > Classes. > > I started these, but are now to busy now to test, if sb is bored: > > http:/www.stack.nl/~marcov/bintohex.txt please note that the code is yet present in TParser. I suggest to

Re: [fpc-devel] InstantObjects

2005-02-19 Thread Uberto Barbini
7;ll download fpc from cvs and I'll create some wrapper classes for Streams. Note that IstantObject code now is terribly mingled between visual and persistent part. I'm working also on that. Bye Uberto ___ fpc-devel maillist - fpc-de

Fwd: Re: [fpc-devel] InstantObjects

2005-02-02 Thread uberto
e functions are in sysutils or strutils. They have no place in > > Classes. > > I started these, but are now to busy now to test, if sb is bored: > > http:/www.stack.nl/~marcov/bintohex.txt please note that the code is yet present in TParser. I suggest t

Re: [fpc-devel] InstantObjects

2005-02-02 Thread uberto
w I'll download fpc from cvs and I'll create some wrapper classes for Streams. Note that IstantObject code now is terribly mingled between visual and persistent part. I'm working on that too. Bye Uberto ___ fpc-devel maillist - fpc-devel@list

[fpc-devel] InstantObjects

2005-01-31 Thread uberto
ou can see there's nothing really serious, I can contribute code if you tell me. I hope IO will be useful to fpc and lazarus projects. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel]Amd64?

2004-08-26 Thread Uberto Barbini
Hi, is it possible to compile pascal programs for amd64? We have a Delphi program that needs more of 3Gb ram user space... it'd be a perfect excuse to begin to use fpc at work. Bye Uberto ___ fpc-devel maillist - [EMAIL PROTECTED]

[fpc-devel] Eclipse for FPC (?)

2003-11-17 Thread Uberto Barbini (Gamasoft)
Hi, did anyone ever consider to create a FPC plugin for Eclipse? I'm using Eclipse at work and it's by far the best ide I ever seen, it's also very easy to enhance it and language neutral, although a such plugin is not really trivi