Eigenclass

Doing some n-gram analysis over Ruby's docs


almost 11 years ago by Mauricio Fernandez on Eigenclass.
The first attempts to optimize my pure-Ruby, 200LoC full-text search engine based on suffix arrays (which evolved into the in-progress FTSearch) led me...

Running your tests automatically with autotest wmii, emacs and ratpoison


almost 11 years ago by Mauricio Fernandez on Eigenclass.
Seeing the bar turn green is great for the morale; this is one of the several benefits of writing tests (even if you don't go fully TDD). Running testsmanually...

Ruby's branching plan, a pic worth more than a ML thread (now with mput's explanation)


almost 11 years ago by Mauricio Fernandez on Eigenclass.
I have translated mput's explanation (see below) Great, mput (URABE Shyouhei) just saved a slice of everybody's time by releasing this: (lower, left-hand...

Outperforming Ferret at searching, 3X faster indexing, code online


almost 11 years ago by Mauricio Fernandez on Eigenclass.
The last time I blogged about the FTSearch (simple) full-text search engine, it already indexed the Reuters corpus over twice faster than Ferret. I have...

When the GC is doing its job, but your app still needs too much RAM


almost 11 years ago by Mauricio Fernandez on Eigenclass.
Sometimes your code is using much more RAM than it should. You've made sure that you are not keeping too many large objects around, you got rid of their...

Indexing faster than Ferret with some algorithmic help (an order of magnitude faster than Lucene? can't be)


almost 11 years ago by Mauricio Fernandez on Eigenclass.
I've realized that my initial performance comparisons were flawed because the index included neither the text nor the term vectors. According to Ferret...

"Inspecting a live Ruby process", easier if you cheat.


~11 years ago by Mauricio Fernandez on Eigenclass.
Are you still adding printf/puts calls and restarting your app to figure what went wrong? Sometimes, the problem is hard to reproduce, or you only discover...

Ruby internals: a self-study guide to the sources


~11 years ago by Mauricio Fernandez on Eigenclass.
I want to read Ruby's sources, which order is best? I've been answering to that question a few times a year, sometimes on ruby-talk, and as of late responding...

Using introspection to get method arguments and other info


~11 years ago by Mauricio Fernandez on Eigenclass.
I just wrote a small script that uses introspection to tell you the methods defined in a file plus their argument names and default values. It's a quick...

call_stack 0.1.0: making ruby-breakpoint/Rails' breakpointer work with Ruby 1.8.5


~11 years ago by Mauricio Fernandez on Eigenclass.
Ruby 1.8.5 has been out for a couple weeks and broke Binding.of_caller and Rail's breakpointer. I'd promised I'd provide a workaround, and I finally wrapped...