[HN Gopher] Transformers for Ruby
       ___________________________________________________________________
        
       Transformers for Ruby
        
       Author : felipemesquita
       Score  : 264 points
       Date   : 2024-08-20 11:54 UTC (11 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | riffraff wrote:
       | I believe Andrew Kane is also a the author of pgvector[0],
       | pgvector-ruby[1], and neighbor[2], all of which are pretty sweet!
       | 
       | Plus a bunch of other stuff[3].
       | 
       | Maybe he solved AI/ML by himself long ago and is using that to be
       | this productive.
       | 
       | [0] https://github.com/pgvector/pgvector
       | 
       | [1] https://github.com/pgvector/pgvector-ruby
       | 
       | [2] https://github.com/ankane/neighbor
       | 
       | [3] https://github.com/ankane/
        
         | Lukas_Skywalker wrote:
         | Also:
         | 
         | - Chartkick, a charting library for Ruby
         | 
         | - Ahoy, a Rails analytics library
         | 
         | - Searchkick, a Rails search library
         | 
         | There are over 370 repos in his Github profile...
        
           | corytheboyd wrote:
           | FWIW it's 199 source repos (excluding forks). Still insanely,
           | wildly productive if even 25% of those are substantive
           | projects!
        
           | felipemesquita wrote:
           | And blazer[0], the closest thing to a perfect BI tool. It has
           | a SQL editor/runner, saved queries, audit history,
           | dashboards, alerts and user access control; all in a rails
           | engine you can mount with minimal configuration.
           | 
           | [0]https://github.com/ankane/blazer
        
             | petepete wrote:
             | Blazer is my favourite BI tool by a country mile. It does
             | all I want with no fuss, is a breeze to set up and it's so
             | much faster and more efficient than any of the other BI
             | tools I've tried.
        
           | andruby wrote:
           | PgHero is also from him I believe. Very helpful to identify
           | slow queries in production, remove duplicate indexes, see
           | missing indexes, keep an eye on table size, etc.
           | 
           | https://github.com/ankane/pghero
        
           | swyx wrote:
           | what the heck? has anyone interviewed him? i'd love to learn
           | more about how he works
        
         | rgrieselhuber wrote:
         | One of the most prolific people that I am aware of.
        
         | mtkd wrote:
         | For anyone using Ruby who doesn't know ankane already, there
         | are some very useful tools in his github ... like /disco which
         | is a super simple collaborative filtering implemention if you
         | want to quickly drop some recommendation in somewhere
         | 
         | If you are looking for anything ML related with Ruby ankane has
         | usually had a look already ...
        
         | philip1209 wrote:
         | We use so many tools from Andrew Kane in our production repo.
         | His packages make it possible to build an AI application using
         | Rails.
        
         | mooreds wrote:
         | He's also done a ton outside the AI space:
         | 
         | https://github.com/ankane/pretender makes it super easy to
         | impersonate a different user in a rails app
         | 
         | https://github.com/ankane/ahoy is first party analytics for
         | rails
         | 
         | https://github.com/ankane/blazer is BI built into rails
         | 
         | https://github.com/ankane/field_test is A/B testing
         | 
         | This kind of stuff is why rails is so productive for a normal
         | web app. Sure, there are better vendor and point solutions for
         | each of these, but the ability to drop in a gem, do some
         | configuration and have a 80% solution lets you ship so. damn.
         | fast.
        
           | mosselman wrote:
           | Ahoy, blazer and field_test form the basis of our very strong
           | no-BS data infra. It is so simple.
           | 
           | I still want to try and combine ahoy with a column store in
           | postgres so that we can run the analytical queries straight
           | onto postgres instead of syncing the events to BigQuery.
           | 
           | I've tried using pg_analytics by Paradedb but they don't
           | support json columns, which is necessary with ahoy.
           | Performance wise that would be ideal though.
        
       | czbond wrote:
       | Thanks for creating this - it looks interesting. Contributions
       | like this are really needed in the Ruby community
        
         | berkes wrote:
         | They really are.
         | 
         | The lack of such contributions -in general- or the speed at
         | which they appear, is what leads me to conclude that the Ruby
         | community is slowing down.
         | 
         | In this case, suddenly there's an awesome library for Ruby.
         | Which is fantastic. An achievement to be very thankful for. But
         | "the community" "produced" this months or years after such libs
         | landed for Python, JS, TS, Rust, Go and so on.
         | 
         | Not just ML/AI, same happens for "gems" (Ruby libs) that deal
         | with any new tech. It used to be that any SAAS or startup would
         | offer official Rubygems from the get-go. Often before offering
         | other platforms or languages. Today, when I want or need to
         | integrate something, from notion to slack to cloudflare: no
         | Ruby option or at least no official one.
         | 
         | This saddens me. Ruby is so much more than Rails (for which I
         | can understand the reluctance or "hate"). Ruby is so much nicer
         | to work in than Python and certainly than JavaScript. Ruby
         | could easily have been what Python is today and tens of
         | thousands of developers would be just a little happier than
         | they are now, I am certain.
        
           | gjtorikian wrote:
           | This is such an odd comment to me.
           | 
           | On the one hand, you praise Ruby, and lament that it gains
           | such libraries so much later than other languages.
           | 
           | On the other hand...if you were paying attention to the
           | "Python, JS, TS, Rust, Go and so on" ecosystems, and noticed
           | the ML/AI work, why didn't you create one for Ruby yourself?
           | 
           | I guarantee that whatever answer you give doesn't matter,
           | because every other Rubyist has their own reply. A
           | "community" begins with one person doing the thing.
        
             | vinceguidry wrote:
             | Not just everyone is skilled enough to make great
             | libraries. There is always going to be an order of
             | magnitude more people interested in using a premade library
             | than are going to be capable of making one themselves. Even
             | if ability wasn't a factor, time often is.
        
               | JohnBooty wrote:
               | Even if ability wasn't a factor, time often is.
               | 
               | Right. Not everybody has spare time! Many of us are
               | caring for loved ones, have disabilities, whatever.
        
             | mkl95 wrote:
             | I have worked both at Ruby and Python shops.
             | 
             | The average Ruby dev works at a mid to small sized company,
             | probably a startup, and they are usually contributing to
             | some proprietary SaaS product on top of Rails. Progress is
             | always happening in the Ruby / Rails world but it's really
             | slow.
             | 
             | On the other hand, Python has three popular web frameworks
             | and a huge data tooling ecosystem that just keeps getting
             | better. It's just easier to get things done with Python
             | these days and the gap is so huge that I can understand OP.
        
           | downrightmike wrote:
           | Can you give me some examples? This seems like an interesting
           | problem.
        
           | reducesuffering wrote:
           | > is what leads me to conclude that the Ruby community is
           | slowing down
           | 
           | That conclusion was apparent awhile ago.
           | 
           | https://trends.stackoverflow.co/?tags=ruby,python,php,typesc.
           | ..
        
       | rsoto wrote:
       | Ankane's Onnx runtime for ruby is so easy to use that makes you
       | wonder why the official repo for js is so difficult to
       | understand. This guy's a hero, although I'm only scratching the
       | surface for what he has done.
        
       | blob64 wrote:
       | Some amazing tools from this guy : hip hip hooray for more :)
        
       | realty_geek wrote:
       | Seriously, is this guy human? I'd invest a billion dollars in any
       | individual so talented...
        
         | delichon wrote:
         | I'm 100th as talented and would consider accepting a $10M
         | investment.
        
       | shayonj wrote:
       | Ankane single handedly is contributing so much back to the
       | industry, in so many ways. Wild!
        
       | aantix wrote:
       | Any plans for implementing coreference resolution, similar to the
       | FastCoref?
        
       | Alifatisk wrote:
       | I can't describe how thankful I am for Ankanes gems, the stuff
       | hes created has been essential for some of my apps. He fills the
       | gap on the ecosystem in my opinion.
        
       | hahahacorn wrote:
       | I'm sure it's not why he does it, but I just nominated ankane for
       | the Rails 2024 Luminary award, if anyone else wanted to express
       | their gratitude.. https://rubyonrails.org/2024/8/2/nominations-
       | open-for-2024-l...
        
       ___________________________________________________________________
       (page generated 2024-08-20 23:00 UTC)