Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-27 Thread Lukasz Sokol
On 26/06/17 23:28, Bo Berglund wrote: [...] > > NEXT: > It looks like I will have to rewrite my relaying program now used in > Windows for the conversion to TCP from RS232 to also work as the > replacement for ser2net on RPi3. This way I can monitor the data > better and check time intervals etc.

Re: [fpc-pascal] FPC 64bit for windows

2017-05-19 Thread Lukasz Sokol
On 19/05/17 16:15, Sven Barth via fpc-pascal wrote: > Am 19.05.2017 14:53 schrieb "Lukasz Sokol" > <mailto:el.es...@gmail.com>>: >> >> On 19/05/17 13:33, Sven Barth via fpc-pascal wrote: >> >>>>> You don't have to build a 32-bit FP

Re: [fpc-pascal] FPC 64bit for windows

2017-05-19 Thread Lukasz Sokol
On 19/05/17 13:33, Sven Barth via fpc-pascal wrote: >>> You don't have to build a 32-bit FPC because an official >>> released installer exists. So this is no problem at all. But >>> seeing as pretty much everything is moving (or already has moved) >>> to 64-bit, why bother with 32-bit these days.

Re: [fpc-pascal] FPC 64bit for windows

2017-05-19 Thread Lukasz Sokol
On 19/05/17 11:15, Graeme Geldenhuys wrote: > On 2017-05-19 00:38, Nikolay Nikolov wrote: >> windows OS - there are simply no known issues with that under any >> 64-bit windows version that I know of. snip... It won't work >> from the IDE, though, but compiling your program from the command >>

Re: [fpc-pascal] SpVoice.GetVoices returned exception class EOleSysError

2017-04-12 Thread Lukasz Sokol
On 12/04/17 13:37, nore...@z505.com wrote: > On 2017-04-12 07:01, fredvs wrote: >> Hello. >> >> There is also a free-open-source project : espeak : >> http://espeak.sourceforge.net >> >> The licence is GNU General Public License so you may use the >> executable like you want. > > The GPL is a r

Re: [fpc-pascal] Threading vs Parallelism ?

2017-04-12 Thread Lukasz Sokol
On 12/04/17 12:54, Lars wrote: > On Wed, March 29, 2017 4:26 pm, fredvs wrote: >> @Karoly Balogh (Charlie/SGR) >> >> >> Perfect, I have now all the arguments to defend the "Dinosaur Threading" >> choice. >> >> Thanks. >> >> >> Fre;D >> > > Methinks that programs should be designed or programmed in

Re: [fpc-pascal] Bug in documentation for Random?

2017-04-06 Thread Lukasz Sokol
On 05/04/17 17:55, Bart wrote: > http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Random > > "random returns a random number between 0 and abs(num-1)" > > IIUC, then Random() shoud always return a positive number. > Mmm, I don't think so: For y := Random(num); the unsigned value of 'y' will w

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Lukasz Sokol
To all who received my previous message through mailing list: please disregard. posted without reading thoroughly. apologies. -L. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Lukasz Sokol
Hi, On 15/03/17 16:58, Karoly Balogh (Charlie/SGR) wrote: > Hi, > > On Sun, 12 Mar 2017, Michael Van Canneyt wrote: > >>> Is there something planned in this matter for FPC? >>> >>> I was reading about the new Firefox making WebAssembly publicly >>> available ("On Tuesday Firefox 52 became the

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-08 Thread Lukasz Sokol
On 07/03/17 23:03, Vojtěch Čihák wrote: > Hi, > > intersting, > > there are different informations about *.wav, so maybe there are different > impementations too. > > See: > > http://soundfile.sapp.org/doc/WaveFormat/ > This also has endiannes information, which is quite cool.. > and >

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-07 Thread Lukasz Sokol
Hi, On 07/03/17 13:23, Michael Van Canneyt wrote: > >> Huh? Of course you can do that rather similary in C as well. > > Indeed. You can do exactly the same. You can do this: > > {$mode objfpc} > uses classes; > > > Type > Float = Double; > TFloatArray = Array of Float; > > Procedure Test

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-06 Thread Lukasz Sokol
Or, quite comically maybe: use a text file... write/writeln and read/readln, and use zip compression on the text file to compress data... -L. On 06/03/17 15:59, Lukasz Sokol wrote: > On 06/03/17 14:50, fredvs wrote: >>> I don't know. By all logic, it should not work either. &g

Re: [fpc-pascal] Adding a array of float in ressource and use it ?

2017-03-06 Thread Lukasz Sokol
On 06/03/17 14:50, fredvs wrote: >> I don't know. By all logic, it should not work either. > > OK, It comes from a "lucky" bug (thanks to reveal it). > There was a setlength(buffer, length(buffer) * channels) not needed. > > Ok, fixed. > > But the problem remain: > > If data are int16 or int32:

Re: [fpc-pascal] fpc and voip ?

2017-01-17 Thread Lukasz Sokol
On 17/01/17 09:04, José Mejuto wrote: > El 16/01/2017 a las 23:10, fredvs escribió: > > Hello, > >> What must be done to make: - a url-mp3-file like 1) on server > [...] > In the other side, mp3 is not a suitable format for voIP, as it have > a big latency. > Yeah, Fred mentioned VoIP, that's w

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 16/01/17 16:02, fredvs wrote: > Hello. > > Thanks Lucaz for the link. > > But this is too complete ! > OOps :) > I will try to explain what i want and if it is possible to do it with > fphttpclient/server.pas. > > I can successfully save to file input from mic/wav/mp3/ogg/flac to wav file.

