[HN Gopher] Calling Ruby Methods in C: Avoid Memory Leaks
___________________________________________________________________
Calling Ruby Methods in C: Avoid Memory Leaks
Author : unripe_syntax
Score : 56 points
Date : 2023-01-25 11:28 UTC (11 hours ago)
(HTM) web link (blog.appsignal.com)
(TXT) w3m dump (blog.appsignal.com)
| taf2 wrote:
| I was just working on updating how curb handles exceptions in
| callbacks for http requests... this would have been a great read
| prior to doing that work. Going to see if I can go back in there
| and clean any thing up - thanks for this post
| aardvark179 wrote:
| You won't be alone in having memory leaks in your gem,
| unfortunately. Using Ruby's C API is hard as a user, and it's a
| bit of a pain from an implementor's point of view as well.
___________________________________________________________________
(page generated 2023-01-25 23:02 UTC)