[Lazarus] New version of WebDesign available

Michael Van Canneyt michael at freepascal.org
Wed Mar 17 15:06:17 CET 2010



On Wed, 17 Mar 2010, Michael Schnell wrote:

> On 03/17/2010 02:34 PM, Joost van der Sluis wrote:
>> No, it implements a fastCGI application. You can not use it for what you
>> want. Otoh, what you want is not necessary to build a persistent
>> web-application. That can be done much easier. (As is done in the
>> fastCgi application)
>>
> I see. What I intend to do can be extended be a persistent
> web-application, So there is an example of a persistent web-application
> that can't be done with fastCGI :).
>
> OTOH, I feel that any persistent web-application can be done with a
> NoGUIApplication infrastructure, the advantage for those that _can_ be
> done as fastCGI applications is that with same, the normal
> "Delphi"-paradigm of event-driven main-thread programming can be used,
> making it a lot easier to use for experienced Delphi programmers without
> much CGI background.

There is no reason why fcl-web cannot be used for this; it is totally
event driven. The only "event" currently defined is the request from
the client.

>
>> Well, the fcl-web applications do not support timers, TCP/IP, serial
>> interfases and postmessage functionality.
>>
>> So you cannot use it for anything you want, would be my guess.
>>
> That is what I supposed :( .
>
>> You can use the same mechanism as is used by the TWebApplication,
>> though. Build your own TApplication descendent, which does all this. But
>> I thought that was precisely what you are working on?
>>
> That is what I already have :).
>
> But (see my earlier mails) I feel it would be more appropriate to do a
> new Widget Type than a new Application Type.

This I really don't understand, and never have since you started
the discussion.

There are no widgets in your application. It's a server application
that sits in the background. So why create a new widget type ?

There is, if I understand you correct, an event loop.

All fine, but an event loop can be programmed in various ways, 
without the HUGE overhead of the LCL widgetset.

Michael.




More information about the Lazarus mailing list