Re: [fpc-pascal] fpc and voip ?

2017-01-16 Thread Lukasz Sokol
On 14/01/17 13:05, fredvs wrote: > Hello. > > I have lot of success to play mp3 files with library mpg123+portaudio and > fpc unit fphttpclient.pas. > > Andrew Haines did a perfect work with his TThreadHttpGetter (that is now > included in https://github.com/fredvs/uos). > > So getting the voice

Re: [fpc-pascal] Bls: TProcess failed running Swift compiler

2017-01-09 Thread Lukasz Sokol
Hi Mr Bee, On 09/01/17 13:34, Mr Bee wrote: > I found the answer myself. It seems that I need to supply the full > path to the swift REPL executable. I don't understand why it requires > it for swift because it could call python executable just fine > without using full path. Anyway, problem solve

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Lukasz Sokol
On 13/07/16 08:31, Mark Morgan Lloyd wrote: > Michael Van Canneyt wrote: >> On Tue, 12 Jul 2016, Mark Morgan Lloyd wrote: >> >>> Please excuse one of my regular silly questions. Elsewhere, a (former) >>> Delphi programmer is uneasy having found that his binaries have had >>> embedded SQL queries,

Re: [fpc-pascal] Single threaded application on multicore CPU

2016-06-22 Thread Lukasz Sokol
On 22/06/16 08:07, Torsten Bonde Christiansen wrote: > On 2016-06-22 09:02, LacaK wrote: >> Hi *, >> >> may be that this question is bit off-topic here, but I am sure, that here >> are experts, which know answer ;-) >> >> I have simple Lazarus/FPC application (with no explicit threads) which does

Re: [fpc-pascal] TFPList.Expand was: Maximum of memory which can be used by single program in 32 bit Windows

2016-05-20 Thread Lukasz Sokol
On 20/05/16 09:40, Graeme Geldenhuys wrote: > On 2016-05-20 09:36, Graeme Geldenhuys wrote: >> I think a “x percentage of capacity” increment is the way to go. eg: 5 >> or 10% > > Scrap that idea. In hind sight, % increments is what is causing the problem. > > Regards, > Graeme And actually wh

Re: [fpc-pascal] Build in a C compiler

2016-04-21 Thread Lukasz Sokol
On 20/04/16 15:04, Rainer Stratmann wrote: > Am Mittwoch, 20. April 2016, 12:40:19 schrieb Mark Morgan Lloyd: >>> http://www.mikroe.com/compilers >> >> If you want to believe that BASIC- as originally implemented- and ALGOL >> are related then go ahead and do so. But the politest thing I can say is

Re: [fpc-pascal] Wiki etc.- where? [ot]

2016-02-25 Thread Lukasz Sokol
On 25/02/16 14:37, Mark Morgan Lloyd wrote: > I was hoping to use to resurrect LinuxPMI (OpenMOSIX) Wow, I remember trying to boot up a cluster of OpenMOSIX machines from CD's (remastered Knoppix) :) back in 2004 ;) Not much left of that world any more, sadly; since the OM creator abandoned the

[fpc-pascal] [OT] News-Flash: fpc-other is now on Gmane !

2016-02-19 Thread Lukasz Sokol
Yay http://dir.gmane.org/gmane.comp.compilers.free-pascal.social However has not yet hit the gmane nntp hierarchy (at the time of writing this post); The first post it lists is the Lazarus 1.6 Announcement Date: 2016-02-18 15:28:27 GMT (18 hours and 21 minutes ago) So I could not subscribe to

Re: [fpc-pascal] Happy tickets benchmark [OT]

