Re: [fpc-pascal] Help building FPC on armhf

2015-06-30 Thread Andrew Brunner
problem is only with building on Linux-arm. I've never had this issue in any other linux device. -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a great new way to store, share and enjoy your photos, videos, music, and more. ___

Re: [fpc-pascal] Help building FPC on armhf

2015-06-29 Thread Andrew Brunner
as your error seems to be caused by some conditional parsing the extra defines above might help (or not .) Michael Hi Michael, I tried to use the options above to no avail. Thanks for the effort though. -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a great

Re: [fpc-pascal] Help building FPC on armhf

2015-06-28 Thread Andrew Brunner
27;/Developer/FPC/compiler' Makefile:2826: recipe for target 'compiler_cycle' failed make[1]: *** [compiler_cycle] Error 2 make[1]: Leaving directory '/Developer/FPC' Makefile:2858: recipe for target 'build-stamp.arm-linux' failed

[fpc-pascal] Help building FPC on armhf

2015-06-27 Thread Andrew Brunner
Makefile:215: *** The Makefile doesn't support target armhf-linux, please run fpcmake first. Stop. Can someone help? -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a great new way to store, share and enjoy your photos, videos, music, and

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Andrew Brunner
On 4/2/2015 11:46 AM, Michael Van Canneyt wrote: Namespaces are available as dotted units ? Namespace as dotted units? I use 3.1.1 compiled here so there is no problem. FPC since as far as I recall (svn) has had support for naming units with multiple dots. I've had tons of units with includ

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-02 Thread Andrew Brunner
On 4/2/2015 2:24 AM, Michael Van Canneyt wrote: And already utterly unreadable for me... IMHO goes to show that this is a very personal matter :-) Units that include hierarchy via class types are a supplement for namespaces in languages such as c#. Since Namespaces are not *yet* available i

Re: [fpc-pascal] Looking for JavaScript component on FPC

2015-04-01 Thread Andrew Brunner
h. I would be ideal to offer developers a choice of which scripting language they want to write back-end code. But if I am to provide developers with instant API to do complex code that is relevant to computing needs of today, I will need access to nested objects in either of these JITCs.

[fpc-pascal] Looking for JavaScript component on FPC

2015-03-31 Thread Andrew Brunner
I am trying to integrate javascript for back-end support of cloud apps. I noticed the fcl-js package. Does anyone have an idea when we can expect to have a component suite much like the PascalScript? Thanks, -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a

Re: [fpc-pascal] Is Nested Procedure Types

