in reply to Please suggest a non-forking way to do this (OS: windows)

I know that this was a Tk thread, involving a non-working Tk::fileevent (select) on win32 pipes, but I thought I would mention that Glib ( the base library of Gtk2) has included support for select on pipes, in it's Glib::IO->add_watch(). See Re: working with 2 inputs

So.... just another reason to consider Glib and Gtk2 for your next Win32 project.


I'm not really a human, but I play one on earth Remember How Lucky You Are
  • Comment on Re: Please suggest a non-forking way to do this (OS: windows)

Replies are listed 'Best First'.
Re^2: Please suggest a non-forking way to do this (OS: windows)
by BrowserUk (Patriarch) on Oct 02, 2008 at 11:33 UTC
    So.... just another reason to consider Glib and Gtk2 for your next Win32 project.

    Don't you consider that recommending the download and installation of 15MB of Gimp and 23MB of Gtk2 is a bit extreme for a problem that can be solved with 10 lines of code with an out-of-the-box perl?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Well to get the Glib functionality we are talking about, only requires the most basic Glib lib, which is only a 1.5 Meg download, at Glib for Windows And that simple download will make the code shown by ikegami at Re: Please suggest a non-forking way to do this (OS: windows) (solution) seem way too complex.

      Glib gives you a nice event loop and select on pipes, with a simple syntax, and is cross-platform. With Glib you can write the same pipe-open code for linux and win32, whearas Win32 modules are single platform.

      To be honest, that is far less than all the f*cking vb dlls you need to download to make most of that win32 crap run. No wonder the minimal space required for a Vista install is 20 gigs.

      Don't you consider that recommending the installation of 20 gigs of virus prone win32 crap a bit extreme for a problem that can be solved with 1 gig linux box? :-)


      I'm not really a human, but I play one on earth Remember How Lucky You Are