[Lazarus] Threads in Lazarus code base

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Sep 17 19:08:29 CEST 2010

Juha Manninen (gmail) schrieb:
> On Friday 17 September 2010 11:47:12 Florian Klaempfl wrote:
>> Same can be said about goto and labels. Very intuitive and simple why
>> bother about while, for, repeat loops?
> Well, it is a valid comparison. I remember reading about new syntax in some 
> languages. One is a "future variable" which you calculate in one place and 
> then use later. Actually the compiler creates a thread for the calculation and 
> does "waitfor" when the result is used first time. Cool!
> Another was the "parallel" keyword for loops. Cool as well!

We can consider all that candy when the basic (synchronization, 
debugging) problems have been solved. Realtime systems deserve the same 
mechanisms, and I don't remember any significantly new results from such 
research :-(

> Anyway, I am happy if the new syntax is on a ToDo list for FPC.
> It will make things again easier and more intuitive.
> And it proves Pascal is in good shape for future computing challenges.

Every language can be extended with parallel execution features. Adding 
keywords is not the solution, in detail when the new features introduce 
more problems than they solve. Doing this now for FPC would only prove 
that FPC is a bunch of unfinished ideas, as some people say.


More information about the Lazarus mailing list