RE: gnuplot with wxt on MacOS, time for decisions

View: New views
2 Messages — Rating Filter:   Alert me  

RE: gnuplot with wxt on MacOS, time for decisions

by Nigel Nunn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On (8 May 2007 ??) 16 July 2008 Hans-Bernhard Bröker wrote:

> > 3rd solution = use one thread only (the most ambitious)
> >  - the one and only thread is an event loop.
> >  - "a char arrived on stdin" is handled as an event (this is natural,
> > isn't it?), and passed to readline
> >  - the event loop is actually the GUI loop, just extended to watch stdin
> > in addition to window events
>
> That's pretty much the way the Windows native terminal has been doing
> things since day 1 (and in a pretty nasty way, too, overriding the
> <stdio.h> functions with macros of our own making).  Which means a bit
> of synergy might be achievable if you go this way.
>
> > Currently, we have:
> >     while( readline(); do_line(); ) {};
> >
> > Instead we would have an event loop, with the following callbacks:
> >     data_is_available_in_stdin() {rl_callback_read_char ();}
> >     line_is_completed() {do_line();}
>
> Not necessarily.  It's possible to lace the GUI event handling into the
> readline character input function instead.


Agreed. Our wx clone of HBB's Win32 version worked well.
May be... time has come to polish and submit?

Nigel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

Re: gnuplot with wxt on MacOS, time for decisions

by Ethan Merritt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 15 July 2008 16:36, Nigel Nunn wrote:

> On (8 May 2007 ??) 16 July 2008 Hans-Bernhard Bröker wrote:
>
> > > 3rd solution = use one thread only (the most ambitious)
> > >  - the one and only thread is an event loop.
> > >  - "a char arrived on stdin" is handled as an event (this is natural,
> > > isn't it?), and passed to readline
> > >  - the event loop is actually the GUI loop, just extended to watch stdin
> > > in addition to window events
> >
> > That's pretty much the way the Windows native terminal has been doing
> > things since day 1 (and in a pretty nasty way, too, overriding the
> > <stdio.h> functions with macros of our own making).  Which means a bit
> > of synergy might be achievable if you go this way.
> >
> > > Currently, we have:
> > >     while( readline(); do_line(); ) {};
> > >
> > > Instead we would have an event loop, with the following callbacks:
> > >     data_is_available_in_stdin() {rl_callback_read_char ();}
> > >     line_is_completed() {do_line();}
> >
> > Not necessarily.  It's possible to lace the GUI event handling into the
> > readline character input function instead.
>
>
> Agreed. Our wx clone of HBB's Win32 version worked well.
> May be... time has come to polish and submit?


Feel free to submit, but...

I personally would prefer to see an outboard wxt driver.
That way a single gnuplot executable built for OSX could use
aquaterm or x11 or wxt depending on what else was present on
the system.  No need for a separate executable specific to wxt.

        Ethan

--
Ethan A Merritt

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gnuplot-beta mailing list
gnuplot-beta@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
LightInTheBox - Buy quality products at wholesale price