Re: [fpc-pascal] fgl.TFPGMap / operator not overloaded for object types
Alternatively you can use THashMap from Generics.Collections -> this implementation don't need any operators overloading, will work with most of FreePascal types and it is much, much faster :) http://bugs.freepascal.org/view.php?id=27206 (download generics_collections_final.zip -> http://bugs.freepascal.org/file_download.php?file_id=21394&type=bug) (to work with Unix 64 bits you need to use rev. 30239 and newer) Regards Maciej Izak (hnb.c...@gmail.com) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Google Code closing down
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, > > [...] > >> is simply >> the better product. [Graeme runs and hides :-P] > > Please make the same poll about C++ and Pascal ;) > We all know /the/ answer to that one don't we ;) I totally could never look at another c compiler ever again :) el es ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Google Code closing down
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] I feel like I'm being pushed onto git rather than Subversion. Then don't resist it. As 99% of developers would tell you, [...] is simply the better product. [Graeme runs and hides :-P] Please make the same poll about C++ and Pascal ;) We all know /the/ answer to that one don't we ;) I totally could never look at another c compiler ever again :) I've been enjoying getting into C and Python more: http://controlpascal.com/picoscope.htm ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] [total offtopic] Re: Google Code closing down
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] I feel like I'm being pushed onto git rather than Subversion. Then don't resist it. As 99% of developers would tell you, >>> >>> [...] >>> is simply the better product. [Graeme runs and hides :-P] >>> >>> Please make the same poll about C++ and Pascal ;) >>> >> >> We all know /the/ answer to that one don't we ;) >> >> I totally could never look at another c compiler ever again :) > > I've been enjoying getting into C and Python more: > http://controlpascal.com/picoscope.htm > Nice oscilloscopes... prices, though. if only Elan were still around... http://synchrotech.blogspot.co.uk/2013/03/what-happened-to-elan-digital-systems.html (I have USBScope50... ) el es ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fgl.TFPGMap / operator not overloaded for object types
> Alternatively you can use THashMap from Generics.Collections -> this > implementation don't need any operators overloading, will work with most of > FreePascal types and it is much, much faster :) Yes. I saw your library. Looks promising, but I am a bit concerned about amount of bugs related to this one. You pushed fpc generics straight to the edge :) BTW, could you upload it to GitHub to be able to pull new changes easier? It looks like it will be a long way to official FPC package. -- Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] how to use signals in freepascal?
Hi All, I have some questions regarding event and signals: 1) RTLEventWaitFor can a program waiting for an RTLEvent be notified by an RTLEventSet from ANOTHER process? 2) Unix Signals I see HookSignal() in the sysutils documentation, but there is nothing said on how to use it. Is it used to write my own signal handler on Linux? Could anyone give a sample program? Also, is there a list of defined RtlSigNums? 3) Unix-style Signals on Windows If possible, I would like to have cross platform signal handling in my app. I found this: https://github.com/graemeg/freepascal/blob/master/rtl/win32/signals.pp Does it mean that if I "uses signals", I will have same capability on both linux and windows? Thanks! Xiangrong ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to use signals in freepascal?
On 16 Mar 2015, at 15:54, Xiangrong Fang wrote: 1) RTLEventWaitFor can a program waiting for an RTLEvent be notified by an RTLEventSet from ANOTHER process? No, use http://www.freepascal.org/docs-html/fcl/simpleipc/index.html instead. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to use signals in freepascal?
On Mon, 16 Mar 2015, Xiangrong Fang wrote: Hi All, I have some questions regarding event and signals: 1) RTLEventWaitFor can a program waiting for an RTLEvent be notified by an RTLEventSet from ANOTHER process? 2) Unix Signals I see HookSignal() in the sysutils documentation, but there is nothing said on how to use it. Is it used to write my own signal handler on Linux? Could anyone give a sample program? You should not use this in fact, it is meant for internal use. To write a signal handler on unix, see http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html there is an example. Also, is there a list of defined RtlSigNums? No. The list of unix signals is well-known. 3) Unix-style Signals on Windows If possible, I would like to have cross platform signal handling in my app. I found this: https://github.com/graemeg/freepascal/blob/master/rtl/win32/signals.pp Does it mean that if I "uses signals", I will have same capability on both linux and windows? No. Signals work very different on window and Linux. They are similar concepts, but the implementation differs wildly. To my knowledge, there is no cross-platform implementation of signals in FPC. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to use signals in freepascal?
> > You should not use this in fact, it is meant for internal use. > > To write a signal handler on unix, see > > http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html > > there is an example. I tried example57, it worked, but I still do not know some peculiar behaviors in it. I will ask later, after some investigations. However, what is HookSignal for? How to use it? Or it is just a "stub" and not functional yet? Thanks! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Internet audio streaming ?
Hello. I have some problem with audio internet streaming. I would like to do it with mpg123 + portaudio libraries but... Here is the procedure used by mpg123 => mpg123_open_fd = function( mh:Tmpg123_handle; fd: Integer). I have sent to mpg123-forum that question => > Hello and congratulation for your superb library. > In your doc you say that, for use of internet streaming, it is better to > use > mpg123_open_fd = function( mh: Tmpg123_handle; fd: Integer). > OK but i do not understand what is fd parameter. > Is it the ip address ? Because it is type of integer. ??? > Many thanks Here their answer => > The parameter is a file descriptor you obtained from opening the HTTP > connection yourself. > There is no HTTP code in libmpg123 itself. Hum, how can i obtain such of file descriptor ? And how to open a HTTP connection ? There is a new feature in fpc 3.x.x => a http client. Could it do the job ? PS: I have the fpc headers for mpg123 and portaudio libraries. There are working perfectly with fpc => can play "local" *.mp3 without problem. Thanks. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Internet-audio-streaming-tp5721358.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal