|Async Ruby||Ruby on Rails|
|about 1 month ago||1 day ago|
|MIT License||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
EventMachine Performance Spikes
2 projects | /r/ruby | 5 Sep 2023
The Async gem is the natural successor, It's actively maintained, and allows you write synchronous code is if it wasn't non-blocking, and most libraries don't need any special support for Async (exceptions are gems with C extensions that do I/O and DB libraries with connection pooling that would otherwise be thread-based).
Philosophy of Coroutines
7 projects | news.ycombinator.com | 1 Sep 2023
https://github.com/socketry/async uses coroutines and I think in general it’s been a great model with very few downsides in practice.
Is ruby really slow?
2 projects | /r/ruby | 21 Apr 2023
There's async I/O. Here's a library that leans on Ruby 3's fiber scheduler.
Show HN: Goru, an experimental, Go-inspired concurrency library for Ruby
2 projects | news.ycombinator.com | 3 Apr 2023
Hey folks, wanted to show this off and get feedback. Still early/experimental but there are quite a few concepts I'm excited about here. This project came about while writing a program in Go and loving its approach to concurrency. Being a long-time Rubyist I immediately started to think about what similar concepts might look like in Ruby.
I set out with two main design constraints:
1. Lightweight: I didn't want routines to be backed by fibers or threads. Having been involved some in the async project (https://github.com/socketry/async), I had some experience using fibers for concurrency but was curious if they could be avoided.
2. Explicitness: Routine behavior must be written to describe exactly how it is to behave. I always felt like concurrent code was hard to fully understand because of the indirection involved. On the spectrum between tedium and magical I wanted to err more on the side of tedium with Goru.
Goru routines are just blocks that are called once for every tick of the reactor. It is up to the developer to implement behavior in terms of a state machine, where on each tick the routine takes some action and then updates the state of the routine for the next tick. This fulfills both design constraints:
1. Because routines are just blocks, they weigh in at about ~345 bytes of memory overhead.
2. Routine behavior is explicit because it is written as a state machine inside the block.
Couple more features worth noting:
* Goru includes channels for buffered reading/writing (similar to channels in Go).
* Goru ships with primitives for non-blocking IO to easily build things like http servers.
Curious your thoughts!
Twitter (re)Releases Recommendation Algorithm on GitHub
12 projects | /r/programming | 31 Mar 2023
Simple MapReduce that melt my brain (yes, fibers there)
3 projects | /r/ruby | 16 Mar 2023
For those who are interested here is the question.3 projects | /r/ruby | 16 Mar 2023
How does Ruby handle parallel HTTP requests in separate threads?
3 projects | /r/ruby | 2 Mar 2023
Two months into learning Ruby, it is the most beautiful language I ever learned
5 projects | /r/ruby | 25 Feb 2023
Welcome! Ruby isn't exactly "dying", but the hype/popularity is definitely fading. This is primarily because Ruby is no longer "new", most of Ruby's popularity came from Rails, and now Rails is no longer the "new hotness". However, Ruby still has lots of awesome features and lots of awesome other libraries and frameworks, such as the new fancy irb gem that uses reline, nokogiri, chunky_png, the async gems, Dragon Ruby, SciRuby, Ronin, and the new Hanami web framework.
Efficient IO in Linux with io_uring [pdf]
5 projects | news.ycombinator.com | 16 Oct 2022
Ruby on Rails
Jets: The Ruby Serverless Framework
5 projects | news.ycombinator.com | 7 Dec 2023
I think that you're conflating correlation with causation. I think it's more plausible to assume it was the early numbers that are skewed and non-representative.
The fact that GitHub itself was is a killer app of the Ruby on Rails, and that the Rails project itself changed to being hosted on GitHub somewhat very early on it's history  had a disproportionate effect on the early community that gathered there.
Now GitHub attracts a much more diverse portfolio of projects, so the numbers you see there are less statistically biased towards early Ruby on Rails adopters.
 Commit history on the main branch of rails/rails via github goes as far as Apr 10, 2008 https://github.com/rails/rails/commit/c67e985994362290308073...
understanding Rails version maintenance policy?
releaseCycle: "6.1" releaseDate: 2020-12-09 eol: 2024-06-01 # https://github.com/rails/rails/pull/46895#issuecomment-1673353127 latest: "126.96.36.199" latestReleaseDate: 2023-08-22
You might have luck. It does look like docs changes are being accepted into 7.1-stable branch: https://github.com/rails/rails/commits/7-1-stable/
Rage: Fast web framework compatible with Rails
12 projects | news.ycombinator.com | 4 Dec 2023
Also this doesn't show how database access is handled which is the hard part. If you are not touching the database, you can run Rails on falcon and get fiber based concurrency.
If you run falcon on rails and access database, then you have to explicitly checkin/checkout a connection to be safe. Details here - https://github.com/rails/rails/issues/42271.
HTML Data Attributes: One of the Original State Management Libraries
5 projects | dev.to | 29 Nov 2023
New gem providing a production viable PostgreSQL adapter for ActionCable
2 projects | /r/rails | 6 Nov 2023
I made a PR to fix it, but this may take some time to get merged. Meanwhile I released a gem which can be used straight away: https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter/
Mastering Rails Web Navigation with link_to and button_to Helpers - Part 2
4 projects | dev.to | 22 Oct 2023
Почему я программирую на Ruby
11 projects | dev.to | 20 Oct 2023
Rails 7.1 Released
8 projects | news.ycombinator.com | 5 Oct 2023
1. You are correct for upload, but not for download. Looks like rails 7 added support for presigned urls: https://blog.saeloun.com/2021/09/14/rails-7-adds-expiring-ur...
2. CDN support is via monkey patch: https://github.com/rails/rails/issues/44136
What are some alternatives?
Roda - Routing Tree Web Toolkit
Hanami - The web, with simplicity.
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
EventMachine - EventMachine: fast, simple event-processing library for Ruby programs
Cuba - Rum based microframework for web development.
yjit - Optimizing JIT compiler built inside CRuby
Padrino - Padrino is a full-stack ruby framework built upon Sinatra.
Polyphony - Fine-grained concurrency for Ruby
Code_behind - Code-behind library is back-end mvc framework for ASP.NET Core. This library is a programming model based on the MVC pattern, which provides the possibility of creating dynamic aspx files (similar to .NET standard) in .NET Core and has high serverside independence.
Celluloid - Actor-based concurrent object framework for Ruby
react-on-rails - Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.