hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.7K
active users

#ruby

54 posts46 participants0 posts today

Contributed a #ruby #Ractor variant to the programming languages benchmark game: salsa.debian.org/benchmarksgam

(was an example where Ruby was slower than Python, so got interested :))

Might not be published anytime soon (as the benchark game isn't updated as often anymore, and was only recently updated), and it will also not be the fastest version, but was fun to experiment with Ractors in ruby, a way to have true parallelism is ruby.

(btw the reason ruby is slow in this test is that instantiating an object for a single character is much overhead that can't be reasoned away by the JIT-compiler I guess...

GitLabRuby k-nucleotide using by Maarten Brouwers (using Ractor) (#559) · Issues · The Computer Language Benchmarks Game / benchmarksgame · GitLab Source code Parallelism using Ractor (current fastest ruby variant is using process forking). I'd say pretty idiomatic ruby code, albeit...

Are you a Nonbinary or Women Rubyist attending @tropicalonrails ? Come join some WNB.rb members for an after conference dinner!

Venue: Baccio del Nonno
Address: R. Júlio Diniz, 158 - Vila Olímpia, São Paulo - SP, 04547-090, Brazil
Directions: maps.app.goo.gl/PxJdizE5opiyYR

Dinner will start around 7:30pm (April 3rd) All attendees will need to adhere to WNB.rb’s Code of Conduct: tinyurl.com/wnb-rb-coc
RSVP: forms.gle/TRwP3niFfRKofgQz6

After writing last week about creating value objects in #Ruby with Data class, here are some real examples of some cases where I use it and one example from TheOdinProject.

There are other cases and probably better ways to use it but I just wanted to provide some real examples:

RuboCop 1.75 is out with improved support for 3.4! You won't be able to tell it from the outside, but this release required a ton of work to get to the point where Ruby 3.4 functionality was exposed via Prism's Parser translation layer. More details github.com/rubocop/rubocop/rel Enjoy!

New features

#12049: Add new Style/HashFetchChain cop to detect chained fetch calls that can be replaced with a single call to dig. (@dvandersluis)
#13597: Add new Style/ItBlockParameter cop. (@ko...
GitHubRelease RuboCop v1.75.0 · rubocop/rubocopNew features #12049: Add new Style/HashFetchChain cop to detect chained fetch calls that can be replaced with a single call to dig. (@dvandersluis) #13597: Add new Style/ItBlockParameter cop. (@ko...