Re: The future of Ruby bindings

2021-05-08 Thread Felipe Contreras
On Fri, Apr 30, 2021 at 5:14 PM Felipe Contreras wrote: > I understand why Ali Polatel did commit c7893408 (ruby: Kill garbage > collection related cruft., 2010-05-26); because the order of the object > destruction cannot be ensured in Ruby, however, there's ways to > workaround that. > > 1. We

The future of Ruby bindings

2021-04-30 Thread Felipe Contreras
Hi, Ruby is by far my favorite programming language, and I'm very familiar with the way it's meant to be used. This is very idiomatic of Ruby: $db.query('').search_threads.each do |thread| puts thread.subject end It works perfectly fine, but it leaks memory. In order to prevent memory