edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] js engine process, version 1
Date: Wed, 24 Dec 2014 08:09:43 +0000	[thread overview]
Message-ID: <20141224080943.GB10755@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20141123175047.eklhad@comcast.net>

[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]

On Tue, Dec 23, 2014 at 05:50:47PM -0500, Karl Dahlke wrote:
> > it'd be nicer if the alert, prompt etc functions were done as part of the
> > protocol, letting edbrowse handle user interaction I think.
> 
> Yeah I think so too, I was saving that for a future increment.

Yeah, it may be worth doing sooner than later though, if only to make debugging easier.
> > I don't see why this can't be done via ipc messages.
> 
> I may not know enough, but I don't think ipc messages play nice with
> select, looking toward the day when we must monitor
> many input streams at the same time,
> many events coming in from many sources.
> You can select on many file descriptors, as I do in my adapter and
> other programs, but I don't think you can select on 4 file
> descriptors and an ipc message queue.
> If I'm wrong, we can switch from pipes to messages in the future,
> if it makes sense to do so.
> Probably not a big difference either way.

I don't massively mind, and as for the select thing,
it kind of depends on how portable we want to be.
If we really want to be portable then no, the two don't play nice,
but on linux, according to the documentation, they will actually work together.
I'm not sure how this'd be too much of a problem though,
since each edbrowse will have it's own edbrowse-js (with associated message queue),
and each window within edbrowse (assuming we go down the process per window
route) would share the message queue to the edbrowse-js process I suspect.
We could also look at using the mq_notify function to make async operation a bit easier and avoid the need to poll the message queue descriptors.
Anyway, just thoughts on a future increment. Let's get what we have functioning first.

Cheers,
Adam.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-12-24  8:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23 22:50 Karl Dahlke
2014-12-24  8:09 ` Adam Thompson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-23 22:17 Karl Dahlke
2014-12-23 22:31 ` Adam Thompson
2014-12-23 19:50 Karl Dahlke
2014-12-23 21:38 ` Adam Thompson
2014-12-22 20:23 Karl Dahlke
2014-12-23 18:46 ` Adam Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141224080943.GB10755@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).