Re: [Lazarus] Linux Journal article

2009-08-13 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: Hello, I just received my copy of Linux Journal: Issue 185 with the 5-page Lazarus article by Mattias Gaertner. After many years, finally Lazarus in Linux Journal, I thought I'd never see the day :-) Good job, Mattias ! I just got a notice from Linux Journal

[Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Hi, Does the Lazarus IDE use multi-threading for anything? Will it take advantage of a Quad Core processor? Examples where I think it could be used (if not already) - background parsing of units - fpdoc lookups - compile project in separate thread (currently the IDE is almost completely

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, Does the Lazarus IDE use multi-threading for anything? Will it take advantage of a Quad Core processor? The IDE itself is single threaded. Examples where I think it could be used (if not already) - background parsing of units - fpdoc lookups - compile

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, Does the Lazarus IDE use multi-threading for anything? Will it take advantage of a Quad Core processor? Examples where I think it could be used (if not already) - background parsing of units - fpdoc lookups - compile project in separate thread (currently the

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Vincent Snijders
Graeme Geldenhuys schreef: Marc Weustink wrote: Don't know about the others, but compiling is done by a separate process, so there is a chance that your os runs it in a different core. That's not the same as running it in a separate thread though - is it? Quoted from a Posix Thread

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Michael Van Canneyt
On Thu, 13 Aug 2009, Graeme Geldenhuys wrote: Marc Weustink wrote: Don't know about the others, but compiling is done by a separate process, so there is a chance that your os runs it in a different core. That's not the same as running it in a separate thread though - is it? Quoted from

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Graeme Geldenhuys wrote: How can I see the thread-count per process / application under Linux? To answer my own question... $ watch -n.1 'ps -C thunderbird-bin -L -o pid,tid,pcpu,state' This will execute the ps command every second showing a live update of the threads for the

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Florian Klaempfl
Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the compiler instead of a new process? Efficient, yes; As I pointed out on fpc-core a few days ago, I'd like to create an fpc which stays in memory and takes commands via pipes/sockets/ipc whatever to

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Andrew Brunner
I published and provided source for Manager and Worker Threads. It includes advanced knowledge on how to design a highly efficient system with little to no wait-states. See: http://wiki.freepascal.org/Manager_Worker_Threads_System Let me know what you think, - Andrew On Thu, Aug 13, 2009 at

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Michael Van Canneyt
On Thu, 13 Aug 2009, Florian Klaempfl wrote: Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the compiler instead of a new process? Efficient, yes; As I pointed out on fpc-core a few days ago, I'd like to create an fpc which stays in memory and

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Quoted from a Posix Thread tutorial I found on the internet. http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html Threads require less overhead than forking or spawning a new process because the system does not initialize a new system virtual memory

[Lazarus] intended behaviour of crDefault cursor on GTK?

2009-08-13 Thread Martin
Before submitting a bug, I just want to check my understanding is correct. crDefault (at least on Windows) is supposed to show the Systems default for wherever the cursor is. That means over an Edit field this is a IBeam cursor and not an arrow. I don't know what the GTK2 default for edit

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Marco van de Voort
On Thu, Aug 13, 2009 at 02:01:38PM +0200, Florian Klaempfl wrote: Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the compiler instead of a new process? Efficient, yes; As I pointed out on fpc-core a few days ago, I'd like to create an fpc

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Marc Weustink wrote: Don't know about the others, but compiling is done by a separate process, so there is a chance that your os runs it in a different core. OK, after reading all the other responses I now understand the flexibility of keeping FPC and Lazarus separate, but why then is

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread dmitry boyarintsev
OK, after reading all the other responses I now understand the flexibility of keeping FPC and Lazarus separate, but why then is Lazarus non-responsive while the compiler is compiling in a separate process? because IDE is reading FPC output? and gives only a few .ProcessMessages for user

Re: [Lazarus] intended behaviour of crDefault cursor on GTK?

2009-08-13 Thread Hans-Peter Diettrich
Martin schrieb: crDefault (at least on Windows) is supposed to show the Systems default for wherever the cursor is. IMO crDefault means that the actual shape of the cursor is not determined by the control under the cursor, but instead the control's parent cursor is used (recursively). When

Re: [Lazarus] intended behaviour of crDefault cursor on GTK?

2009-08-13 Thread Martin
Hans-Peter Diettrich wrote: Martin schrieb: crDefault (at least on Windows) is supposed to show the Systems default for wherever the cursor is. IMO crDefault means that the actual shape of the cursor is not determined by the control under the cursor, but instead the control's parent cursor

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Vincent Snijders wrote: Yes, it is more efficient. The fp ide also doesn't create a new process. Interesting, I'll take a peak at that. The disadvantage of using the same process is that the coupling is much tighter: No easy switching between compiler versions, and crashing the compiler

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread dmitry boyarintsev
Can somebody that is more familiar with the internals of the Lazarus IDE tell me, would it be hard to implement the IDE with FPC built in, so that compiling can be done in a separate thread instead of separate process? I'll do the work of course - if it's not a major job. ;-) The most hardest

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Michael Van Canneyt
On Thu, 13 Aug 2009, Graeme Geldenhuys wrote: Vincent Snijders wrote: Yes, it is more efficient. The fp ide also doesn't create a new process. Interesting, I'll take a peak at that. The disadvantage of using the same process is that the coupling is much tighter: No easy switching

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: Vincent Snijders wrote: Yes, it is more efficient. The fp ide also doesn't create a new process. Interesting, I'll take a peak at that. The disadvantage of using the same process is that the coupling is much tighter: No easy switching between compiler

[Lazarus] LazReport Status

2009-08-13 Thread Lee Jenkins
Anyone using LazReport in production environment? I'd like to start doing more GUI based projects in Lazarus but lack of a good reporting tool is a deterrent for may types of projects that I do. I tried it out about a year ago and there was some problems but I bet there's been some work

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2009 12:40:54 +0200 Graeme Geldenhuys grae...@opensoft.homeip.net wrote: Hi, Does the Lazarus IDE use multi-threading for anything? It is single threaded. Will it take advantage of a Quad Core processor? Not yet. Examples where I think it could be used (if not already)

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2009 14:01:38 +0200 Florian Klaempfl flor...@freepascal.org wrote: Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the compiler instead of a new process? Efficient, yes; As I pointed out on fpc-core a few days ago, I'd like to

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Florian Klaempfl
Mattias Gaertner schrieb: On Thu, 13 Aug 2009 14:01:38 +0200 Florian Klaempfl flor...@freepascal.org wrote: Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the compiler instead of a new process? Efficient, yes; As I pointed out on fpc-core a few

Re: [Lazarus] SQLdb PQConnection Port

2009-08-13 Thread Giuseppe Luigi Punzi Ruiz
Hi all, El 07/08/2009, a las 10:38, Giuseppe Luigi Punzi escribió: El vie, 07-08-2009 a las 10:32 +0200, Graeme Geldenhuys escribió: Michael Van Canneyt wrote: Add something like port=5433 to the params property. I can confirm that setting the Database.Params property is correct and

Re: [Lazarus] SQLdb PQConnection Port

2009-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2009 22:41:28 +0200 Giuseppe Luigi Punzi Ruiz glpu...@lordzealon.com wrote: Hi all, El 07/08/2009, a las 10:38, Giuseppe Luigi Punzi escribió: El vie, 07-08-2009 a las 10:32 +0200, Graeme Geldenhuys escribió: Michael Van Canneyt wrote: Add something like

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2009 22:24:37 +0200 Florian Klaempfl flor...@freepascal.org wrote: Mattias Gaertner schrieb: On Thu, 13 Aug 2009 14:01:38 +0200 Florian Klaempfl flor...@freepascal.org wrote: Michael Van Canneyt schrieb: So wouldn't it be more efficient to create a new thread for the

Re: [Lazarus] LazReport Status

2009-08-13 Thread Graeme Geldenhuys
Lee Jenkins wrote: Anyone using LazReport in production environment? I'd like to start doing more GUI based projects in Lazarus but lack of a good reporting tool is a deterrent for may types of projects that I do. In tiOPF there is a RTFReport.pas unit that I ported to Free Pascal. It's a

Re: [Lazarus] SQLdb PQConnection Port

2009-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2009 22:57:51 +0200 Giuseppe Luigi Punzi Ruiz glpu...@lordzealon.com wrote: Hi Mattias, Please start the IDE in gdb, create a backtrace and a bug report: http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB I tried, but I can't get to crash it. I only

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Michael Van Canneyt wrote: They have the compiler in a DLL which is loaded when the IDE starts. Clever. I would imagine their command line compiler also uses that DLL then. Simple code reuse. Regards, - Graeme - fpGUI - a cross-platform

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Florian Klaempfl wrote: Probably simple. The compiler is started by the compile function in fpc/compiler/compiler.pas and takes simply a command line arguments. You need to set some hooks though to catch messages, see e.g. fpc/ide/fpcompile.pas (especially DoCompile starting at 868) and

Re: [Lazarus] SQLdb PQConnection Port

2009-08-13 Thread Giuseppe Luigi Punzi Ruiz
galilea:lazarus glpunzi$ gdb startlazarus GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of

Re: [Lazarus] Multi-threading support in IDE

2009-08-13 Thread Graeme Geldenhuys
Mattias Gaertner wrote: Examples where I think it could be used (if not already) - background parsing of units Yes, this is planned. Some expensive parts can be done in worker Excellent. - fpdoc lookups That should be easier. This already works in several separate parts executed

Re: [Lazarus] LazReport Status

2009-08-13 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: I'm pretty sure it will be easy to remove tiOPF dependencies from the RTFReport unit, so it can be used as a stand-alone (non tiOPF based) report engine. Please, keep us informed when you remove the dependency ;-) Luiz --

Re: [Lazarus] LazReport Status

2009-08-13 Thread Luiz Americo Pereira Camara
Lee Jenkins escreveu: Anyone using LazReport in production environment? I'd like to start doing more GUI based projects in Lazarus but lack of a good reporting tool is a deterrent for may types of projects that I do. I tried it out about a year ago and there was some problems but I bet

[Lazarus] Circular references

2009-08-13 Thread Lance Collins
Sorry if this is the wrong place to discuss language issues. I saw the following on the ADUG Delphi list and wondered if there was a possible Lazarus feature here. Cheers Lance How can you avoid