News for hackers. Stuff that matters.
Re:RubyLLM: A delightful Ruby way to work with AI by deedubaya on Saturday March 15, 2025 @08:08AM (#43372005)
Looks useful.

Allowing ai to eval() code or execute any sql statement would scare the crap outta me personally.

Re:RubyLLM: A delightful Ruby way to work with AI by xcskier56 on Saturday March 15, 2025 @08:38AM (#43372152)
From searching the codebase, I can only find eval() used in the markdown and the specs.

You’re totally right that eval()’ing unknown code is terrible but it doesn’t look like the gem itself is doing that.

The usage of eval() is in a user written tool in the docs. Definitely a bd example and should probably be changed

Re:RubyLLM: A delightful Ruby way to work with AI by deedubaya on Saturday March 15, 2025 @09:22AM (#43372373)
Yes, that’s exactly what I was referring to. Folks (or llms!) never copy/paste doc examples, right?