From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add current-suspendable-io-status parameter Date: Mon, 13 May 2019 18:56:32 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183507"; mail-complaints-to="usenet@blaine.gmane.org" To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 13 12:56:53 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQ8dZ-000leP-2t for guile-devel@m.gmane.org; Mon, 13 May 2019 12:56:53 +0200 Original-Received: from localhost ([127.0.0.1]:55043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ8dY-0001SP-1P for guile-devel@m.gmane.org; Mon, 13 May 2019 06:56:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQ8dR-0001PS-Pa for guile-devel@gnu.org; Mon, 13 May 2019 06:56:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQ8dQ-0002L7-NG for guile-devel@gnu.org; Mon, 13 May 2019 06:56:45 -0400 Original-Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]:37033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQ8dQ-0002KF-HG for guile-devel@gnu.org; Mon, 13 May 2019 06:56:44 -0400 Original-Received: by mail-yw1-xc44.google.com with SMTP id 186so10631075ywo.4 for ; Mon, 13 May 2019 03:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=l2QHuXELGhLqCkCRuy15lx4BHTcuqoIrk7Yi4h2hcQ8=; b=hjh72n589sMMjzS+7eCyNmCTOhtyrNvZxo9maMJuYQPTaJ/OzJuk/je9dUcNERAGHU tCx4FETrwsbgBI02LRF8/T9jxAXtbg+3DGep5raEpOs8+tjBzhSHBFUr/fMaJl1onMCd Pr1pAkXCv8f06AlCrLuSjfHZg2Nq9o2rFnanSdEV0UOGoCxPh7zIS4NQnZo2RCHaN03l sJ8lNc+UGpS8raBjsDGoQ8WD4EEQ79oFYAaU+z/yteuX/0sRAFDPFgnJin64+uLpBBAQ ICoNbFjumgDZVglxnBe+7ysi0mjSexOPIyQ7ckjXVzfe7m+WvlOnvCHoVKWqWIMjnp2r fZEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=l2QHuXELGhLqCkCRuy15lx4BHTcuqoIrk7Yi4h2hcQ8=; b=g+zoYRfyGh65ABH+MTVSXmDrdTs4fEuSwP8jroQHBAsUgomqozW2zdisP1Vc2FuwX0 TILsfUyFU6wz5/Bep+WpClFwIRyGdqCy68378B1xApNBXkGBL77KN/k+tNUCAxXj9lnk dxeOKQOMBlnn/qxRCTR8ioSr2GN1StbC+OgiV8jZtL7zn4AtMUN6ix64NHoYj6nW14iV UPjpYy4SpVBjFe36fkBtfKb31Rv4SNj20dE2bluqVpYXd1VoEMuOa5zNN27lwg/ZgOTE pJJ4iDr7cCVnKFrLUwDGfe3nFBkGM2vqzmpWEPdXntxTGYiml+Ky+GLcV4qLDWZB0/H9 z1aQ== X-Gm-Message-State: APjAAAWfLjttPwAqBW8PkDwPz9shsOsevEH2NQ032BcLGgytng4eP50+ Hm5dctQbIl5vBxAzQynAXNQ87fuw/mulGIrAvYcHk2wP+qc= X-Google-Smtp-Source: APXvYqwddIZGSbuTC//lj09ymKaAhBOOOD3sFV9J4dXZcmyez9JEkeZIFy9xX2oPda1LdLxTsqeBVRUK5iAc6iHnmtE= X-Received: by 2002:a5b:c0d:: with SMTP id f13mr13172222ybq.375.1557745003341; Mon, 13 May 2019 03:56:43 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::c44 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19907 Archived-At: BTW, the patch is based on the latest stable-2.2 branch. On Mon, May 13, 2019 at 6:54 PM Nala Ginrut wrote: > > Hi folks! > Here's a patch to add current-suspendable-io-status: > Its result is a pair: (finished-bytes . rest-bytes) > > This is useful for designing a proper scheduler algorithm for > suspendable I/O operations. > For example, the server-core based on delimited-continuation can > compute a priority based on this status to decide how to schedule the > suspended task. > > Comments are welcome. > > Best regards.