mackuba,
@mackuba@martianbase.net avatar

Hmm… ok, so this looks promising. The middle is Rake task loading records and passing them to regexps, the bottom one is a Rust program loading from SQLite itself.

I don't want to duplicate all the feed/model logic in 🦀, but maybe I can hire it to do some more of the work somehow? 🤔

mackuba,
@mackuba@martianbase.net avatar

Okaaaay… this might actually work!

The plan is: make Rust load posts from SQLite as "dumb" arrays, get the post text, pass it through some initial pre-check regexps, and return the list of record IDs to Ruby. Then Ruby gets this (relatively tiny) list, loads ActiveRecord models by ID and runs the full check on them. 😼

mackuba,
@mackuba@martianbase.net avatar

BTW, I gotta say, the compiler is really good - it nicely guides me and tells me what I need to add to make it build successfully, even if I have no idea how to code in this language 😃🦀🦀🦀

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ruby
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines