[Gambas-user] WebPage support in Gambas

Emil Lenngren emil.lenngren at ...626...
Mon Mar 19 18:33:24 CET 2012


Why can't anyone write a real web server for gambas that does not use CGI?
Then the runtime does not have to be restarted on each request. But maybe
it is a problem because gambas does not really support multi-threading?

2012/3/19 John Spikowski <support at ...2529...>

> On Mon, 2012-03-19 at 12:31 -0400, Rob Kudla wrote:
> > On 03/18/2012 01:16 PM, John Spikowski wrote:
> > > I have found that it is more difficult to get folks to try your
> software
> > > if it means needing admin privileges and installing frameworks not used
> > > by any other applications. I would guess the best approach would be is
> >
> > To be honest, that's largely why I develop primarily for the web now.
> > All the end user needs is a 0-3 year old web browser, or if I design
> > carefully, a smartphone or tablet.
> >
> > The only solutions you have for a single-file stand-alone program under
> > Linux are a statically linked C/C++ app (which will be enormous) or
> > something with a self-contained app wrapper like tcl/tk (which is awful
> > to program in, and will make your app look like it came with Windows
> > 95). I remember efforts to make statically linked versions of Python and
> > Ruby for this purpose, but I imagine for graphical apps you'd run into
> > the same dependency issues as Gambas.
> >
> > > to use Gtk components for a demo version of your application which
> would
> > > minimize the install time of dependencies. How big is the Gambas
> > > runtime?
> >
> > $ time sudo apt-get install gambas2-runtime
> > [...]
> > The following NEW packages will be installed:
> >   gambas2-runtime
> > 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
> > Need to get 193 kB of archives.
> > After this operation, 602 kB of additional disk space will be used.
> >
> > So you're correct, the bulk of the dependencies will be the components.
> > On the other hand, on my system, "apt-get install gambas2-ide" wants to
> > install 15.2MB of packages totaling 50MB when uncompressed. Most of it
> > seems to be Qt.
> >
> > Rob
>
> I think it's great that a language as rich in features as Gambas is
> flexible enough to server up web pages as well.
>
> ScriptBasic is less then 500KB, can run in a single process as a
> multi-threaded web server (with in memory session support) which works
> really well with the new web paradigm. (AJAX) ScriptBasic is already
> running and waiting for requests which are handled with pre-compiled
> (tokenized) scripts. An efficient client / server environment is
> paramount if dynamic applications is your web goal. If all you care
> about is displaying static pages, pretty much anything will do.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list