2016-02-19 Thread Lukasz Sokol
On 18/02/16 11:15, Serguei TARASSOV wrote: > On 18/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: >> Date: Wed, 17 Feb 2016 18:55:29 +0100 >> From: Adrian Veith >> To: FPC-Pascal users discussions >> Subject: Re: [fpc-pascal] Happy tickets benchmark >> >> I don't want to insist on th

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 12:26, Jonas Maebe wrote: > > Lukasz Sokol wrote on Fri, 05 Feb 2016: > >> Will you or other moderators, accept a request of subscription of fpc-other >> coming from either automated process on gmane.org or from gmane admins? >> >> I believe fpc-ot

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 11:22, Tomas Hajny wrote: > Hello everybody, > > Since we're getting back to the same sort of discussion, I'd like to > remind three statements (before closing this thread here similarly to the > other two): > [...] > Tomas > (one of the FPC mailing list moderators) Will you or other

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 10:35, Andreas wrote: > > On Fri 05/02/2016 07:49, Lukasz Sokol wrote: >> That it's C, not Pascal ;) and, um. sorry I do not have a c spec on hand, >> does it really work that way in C - only evaluates truevalue or falsevalue >> not both? >> >

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:58, Michael Van Canneyt wrote: > >> That it's C, not Pascal ;) and, um. sorry I do not have a c spec on hand, >> does it really work that way in C - only evaluates truevalue or falsevalue >> not both? > > I don't know about C (don't know if it actually has it?), but definitely in

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:48, Sven Barth wrote: > Am 05.02.2016 10:46 schrieb "Lukasz Sokol" <mailto:el.es...@gmail.com>>: >> >> On 05/02/16 09:22, Lukasz Sokol wrote: >> > Hi, >> > >> > On 04/02/16 21:33, Michael Van Canneyt wrote: >> &

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:48, Marco van de Voort wrote: > In our previous episode, Lukasz Sokol said: >> What of >> >> x := ( condition, true:=truevalue, false:=falsevalue); > > Clashes too much with _() from dxgettext. > Uh, ok. then what about double braces (( and )) ?

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:45, Michael Van Canneyt wrote: > [...] >> so I think no /current/ keywords would be allowed either... I see. > > Anything that spells 'statement' is indeed going to meet with fierce > resistance. > >> >> What of >> >> x := ( condition, true:=truevalue, false:=falsevalue); > > Ap

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:22, Lukasz Sokol wrote: > Hi, > > On 04/02/16 21:33, Michael Van Canneyt wrote: >> >> >> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: >> >>> Disappointed :( >> >> Well, such is life. I'm also disappointed that my

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:23, Michael Van Canneyt wrote: > > > On Fri, 5 Feb 2016, Lukasz Sokol wrote: > >>>> But introducing 2 new operators based on words (a-z, not 16 bit) means 2 >>>> new keywords and causes conflicts. >>>> Except if "then" a

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
Hi, On 04/02/16 21:33, Michael Van Canneyt wrote: > > > On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: > >> Disappointed :( > > Well, such is life. I'm also disappointed that my bank account doesn't > contain millions. But I learned to live with it :-) > > But all hope is not lost ye

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 07:03, Sven Barth wrote: > Am 04.02.2016 23:43 schrieb "Martin" >: >> >> On 04/02/2016 22:13, Michael Van Canneyt wrote: >>> >>> >>> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: You mean like literally using "?" and ":" ? >>> >>> >>> Y

Re: [fpc-pascal] The IfThen() thread is now closed

2016-02-03 Thread Lukasz Sokol
Hi Jonas, On 02/02/16 18:27, Jonas Maebe wrote: > Hi, > > I think that everyone has had ample opportunities to exchange their > views on this topic, so it's now closed on this list. If you want to > discuss it further, you can do so on the fpc-other list.> > Thanks, > > > Jonas > FPC mailing l

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Lukasz Sokol
On 02/02/16 16:28, Lukasz Sokol wrote: > (bikeshedding mode=on) > > On 02/02/16 11:24, Marcos Douglas wrote: >> On Tue, Feb 2, 2016 at 7:49 AM, Michael Van Canneyt >> wrote: >>> It is not a statement, it is an expression. >>> >>> I prefer >>

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-02 Thread Lukasz Sokol
(bikeshedding mode=on) On 02/02/16 11:24, Marcos Douglas wrote: > On Tue, Feb 2, 2016 at 7:49 AM, Michael Van Canneyt > wrote: >> It is not a statement, it is an expression. >> >> I prefer >> x := iif Obj = nil then 0 else Obj.Value; >> over >> x := if Obj = nil then 0 else Obj.Value; >> >> B

Re: [fpc-pascal] Problem with objects

2015-12-23 Thread Lukasz Sokol
On 23/12/15 16:06, Santiago A. wrote: > El 23/12/2015 a las 16:24, Lukasz Sokol escribió: >> On 23/12/15 09:37, Santiago Amposta wrote: >> I might be wrong... but I just tried: >> >> ... > > What's the conclusion? As far as I see, there is some kind of bu

Re: [fpc-pascal] Problem with objects

2015-12-23 Thread Lukasz Sokol
On 23/12/15 09:37, Santiago Amposta wrote: > Hello: > I use fpc 2.6.4 and I have a problem of memory leaks, strange errors, > etc. Finally I have tracked it to this: > > TSimpleArrayString=object > List:array of String; > end; > > TDerivedArrayString=object(TSimpleArrayString) > other_fie

Re: [fpc-pascal] Lack of 'volatile' a serious issue. Any other such caveats?

2015-12-18 Thread Lukasz Sokol
On 17/12/15 14:13, R. Diez wrote: > Hi all: > [...] > > And there you go, I haven't quite started yet and I already > discovered the first serious issue: there is no 'volatile' keyword. > This matter has been brought up in the past, and it worries me that > it has just been downplayed. > [...]

Re: [fpc-pascal] Building kernel modules using fpc (for fun)

2015-11-30 Thread Lukasz Sokol
Hello Paul, On 28/11/15 21:42, Paul Breneman wrote: > On 01/23/2011 08:15 AM, Lukasz Sokol wrote: >> Lukasz Sokol writes: >> >> I decided to put the result of my fiddling back onto the wiki >> http://wiki.freepascal.org/linux/kernel/module_development as th

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Lukasz Sokol
On 09/10/15 09:33, Jonas Maebe wrote: > Bo Berglund wrote: >> I have asked about this on the Pi forum instead, but I fear noone >> (almost) over there use free-pascal so I have no high hopes. > > The point is that this question is completely unrelated to Pascal or > Free Pascal. It's a basic Unix

Re: [fpc-pascal] Access GPIO pins on RPi2 without root? [lenghty and very [OT] ]

2015-10-09 Thread Lukasz Sokol
On 09/10/15 08:50, Bo Berglund wrote: > On Thu, 08 Oct 2015 22:01:49 +, Mark Morgan Lloyd > wrote: >>> Sorry for causing a problem here... >>> The lists you refer to are not present in the Gmane newsserver as a >>> newsgroup so I cannot access it. >> >> I suggest setting up a direct subscripti

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Lukasz Sokol
On 07/10/15 08:02, Bo Berglund wrote: > How can one control the GPIO outputs on a Raspberry Pi2 without > needing the program to run as root? I am using Raspbian Wheezy and I > need to add two relays controls to my program. > The pages I have found with google are for the original Pi so the > conne

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-25 Thread Lukasz Sokol
On 25/09/15 16:13, Bo Berglund wrote: > On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd > wrote: > >> Bo Berglund wrote: >>> If absolutely necessary I will have to set up the RPi with a monitor, >>> keyboard and mouse and install Lazarus and compile from there. But RPi >>> is not as powerfu

Re: [fpc-pascal] Interactive command recognition & mapping to program functions & other 'cli' features as a unit

2015-08-03 Thread Lukasz Sokol
On 03/08/15 09:36, Mark Morgan Lloyd wrote: > Lukasz Sokol wrote: >> On 31/07/15 16:41, Mark Morgan Lloyd wrote: >>> Lukasz Sokol wrote: >>>> On 31/07/15 14:46, Mark Morgan Lloyd wrote: >>>>> Lukasz Sokol wrote: >>>>>> Hi,

Re: [fpc-pascal] Interactive command recognition & mapping to program functions & other 'cli' features as a unit

2015-08-03 Thread Lukasz Sokol
On 31/07/15 16:41, Mark Morgan Lloyd wrote: > Lukasz Sokol wrote: >> On 31/07/15 14:46, Mark Morgan Lloyd wrote: >>> Lukasz Sokol wrote: >>>> Hi, >>>> >>>> I tried piecing something like in $topic together, >>>> >>&g

Re: [fpc-pascal] Interactive command recognition & mapping to program functions & other 'cli' features as a unit

2015-07-31 Thread Lukasz Sokol
On 31/07/15 14:46, Mark Morgan Lloyd wrote: > Lukasz Sokol wrote: >> Hi, >> >> I tried piecing something like in $topic together, >> >> intended as an 'interactive' command interpreter for my program. >> (which will in time grow an 'emb

[fpc-pascal] Interactive command recognition & mapping to program functions & other 'cli' features as a unit

2015-07-31 Thread Lukasz Sokol
Hi, I tried piecing something like in $topic together, intended as an 'interactive' command interpreter for my program. (which will in time grow an 'embedded' web server and intended to run as a (windows) service, but it's too early for that at the moment) (I hooked some events of a TMemo to my

Re: [fpc-pascal] Modems etc.

2015-07-27 Thread Lukasz Sokol
On 24/07/15 12:12, Mark Morgan Lloyd wrote: > > > It turns out that there's a more-or-less off-the-shelf solution in > SpanDSP http://www.soft-switch.org/ which is one of the libraries > that underlies IAXmodem. It provides a function to process a block of > samples, hence a callback to simulate t

Re: [fpc-pascal] Modems etc.

2015-07-21 Thread Lukasz Sokol
On 20/07/15 17:32, Mark Morgan Lloyd wrote: > Lukasz Sokol wrote: >> >> It's been years since I had anything to do with DSP, unfortunately, >> but with the FFT running on the sliding 26-sample-long window, and >> a /reverse/ FFT to produce the 26-long sample

Re: [fpc-pascal] Modems etc.

2015-07-20 Thread Lukasz Sokol
On 20/07/15 10:49, Mark Morgan Lloyd wrote: > Lukasz Sokol wrote: >> Hi Mark, >> >> On 18/07/15 17:43, Mark Morgan Lloyd wrote: >>> Has anybody used FPC to decode (and generate) FSK modem tones on >>> a VOIP connection? Strictly V.21, don't need

Re: [fpc-pascal] Modems etc.

2015-07-20 Thread Lukasz Sokol
Hi Mark, On 18/07/15 17:43, Mark Morgan Lloyd wrote: > Has anybody used FPC to decode (and generate) FSK modem tones on a > VOIP connection? Strictly V.21, don't need the complexity of QAM > etc. > i haven't ;) but it's interesting: are you just assembling/decoding the ulaw/alaw/choose$codec da

[fpc-pascal] [total offtopic] Re: Google Code closing down

2015-03-16 Thread Lukasz Sokol
On 16/03/15 11:10, Paul Breneman wrote: > On 03/16/2015 05:18 AM, Lukasz Sokol wrote: >> On 14/03/15 12:25, Florian Klaempfl wrote: >>> Am 14.03.2015 um 12:45 schrieb Graeme Geldenhuys: >>>> On 2015-03-14 11:38, Mark Morgan Lloyd wrote: >>>>> [Sigh]

Re: [fpc-pascal] Google Code closing down

2015-03-16 Thread Lukasz Sokol
On 14/03/15 12:25, Florian Klaempfl wrote: > Am 14.03.2015 um 12:45 schrieb Graeme Geldenhuys: >> On 2015-03-14 11:38, Mark Morgan Lloyd wrote: >>> [Sigh] I feel like I'm being pushed onto git rather than Subversion. >> >> Then don't resist it. As 99% of developers would tell you, > > [...] > >>

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Lukasz Sokol
On 10/03/15 16:08, Jürgen Hestermann wrote: > > Am 2015-03-10 um 09:48 schrieb Lukasz Sokol: >> On 10/03/15 06:10, Jürgen Hestermann wrote: >>> Am 2015-03-09 um 19:24 schrieb DaWorm: >>>> I would think this part answers that question: "The warning means &g

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Lukasz Sokol
On 10/03/15 13:54, Sven Barth wrote: >> I mean, it's good to have this warning enabled by default and only suppress >> it around code >> that /I/ know it's bogus at. Otherwise, it /really/ wouldn't serve its >> purpose of pointing >> where a PEBKAC^WLOGIC ERROR may occur... >> >> Sort of like su

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Lukasz Sokol
On 10/03/15 16:08, Jürgen Hestermann wrote: > > Am 2015-03-10 um 09:48 schrieb Lukasz Sokol: >> On 10/03/15 06:10, Jürgen Hestermann wrote: >>> Am 2015-03-09 um 19:24 schrieb DaWorm: >>>> I would think this part answers that question: "The warning means &g

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Lukasz Sokol
On 10/03/15 09:08, Mattias Gaertner wrote: > On Tue, 10 Mar 2015 08:48:49 + > Lukasz Sokol wrote: > >> On 10/03/15 06:10, Jürgen Hestermann wrote: >> [...] >>> Why not simply omit these messages (for managed types)? >> >> Just because YOU do

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Lukasz Sokol
On 10/03/15 06:10, Jürgen Hestermann wrote: > > Am 2015-03-09 um 19:24 schrieb DaWorm: >> I would think this part answers that question: "The warning means >> that no value has been */explicitly/* assigned to these variables >> (which */may indicate a logic error/* in the code), not necessarily >

Re: [fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Lukasz Sokol
On 04/03/15 11:45, Anthony Walter wrote: > Lukasz. I'm not sure where you are talking about. > > I know there's a really big orange button at the top of the screen > with two words in all caps "DOWNLOAD NOW". You're saying you click > that and something starts to download right away or what some >

[fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Lukasz Sokol
On 03/03/15 17:47, Anthony Walter wrote: > This is a public notice. Get Lazarus has switched from hosting > arbitrary revisions to hosting setup programs from nightly builds. > > http://www.getlazarus.org/setup/ > > Going forward each night the current svn trunk sources of FPC and > Lazarus will

Re: [fpc-pascal] fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

2015-02-26 Thread Lukasz Sokol
On 26/02/15 15:03, Mattias Gaertner wrote: > On Thu, 26 Feb 2015 12:12:01 + > Lukasz Sokol wrote: >> >> Ah so I should have uninstalled the 'source' package first... > > Yes. > I will add a 'Replaces: fpc-source', so that the next fpc-src de

Re: [fpc-pascal] fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

2015-02-26 Thread Lukasz Sokol
On 26/02/15 11:12, Mattias Gaertner wrote: > On Thu, 26 Feb 2015 10:09:33 + > Lukasz Sokol wrote: > >> I got : >> " >> dpkg: error processing fpc-src_2.6.4-140420_i386.deb (--install): >> trying to overwrite >> '/usr/share/fpcsrc/2.6.4/p

[fpc-pascal] fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

2015-02-26 Thread Lukasz Sokol
I got : " dpkg: error processing fpc-src_2.6.4-140420_i386.deb (--install): trying to overwrite '/usr/share/fpcsrc/2.6.4/packages/postgres/src/postgres3.pp', which is also in package fpc-source-2.6.4 2.6.4+dfsg-4~bpo70+1 " while installing the three debs intentionally as replacement of those go

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

2015-02-19 Thread Lukasz Sokol
On 19/02/15 10:13, Sven Barth wrote: > Am 19.02.2015 10:41 schrieb "Lukasz Sokol" > <mailto:el.es...@gmail.com>>: >> >> On 18/02/15 18:18, Florian Klämpfl wrote: >>> The linux approach is to dump a source blob onto the user. >> >> And w

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

2015-02-19 Thread Lukasz Sokol
On 18/02/15 18:18, Florian Klämpfl wrote: > Am 18.02.2015 um 14:03 schrieb Lukasz Sokol: [...] > Unlikely, we even cannot keep pace with the bug reports. > I understand. [...] > The linux approach is to dump a source blob onto the user. And we FPC /users/ are 'suggested

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

2015-02-18 Thread Lukasz Sokol
On 18/02/15 11:57, Marco van de Voort wrote: > In our previous episode, Lukasz Sokol said: [...] >> You might end up with some people that are less patient instantiating their >> own git repos, >> and adopting faster pace, and the main repos becoming outdated... because

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

2015-02-18 Thread Lukasz Sokol
Hi Marco, On 17/02/15 21:09, Marco van de Voort wrote: > 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. >

Re: [fpc-pascal] lazarus not reachable

2014-04-07 Thread Lukasz Sokol
On 07/04/14 04:17, m...@rpzdesign.com wrote: > On 4/6/2014 10:54 PM, Ralf Quint wrote: >> On 4/6/2014 7:52 PM, m...@rpzdesign.com >> wrote: >>> Well, >>> >>> I cannot subscribe to the lazarus mailing list and I can not >>> enter the forums at forums.lazarus.freepascal.org or >>> www.lazarus.freepa

Re: [fpc-pascal] Free pascal candidate for project of the month

2014-03-27 Thread Lukasz Sokol
On 26/03/14 20:44, Marco van de Voort wrote: > > FYI: > > Free Pascal is candidate for SF project of the month april, up against > strong candidates as subversion for windows (the server, not tortoise) and > smplayer. > > Note that you need a SF login to vote: > > https://sourceforge.net/p/potm

Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-17 Thread Lukasz Sokol
On 17/02/14 09:51, Michael Van Canneyt wrote: > > > On Mon, 17 Feb 2014, Lukasz Sokol wrote: > >> On 17/02/14 06:02, Jürgen Hestermann wrote: >>> >>> Am 2014-02-16 17:16, schrieb Michael Van Canneyt: >>>> It does exactly that, it says: >>

Re: [fpc-pascal] Dynamic arrays, yet another pitfall

2014-02-17 Thread Lukasz Sokol
On 17/02/14 06:02, Jürgen Hestermann wrote: > > Am 2014-02-16 17:16, schrieb Michael Van Canneyt: >> It does exactly that, it says: >> 1) No COW > > As said already: SetLength *is* a write! > > I'm not of compiler background - but I think you're confusing things here. To 'write' usually means

[fpc-pascal] Linux / timestamps: vdso_[getttimeofday(),clock_gettime(),time(); ] coming our way?

2014-02-03 Thread Lukasz Sokol
Hi Compiler Developers, foreword: please forgive if this is too low-level etc or if I don't understand it enough ;) Since I'm glancing over lkml sometimes, I couldn't help but notice an announcement by Stefani Seibold, that a fast, reliable userspace timestamp function(s) are on the process to la

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-28 Thread Lukasz Sokol
Hello Jürgen, On 27/01/14 17:50, Jürgen Hestermann wrote: [...] > > I recently had a similar problem and solved it this way: > With > > --- > type FlagType = (FlagA, > FlagB, > FlagC, > FlagD, >

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-27 Thread Lukasz Sokol
On 24/01/14 16:20, waldo kitty wrote: > On 1/23/2014 5:01 AM, Lukasz Sokol wrote: > >> Maybe Something like: (but this is with type TOptionMinMax = >> [mmNone, mmMin,mmMinMax, mmMax]) > > i wanted to thank you, lukasz, for your input... it has made me take > anot

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-23 Thread Lukasz Sokol
On 22/01/14 21:23, waldo kitty wrote: [...] >> - associate the procedures (their pointers) to jump to with the >> valid bit masks in a new data type (- do you REALLY have that many >> procedures ? Or are they somewhat repeating themselves ?) > > it will be only two procedures IF i can do it like

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-22 Thread Lukasz Sokol
On 22/01/14 15:51, waldo kitty wrote: > On 1/22/2014 3:52 AM, Lukasz Sokol wrote: > [...] >> ^and this... >> looks like a (good?) use for a dynamic array of TMinMaxState = [mmNone, >> mmMin, mmMinMax, mmMax]; >> (then var Options = array[static or dynamic] of TMi

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-22 Thread Lukasz Sokol
On 21/01/14 18:42, waldo kitty wrote: > On 1/21/2014 10:21 AM, Mattias Gaertner wrote: >> On Tue, 21 Jan 2014 09:51:38 -0500 >> waldo kitty wrote: >> >>> On 1/18/2014 7:40 PM, waldo kitty wrote: what is the best method of coding a decision tree with options that have three sta

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-13 Thread Lukasz Sokol
On 13/01/14 13:36, Fred van Stappen wrote: [...] > Hello Lucaz > > /// why not just : >> >> @soundtouch_createInstance := DynLibs.GetProcedureAddress(LibHandle, >> PAnsiChar('soundtouch_createInstance')); >> > > Get that error : > >>> libSoundTouch.pas(56,5) Error: Can't assign values to an ad

Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()

2014-01-13 Thread Lukasz Sokol
Hi, 'scue me if I did not catch something, but On 13/01/14 12:13, Fred van Stappen wrote: [...] >> > procedure InitLib(LibFile : PAnsiChar); >> > begin >> > LibHandle:=DynLibs.LoadLibrary(libfilename); >> > if LibHandle <> DynLibs.NilHandle then >> > >> > Pointer(soundtouch_createInsta

[fpc-pascal] Re: how to simplify try try except end finally end?

2013-12-27 Thread Lukasz Sokol
On 26/12/13 12:13, Reinier Olislagers wrote: > On 26/12/2013 13:09, Dennis Poon wrote: >> It seems possible in Java and C# but not in FPC. >> Is there a way to combine them like > > No. > Search the archives for proposals for syntax like this that didn't lead > to anything. > > It did lead exactl

[fpc-pascal] Re: cannot read /sys/class/net/eth1/address even as root user on linux

2013-12-06 Thread Lukasz Sokol
On 05/12/13 14:42, Dennis Poon wrote: > >> While your method should work if that file actually exists, you >> probably want to use libudev for enumerating and getting device >> information from sysfs. libudev will also enable you to get >> hotplug notification. >> >> > For your your reply. The

[fpc-pascal] Re: "identifier not found" case probelm

2013-11-12 Thread Lukasz Sokol
On 12/11/13 16:27, leledumbo wrote: >> I have a feeling this 'returns' may be a keyword... > > No, it is not, I believe. Reserved words are listed in the docs. > Yeah, I checked too, 'returns' isn't a keyword. -ENOCRYSTALBALL but /maybe/ the 'returns' is declared 'under' the code in question s

[fpc-pascal] Re: "identifier not found" case probelm

2013-11-11 Thread Lukasz Sokol
On 10/11/13 10:54, rambo waz here wrote: > at the moment i have a case where each choice leads off to a procedure. .. > looks like this > repeat > writeln('Main Menu'); > writeln('1. New Customer Info'); > writeln('2. Withdrawal'); > writeln('3. Returns'); > writeln('4. Money ow

[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-26 Thread Lukasz Sokol
On 26/09/13 11:00, Michael Van Canneyt wrote: > > > On Thu, 26 Sep 2013, Lukasz Sokol wrote: > >>> I also do not see why you would need alterations to DOM.pas, >>> both WebDav and CardDav use plain and simple XML. >> >> I merely based my assum

[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-26 Thread Lukasz Sokol
On 25/09/13 20:31, Michael Van Canneyt wrote: > > > On Wed, 25 Sep 2013, Lukasz Sokol wrote: > >> Hello, >> [...] >> But I'd like to know, if there is interest in making it 'more >> sentient', e.g. as a TDataSource/TDataSet descendant d

[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-26 Thread Lukasz Sokol
On 26/09/13 01:29, Daniel Gaspary wrote: > On Wed, Sep 25, 2013 at 12:22 PM, Lukasz Sokol wrote: >> CalDAV itself is used on the CRM I use, but I've no demand for interacting >> with it. Yet.* > > I have just taken a look at the RFC* and it seems simple to implement.

[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Lukasz Sokol
On 25/09/13 16:00, Reinier Olislagers wrote: > On 25/09/2013 16:45, Lukasz Sokol wrote: >> On 25/09/13 14:56, Daniel Gaspary wrote: >>> On Wed, Sep 25, 2013 at 8:03 AM, Lukasz Sokol >>> >>> wrote: >> For now, I was merely asking, what direction the deve

[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Lukasz Sokol
On 25/09/13 14:56, Daniel Gaspary wrote: > On Wed, Sep 25, 2013 at 8:03 AM, Lukasz Sokol wrote: >> Seems like the more complicated elements of DOM level 3 will need DOM.pas >> modifications too. > > What kind of modification ? > Uh, you got me - I don't know as I

[fpc-pascal] RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Lukasz Sokol
Hello, since I have not found anything on CardDAV related/written in/for FreePascal/Lazarus, (haven't googled with Delphi keyword thou) I'd like to send out some smoke signals, asking which way would the support for this kind of interaction (dare not call it a protocol) would be best fitting int

[fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-24 Thread Lukasz Sokol
On 23/09/13 17:18, Bart wrote: > On 9/23/13, Lukasz Sokol wrote: > >> function TryRomanToInt(AInput:String; out AResult: integer):boolean; >> var i, Len, N, Np1 : integer; > [snip] >> >> >> if N >= Np1 then AResult := AResult + N >>

[fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-23 Thread Lukasz Sokol
On 20/09/13 19:49, Bart wrote: > On 9/20/13, Reinier Olislagers wrote: > >> The question however becomes "what is the >> algorithm for deciding invalid characters" which IMO will become a mess >> very quickly. Much better to just consider the entire input as invalid. >> > > Here's my implementat

[fpc-pascal] Re: build a compiler for GO32v2 under Windows 8 (or 7)

2013-09-19 Thread Lukasz Sokol
On 18/09/13 17:48, Philippe wrote: > (first time I am using the mail list ... I may do it wrong!) > > > > I have a quite big program (now with more than 200.000 lines), first > build with TP7. For example it accesses CGA memory through absolute > address ... > > Years ago I moved to FPC. And it

[fpc-pascal] Re: DoDirSeparators and special filenames on Windows

2013-09-11 Thread Lukasz Sokol
On 10/09/13 16:35, Jürgen Hestermann wrote: > Am 2013-09-09 22:28, schrieb Tomas Hajny: >> ...and the issue is that at least some Windows API functions happily accept >> such paths, >> i.e. programs using such API functions accept them too. >> If FPC RTL manages to "translate" a path accepted by W

[fpc-pascal] Re: Library callback : how do I do that?

2013-08-09 Thread Lukasz Sokol
On 09/08/13 08:28, Michael Schnell wrote: > On 08/08/2013 02:41 PM, Lukasz Sokol wrote: >> Very well then, thanks :) > > I suggest that - to exclude problems that might be imposed by some > external non-Lazarus and software not by yourself - you do a test > creating a com

[fpc-pascal] Re: Library callback : how do I do that?

2013-08-08 Thread Lukasz Sokol
On 08/08/13 13:04, Michael Schnell wrote: > On 08/08/2013 01:42 PM, Lukasz Sokol wrote: >> i see then, having a chain >> >> (callback procedure) -> MyObject.CallbackNotify -> (processing callback >> data) -> >> call a function within a form unit that

[fpc-pascal] Re: Library callback : how do I do that?

2013-08-08 Thread Lukasz Sokol
On 08/08/13 12:50, Henry Vermaak wrote: > On Thu, Aug 08, 2013 at 12:15:44PM +0100, Lukasz Sokol wrote: >> but I would then need to make the wrapper object aware of the Application >> or its forms then? >> >> I wanted the wrapper unit to be as self-contained as m

[fpc-pascal] Re: Library callback : how do I do that?

2013-08-08 Thread Lukasz Sokol
On 08/08/13 12:31, Michael Schnell wrote: > On 08/08/2013 01:15 PM, Lukasz Sokol wrote: >> but I would then need to make the wrapper object aware of the >> Application or its forms then? > This is provided by "Runtime Packages" with Delphi. > > Lazarus does not

  1   2   >