From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 522611F609 for ; Wed, 28 Nov 2018 19:51:11 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 77DC71214DA; Thu, 29 Nov 2018 04:51:09 +0900 (JST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by neon.ruby-lang.org (Postfix) with ESMTPS id F12FF12113C for ; Thu, 29 Nov 2018 04:51:04 +0900 (JST) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DDB6D1F609; Wed, 28 Nov 2018 19:51:02 +0000 (UTC) Date: Wed, 28 Nov 2018 19:51:02 +0000 From: Eric Wong To: ruby-core@ruby-lang.org Message-ID: <20181128195102.me26osn35f5gvazy@dcvr> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-ML-Name: ruby-core X-Mail-Count: 90134 Subject: [ruby-core:90134] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" > https://bugs.ruby-lang.org/issues/13618#change-75238 takashikkbn@gmail.com wrote: > I'm interested in the "demo server" as a real-world use case > of Thread::Light. Is the code available somewhere? I haven't written it, yet. I'll update the thread as soon as I have something. I guess I'll need Timeout support for Thread::Light, too. Hopefully this week... > Also, is there any plan to use Thread::Light on each Unicorn > process (hybrid of multi-process and multi-Thread::Light, > similar to puma.gem)? It would be an insult to existing unicorn users to integrate features which are completely opposite to the original design. That said, it could replace nginx for unicorn users by being a fullly-buffering reverse proxy; but it'll be orthogonal and interchangeable with nginx. > I personally expect @ioquatix will use (or support as one of concurrency driver) Thread::Light for his falcon.gem, in the context of https://www.codeotaku.com/journal/2018-11/fibers-are-the-right-solution/index. @ioquatix seems happy with libev and "async". I don't believe libev is the right fit for Ruby or existing Ruby codebases. I also want to support Queue and SizedQueue.