sleepy_penguin RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] sleepy_penguin 3.5.1 - Linux I/O events (and more) for Ruby
  @ 2018-12-15  4:46  6% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2018-12-15  4:46 UTC (permalink / raw)
  To: ruby-talk, sleepy-penguin

sleepy_penguin provides access to newer, Linux-only system calls to wait
on events from traditionally non-I/O sources.  Bindings to the eventfd,
timerfd, inotify, and epoll interfaces are provided.  Experimental support
for kqueue on FreeBSD (and likely OpenBSD/NetBSD) is also provided.

* homepage: https://bogomips.org/sleepy_penguin/
* git clone https://bogomips.org/sleepy_penguin.git
* Atom feed: https://bogomips.org/sleepy_penguin/NEWS.atom.xml
* mailing list: sleepy-penguin@bogomips.org
* mail archives: https://bogomips.org/sleepy-penguin/
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.sleepy-penguin
	https://bogomips.org/sleepy-penguin/new.atom

Changes:

    sleepy_penguin 3.5.1

    This release fixes some minor things for kqueue and clang
    users.  Not much going on... *yawn*

    6 changes since v3.5.0 (2017-03-22):

          kqueue: ensure close-on-exec flag is set
          kqueue: modernize Struct usage for Ruby 2.5.0dev
          fix 64-to-32-bit truncation warning
          kqueue: get rid of unused variable warnings
          epoll: avoid reduce block capture and ivar requests
          doc: use HTTPS URLS when possible

^ permalink raw reply	[relevance 6%]

* [PATCH] epoll: avoid reduce block capture and ivar requests
@ 2018-12-14 23:08  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2018-12-14 23:08 UTC (permalink / raw)
  To: sleepy-penguin; +Cc: Eric Wong

Bytecode golfing...
---
 lib/sleepy_penguin/epoll.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/sleepy_penguin/epoll.rb b/lib/sleepy_penguin/epoll.rb
index 7d173c8..bd340be 100644
--- a/lib/sleepy_penguin/epoll.rb
+++ b/lib/sleepy_penguin/epoll.rb
@@ -27,8 +27,7 @@ class SleepyPenguin::Epoll
     return if @pid == $$
     return if @io.closed?
     objects = @copies.values
-    @copies.each_key { |epio| epio.close }
-    @copies.clear
+    @copies.each_key(&:close).clear
     __ep_reinit
     objects.each do |obj|
       io_dup = @io.dup

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-03-22  7:27     [ANN] sleepy_penguin 3.5.0 - Linux I/O events (and more) for Ruby Eric Wong
2018-12-15  4:46  6% ` [ANN] sleepy_penguin 3.5.1 " Eric Wong
2018-12-14 23:08  7% [PATCH] epoll: avoid reduce block capture and ivar requests Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/sleepy_penguin.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).