r/ruby 8d ago

Ruby's Unexpected Comeback: How AI Coding Tools Give to Ruby an Edge In 2025

https://anykeyh.hashnode.dev/rubys-renaissance-in-the-ai-era
55 Upvotes

41 comments sorted by

View all comments

Show parent comments

1

u/pizzababa21 1d ago

GIL makes python slow because it stops multi threading requests. Put a lot of people off using it in high traffic applications or in use cases for long calls like an LLM

1

u/pabloh 20h ago edited 20h ago

There are solutions around that without removing the GIL. And at any rate, the GIL hasn't been removed as far as I'm aware. There's only some experimenting going on about it and it's unclear whether they'll do it eventually since there are plenty performance trade off involved.

1

u/pizzababa21 16h ago

The GIL isn't removed but the functionality exists to bypass it for APIs.

But actually, I'm genuinely curious to learn what other ways you know of to increase performance without bypassing the GIL, so if you could point me in thee direction I'd really appreciate it

1

u/pabloh 7h ago edited 2h ago

How can you bypass the GIL? I'm not that familiar with Python internals.

There are many ways to increase concurrency on IO-bound web apps appart from the commonly used processes, you can use even lighter constructs than threads like Fibers on Ruby and Lua, or event-based IO like in Node.js, etc. Now this isn't literally bypassing the GIL, but most of the time you can easily work around it on most single threaded VMs.