Subject: [sup-talk] Sup on Ruby-1.9

From: [email-masked] (Ingmar Vanhassel)
Date: Wed, 01 Jul 2009 17:29:22 +0200

Has anyone been keeping a TODO list for running sup on ruby-1.9?

I haven't had the time to try it myself, but I'd like to have a rough
idea of what I'm looking at.

-- 
Exherbo KDE, X.org maintainer

---

From: [email-masked] (William Morgan)
Date: Wed, 01 Jul 2009 11:11:37 -0700

> Has anyone been keeping a TODO list for running sup on ruby-1.9?

The major blocker for a while was the Ferret gem. With the advent of the
Xapian branch, I have been toying around with getting Sup + Xapian to
work on 1.9.1. So far all the gem dependencies seem to compile except
ncurses, which needs some minor code tweaks.

The latest Xapian has Ruby 1.9.1-compatible bindings, but unfortunately
the API seems to have shifted since Rich's patches. I get:

  lib/sup/xapian_index.rb:24:in `initialize': Wrong arguments for overloaded method 'WritableDatabase.new'. (ArgumentError)
  Possible C/C++ prototypes are:
      WritableDatabase.new()
      WritableDatabase.new(std::string const &path, int action)
      WritableDatabase.new(Xapian::WritableDatabase const &other)
    from lib/sup/xapian_index.rb:24:in `new'
    from lib/sup/xapian_index.rb:24:in `initialize'
    from bin/sup:132:in `new'
    from bin/sup:132:in `<module:Redwood>'
    from bin/sup:62:in `<main>'

Moving to 1.9 is highly desirable. It would be a major win for non-ASCII
display issues and for speed in general. I would also like to try moving
some of the display code from threads to fibers, since there are still
weird threading bugs in there that occasionally crop up, and I think it
would simplify the implementation.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (William Morgan)
Date: Wed, 01 Jul 2009 12:15:45 -0700

Reformatted excerpts from William Morgan's message of 2009-07-01:
> the API seems to have shifted since Rich's patches.

Hm, AFAIK that isn't an API change. Maybe I compiled my Xapian bindings
wrong somehow. Or something.
-- 
William <wmorgan-sup at masanjin.net>