From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) by hurricane.the-brannons.com (Postfix) with ESMTPS id E70AD77C82 for ; Wed, 23 Dec 2015 10:44:52 -0800 (PST) Received: by mail-wm0-x22f.google.com with SMTP id p187so155162794wmp.0 for ; Wed, 23 Dec 2015 10:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=9osSCnaKXurgYapucDNoIdp46FUORMVZ4dLzkLdDNk8=; b=T/zS/FfPXSAspEylZz7/+MJ7vGwwAEa/uWzHgW2f7ab2zfpXsrYWwuIOF5w7qB0pgZ VGBd713hHh60VuVNsDJ9ubS96R7mZFJz9XYKY47Tp2F+fseUXo4pnSfKD5QSMrbHW4bt XHcMDYaRa3gNWJLNh5sXKRb044BMrtEIaNor50XZxGmHD/mxkRCPY9tBlrDYxLbhpuf+ yzldr6ZBKt0IZj8VzjjIAIRZi6VJU37j5CgfhSqia8rFCFELT5b5F6mTDI+9TyQAR0EV V0WOw5tMSIN5z49pzO3vYCx5dNNr4G8vH95XGSSfbcpaDP+6fhuciUQKoQYWcLKkRuJj 7KMg== X-Received: by 10.28.172.129 with SMTP id v123mr35096536wme.47.1450896303007; Wed, 23 Dec 2015 10:45:03 -0800 (PST) Received: from hob.adamthompson.me.uk (38.77.155.90.in-addr.arpa. [90.155.77.38]) by smtp.gmail.com with ESMTPSA id q6sm38525899wjx.28.2015.12.23.10.45.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2015 10:45:02 -0800 (PST) Date: Wed, 23 Dec 2015 18:45:00 +0000 From: Adam Thompson To: Karl Dahlke Cc: Edbrowse-dev@lists.the-brannons.com Message-ID: <20151223184500.GB2992@hob.adamthompson.me.uk> References: <20151123100928.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <20151123100928.eklhad@comcast.net> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [Edbrowse-dev] One program Two processes X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 18:44:53 -0000 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 23, 2015 at 10:09:28AM -0500, Karl Dahlke wrote: > this is an incremental step. > Moving towardes a merged solution with one instance of curl, > one set of cookies etc, > there is now just one executable, edbrowse, > which runs as either edbrowse or edbrowse-js depending on its name. > Like gawk and awk in /bin > So still two processes, same interface, same pipes > and messages, same communication, but one target > that is linked to both names. > Eventually edbrowse will spin off js as a thread, > not a fork exec of the same program under a different name, > and then we won't have to worry about replicating or losing cookies etc. > Will also smooth out the differences between linux and windows, > which are considerable any time you say the words fork exec. My initial reaction to this was... very worried, certainly about the suggested "thread safe" design. I've seen projects which do this kind of half-done multi-threading and they rarely end well. However, I'd personally be in favour of a hybrid design. A sort of multi-process multi-threaded mechanism. that being said, we can certainly do better than a fork exec with the copy and symlink approach. There's no need now to have the executables separated like that if we're comfortable linking the functions in the js engine, simply fork once we've set things up and we get the structures etc for free. As for your assertion about stability, I'm now regularly seeing edbrowse-js seg faults again, not sure why, although it looks like the process is using a lot of resources when it does this. I'd rather we had a proper discussion about this stuff before heading off in a direction like this, particularly as I was planning on doing some xhr stuff. Cheers, Adam. --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWeuurAAoJELZ22lNQBzHOM8EH/1SEhdXuVtJMdFyfoRpek826 CdPhnXa+MQAXDKzkpFeXBXIrewJajkHA2K7fO3LSBgWtwc2d0X0tqAWQtyl998Vn +atALNqnVQOEejAb7onQPlnU1GdET27/pPRcWHHtMyF2sUlOgp5ZZYkGyMMOOs+T PtKgFF0RU1td5qh4NOtqUwc/lyD4PgqkrXNwFZ6ySwfhpjTNtbs5o8U7C3f2fnmJ nHaqxAN8ebdTH7NQ9Ca3a3bTwPAlmV+rF9B2/xzvndQSgEtQvpLmgxGBZ2LPdj4O BzXBmIK/y9FJASk98WelBCF5bcSuFCgyMFlf1uwsbkvYvWp5m9KvMEoXQxJ0wYk= =Ws+V -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5--