Live data from Hacker News

How I spent two weeks hunting a memory leak in Ruby (2015)

be9.io

1–10 of 71 posts

Re: How I spent two weeks hunting a memory leak in Ruby (2015)

#4
There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding).

Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)

Re: How I spent two weeks hunting a memory leak in Ruby (2015)

#5

A little worrisome that the fix hasn't been merged. (edit: it's been fixed)

Did you get all the way to the end of the blog post? "Update on 2015/09/29. Redcarpet fix has been released."

oh, thanks. Disregard my previous comment.

Re: How I spent two weeks hunting a memory leak in Ruby (2015)

#7
post #4

There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)

> when program load is pretty low

The leak was in a gem.

Re: How I spent two weeks hunting a memory leak in Ruby (2015)

#9
post #4

There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)

I'd say it's appropriate for anything in the critical path - talking to databases being the only major thing that comes to mind. I agree that a native extension for markdown parsing is way overkill.

Stick with pure-language extensions (they're so much easier to work with!) until you can measure and quantify the cost and benefit of switching.

Re: How I spent two weeks hunting a memory leak in Ruby (2015)

#10
post #4

There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)

> when program load is pretty low The leak was in a gem.

Gem is still library albeit its name.
Post reply on HN