Hmm… ok, so this looks promising. The middle is #Ruby Rake task loading records and passing them to #RustLang 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? 🤔
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. 😼
BTW, I gotta say, the #RustLang 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 😃🦀🦀🦀
Add comment