2013-11-23 Thread Andrew Brunner
system wide without compiler directives? What's the hold-up or reason why the mode is even needed? Thanks again, On 11/23/2013 09:43 AM, Jonas Maebe wrote: On 23 Nov 2013, at 15:47, Andrew Brunner wrote: I'm wondering if the is nested procedure type is supposed to work {$

[fpc-pascal] Is Nested Procedure Types

2013-11-23 Thread Andrew Brunner
pascal.org/FPC_New_Features_2.6.0#Support_for_nested_procedure_variables Thanks, -- Andrew Brunner Aurawin LLC 512.850.3117 https://aurawin.com/ Aurawin is a great new way to store, share and enjoy your photos, videos, music, and more. ___ fpc-pasca

Re: [fpc-pascal] Status of UTF8

2013-09-28 Thread Andrew Brunner
On 09/28/2013 07:51 AM, Jonas Maebe wrote: You can read your data into a RawByteString and then call SetCodePage(rawbytestr,codepagenr,false) to set its code page to whatever the code page of the data in that string is (without attempting to convert the data, which is what the last "false" pa

[fpc-pascal] Status of UTF8

2013-09-28 Thread Andrew Brunner
/decoding of strings as perhaps some inspiration that may lead to FPC internal support for such a mechanism. Thanks, Andrew Brunner Aurawin LLC 512.574.6298 https://aurawin.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] How to save a huge XML?

2013-06-19 Thread Andrew Brunner
is a limitation of strings and memory allocation w/r/t xml. I would suggest that the reporter just implement function toXML() method(s) to construct XML data as a string and use T(File/Memory)Stream. This method has worked well for me. -- Andrew Brunner Aurawin LLC 15843 Garrison Circle A

[fpc-pascal] ImageMagick and Static Linking

2013-05-08 Thread Andrew Brunner
Image Magick comes with static libraries and dynamic libraries. Is there any way to make ImageMagick unit support the *.lib files? I'm trying to avoid having to distribute the ImageMagick dlls. Thanks, -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawi

Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-06 Thread Andrew Brunner
I agree with what you are saying as long as the os matches the binary type. An x64 native package must install a x64bit binary and utils. I would be understating if I said that a 32bit binary would be normal on a 64bit distro. Andrew Brunner Aurawin LLC 512.574.6298 A safe new way to

Re: [fpc-pascal] Problems with ImageMagick Win64

2013-05-04 Thread Andrew Brunner
http://bugs.freepascal.org/view.php?id=24346 Can someone please apply patch? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-04 Thread Andrew Brunner
solution must conform to FPC standards with regards to builds/packaging. Thanks for any help in offering a 64bit download of FPC. Andrew Brunner, Aurawin LLC 512.574.6298 http://aurawin.com/ Aurawin is great new way to store and share your pictures, videos, and more, featuring our innovative

Re: [fpc-pascal] Problems with ImageMagick Win64

2013-04-28 Thread Andrew Brunner
On 04/28/2013 02:49 PM, Andrew Brunner wrote: I can't get ImageMagick unit to work under Windows XP 64. Also, I have confirmed that ImageMagick installed and the application does work. Can someone please edit change the unit code for Windows instead of Win32? The libraries are identica

[fpc-pascal] Problems with ImageMagick Win64

2013-04-28 Thread Andrew Brunner
x27;; WandExport = 'libMagickWand'; // Previous ImageMagick versions used 'libWand' {$endif} CORE_RL_magick_.dll CORE_RL_wand_.dll' Apon running the app, libMagickWand.dll was not found. Can someone please look into this? Thanks, -- Andrew Brunner Aurawin LLC 15843 Ga

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-28 Thread Andrew Brunner
ad code would be limited to reflect on the code contributor/creator. But to 1.) above, wrongly kowning up to bad code contributions is my largest genuine concern. -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawin.com Aurawin is a great new way to store,

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-27 Thread Andrew Brunner
orced into a bracket it ought-not-be. Jascal DOES look cool ;-) -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawin.com Aurawin is a great new way to store, share, and explore all your content featuring our innovative cloud social computin

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-25 Thread Andrew Brunner
m.Size:=0; blob:=MagickGetImageBlob(wand,@bSize); Stream.Write(blob^,bSize); Result:=true; end; end; finally DestroyMagickWand(wand); end; end; -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawin.com Aurawin is a great n

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-25 Thread Andrew Brunner
On 02/25/2013 04:51 AM, Graeme Geldenhuys wrote: ImageMagick will probably be a good choice. Regards, - Graeme - Ok, I'm going to start tests with that. Thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Andrew Brunner
On 02/24/2013 04:44 AM, Michael Van Canneyt wrote: Try to get rid of the XML, it is always going to be slow. Using XML can slow your applications with a factor 6. If you are mime-encoding an image, it'll be even more. I was just thinking about that. I think JSON would be ok, especially if I

[fpc-pascal] Performance problems with Image Conversions

2013-02-23 Thread Andrew Brunner
iews images via my preview app, I don't send the originals, I scale those too using the same methods. The speed is killing my server's performance. Does anyone have any idea how to speed up the underlining code? -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 787

Re: [fpc-pascal] Re: Configuration file handling

2013-02-16 Thread Andrew Brunner
On Feb 16, 2013, at 2:37 AM, Reinier Olislagers wrote: > > Security problems with world-writable files? Yes, that problem applies > to *nix as well but Mark has given no indication his config files are > world-writable. (Even if the logins Mark speaks of run under different > user accounts, t

Re: [fpc-pascal] Configuration file handling

2013-02-15 Thread Andrew Brunner
ey don't try to update it simultaneously? In the case that I'm thinking of, I don't anticipate e.g. multiple logins trying to write setup information at the same time. The more risky case is if there are e.g. multiple daemons or apps trying to save state when a UPS signals imm

[fpc-pascal] fcl-db components missing from 2.6.0 (Lazarus winx64 bin inst)

2012-10-29 Thread Andrew Brunner
code-tools system does find the unit when I hot-click the unit. I'm going to FPC/Laz build from svn/source but I just wanted to post here to see what was the cause... -- Andrew Brunner Aurawin LLC 512.574.6298 http://aurawin.com/ Aurawin is a great new way to store, share, and enjoy your

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread Andrew Brunner
alled. It looks like heavy XML. It will require use the fpc-xml. Are the DOM components proven to be memory leak free at this point? -- Andrew Brunner Aurawin LLC 512.574.6298 A safe new way to store and share your files, pictures, videos, and more. http://aurawi

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread Andrew Brunner
look at Apache svn source (C++) to port to Aurawin's HTTP server. But where is the "Official" svn documentation for implementing svn over http? -- Andrew Brunner Aurawin LLC 512.574.6298 A safe new way to store and share your files, pictures, videos, and more. htt

[fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread Andrew Brunner
e have any contributions of SVN client/server code in pascal? Any help is greatly appreciated, Andrew Brunner Aurawin LLC 512.574.6298 A safe new way to store and share your files, pictures, videos, and more. http://aurawin.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] Problems with Postgresql Character Encoding

2012-09-26 Thread Andrew Brunner
/view.php?id=22985 (I did only basic testing) -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Andrew Brunner Aurawin LLC 512.574.6298 http://aurawin.com/ Aurawin is a great

Re: [fpc-pascal] Problems with Postgresql Character Encoding

2012-09-26 Thread Andrew Brunner
he patch - I'm updating my FPC /Lazarus and building now... -- Andrew Brunner Aurawin LLC 512.574.6298 http://aurawin.com/ Aurawin is a great new place to store, share, and enjoy your photos, videos, music and more. ___ fpc-pascal maillist - f

[fpc-pascal] Problems with Postgresql Character Encoding

2012-09-26 Thread Andrew Brunner
:='LATIN1'; This does nothing for me when Connection is a postgresql connection. Anyone have any experience with postgresql character sets / encoding??? I can't hard-code any one character set because users from 1 region will have different encoding needs than another. Any he

[fpc-pascal] Postgresql Concurrent Transactions

2012-06-21 Thread Andrew Brunner
Hi there, I'm seeking help to address an issue I presently have with a Server application that uses TPostgres components. Each manager thread has its own Connection, Transaction, and TQuery. Each manager can handle potentially thousands of sockets Each server instance (1 process) can have up to ~

Re: [fpc-pascal] Darwin i386

2012-05-20 Thread Andrew Brunner
On Sun, May 20, 2012 at 8:52 AM, Jonas Maebe The above was a question relating to "... with the exception of threads calling methods via synchronize (so I can debug)." I.e., what are the exact things you are doing, what is happening, and what are the expected results regarding trying to debug thre

Re: [fpc-pascal] Darwin i386

2012-05-20 Thread Andrew Brunner
> > > What are you doing exactly, what happens, and what is the expected result > instead? > I'm upgrading my gdb from shipping version with darwin to gdb version from download. I downloaded and ran /configure make make install 7.1. It doesn't work with fpc. I'm going to have to switch back. T

[fpc-pascal] Darwin i386

2012-05-19 Thread Andrew Brunner
I'm having a hard time with GDB and debugging threads on a OSX 10.7.4 with fpc/trunk The shipped gdb worked great with the exception of threads calling methods via synchronize (so I can debug). I'm in the process of building GDB from download and configure set gdb to x64 darwin. Configure detect

[fpc-pascal] Unicode support

2012-05-16 Thread Andrew Brunner
I wanted to ask what the present state of unicode support is now. I'm running into problems with some various strings. Sometimes when a string contains a unicode character postgresql won't allow the insert/update. Also, some MP3 tags contain UTF16, UTF16BE and I really don't know of the best pra

Re: [fpc-pascal] Darwin i386 socket polling

2011-12-23 Thread Andrew Brunner
> Windows supports epoll? No, windows doesn't offer polling socket mechanisms. They send messages to windows with the socket number - it's event driven. Kernel polling is different, but I assumed that Darwin would support it via e-Poll. I searched and found a few references to kQueue/kEvent. Th

[fpc-pascal] Darwin i386 socket polling

2011-12-22 Thread Andrew Brunner
I'm needing to figure out how socket signaling mechanisms work under darwin. Windows and Linux work, Darwin however does not support ePoll. Anyone have any experience with Sockets events under OSX i386? Thanks. ___ fpc-pascal maillist - fpc-pascal@li

[fpc-pascal] Distributing unit object files

2011-12-15 Thread Andrew Brunner
I'm needing to figure out how best to "close" or "seal" units so that I can use the compiled unit object files instead of the actual unit files. The problem is that the compiled unit files call a few units that the project has the source to. And FPC is looking to recompile the compiled object fil

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
The only thing I can think of would be packet inspection. Firewalls included with Linux and Windows do not perform "deep" packet inspection. They only allow/deny packets with specific ports over either TCP or UDP. Am I missing something? On Mon, Aug 1, 2011 at 12:31 PM, Michael Van Canneyt wro

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt wrote: > ..But it is not always supported by the browser (as Marco indicated) > and many firewalls simply don't agree with websockets. > Can firewalls detect websockets over port 80? ___ fpc-pascal m

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho wrote: > On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner > wrote: >> I agree with this one.  The only thing I could add would be AJAX & >> WebSockets for really advanced applications. > > Do WebSockets

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:07 AM, Gustavo Enrique Jimenez wrote: > Hi: > >  I send cookies to the client. One of those cookies is a "sessionID", > a random number generated at login. >  My sequence is something like > > Login > Client: username/password ->Login html button > Server: run cgi app wit

Re: [fpc-pascal] Javascript in Desktop Applications

2011-02-07 Thread Andrew Brunner
Hmmm... Mozilla is open source... :-) We are free to port the Scripting Engine to Pascal as long as we have the source? no? On Mon, Feb 7, 2011 at 11:31 AM, Michael Van Canneyt wrote: > No, that project embeds mozilla in FPC. ___ fpc-pascal maillist

Re: [fpc-pascal] Javascript in Desktop Applications

2011-02-07 Thread Andrew Brunner
On Mon, Feb 7, 2011 at 10:39 AM, Brian Winfrey wrote: > > I have some interest in exploring javascript implementations for fpc. > http://code.google.com/p/fpcjs/  -- Is this comparable to what you have noted? Actually fpcjs is the first project that I, (myself), have seen that addresses the gatew

Re: [fpc-pascal] Javascript in Desktop Applications

2011-02-07 Thread Andrew Brunner
On Mon, Feb 7, 2011 at 7:35 AM, wrote: > A cross-platform solution is to use one of libsee or BESEN. > > The latter is implemented in 100% native Object Pascal. > > Michael. BESEN is very, very, very well written but I can't seem to get any indication how to use it in my project. I would love

Re: [fpc-pascal] Pascal Scripting Engines

2010-12-10 Thread Andrew Brunner
; Now it would be easier. > > 2010/12/10 Andrew Brunner : > > Hi there, > > > > I'm considering pascal scripting engines in stead of hot-swaped compiled > > stored objects/dlls for server back-end development for clients (namely > > WebSocket/JS). I came acr

[fpc-pascal] Pascal Scripting Engines

2010-12-10 Thread Andrew Brunner
Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure "light weight" scripting engines bu

Re: [fpc-pascal] Cannot build FPC from SVN

2010-11-29 Thread Andrew Brunner
Bootstrapping from Ubuntu 10.10 and rebuilding from SVN got past the problem. I guess that an evolutionary dead end with some bad revision caused this problem... Anyways. I'm back up and running. On Mon, Nov 29, 2010 at 8:15 AM, Jonas Maebe wrote: > > On 29 Nov 2010, at 15:09, And

Re: [fpc-pascal] Cannot build FPC from SVN

2010-11-29 Thread Andrew Brunner
[options] I'll go read that thread... On Mon, Nov 29, 2010 at 8:15 AM, Jonas Maebe wrote: > > On 29 Nov 2010, at 15:09, Andrew Brunner wrote: > > FE. -FU/Developer/Source/Compilers/FPC/rtl/units/x86_64-linux -Cg -dx86_64 >> -dRELEASE ../objpas/fgl.pp >> fgl.pp(128,

[fpc-pascal] Cannot build FPC from SVN

2010-11-29 Thread Andrew Brunner
svn 1645 FE. -FU/Developer/Source/Compilers/FPC/rtl/units/x86_64-linux -Cg -dx86_64 -dRELEASE ../objpas/fgl.pp fgl.pp(128,38) Error: Generics without specialization cannot be used as a type for a variable This has been stopping the build process for a few days now. Anyone know about it or is thi

Re: [fpc-pascal] Leak narrowed down

2010-10-28 Thread Andrew Brunner
>> Then, once the program is running and has leaked memory, run >> leaks nameofyourprogram > > Thanks for this tip! It is very interesting, however in this situation > it does not detect the lost memory. > > At this point I have to give up on GetTextWidth - I will avoid it for > now. Maybe next yea

Re: [fpc-pascal] Re: PostgreSQL 8.4 Ubuntu 10.10 x64

2010-10-22 Thread Andrew Brunner
On Fri, Oct 22, 2010 at 2:44 AM, Martin Schreiber wrote: > The problem is in TypeStrings, ftLargeInt should return 'bigint' instead > of 'int'. Fixed in MSEide+MSEgui trunk 4028. > http://developer.berlios.de/svn/?group_id=11520 Thanks Martin! > Interresting, MSEgui is used in production since y

[fpc-pascal] PostgreSQL 8.4 Ubuntu 10.10 x64

2010-10-21 Thread Andrew Brunner
I've got a problem with the PostgreSQL component. I've got an insert statement with int64 values. The prepare command goes through but the server denies the entire packet with the string value of the int64 is too large for integer type error. The fields were all declared as bigint and the parame

Re: [fpc-pascal] Building FPC with debug information

2010-10-20 Thread Andrew Brunner
Yes. It's what I saw. I was still able to trace database components line by line using Lazarus and GDB though. On Wed, Oct 20, 2010 at 12:54 PM, Brian Winfrey wrote: >> make OPT="-O-" DEBUG=1 all > > When I ran this I see that both -dDEBUG and -dRELEASE are passed on > the fpc command line.  Is

Re: [fpc-pascal] Problem accessing Class Method with abstraction

2010-10-17 Thread Andrew Brunner
procedure VerifyIDs(Var Module:TDBMSModule); var iLcv:integer; ItemP:PCoreObjectItem; coGeneric:TPersistentClass; coItem:TCoreObject; begin for iLcv:=0 to High(CoreObjectItems) do begin ItemP:=CoreObjectItems[iLcv]; coGeneric:=GetClass(ItemP^.ClassName); if (coGeneric<>nil) an

Re: [fpc-pascal] Problem accessing Class Method with abstraction

2010-10-17 Thread Andrew Brunner
On Sun, Oct 17, 2010 at 3:33 AM, Michael Van Canneyt wrote: // Revised code CCoreObject=Class(TCoreObject); TCoreObjects=class; TCoreObject=Class (TPersistent)  protected   class procedure VerifyIDs(var Module:TDBMSModule); Virtual; abstract;  end;  TAdminCore=Class(TCoreObject)  protected

[fpc-pascal] Problem accessing Class Method with abstraction

2010-10-16 Thread Andrew Brunner
I've got a class factory problem I'm trying to resolve and it appears I'm at a point where it's probably better to ask for help. TCoreObjects=class; TCoreObject=Class (TPersistent) protected class procedure VerifyIDs(var Module:TDBMSModule); Virtual; abstract; end; TAdminCore=Class(T

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Andrew Brunner
On Sat, Oct 16, 2010 at 2:16 PM, Michael Van Canneyt wrote: > It would allow me to write programs that are multithreaded and don't use > external libs. Right. Every interface between the kernel space and user space add at least one degree of inefficiency. So every FPC program would be carrying

Re: [fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-16 Thread Andrew Brunner
On Sat, Oct 16, 2010 at 2:16 PM, Henry Vermaak wrote: > libpthread.so is the name of the library, not the name of the implementation. I updated FPC from SVN and it is pointing to this library now :-). Only problem is someone took some changes I made to remove semaphore on thread creation... If I

Re: [fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-16 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 5:10 PM, Henry Vermaak wrote: > I've told you before: NPTL is part of the glibc sources.  Download the > latest glibc sources and look in the nptl directory.  The latest glibc > release is 2.11.2. FPC source to cThreads unit and the thread manager associated with threadin

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Andrew Brunner
On Sat, Oct 16, 2010 at 7:04 AM, Jonas Maebe wrote: > He cannot. If freeonterminate=true, then even if you call "inherited > create(false)" as the very last statement of your constructor, the thread > may already have finished running and freed itself before AfterConstruction > is called. The Aft

Re: [fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-15 Thread Andrew Brunner
:24, Andrew Brunner wrote: >> Suggested Reading: >>   http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.6.tar.gz > > Why would you want to look at this?  It's not used any more (except > for really old kernels). > > Henry > ___

[fpc-pascal] FPC for High Performance Computing (HPC) Components with Application API

2010-10-15 Thread Andrew Brunner
I wanted to start a discussion based on current state of FPC and High Performance Computing (HPC). The premise of the thread is to discuss high scale threads. Currently FPC has matured to the point where it might be beneficial to start targeting a particular market for users. The first thing tha

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 12:01 PM, Vinzent Höfler wrote: >> Exactly.  It was poor implementation.  You should have had a global >> barrier onExecute.  That would unlock the thread after everything you >> needed was readable. > > If it's global, it would unlock *any* thread at that time. Yes, belo

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 11:03 AM, wrote: > On Fri, 15 Oct 2010 17:24:03 +0200, Sven Barth > wrote: > >> The problem isn't the pthreads library. The problem is the POSIX threading >> specification of which pthreads is an implementation (look at the comment in >> CSuspendThread again). > > Actuall

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 10:57 AM, Vinzent Höfler wrote: > > Huh? Why should the pthreads library have a semaphore or similar on each > thread? Good question. And according to pThreads source comments they themselves did unwillingly. ___ fpc-pascal mail

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 10:57 AM, Vinzent Höfler wrote: > If you access it inside the execute method, you more or > less crash (or at least leak memory). You obviously had a problem with access ThreadID before it was assigned. Accessing it should not arrive at a RAV. I'm not sure this is on top

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 10:24 AM, Sven Barth wrote: > The problem isn't the pthreads library. The problem is the POSIX threading > specification of which pthreads is an implementation (look at the comment in > CSuspendThread again). POSIX is just like you say a specification. Suspend and Resume

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 10:06 AM, Jonas Maebe wrote: > First of all, if you use tthread.create(true) (i.e., create a suspended > thread), then the "execute" method will never be called: BTW: I did notice that the semaphore was being used to suspend the thread. And I also know that that was it's

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 9:55 AM, Sven Barth wrote: > Am 15.10.2010 16:31, schrieb Andrew Brunner: >> >> On Fri, Oct 15, 2010 at 9:24 AM, Jonas Maebe >>  wrote: >>> >>> You replaced a bunch of semaphore create/lock/unlock/destroy operations >>&g

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 9:24 AM, Michael Van Canneyt wrote: > > Thank you, > > I'll study it to see if/how we can do something to increase speed of > creating threads > in FPC. > > But if I understand you correctly, the WRITE_MEMORY_BARRIER() call is > beyond our reach, so there's little we can do

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 9:24 AM, Jonas Maebe wrote: > You replaced a bunch of semaphore create/lock/unlock/destroy operations with > calls to a function that does not do anything. I did not. I REMOVED create/destroy/lock/unlock. I ADDED calls to the ThreadManager's own functions for thread Resu

Re: [fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 5:20 AM, Frank Church wrote: > > I am writing an app involving 2 threads, and a timer loop in the UI. > > The first thread monitors network events, logs them into a database, appends > them to a list. > Any time I see append to a list I always think "RTLCriticalSection" >

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-14 Thread Andrew Brunner
> What are the exact differences from this test to your last one? Would be > nice to know that... :) Every barrier causes a significant increase in time. In high performance parallel computing time is something we minimize. Big reductions in linear execution yield massive performance gains in th

Re: [fpc-pascal] Building FPC with debug information

2010-10-14 Thread Andrew Brunner
Thanks, Jonas. On Thu, Oct 14, 2010 at 6:43 AM, Jonas Maebe wrote: > > On 14 Oct 2010, at 02:58, Andrew Brunner wrote: > >> I was reading on building FPC with debug enabled so I can trace into a >> unit > > make OPT=&q

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-14 Thread Andrew Brunner
On Thu, Oct 14, 2010 at 4:29 AM, Michael Van Canneyt wrote: > Impressive. So the FPC implementation on top of this obviously does > something on top of this which causes it to slow down. > > Possible culprits would then be the semaphores and TLS allocation. I obtained the source to pThreads syst

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
On Wed, Oct 13, 2010 at 3:24 PM, Michael Van Canneyt wrote: >> Is it possible I have the pthread library in some sort of debug mode >> that is slowing down the process of thread creation? > > I seriously doubt it. > What you could do to test, is write your program using direct Pthread calls. > Th

[fpc-pascal] Building FPC with debug information

2010-10-13 Thread Andrew Brunner
I was reading on building FPC with debug enabled so I can trace into a unit and found that it was way too difficult to find the parameters. I know I had at one time edited the wiki page once I learned how to do it but to my surprise that info was either lost/moved or too hard to navigate and the se

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
On Wed, Oct 13, 2010 at 2:12 PM, Michael Van Canneyt wrote: > FPC doesn't have anything to say about CPU allocation. The threads are > created by the C pthread library and Linux kernel. > They do the heavy work. Is it possible I have the pthread library in some sort of debug mode that is slowing

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
On Wed, Oct 13, 2010 at 8:28 AM, Michael Van Canneyt wrote: > Probably because it uses a heap manager per thread. > > You may try to use 'cmem', which will replace the heap manager with the C > memory manager (one for the whole app, not per thread). That will allow you > to test this hypothesis.

Re: [fpc-pascal] Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
On Wed, Oct 13, 2010 at 8:27 AM, Jonas Maebe wrote: > > 1) on entry of the "critical section" protected by this variable, you can > have problems, because this sequence: > > locked:=true; > local:=shared_global_var; > > may actually be executed in this order: > > local:=shared_global_var; > locked

[fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
On Tue, Oct 12, 2010 at 5:51 PM, Andrew Brunner wrote: Another problem demonstrated with this application is the limiting factor of thread creation. I'd like to make a complaint using this code as well. Change the number of threads to 3000. The system gets to about 1,000 and starts to

Re: [fpc-pascal] Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-13 Thread Andrew Brunner
2010 00:51, schrieb Andrew Brunner: >> >> This test case illustrates a FPC memory leak. > > What makes you think so? Internally freed memory is not immediatly > released to the OS as well. On windows I know there is a call to flush all virtual memory out. Is the

Re: [fpc-pascal] Help getting Lazarus app in Ubuntu to elevate to root and back again

2010-10-11 Thread Andrew Brunner
On Sun, Oct 10, 2010 at 1:09 PM, Mark Morgan Lloyd wrote: > Could you suid it to root or to an appropriate group? I've not tried this > for a Pascal/Lazarus program and don't know what the precise rules are for > port usage (i.e. whether the user has to be root or using the root group is > suffici

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
n Fri, Oct 8, 2010 at 3:52 PM, Jonas Maebe wrote: > > On 08 Oct 2010, at 22:45, Andrew Brunner wrote: > > On Fri, Oct 8, 2010 at 3:37 PM, Marco van de Voort wrote: > > No, but the last one might be set before the condition coupled to that last > > one might be carried out. See

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
On Fri, Oct 8, 2010 at 3:37 PM, Marco van de Voort wrote: > No, but the last one might be set before the condition coupled to that last > one might be carried out. See Jonas' example. The ONLY way that could happen is if the boolean happens to be set in a worker thread's method that still has mor

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
Right. But in the case of an array of booleans that will be polled and an exit condition will only be met if all booleans are set to true. The order in which a polling thread sees them as being true has no bearing on the functionality. On Fri, Oct 8, 2010 at 3:07 PM, Paulo Costa wrote: > On 08

[fpc-pascal] Help getting Lazarus app in Ubuntu to elevate to root and back again

2010-10-08 Thread Andrew Brunner
I'm needing help to take my Lazarus app, elevate process to root (using GUI prompt like GKSU) and I want to drop back down to the user's level after port binding and listening. Ubuntu has port restrictions for low port numbers. I'm developing a platform that happens to use ports for HTTP, XMPP, e

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
On Fri, Oct 8, 2010 at 9:52 AM, Jonas Maebe wrote: >> So are you referring to the topic of this conversation regarding data >> flushing?  The notion of creating an index of completions to poll and >> waiting for all the values to turn true as a means to determine actual >> job completion without u

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
On Fri, Oct 8, 2010 at 9:21 AM, Jonas Maebe wrote: > No, the main source of problems is that the cpu may reordering memory > operations resulting in those booleans in the arrays becoming true before > all memory locations written in the thread are visible. The result is that > you may try to use d

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
experience problems in the past with this does not mean I won't with a future. ;-) On Fri, Oct 8, 2010 at 9:04 AM, Jonas Maebe wrote: > > On 08 Oct 2010, at 15:57, Andrew Brunner wrote: > >> A better way of achieving this is looking at the collection of threads >> you have.  S

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
poll the Completes to see if they are all true. There are a million ways to accomplish safe thread usage without waitfor... On Fri, Oct 8, 2010 at 8:49 AM, Graeme Geldenhuys wrote: > On 8 October 2010 15:32, Andrew Brunner wrote: >> This seems like a discussion of semantics more than anyt

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
This seems like a discussion of semantics more than anything. In an application thread if you say WAITFOR something then the app cannot process messages b/c the execution is put on hold until WAITFOR returns. This is normal behaviour, IMO. So if this is just an exercise, I really don't see a pro

Re: [fpc-pascal] Where is IsMultiThreaded set under Linux?

2010-10-08 Thread Andrew Brunner
> procedure TBarThread.Execute; > begin >  FFinished := False;    // work-around variable >  while not Terminated do >  begin >    Synchronize(@UpdateProgressBar); >  end; >  FFinished := True;     // work-around variable > end; > What about dropping that loop and put it in UpdateProgressBar TForm

Re: [fpc-pascal] lNet getting the local IP

2010-10-06 Thread Andrew Brunner
On Wed, Oct 6, 2010 at 7:55 AM, Sven Barth wrote: > You'll only find "127.0.0.1" for my computer there... I don't think that > this is a very good solution. Oh well. That makes sense b/c these are servers that I have obtaining the same IP over DHCP. On clients when DHCP is being used with dynami

Re: [fpc-pascal] lNet getting the local IP

2010-10-06 Thread Andrew Brunner
I just read the first line in /etc/hosts file. The first entry is the IPv4. On Tue, Oct 5, 2010 at 3:04 PM, Felipe Monteiro de Carvalho wrote: > hello, > > I am searching for a way to get the local IP. I already found examples > with winsock, synapse and indy. Does anyone know how to do that wit

  1   2   >