mas.to is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hello! mas.to is a fast, up-to-date and fun Mastodon server.

Administered by:

Server stats:

13K
active users

#rubylang

5 posts4 participants0 posts today
Kuba Suder • @mackuba.eu on 🦋<p>Lulz, I've done some quick profiling now of my lib Skyfall reading from the Bluesky firehose websocket and just discarding packets, and it looks like as much as ~50% of time might be spent… converting an ascii string to a byte array on one level and then converting it back to an ascii string at the end 💀</p><p>websocket-driver calls String#bytes first, and then I get a byte array from faye-websocket and I call pack('C*') on it to get a string… <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
Giacomo Suderi 🇮🇹🍝<p>websocket-driver calls String#bytes first, and then I get a byte array from faye-websocket and I call pack('C*') on it to get a string to be passed to the CBOR decoder… if I can short-circuit that, then this might be a pretty good optimization 😅 <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a></p>
Kuba Suder • @mackuba.eu on 🦋<p>I can't believe this has only *16k* views <a href="https://www.youtube.com/watch?v=E99FnoYqoII" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=E99FnoYqoI</span><span class="invisible">I</span></a> <a href="https://martianbase.net/tags/rails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rails</span></a> <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
Giacomo Suderi 🇮🇹🍝<p>Wtf, they changed it so ActiveRecord dumps table columns in schema.rb now in alphabetical order instead of what's in the database?… 😐 <a href="https://github.com/rails/rails/pull/53281" rel="nofollow noopener noreferrer" target="_blank">github.com/rails/rails/...</a> <a class="hashtag" href="https://bsky.app/search?q=%23rails" rel="nofollow noopener noreferrer" target="_blank">#rails</a> <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a><br><br><a href="https://github.com/rails/rails/pull/53281" rel="nofollow noopener noreferrer" target="_blank">Sort table columns by name whe...</a></p>
Kuba Suder • @mackuba.eu on 🦋<p>Wtf, they changed it so ActiveRecord dumps table columns in schema.rb now in alphabetical order instead of what's in the database?… 😐 <a href="https://github.com/rails/rails/pull/53281" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rails/rails/pull/53</span><span class="invisible">281</span></a> <a href="https://martianbase.net/tags/rails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rails</span></a> <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
alexanderadam<p>You know what's cool? 👀 </p><p><span class="h-card" translate="no"><a href="https://hachyderm.io/@russolsen" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>russolsen</span></a></span> just announced that he and <span class="h-card" translate="no"><a href="https://hachyderm.io/@baweaver" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>baweaver</span></a></span> will do a second edition of 📕 Eloquent Ruby at <span class="h-card" translate="no"><a href="https://techhub.social/@pragprog" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pragprog</span></a></span>. </p><p>It's nice to see that the :ruby: <span class="h-card" translate="no"><a href="https://ruby.social/@ruby" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ruby</span></a></span> community gained so much traction again recently. 😊 </p><p><a href="https://www.linkedin.com/posts/russolsen_im-thrilled-to-announce-that-brandon-weaver-activity-7310320740807888897-_w2f?rcm=ACoAABdoG6sBTS7zkEYoaPNSe5jOOfujjyz92tQ" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">linkedin.com/posts/russolsen_i</span><span class="invisible">m-thrilled-to-announce-that-brandon-weaver-activity-7310320740807888897-_w2f?rcm=ACoAABdoG6sBTS7zkEYoaPNSe5jOOfujjyz92tQ</span></a></p><p><a href="https://ruby.social/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> <a href="https://ruby.social/tags/books" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>books</span></a> <a href="https://ruby.social/tags/PragmaticProgrammer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PragmaticProgrammer</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/rails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rails</span></a> <a href="https://ruby.social/tags/rubyonrails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubyonrails</span></a> <a href="https://ruby.social/tags/RubyProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RubyProgramming</span></a></p>
Todd A. Jacobs | Rubyist<p><span class="h-card" translate="no"><a href="https://mastodon.au/@Linux" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Linux</span></a></span> I do the same, but for topic focus. I use ruby.social for <a href="https://ruby.social/tags/RubyLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RubyLang</span></a> &amp; other software- or developer-adjacent stuff; I post about <a href="https://ruby.social/tags/cybersecurity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cybersecurity</span></a> &amp; non-dev <a href="https://ruby.social/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> topics on infosec.exchange. I cross-link verifed accounts to assure followers they're all really me, but that's a personal choice.</p><p>Who cares if you use multiple instances? Where's the harm? Some people need or want separate identities, or have other valid reasons. It's nobody else's business, really.</p>
Todd A. Jacobs | Rubyist<p><a href="https://ruby.social/tags/RubyLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RubyLang</span></a> <a href="https://ruby.social/tags/hivemind" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hivemind</span></a>: I have a passel of <a href="https://ruby.social/tags/SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a> spaghetti that I'd like to turn into a set of <a href="https://ruby.social/tags/Rails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rails</span></a> models. I'm not finding a good SQL-specific <a href="https://ruby.social/tags/LLM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LLM</span></a> that understands interrelated SQL files for <a href="https://ruby.social/tags/RAG" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RAG</span></a> that groks the newer features of <a href="https://ruby.social/tags/RoR" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RoR</span></a> 8+. I'd like <a href="https://ruby.social/tags/model_enums" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>model_enums</span></a> &amp; seeds.rb support.</p><p>Know an LLM model that's any good at doing even 50% of the <a href="https://ruby.social/tags/boilerplate" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>boilerplate</span></a> work? It doesn't have to be perfect; it just has to make it less tedious to extract the boilerplating.</p><p>Suggestions?</p>
Giacomo Suderi 🇮🇹🍝<p><a class="hashtag" href="https://bsky.app/search?q=%23atdev" rel="nofollow noopener noreferrer" target="_blank">#atdev</a> <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a></p>
Kuba Suder • @mackuba.eu on 🦋<p>Speeding up the firehose: <a href="https://journal.mackuba.eu/2025/03/18/speeding-up-the-firehose/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">journal.mackuba.eu/2025/03/18/</span><span class="invisible">speeding-up-the-firehose/</span></a></p><p>I summed up the recent changes I made in my code &amp; database config to bring the firehose processing speed from ~2k evt/s to 4k+.</p><p><a href="https://martianbase.net/tags/bluesky" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bluesky</span></a> <a href="https://martianbase.net/tags/atproto" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>atproto</span></a> <a href="https://martianbase.net/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
alexanderadam<p>PSA to my fellow 🤓 <a href="https://ruby.social/tags/nerds" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nerds</span></a> who like <a href="https://ruby.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> in <span class="h-card" translate="no"><a href="https://ruby.social/@ruby" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ruby</span></a></span> and/or <a href="https://ruby.social/tags/webprogramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webprogramming</span></a> who would also like to visit ⚛️ CERN in 🇨🇭 <a href="https://ruby.social/tags/geneva" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>geneva</span></a> — the place where <span class="h-card" translate="no"><a href="https://w3c.social/@timbl" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>timbl</span></a></span> invented the 🌐 <a href="https://ruby.social/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a>.</p><p>If you need a reason to visit <a href="https://ruby.social/tags/cern" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cern</span></a>, maybe also for the <a href="https://ruby.social/tags/largehadroncollider" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>largehadroncollider</span></a>, then this might be it.</p><p><a href="https://ruby.social/@helvetic_ruby/114179005684458096" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ruby.social/@helvetic_ruby/114</span><span class="invisible">179005684458096</span></a></p><p>And keep in mind that <span class="h-card" translate="no"><a href="https://ruby.social/@helvetic_ruby" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>helvetic_ruby</span></a></span> is switching places each year. So if you'd like to have this combo then 2025 is the year for you.</p><p><a href="https://ruby.social/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/RubyProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RubyProgramming</span></a> <a href="https://ruby.social/tags/lhr" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lhr</span></a> <a href="https://ruby.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://ruby.social/tags/webdevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdevelopment</span></a></p>
Kuba Suder • @mackuba.eu on 🦋<p>This looks nice 👀 <a href="https://rubyllm.com" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">rubyllm.com</span><span class="invisible"></span></a> <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
Giacomo Suderi 🇮🇹🍝<p>This looks nice 👀 <a href="https://rubyllm.com" rel="nofollow noopener noreferrer" target="_blank">rubyllm.com</a> <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a><br><br><a href="https://rubyllm.com" rel="nofollow noopener noreferrer" target="_blank">Home</a></p>
Peter Solnica<p>Interesting fact about <a href="https://hachyderm.io/tags/RubyLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RubyLang</span></a>, frozen empty strings and methods that operate on them, like byteslice in this example: it returns a new empty string instance!</p><p>If your app allocates tons of empty strings, you could easily optimize it 🙂</p><p>Things I learn when reviewing PRs in sentry-ruby SDK!</p>
Christian Kohlmeyer<p><span class="h-card" translate="no"><a href="https://mastodon.social/@caravana" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>caravana</span></a></span> Hm, that makes me think, cause my firts impression was, that languages like <a href="https://wehavecookies.social/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> or <a href="https://wehavecookies.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> are a good start, but I agree with you after reading through it, with two exceptions:</p><p>1) Performance is irrelevant from my point of view, when starting development as a beginner - success is more important<br>2) Algorithms can be learned also with python and might be even cleaner than in other languages. But I get your point: one might not try to understand basic stuff as e.g. sorting etc.</p>
Kuba Suder • @mackuba.eu on 🦋<p>Interesting… I've checked out of curiosity how this firehose client would run now with this new modern async-websocket lib from the "async Ruby" ecosystem, compared to the ancient eventmachine lib that I use in Skyfall (just reading packets), and… it seems to be slightly slower 🤔 <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a></p>
Giacomo Suderi 🇮🇹🍝<p>Interesting… I've checked out of curiosity how this firehose client would run now with this new modern async-websocket lib from the "async Ruby" ecosystem, compared to the ancient eventmachine lib that I use in Skyfall (just reading packets), and… it seems to be slightly slower 🤔 <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a></p>
Kuba Suder • @mackuba.eu on 🦋<p>Nice, I went from ~2k evt/s max to ~3.6k with a few fixes (partial index, ActiveRecord + <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> update, YJIT on, batched saves in one insert, and matching using a <a href="https://martianbase.net/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> module). One more thing to try (turning off Pg wal sync) :)</p><p>The theoretical max possible would be ~5.5k, this is what it did on a test where it doesn't actually process anything, just reads from the socket. Although maybe the "async" lib would do better than eventmachine?…</p><p>Though at 7.5k I hit the VPS bandwidth limit.</p>
Giacomo Suderi 🇮🇹🍝<p>Nice, I went from ~2k evt/s max to something like 3.6k with a few fixes (partial indexes, ActiveRecord update, <a class="hashtag" href="https://bsky.app/search?q=%23rubylang" rel="nofollow noopener noreferrer" target="_blank">#rubylang</a> update, YJIT on, batched saves in one insert, and matching using a <a class="hashtag" href="https://bsky.app/search?q=%23rustlang" rel="nofollow noopener noreferrer" target="_blank">#rustlang</a> module). One more thing to try (turning off Pg wal sync) :)</p>
Kuba Suder • @mackuba.eu on 🦋<p><a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> *and* <a href="https://martianbase.net/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> go brrrrr 💎🦀</p><p>(I turned on the Rust native module for matching a large number of regexps faster that I wrote in the summer now)</p>