[fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-17 Thread turro75
Hi All, I'm trying to get the fpc working on a stm32f103c8 board (maple_mini_clone). following this http://j-software.dk/stm32f103.php I'm able to compile (fpc-2.6.4) and flash the bin in the flash but no way to see the (damn) led to blink the code seems

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Sven Barth
On 17.02.2015 23:28, Anthony Walter wrote: I tried this out today on FPC fixes_3_0 and was surprised to see it worked: type StringHelper = record helper for string private function GetLength: Integer; procedure SetLength(Value: Integer); function GetIsEmpty: Boolean; func

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread LacaK
Yes. Snapshot is very good, but unfortunately it seems stopped. =( +1 The snapshots could solve the necessity of RCs versions. +1 -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/lis

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Dmitry Boyarintsev
On Wed, Feb 18, 2015 at 12:05 AM, silvioprog wrote: > On Wed, Feb 18, 2015 at 1:24 AM, Anthony Walter wrote: > >> Feel free to submit a patch for me, given the code I've posted. That is, >> after you test and validate the speed gains. >> > > Dmitry? > I'm not interested. thanks, Dmitry ___

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread silvioprog
On Wed, Feb 18, 2015 at 1:24 AM, Anthony Walter wrote: > Feel free to submit a patch for me, given the code I've posted. That is, > after you test and validate the speed gains. > Dmitry? > I am busy finishing up this project (http://www.codebot.org/snapshop/) on > Linux and Mac at the moment,

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread silvioprog
On Wed, Feb 18, 2015 at 12:50 AM, Anthony Walter wrote: > I wasn't aware of XE's string helper, so no. > > But if anyone wants to test my StrFindBuffer and StrFindBufferI to gauge > their performance against similar RTL library routines, I believe you'll > find they are significantly faster. As a

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Dmitry Boyarintsev
On Tue, Feb 17, 2015 at 11:24 PM, Anthony Walter wrote: > I am busy finishing up this project (http://www.codebot.org/snapshop/) on > Linux and Mac at the moment, and then creating a new video walk through (my > prior one http://www.getlazarus.org/videos/reports/). This time I'll have > access to

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
Feel free to submit a patch for me, given the code I've posted. That is, after you test and validate the speed gains. I am busy finishing up this project (http://www.codebot.org/snapshop/) on Linux and Mac at the moment, and then creating a new video walk through (my prior one http://www.getlazaru

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Dmitry Boyarintsev
On Tue, Feb 17, 2015 at 10:50 PM, Anthony Walter wrote: > But if anyone wants to test my StrFindBuffer and StrFindBufferI to gauge > their performance against similar RTL library routines, I believe you'll > find they are significantly faster. As a consequence all other dependent > functions (Ind

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
Oh and I forget, add in a test against a multiple replacement scenario, that is making many replaces in one call to StrReplace. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
Dmitry: See this function and test if against a large block of text doing a case insensitive replace on a moderate length phrase. Match it in speed against whatever is in the RTL and see if my function is faster and by how much. function StrReplace(const S, OldPattern, NewPattern: string; IgnoreC

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
I wasn't aware of XE's string helper, so no. But if anyone wants to test my StrFindBuffer and StrFindBufferI to gauge their performance against similar RTL library routines, I believe you'll find they are significantly faster. As a consequence all other dependent functions (IndexOf, Match, Replace

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Dmitry Boyarintsev
On Tue, Feb 17, 2015 at 5:28 PM, Anthony Walter wrote: > I wrote a string library which is maybe 10x faster for searching, > replacing, trimming strings than the default RTL functions and was > considering moving them and other add-ons to record helper properties and > methods as above. > How 10

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread silvioprog
On Wed, Feb 18, 2015 at 12:13 AM, Anthony Walter wrote: > If anyone was interested in the subject, here is what I came up with after > merging my string centric functions into record helpers: > [...] Is it similar to the Delphi XE's StringHelper? If yes, could you send a patch to the bugtracker?

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
If anyone was interested in the subject, here is what I came up with after merging my string centric functions into record helpers: type StringArrayHelper = record helper for StringArray { Join a string array into a string using a separator } function Join(const Separator: string): strin

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 10:17 PM, Anthony Walter wrote: > Ah okay, thanks for that. It looks like everything I mentioned has already > been discussed. Carry on. > No problems guy. =) -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
Ah okay, thanks for that. It looks like everything I mentioned has already been discussed. Carry on. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 8:19 PM, Anthony Walter wrote: > More information. > > It seems code tools doesn't understand class or record helpers when it > come to code insight. > > If I type "MyString." and press alt space, I actually receive a code tools > "Illegal qualifier . found" error and the

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
More information. It seems code tools doesn't understand class or record helpers when it come to code insight. If I type "MyString." and press alt space, I actually receive a code tools "Illegal qualifier . found" error and the entire line highlights red. Interestingly, if I define a "TPointHelp

Re: [fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
I hit send before doing more research. I found this: http://wiki.freepascal.org/Helper_types#Syntax "In theory they could be extended to support interfaces, objects or even primitive types as well (although the latter would need bigger adjustments inside the compiler).". If would seem as if the

[fpc-pascal] Record helpers on built in types?

2015-02-17 Thread Anthony Walter
I tried this out today on FPC fixes_3_0 and was surprised to see it worked: type StringHelper = record helper for string private function GetLength: Integer; procedure SetLength(Value: Integer); function GetIsEmpty: Boolean; function GetIsWhitespace: Boolean; public functio

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Marco van de Voort
In our previous episode, silvioprog said: > > My suggestion is just: to make easier to test, for any programmer. E.g: > > - fpc-3.0.0-beta1/beta2 +/-jan/feb > - fpc-3.0.0-RC1/RC2 +/-may/jun > - fpc-3.0.0-RC3/fpc-3.0.0-stable +/-dec. > > Yes, it is hard to do, but IMHO it is necessary. I don't t

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Florian Klämpfl
Am 17.02.2015 um 20:43 schrieb silvioprog: > On Tue, Feb 17, 2015 at 3:53 PM, Florian Klämpfl > wrote: > > Am 17.02.2015 um 19:20 schrieb silvioprog: > > > > The problem is that FPC take a lot of time to release new versions. If > there was a version (R

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 4:15 PM, Sven Barth wrote: > On 17.02.2015 19:20, silvioprog wrote: > >> On Tue, Feb 17, 2015 at 2:49 PM, Sven Barth > > wrote: >> >> On 17.02.2015 18:25, silvioprog wrote: >> >> On Tue, Feb 17, 2015 at 1:41 PM, Sven Barth >>

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 4:11 PM, Sven Barth wrote: > On 17.02.2015 19:05, silvioprog wrote: > >> On Tue, Feb 17, 2015 at 2:33 PM, leledumbo > > wrote: >> >> > And Lazarus RCs could be release using this RCs FPCs (e.g: >> Lazarus-1.4-RC1 >> has FPC-3

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 3:53 PM, Florian Klämpfl wrote: > Am 17.02.2015 um 19:20 schrieb silvioprog: > > > > The problem is that FPC take a lot of time to release new versions. If > there was a version (RCs) > > every six months it would help a lot. > > The point is: it takes a lot of time to pre

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Sven Barth
On 17.02.2015 19:20, silvioprog wrote: On Tue, Feb 17, 2015 at 2:49 PM, Sven Barth mailto:pascaldra...@googlemail.com>> wrote: On 17.02.2015 18:25, silvioprog wrote: On Tue, Feb 17, 2015 at 1:41 PM, Sven Barth mailto:pascaldra...@googlemail.com>

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Sven Barth
On 17.02.2015 19:05, silvioprog wrote: On Tue, Feb 17, 2015 at 2:33 PM, leledumbo mailto:leledumbo_c...@yahoo.co.id>> wrote: > And Lazarus RCs could be release using this RCs FPCs (e.g: Lazarus-1.4-RC1 has FPC-3.0.0-RC1). I think it's a bad idea to release an RC of Lazarus with

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Florian Klämpfl
Am 17.02.2015 um 19:20 schrieb silvioprog: > > The problem is that FPC take a lot of time to release new versions. If there > was a version (RCs) > every six months it would help a lot. The point is: it takes a lot of time to prepare and test the releases and also to coordinate the efforts. >

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 2:49 PM, Sven Barth wrote: > On 17.02.2015 18:25, silvioprog wrote: > >> On Tue, Feb 17, 2015 at 1:41 PM, Sven Barth > > wrote: >> >> Am 17.02.2015 16:29 schrieb "Bee" > >: >> > >> > Hi, >>

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 2:33 PM, leledumbo wrote: > > And Lazarus RCs could be release using this RCs FPCs (e.g: > Lazarus-1.4-RC1 > has FPC-3.0.0-RC1). > > I think it's a bad idea to release an RC of Lazarus with RC of FPC, > remembering both are separate projects where Lazarus depends on FPC. >

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Sven Barth
On 17.02.2015 18:25, silvioprog wrote: On Tue, Feb 17, 2015 at 1:41 PM, Sven Barth mailto:pascaldra...@googlemail.com>> wrote: Am 17.02.2015 16:29 schrieb "Bee" mailto:bee.ogra...@gmail.com>>: > > Hi, > > Just got an article about new language features from RO's Oxygene

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Mattias Gaertner
On Tue, 17 Feb 2015 14:25:11 -0300 silvioprog wrote: >[...] > It would be nice if FPC adopt RC versions. So anyone could do tests just > installing it via setup, instead of using GIT / SVN. And Lazarus RCs could > be release using this RCs FPCs (e.g: Lazarus-1.4-RC1 has FPC-3.0.0-RC1). > > - RCs

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread leledumbo
> And Lazarus RCs could be release using this RCs FPCs (e.g: Lazarus-1.4-RC1 has FPC-3.0.0-RC1). I think it's a bad idea to release an RC of Lazarus with RC of FPC, remembering both are separate projects where Lazarus depends on FPC. Independent release where Lazarus depends on latest stable FPC i

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 1:41 PM, Sven Barth wrote: > Am 17.02.2015 16:29 schrieb "Bee" : > > > > Hi, > > > > Just got an article about new language features from RO's Oxygene > language. I think some of them might be good to be (considered and) > implemented in FPC v.3. > > > > http://blogs.remob

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-02-17 Thread silvioprog
On Tue, Feb 17, 2015 at 7:03 AM, Michael Van Canneyt wrote: > > On Mon, 16 Feb 2015, silvioprog wrote: > >> On Mon, Feb 16, 2015 at 7:23 AM, Michael Van Canneyt < >> mich...@freepascal.org> wrote: >> Good. >> >> But I don't know it we need two arrays, I think that a hash list will >> suit well, I'

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Sven Barth
Am 17.02.2015 16:29 schrieb "Bee" : > > Hi, > > Just got an article about new language features from RO's Oxygene language. I think some of them might be good to be (considered and) implemented in FPC v.3. > > http://blogs.remobjects.com/blogs/mh/2015/01/28/p7049 > > What do you think? :) > Some f

[fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Bee
Hi, Just got an article about new language features from RO's Oxygene language. I think some of them might be good to be (considered and) implemented in FPC v.3. http://blogs.remobjects.com/blogs/mh/2015/01/28/p7049 What do you think? :) Regards, -- -Bee- _

Re: [fpc-pascal] How to use FCGI in threaded mode?

2015-02-17 Thread Michael Van Canneyt
On Mon, 16 Feb 2015, silvioprog wrote: On Mon, Feb 16, 2015 at 7:23 AM, Michael Van Canneyt wrote: Good. But I don't know it we need two arrays, I think that a hash list will suit well, I'll explain it below ...   - New Request comes in. - No thread to handle request is available in