Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Thaddy
On 13-11-2010 20:56, Hans-Peter Diettrich wrote: The comparison in the UTF-8 string example is very questionable. First ch(i) is not equivalent to ch, not even closely related, and the claim of O(N^2) operations deserves an proof - IMO it's simply wrong. Yes, this caught my eye as well: O(N^

Re: [fpc-devel] Free Pascal 2.4.2 minimal distros for fpGUI available

2010-11-14 Thread Graeme Geldenhuys
On 14 November 2010 04:09, Paul Breneman wrote: > This web page has i386 Win32 and ARM WinCE cross-compiler zips that include > everything needed (no install necessary) to test FPC 2.4.2 with the fpGUI > 0.7 release (Aug 2010): >  http://www.turbocontrol.com/easyfpgui.htm Nicely done, thanks Paul.

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Marco van de Voort
In our previous episode, Thaddy said: > > The comparison in the UTF-8 string example is very questionable. First > > ch(i) is not equivalent to ch, not even closely related, and the claim > > of O(N^2) operations deserves an proof - IMO it's simply wrong. > > > Yes, this caught my eye as well: O(

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Vincent Snijders
2010/11/14 Thaddy : > On 13-11-2010 20:56, Hans-Peter Diettrich wrote: >> >> The comparison in the UTF-8 string example is very questionable. First >> ch(i) is not equivalent to ch, not even closely related, and the claim of >> O(N^2) operations deserves an proof - IMO it's simply wrong. >> > Yes,

Re: [fpc-devel] Free Pascal 2.4.2 minimal distros for fpGUI available

2010-11-14 Thread Paul Breneman
Graeme Geldenhuys wrote: On 14 November 2010 04:09, Paul Breneman wrote: This web page has i386 Win32 and ARM WinCE cross-compiler zips that include everything needed (no install necessary) to test FPC 2.4.2 with the fpGUI 0.7 release (Aug 2010): http://www.turbocontrol.com/easyfpgui.htm Nice

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Thaddy
On 14-11-2010 13:22, Vincent Snijders wrote: would be evaluated every time. S the O(N^2) stems from the fact that it is hard to get the ith character in a a UTF8String in O(1). Suppose it is o(N), then the loop is O(n^2). Vincent "Hard to" is implementation detail and not part of any algorithm.

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Vincent Snijders
2010/11/14 Thaddy : > On 14-11-2010 13:22, Vincent Snijders wrote: >> >> would be evaluated every time. S >> the O(N^2) stems from the fact that it is hard to get the ith >> character in a a UTF8String in O(1). Suppose it is o(N), then the loop >> is O(n^2). >> >> Vincent > > "Hard to" is implement

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Marco van de Voort
In our previous episode, Thaddy said: > > would be evaluated every time. S > > the O(N^2) stems from the fact that it is hard to get the ith > > character in a a UTF8String in O(1). Suppose it is o(N), then the loop > > is O(n^2). > > > "Hard to" is implementation detail and not part of any algorit

[fpc-devel] PDF docs downloads are outdated

2010-11-14 Thread Graeme Geldenhuys
Hi, I just downloaded all the PDF docs from the Free Pascal website, then noticed they are all for v2.4.0, not 2.4.2. Just thought I would mention this. -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.hom

Re: [fpc-devel] PDF docs downloads are outdated

2010-11-14 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > I just downloaded all the PDF docs from the Free Pascal website, then > noticed they are all for v2.4.0, not 2.4.2. Just thought I would > mention this. /me waves magic wand. ___ fpc-devel maillist -

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Hans-Peter Diettrich
Thaddy schrieb: The comparison in the UTF-8 string example is very questionable. First ch(i) is not equivalent to ch, not even closely related, and the claim of O(N^2) operations deserves an proof - IMO it's simply wrong. Yes, this caught my eye as well: O(N^2) seems only the case if "length"

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Hans-Peter Diettrich
Marco van de Voort schrieb: A more grave reason though is that Delphi does not have low() and high() on sets and a request to add it by me in 2006 was closed with their equivalent of "won't fix". I wonder how FPC defines low() and high() for sets. The static bounds can be obtained from the un

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Hans-Peter Diettrich
Vincent Snijders schrieb: 2010/11/14 Thaddy : On 13-11-2010 20:56, Hans-Peter Diettrich wrote: The comparison in the UTF-8 string example is very questionable. First ch(i) is not equivalent to ch, not even closely related, and the claim of O(N^2) operations deserves an proof - IMO it's simply w

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Marco van de Voort
In our previous episode, Hans-Peter Diettrich said: > > > A more grave reason though is that Delphi does not have low() and high() on > > sets and a request to add it by me in 2006 was closed with their equivalent > > of "won't fix". > > I wonder how FPC defines low() and high() for sets. See th

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Marco van de Voort
In our previous episode, Hans-Peter Diettrich said: > > the O(N^2) stems from the fact that it is hard to get the ith > > character in a a UTF8String in O(1). Suppose it is o(N), then the loop > > is O(n^2). > > With regards to UTF-8 (or other MBCS) strings, what does Length(s) The base size of

Re: [fpc-devel] Free Pascal 2.4.2 minimal distros for fpGUI available

2010-11-14 Thread Paul Breneman
Paul Breneman wrote on 11/13/2010: This web page has i386 Win32 and ARM WinCE cross-compiler zips that include everything needed (no install necessary) to test FPC 2.4.2 with the fpGUI 0.7 release (Aug 2010): http://www.turbocontrol.com/easyfpgui.htm The i386 Linux version is almost ready.

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Alexander Klenin
On Sun, Nov 14, 2010 at 08:52, Graeme Geldenhuys wrote: > If you use full-blown Iterator classes (instead of just for-in style) > you get a lot more too: > >  * full control over iteration >   - move forward >   - move back >   - reset iteration >   - peek forward/back >   - skip, etc... >  * you

Re: [fpc-devel] Re: enumerators

2010-11-14 Thread Alexander Klenin
On Mon, Nov 15, 2010 at 08:25, Marco van de Voort wrote: > In our previous episode, Hans-Peter Diettrich said: >> At least the example code has to be made work, i.e. the nonsense statement >>    DoSomething(ch(i)); >> has to be changed into something like >>    DoSomething(GetUTF8char(s,i)); >> be