[fpc-pascal] Re: Which regex unit to use?

2010-02-26 Thread Seth Grover
> Hi, > > There are a few regex units include with FPC and Lazarus, and dozens more > available for Delphi (and probably FPC too). > > Which one is the most well known, or best to use, or most feature complete > regarding syntax etc...? > > * /packages/regexpr/src/old/regexpr.pp > * /packages/reg

Re: [fpc-pascal] Which regex unit to use?

2010-02-26 Thread Graeme Geldenhuys
Has anybody done a speed test between these two, to see how they perform with large test files? > * /packages/regexpr/src/regexp.pp vs > * /components/synedit/synregexpr.pas > * TRegExpr (no idea what is latest and if FPC compatible) >From the following link it sounds like TRegExpr is do

Re: [fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread Graeme Geldenhuys
David W Noon wrote: > > If I were shipping compiled binaries, I would take a more "lowest > common denominator" approach, specifying an 80386 or some such. > However, I don't have that problem. Yes, we do that for our released products too. I was simply playing around with optimisation settings t

Re: [fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread David W Noon
On Fri, 26 Feb 2010 11:16:53 +0200, Graeme Geldenhuys wrote about Re: [fpc-pascal] Which -Op??? parameter is appropriate: > Graeme Geldenhuys wrote: > > > > Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them > > appropriate for a Core2Quad CPU? > > OK, I think I answered my own que

Re: [fpc-pascal] floating point an FPC

2010-02-26 Thread Jonas Maebe
On 26 Feb 2010, at 11:37, ik wrote: I've made a small test: if (0.1+0.2) = 0.3 then The only compiler/interpator that actually tells that it equal is FPC. Then you are very lucky that FPC says it is equal. I've tested it using Javascript (in Firefox), Ruby, Python, C (gcc) and Perl. T

Re: [fpc-pascal] floating point an FPC

2010-02-26 Thread Marco van de Voort
In our previous episode, ik said: > I've made a small test: > > if (0.1+0.2) = 0.3 then > > The only compiler/interpator that actually tells that it equal is FPC. > > I've tested it using Javascript (in Firefox), Ruby, Python, C (gcc) and > Perl. > > Except FPC, everyone tells that 0.1+0.2 = 0.

[fpc-pascal] Re: Memory allocation problem

2010-02-26 Thread Yann Bat
Please forgot my stupid question. GetMem works perfectly as described in the documentation. My problem cames from an another part of my program. Yann ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

[fpc-pascal] floating point an FPC

2010-02-26 Thread ik
Hello, I've made a small test: if (0.1+0.2) = 0.3 then The only compiler/interpator that actually tells that it equal is FPC. I've tested it using Javascript (in Firefox), Ruby, Python, C (gcc) and Perl. Except FPC, everyone tells that 0.1+0.2 = 0.30004 Can someone explain how FPC

[fpc-pascal] Memory allocation problem

2010-02-26 Thread Yann Bat
Hi, I'm looking for a function or a procedure that tries to allocate memory and return nil on failure. GetMem seems to be a good candidate but it doesn't works as expected. The FreePascal documentations (http://www.freepascal.org/docs-html/rtl/system/getmem.html) tells that it returns nil on fail

Re: [fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread Graeme Geldenhuys
Graeme Geldenhuys wrote: > > Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them > appropriate for a Core2Quad CPU? OK, I think I answered my own question when I tried it on my projects. -OpATHLON64 seems to be the option for my CPU type. 'fpc -i' gives you the available options. L

[fpc-pascal] Which -Op??? parameter is appropriate

2010-02-26 Thread Graeme Geldenhuys
System used: Intel Core 2 Quad Q9400 @ 2.66GHz with 4GB memory FPC 2.4 64-bit under Ubuntu 8.04.2 LTS 64-bit Which -Op??? can I use to optimize my application best for the above system? Is -OpPENTIUMM better or worse than -OpPENTIUM4? Is any of them appropriate for a Core2Qua