├── .github ├── FUNDING.yml └── workflows │ ├── test.yml │ └── test_io_uring.yml ├── .gitignore ├── .gitmodules ├── .rubocop.yml ├── .vscode └── launch.json ├── .yardopts ├── CHANGELOG.md ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── TODO.md ├── bin ├── pdbg ├── polyphony-debug ├── stress.rb └── test ├── docs ├── _user-guide │ ├── all-about-timers.md │ ├── index.md │ └── web-server.md ├── advanced-io.md ├── assets │ ├── echo-fibers.svg │ ├── polyphony-logo.png │ └── sleeping-fiber.svg ├── cancellation.md ├── cheat-sheet.md ├── concurrency.md ├── design-principles.md ├── exception-handling.md ├── extending.md ├── faq.md ├── fiber-scheduling.md ├── installation.md ├── overview.md ├── readme.md ├── tutorial.md └── whats-new.md ├── examples ├── adapters │ ├── pg_client.rb │ ├── pg_notify.rb │ ├── pg_pool.rb │ ├── pg_transaction.rb │ ├── redis_blpop.rb │ ├── redis_channels.rb │ ├── redis_client.rb │ ├── redis_pubsub.rb │ ├── redis_pubsub_perf.rb │ ├── sequel_mysql.rb │ ├── sequel_mysql_pool.rb │ └── sequel_pg.rb ├── core │ ├── await.rb │ ├── calc.rb │ ├── calc_with_restart.rb │ ├── calc_with_supervise.rb │ ├── channels.rb │ ├── debug.rb │ ├── deferring-an-operation.rb │ ├── enumerable.rb │ ├── enumerator.rb │ ├── erlang-style-genserver.rb │ ├── forking.rb │ ├── handling-signals.rb │ ├── idle_gc.rb │ ├── interrupt.rb │ ├── message_based_supervision.rb │ ├── multi_suspend.rb │ ├── nested.rb │ ├── pingpong.rb │ ├── queue.rb │ ├── raw_buffer_test.rb │ ├── recurrent-timer.rb │ ├── resource_delegate.rb │ ├── ring.rb │ ├── rpc_benchmark.rb │ ├── shutdown_all_children.rb │ ├── spin.rb │ ├── spin_error_backtrace.rb │ ├── stages.rb │ ├── stream_mockup.rb │ ├── supervise-process.rb │ ├── supervisor.rb │ ├── suspend.rb │ ├── terminate_main_fiber.rb │ ├── thread-sleep.rb │ ├── thread_pool.rb │ ├── throttled_loop_inside_move_on_after.rb │ ├── throttling.rb │ ├── timeout.rb │ ├── trap1.rb │ ├── trap2.rb │ ├── using-a-mutex.rb │ ├── worker-thread.rb │ └── zlib_stream.rb ├── io │ ├── backticks.rb │ ├── echo_client.rb │ ├── echo_client_from_stdin.rb │ ├── echo_pipe.rb │ ├── echo_server.rb │ ├── echo_server_plain_ruby.rb │ ├── echo_server_with_timeout.rb │ ├── echo_stdin.rb │ ├── gzip.rb │ ├── happy-eyeballs.rb │ ├── http1_splice_chunked.rb │ ├── http_simple_server.rb │ ├── httparty.rb │ ├── https_server.rb │ ├── https_server_sni.rb │ ├── https_server_sni_2.rb │ ├── irb.rb │ ├── net-http.rb │ ├── open.rb │ ├── pipe.rb │ ├── pry.rb │ ├── rack_server.rb │ ├── raw.rb │ ├── readline.rb │ ├── reline.rb │ ├── splice_chunks.rb │ ├── splice_echo_server.rb │ ├── static_web_server.rb │ ├── stdio.rb │ ├── system.rb │ ├── tcp_proxy.rb │ ├── tcpserver.rb │ ├── tcpsocket.rb │ ├── tunnel.rb │ ├── unix_socket.rb │ └── zip.rb ├── performance │ ├── fiber_resume.rb │ ├── fiber_transfer.rb │ ├── fs_read.rb │ ├── line_splitting.rb │ ├── loop.rb │ ├── mem-usage.rb │ ├── messaging.rb │ ├── multi_snooze.rb │ ├── snooze.rb │ ├── snooze_raw.rb │ ├── switch.rb │ ├── thread-vs-fiber │ │ ├── compare.rb │ │ ├── em_server.rb │ │ ├── httparty_multi.rb │ │ ├── httparty_threaded.rb │ │ ├── polyphony_mt_server.rb │ │ ├── polyphony_server.rb │ │ ├── polyphony_server_read_loop.rb │ │ └── threaded_server.rb │ ├── thread_pool_perf.rb │ └── thread_switch.rb └── pipes │ ├── echo_server.rb │ ├── gunzip.rb │ ├── gzip.rb │ ├── gzip_http_server.rb │ ├── http_server.rb │ ├── http_server2.rb │ ├── tcp_proxy.rb │ └── tee.rb ├── ext ├── libev │ ├── Changes │ ├── LICENSE │ ├── README │ ├── README.embed │ ├── ev.c │ ├── ev.h │ ├── ev_epoll.c │ ├── ev_kqueue.c │ ├── ev_linuxaio.c │ ├── ev_poll.c │ ├── ev_port.c │ ├── ev_select.c │ ├── ev_vars.h │ ├── ev_win32.c │ ├── ev_wrap.h │ └── test_libev_win32.c ├── polyphony │ ├── backend_common.c │ ├── backend_common.h │ ├── backend_io_uring.c │ ├── backend_io_uring_context.c │ ├── backend_io_uring_context.h │ ├── backend_libev.c │ ├── event.c │ ├── extconf.rb │ ├── fiber.c │ ├── io_extensions.c │ ├── libev.c │ ├── libev.h │ ├── pipe.c │ ├── playground.c │ ├── polyphony.c │ ├── polyphony.h │ ├── polyphony_ext.c │ ├── queue.c │ ├── ring_buffer.c │ ├── ring_buffer.h │ ├── runqueue.c │ ├── runqueue.h │ ├── runqueue_ring_buffer.c │ ├── runqueue_ring_buffer.h │ ├── socket_extensions.c │ ├── thread.c │ ├── win_uio.h │ └── zlib_conf.rb └── test_eintr.c ├── lib ├── polyphony.rb └── polyphony │ ├── adapters │ ├── fs.rb │ ├── irb.rb │ ├── mysql2.rb │ ├── open3.rb │ ├── postgres.rb │ ├── process.rb │ ├── readline.rb │ ├── redis.rb │ └── sequel.rb │ ├── core │ ├── channel.rb │ ├── debug.rb │ ├── exceptions.rb │ ├── resource_pool.rb │ ├── sync.rb │ ├── thread_pool.rb │ ├── throttler.rb │ └── timer.rb │ ├── debugger.rb │ ├── extensions.rb │ ├── extensions │ ├── exception.rb │ ├── fiber.rb │ ├── io.rb │ ├── kernel.rb │ ├── object.rb │ ├── openssl.rb │ ├── pipe.rb │ ├── process.rb │ ├── socket.rb │ ├── thread.rb │ └── timeout.rb │ ├── net.rb │ └── version.rb ├── polyphony.gemspec └── test ├── coverage.rb ├── eg.rb ├── helper.rb ├── io_uring_test.rb ├── open3 ├── envutil.rb └── find_executable.rb ├── q.rb ├── run.rb ├── stress.rb ├── test_backend.rb ├── test_enumerator.rb ├── test_event.rb ├── test_ext.rb ├── test_fiber.rb ├── test_global_api.rb ├── test_io.rb ├── test_kernel.rb ├── test_monitor.rb ├── test_open3.rb ├── test_pipe.rb ├── test_process_supervision.rb ├── test_queue.rb ├── test_raw_buffer.rb ├── test_resource_pool.rb ├── test_scenarios.rb ├── test_signal.rb ├── test_socket.rb ├── test_supervise.rb ├── test_sync.rb ├── test_thread.rb ├── test_thread_pool.rb ├── test_throttler.rb ├── test_timer.rb └── test_trace.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: noteflakes 2 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/test_io_uring.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.github/workflows/test_io_uring.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.gitmodules -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/.yardopts -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/TODO.md -------------------------------------------------------------------------------- /bin/pdbg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/bin/pdbg -------------------------------------------------------------------------------- /bin/polyphony-debug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/bin/polyphony-debug -------------------------------------------------------------------------------- /bin/stress.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/bin/stress.rb -------------------------------------------------------------------------------- /bin/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/bin/test -------------------------------------------------------------------------------- /docs/_user-guide/all-about-timers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/_user-guide/all-about-timers.md -------------------------------------------------------------------------------- /docs/_user-guide/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/_user-guide/index.md -------------------------------------------------------------------------------- /docs/_user-guide/web-server.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/_user-guide/web-server.md -------------------------------------------------------------------------------- /docs/advanced-io.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/advanced-io.md -------------------------------------------------------------------------------- /docs/assets/echo-fibers.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/assets/echo-fibers.svg -------------------------------------------------------------------------------- /docs/assets/polyphony-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/assets/polyphony-logo.png -------------------------------------------------------------------------------- /docs/assets/sleeping-fiber.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/assets/sleeping-fiber.svg -------------------------------------------------------------------------------- /docs/cancellation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/cancellation.md -------------------------------------------------------------------------------- /docs/cheat-sheet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/cheat-sheet.md -------------------------------------------------------------------------------- /docs/concurrency.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/concurrency.md -------------------------------------------------------------------------------- /docs/design-principles.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/design-principles.md -------------------------------------------------------------------------------- /docs/exception-handling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/exception-handling.md -------------------------------------------------------------------------------- /docs/extending.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/extending.md -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/faq.md -------------------------------------------------------------------------------- /docs/fiber-scheduling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/fiber-scheduling.md -------------------------------------------------------------------------------- /docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/installation.md -------------------------------------------------------------------------------- /docs/overview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/overview.md -------------------------------------------------------------------------------- /docs/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/readme.md -------------------------------------------------------------------------------- /docs/tutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/tutorial.md -------------------------------------------------------------------------------- /docs/whats-new.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/docs/whats-new.md -------------------------------------------------------------------------------- /examples/adapters/pg_client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/pg_client.rb -------------------------------------------------------------------------------- /examples/adapters/pg_notify.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/pg_notify.rb -------------------------------------------------------------------------------- /examples/adapters/pg_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/pg_pool.rb -------------------------------------------------------------------------------- /examples/adapters/pg_transaction.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/pg_transaction.rb -------------------------------------------------------------------------------- /examples/adapters/redis_blpop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/redis_blpop.rb -------------------------------------------------------------------------------- /examples/adapters/redis_channels.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/redis_channels.rb -------------------------------------------------------------------------------- /examples/adapters/redis_client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/redis_client.rb -------------------------------------------------------------------------------- /examples/adapters/redis_pubsub.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/redis_pubsub.rb -------------------------------------------------------------------------------- /examples/adapters/redis_pubsub_perf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/redis_pubsub_perf.rb -------------------------------------------------------------------------------- /examples/adapters/sequel_mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/sequel_mysql.rb -------------------------------------------------------------------------------- /examples/adapters/sequel_mysql_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/sequel_mysql_pool.rb -------------------------------------------------------------------------------- /examples/adapters/sequel_pg.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/adapters/sequel_pg.rb -------------------------------------------------------------------------------- /examples/core/await.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/await.rb -------------------------------------------------------------------------------- /examples/core/calc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/calc.rb -------------------------------------------------------------------------------- /examples/core/calc_with_restart.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/calc_with_restart.rb -------------------------------------------------------------------------------- /examples/core/calc_with_supervise.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/calc_with_supervise.rb -------------------------------------------------------------------------------- /examples/core/channels.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/channels.rb -------------------------------------------------------------------------------- /examples/core/debug.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/debug.rb -------------------------------------------------------------------------------- /examples/core/deferring-an-operation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/deferring-an-operation.rb -------------------------------------------------------------------------------- /examples/core/enumerable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/enumerable.rb -------------------------------------------------------------------------------- /examples/core/enumerator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/enumerator.rb -------------------------------------------------------------------------------- /examples/core/erlang-style-genserver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/erlang-style-genserver.rb -------------------------------------------------------------------------------- /examples/core/forking.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/forking.rb -------------------------------------------------------------------------------- /examples/core/handling-signals.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/handling-signals.rb -------------------------------------------------------------------------------- /examples/core/idle_gc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/idle_gc.rb -------------------------------------------------------------------------------- /examples/core/interrupt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/interrupt.rb -------------------------------------------------------------------------------- /examples/core/message_based_supervision.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/message_based_supervision.rb -------------------------------------------------------------------------------- /examples/core/multi_suspend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/multi_suspend.rb -------------------------------------------------------------------------------- /examples/core/nested.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/nested.rb -------------------------------------------------------------------------------- /examples/core/pingpong.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/pingpong.rb -------------------------------------------------------------------------------- /examples/core/queue.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/queue.rb -------------------------------------------------------------------------------- /examples/core/raw_buffer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/raw_buffer_test.rb -------------------------------------------------------------------------------- /examples/core/recurrent-timer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/recurrent-timer.rb -------------------------------------------------------------------------------- /examples/core/resource_delegate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/resource_delegate.rb -------------------------------------------------------------------------------- /examples/core/ring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/ring.rb -------------------------------------------------------------------------------- /examples/core/rpc_benchmark.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/rpc_benchmark.rb -------------------------------------------------------------------------------- /examples/core/shutdown_all_children.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/shutdown_all_children.rb -------------------------------------------------------------------------------- /examples/core/spin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/spin.rb -------------------------------------------------------------------------------- /examples/core/spin_error_backtrace.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/spin_error_backtrace.rb -------------------------------------------------------------------------------- /examples/core/stages.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/stages.rb -------------------------------------------------------------------------------- /examples/core/stream_mockup.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/stream_mockup.rb -------------------------------------------------------------------------------- /examples/core/supervise-process.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/supervise-process.rb -------------------------------------------------------------------------------- /examples/core/supervisor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/supervisor.rb -------------------------------------------------------------------------------- /examples/core/suspend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/suspend.rb -------------------------------------------------------------------------------- /examples/core/terminate_main_fiber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/terminate_main_fiber.rb -------------------------------------------------------------------------------- /examples/core/thread-sleep.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/thread-sleep.rb -------------------------------------------------------------------------------- /examples/core/thread_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/thread_pool.rb -------------------------------------------------------------------------------- /examples/core/throttled_loop_inside_move_on_after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/throttled_loop_inside_move_on_after.rb -------------------------------------------------------------------------------- /examples/core/throttling.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/throttling.rb -------------------------------------------------------------------------------- /examples/core/timeout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/timeout.rb -------------------------------------------------------------------------------- /examples/core/trap1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/trap1.rb -------------------------------------------------------------------------------- /examples/core/trap2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/trap2.rb -------------------------------------------------------------------------------- /examples/core/using-a-mutex.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/using-a-mutex.rb -------------------------------------------------------------------------------- /examples/core/worker-thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/worker-thread.rb -------------------------------------------------------------------------------- /examples/core/zlib_stream.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/core/zlib_stream.rb -------------------------------------------------------------------------------- /examples/io/backticks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/backticks.rb -------------------------------------------------------------------------------- /examples/io/echo_client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_client.rb -------------------------------------------------------------------------------- /examples/io/echo_client_from_stdin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_client_from_stdin.rb -------------------------------------------------------------------------------- /examples/io/echo_pipe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_pipe.rb -------------------------------------------------------------------------------- /examples/io/echo_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_server.rb -------------------------------------------------------------------------------- /examples/io/echo_server_plain_ruby.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_server_plain_ruby.rb -------------------------------------------------------------------------------- /examples/io/echo_server_with_timeout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_server_with_timeout.rb -------------------------------------------------------------------------------- /examples/io/echo_stdin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/echo_stdin.rb -------------------------------------------------------------------------------- /examples/io/gzip.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/gzip.rb -------------------------------------------------------------------------------- /examples/io/happy-eyeballs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/happy-eyeballs.rb -------------------------------------------------------------------------------- /examples/io/http1_splice_chunked.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/http1_splice_chunked.rb -------------------------------------------------------------------------------- /examples/io/http_simple_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/http_simple_server.rb -------------------------------------------------------------------------------- /examples/io/httparty.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/httparty.rb -------------------------------------------------------------------------------- /examples/io/https_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/https_server.rb -------------------------------------------------------------------------------- /examples/io/https_server_sni.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/https_server_sni.rb -------------------------------------------------------------------------------- /examples/io/https_server_sni_2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/https_server_sni_2.rb -------------------------------------------------------------------------------- /examples/io/irb.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/irb.rb -------------------------------------------------------------------------------- /examples/io/net-http.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/net-http.rb -------------------------------------------------------------------------------- /examples/io/open.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/open.rb -------------------------------------------------------------------------------- /examples/io/pipe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/pipe.rb -------------------------------------------------------------------------------- /examples/io/pry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/pry.rb -------------------------------------------------------------------------------- /examples/io/rack_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/rack_server.rb -------------------------------------------------------------------------------- /examples/io/raw.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/raw.rb -------------------------------------------------------------------------------- /examples/io/readline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/readline.rb -------------------------------------------------------------------------------- /examples/io/reline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/reline.rb -------------------------------------------------------------------------------- /examples/io/splice_chunks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/splice_chunks.rb -------------------------------------------------------------------------------- /examples/io/splice_echo_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/splice_echo_server.rb -------------------------------------------------------------------------------- /examples/io/static_web_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/static_web_server.rb -------------------------------------------------------------------------------- /examples/io/stdio.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/stdio.rb -------------------------------------------------------------------------------- /examples/io/system.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/system.rb -------------------------------------------------------------------------------- /examples/io/tcp_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/tcp_proxy.rb -------------------------------------------------------------------------------- /examples/io/tcpserver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/tcpserver.rb -------------------------------------------------------------------------------- /examples/io/tcpsocket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/tcpsocket.rb -------------------------------------------------------------------------------- /examples/io/tunnel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/tunnel.rb -------------------------------------------------------------------------------- /examples/io/unix_socket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/unix_socket.rb -------------------------------------------------------------------------------- /examples/io/zip.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/io/zip.rb -------------------------------------------------------------------------------- /examples/performance/fiber_resume.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/fiber_resume.rb -------------------------------------------------------------------------------- /examples/performance/fiber_transfer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/fiber_transfer.rb -------------------------------------------------------------------------------- /examples/performance/fs_read.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/fs_read.rb -------------------------------------------------------------------------------- /examples/performance/line_splitting.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/line_splitting.rb -------------------------------------------------------------------------------- /examples/performance/loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/loop.rb -------------------------------------------------------------------------------- /examples/performance/mem-usage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/mem-usage.rb -------------------------------------------------------------------------------- /examples/performance/messaging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/messaging.rb -------------------------------------------------------------------------------- /examples/performance/multi_snooze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/multi_snooze.rb -------------------------------------------------------------------------------- /examples/performance/snooze.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/snooze.rb -------------------------------------------------------------------------------- /examples/performance/snooze_raw.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/snooze_raw.rb -------------------------------------------------------------------------------- /examples/performance/switch.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/switch.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/compare.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/compare.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/em_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/em_server.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/httparty_multi.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/httparty_multi.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/httparty_threaded.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/httparty_threaded.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/polyphony_mt_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/polyphony_mt_server.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/polyphony_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/polyphony_server.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/polyphony_server_read_loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/polyphony_server_read_loop.rb -------------------------------------------------------------------------------- /examples/performance/thread-vs-fiber/threaded_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread-vs-fiber/threaded_server.rb -------------------------------------------------------------------------------- /examples/performance/thread_pool_perf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread_pool_perf.rb -------------------------------------------------------------------------------- /examples/performance/thread_switch.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/performance/thread_switch.rb -------------------------------------------------------------------------------- /examples/pipes/echo_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/echo_server.rb -------------------------------------------------------------------------------- /examples/pipes/gunzip.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/gunzip.rb -------------------------------------------------------------------------------- /examples/pipes/gzip.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/gzip.rb -------------------------------------------------------------------------------- /examples/pipes/gzip_http_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/gzip_http_server.rb -------------------------------------------------------------------------------- /examples/pipes/http_server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/http_server.rb -------------------------------------------------------------------------------- /examples/pipes/http_server2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/http_server2.rb -------------------------------------------------------------------------------- /examples/pipes/tcp_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/tcp_proxy.rb -------------------------------------------------------------------------------- /examples/pipes/tee.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/examples/pipes/tee.rb -------------------------------------------------------------------------------- /ext/libev/Changes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/Changes -------------------------------------------------------------------------------- /ext/libev/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/LICENSE -------------------------------------------------------------------------------- /ext/libev/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/README -------------------------------------------------------------------------------- /ext/libev/README.embed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/README.embed -------------------------------------------------------------------------------- /ext/libev/ev.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev.c -------------------------------------------------------------------------------- /ext/libev/ev.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev.h -------------------------------------------------------------------------------- /ext/libev/ev_epoll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_epoll.c -------------------------------------------------------------------------------- /ext/libev/ev_kqueue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_kqueue.c -------------------------------------------------------------------------------- /ext/libev/ev_linuxaio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_linuxaio.c -------------------------------------------------------------------------------- /ext/libev/ev_poll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_poll.c -------------------------------------------------------------------------------- /ext/libev/ev_port.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_port.c -------------------------------------------------------------------------------- /ext/libev/ev_select.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_select.c -------------------------------------------------------------------------------- /ext/libev/ev_vars.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_vars.h -------------------------------------------------------------------------------- /ext/libev/ev_win32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_win32.c -------------------------------------------------------------------------------- /ext/libev/ev_wrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/ev_wrap.h -------------------------------------------------------------------------------- /ext/libev/test_libev_win32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/libev/test_libev_win32.c -------------------------------------------------------------------------------- /ext/polyphony/backend_common.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_common.c -------------------------------------------------------------------------------- /ext/polyphony/backend_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_common.h -------------------------------------------------------------------------------- /ext/polyphony/backend_io_uring.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_io_uring.c -------------------------------------------------------------------------------- /ext/polyphony/backend_io_uring_context.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_io_uring_context.c -------------------------------------------------------------------------------- /ext/polyphony/backend_io_uring_context.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_io_uring_context.h -------------------------------------------------------------------------------- /ext/polyphony/backend_libev.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/backend_libev.c -------------------------------------------------------------------------------- /ext/polyphony/event.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/event.c -------------------------------------------------------------------------------- /ext/polyphony/extconf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/extconf.rb -------------------------------------------------------------------------------- /ext/polyphony/fiber.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/fiber.c -------------------------------------------------------------------------------- /ext/polyphony/io_extensions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/io_extensions.c -------------------------------------------------------------------------------- /ext/polyphony/libev.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/libev.c -------------------------------------------------------------------------------- /ext/polyphony/libev.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/libev.h -------------------------------------------------------------------------------- /ext/polyphony/pipe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/pipe.c -------------------------------------------------------------------------------- /ext/polyphony/playground.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/playground.c -------------------------------------------------------------------------------- /ext/polyphony/polyphony.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/polyphony.c -------------------------------------------------------------------------------- /ext/polyphony/polyphony.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/polyphony.h -------------------------------------------------------------------------------- /ext/polyphony/polyphony_ext.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/polyphony_ext.c -------------------------------------------------------------------------------- /ext/polyphony/queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/queue.c -------------------------------------------------------------------------------- /ext/polyphony/ring_buffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/ring_buffer.c -------------------------------------------------------------------------------- /ext/polyphony/ring_buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/ring_buffer.h -------------------------------------------------------------------------------- /ext/polyphony/runqueue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/runqueue.c -------------------------------------------------------------------------------- /ext/polyphony/runqueue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/runqueue.h -------------------------------------------------------------------------------- /ext/polyphony/runqueue_ring_buffer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/runqueue_ring_buffer.c -------------------------------------------------------------------------------- /ext/polyphony/runqueue_ring_buffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/runqueue_ring_buffer.h -------------------------------------------------------------------------------- /ext/polyphony/socket_extensions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/socket_extensions.c -------------------------------------------------------------------------------- /ext/polyphony/thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/thread.c -------------------------------------------------------------------------------- /ext/polyphony/win_uio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/win_uio.h -------------------------------------------------------------------------------- /ext/polyphony/zlib_conf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/polyphony/zlib_conf.rb -------------------------------------------------------------------------------- /ext/test_eintr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/ext/test_eintr.c -------------------------------------------------------------------------------- /lib/polyphony.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/fs.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/fs.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/irb.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/irb.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/mysql2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/mysql2.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/open3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/open3.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/postgres.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/postgres.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/process.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/process.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/readline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/readline.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/redis.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/redis.rb -------------------------------------------------------------------------------- /lib/polyphony/adapters/sequel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/adapters/sequel.rb -------------------------------------------------------------------------------- /lib/polyphony/core/channel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/channel.rb -------------------------------------------------------------------------------- /lib/polyphony/core/debug.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/debug.rb -------------------------------------------------------------------------------- /lib/polyphony/core/exceptions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/exceptions.rb -------------------------------------------------------------------------------- /lib/polyphony/core/resource_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/resource_pool.rb -------------------------------------------------------------------------------- /lib/polyphony/core/sync.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/sync.rb -------------------------------------------------------------------------------- /lib/polyphony/core/thread_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/thread_pool.rb -------------------------------------------------------------------------------- /lib/polyphony/core/throttler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/throttler.rb -------------------------------------------------------------------------------- /lib/polyphony/core/timer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/core/timer.rb -------------------------------------------------------------------------------- /lib/polyphony/debugger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/debugger.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/exception.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/exception.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/fiber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/fiber.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/io.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/io.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/kernel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/kernel.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/object.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/object.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/openssl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/openssl.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/pipe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/pipe.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/process.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/process.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/socket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/socket.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/thread.rb -------------------------------------------------------------------------------- /lib/polyphony/extensions/timeout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/extensions/timeout.rb -------------------------------------------------------------------------------- /lib/polyphony/net.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/lib/polyphony/net.rb -------------------------------------------------------------------------------- /lib/polyphony/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Polyphony 4 | # @!visibility private 5 | VERSION = '1.6' 6 | end 7 | -------------------------------------------------------------------------------- /polyphony.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/polyphony.gemspec -------------------------------------------------------------------------------- /test/coverage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/coverage.rb -------------------------------------------------------------------------------- /test/eg.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/eg.rb -------------------------------------------------------------------------------- /test/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/helper.rb -------------------------------------------------------------------------------- /test/io_uring_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/io_uring_test.rb -------------------------------------------------------------------------------- /test/open3/envutil.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/open3/envutil.rb -------------------------------------------------------------------------------- /test/open3/find_executable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/open3/find_executable.rb -------------------------------------------------------------------------------- /test/q.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/q.rb -------------------------------------------------------------------------------- /test/run.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/run.rb -------------------------------------------------------------------------------- /test/stress.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/stress.rb -------------------------------------------------------------------------------- /test/test_backend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_backend.rb -------------------------------------------------------------------------------- /test/test_enumerator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_enumerator.rb -------------------------------------------------------------------------------- /test/test_event.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_event.rb -------------------------------------------------------------------------------- /test/test_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_ext.rb -------------------------------------------------------------------------------- /test/test_fiber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_fiber.rb -------------------------------------------------------------------------------- /test/test_global_api.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_global_api.rb -------------------------------------------------------------------------------- /test/test_io.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_io.rb -------------------------------------------------------------------------------- /test/test_kernel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_kernel.rb -------------------------------------------------------------------------------- /test/test_monitor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_monitor.rb -------------------------------------------------------------------------------- /test/test_open3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_open3.rb -------------------------------------------------------------------------------- /test/test_pipe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_pipe.rb -------------------------------------------------------------------------------- /test/test_process_supervision.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_process_supervision.rb -------------------------------------------------------------------------------- /test/test_queue.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_queue.rb -------------------------------------------------------------------------------- /test/test_raw_buffer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_raw_buffer.rb -------------------------------------------------------------------------------- /test/test_resource_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_resource_pool.rb -------------------------------------------------------------------------------- /test/test_scenarios.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_scenarios.rb -------------------------------------------------------------------------------- /test/test_signal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_signal.rb -------------------------------------------------------------------------------- /test/test_socket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_socket.rb -------------------------------------------------------------------------------- /test/test_supervise.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_supervise.rb -------------------------------------------------------------------------------- /test/test_sync.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_sync.rb -------------------------------------------------------------------------------- /test/test_thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_thread.rb -------------------------------------------------------------------------------- /test/test_thread_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_thread_pool.rb -------------------------------------------------------------------------------- /test/test_throttler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_throttler.rb -------------------------------------------------------------------------------- /test/test_timer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_timer.rb -------------------------------------------------------------------------------- /test/test_trace.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/polyphony/HEAD/test/test_trace.rb --------------------------------------------------------------------------------