Forum: Ruby Ruby and Rails supported on 10gen

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-18 17:56
(Received via mailing list)
http://www.10gen.com/blog/2008/12/ruby-support-on-10gen

It's official: the 10gen open source cloud computing platform
(http://www.10gen.com) now supports Ruby and Rails. See the blog post
for details and links to documentation, the SDK, mailing lists, and
more.

The 10gen platform includes a multilingual app server and distributed
document database. You can grab the source or download a pre-built
SDKs from the Web site.

Note: the Rails support does not yet include ActiveRecord. We're
working on it. In the mean time, you can access the database via an
AR-like set of classes or "raw".

Jim
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2008-12-19 02:40
(Received via mailing list)
Jim Menard wrote:
>
> Note: the Rails support does not yet include ActiveRecord. We're
> working on it. In the mean time, you can access the database via an
> AR-like set of classes or "raw".

I hope we can help you upgrade to JRuby 1.1.6 :) Much faster for many
cases, and some key leaks have been resolved.

- Charlie
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-19 13:42
(Received via mailing list)
On Thu, Dec 18, 2008 at 8:32 PM, Charles Oliver Nutter
<charles.nutter@sun.com> wrote:

> I hope we can help you upgrade to JRuby 1.1.6 :) Much faster for many cases,
> and some key leaks have been resolved.

Thanks. I briefly tried upgrading to JRuby 1.1.5, but ran across some
nasty JRuby bugs that weren't scheduled to be fixed until 1.1.6.

Also, the Java interfaces to core classes are different enough that
I'm going to have to be careful. Some of my core classes inherit from
RubyArray and RubyHash.

Jim
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2008-12-19 16:44
(Received via mailing list)
Jim Menard wrote:
> I'm going to have to be careful. Some of my core classes inherit from
> RubyArray and RubyHash.

We have hopefully not broken any methods on RubyArray or RubyHash that
you're using; let us know if we have. Our intention has always been to
keep methods available until we deprecate them for several revisions,
though we occasionally slip up.

I think the performance improvements and bug fixes alone will be worth
making the move at any rate.

- Chrlie
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-19 18:09
(Received via mailing list)
On Fri, Dec 19, 2008 at 10:35 AM, Charles Oliver Nutter
<charles.nutter@sun.com> wrote:

> We have hopefully not broken any methods on RubyArray or RubyHash that
> you're using; let us know if we have. Our intention has always been to keep
> methods available until we deprecate them for several revisions, though we
> occasionally slip up.

The mods to my RubyArray and RubyHash subclasses were pretty
painless---mostly supporting the new *19 methods and adding a context
to an arg list here and there.

However, I'm having problems with invokeSuper(). I used to use
invokeAs() and pass in the superclass, but the signature of invokeAs()
has changed. When I call invokeSuper() I'm seeing a NPE. It's because
context.getFrameKlazz() is returning null.

I've written up this description in much more detail on the JRuby list.

> I think the performance improvements and bug fixes alone will be worth
> making the move at any rate.

I want to do it, really. I just have to get past this invokeSuper()
NPE...and then see what's next, of course.

Jim
Ede2aa10c6462f1d825143879be59e38?d=identicon&s=25 Charles Oliver Nutter (Guest)
on 2008-12-19 20:22
(Received via mailing list)
Jim Menard wrote:
> to an arg list here and there.
>
> I want to do it, really. I just have to get past this invokeSuper()
> NPE...and then see what's next, of course.

We should probably talk a bit more about how you're using the core JRuby
classes. We have plans in the future that could more drastically change
some of the core classes, and it sounds like you would certainly be
affected by such changes.

- Charlie
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-19 21:05
(Received via mailing list)
Charles,

On Fri, Dec 19, 2008 at 2:13 PM, Charles Oliver Nutter
<charles.nutter@sun.com> wrote:

>> However, I'm having problems with invokeSuper().

Fixed, thanks to an answer in the mailing list.

My next problem: seeing an assertion error when trying to create a
BigDecimal object. (I've described this in a separate email to the
JRuby list).

> We should probably talk a bit more about how you're using the core JRuby
> classes. We have plans in the future that could more drastically change some
> of the core classes, and it sounds like you would certainly be affected by
> such changes.

That would be great. What would be the best communications channel for
such a discussion?

By the way, the source code is open source. See
http://github.com/10gen/babble/tree/master/src/mai... for
the directory containing most of the code I'm talking about.

Jim
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-19 21:12
(Received via mailing list)
On Fri, Dec 19, 2008 at 2:56 PM, Jim Menard <jim.menard@gmail.com>
wrote:
> BigDecimal object. (I've described this in a separate email to the
> By the way, the source code is open source. See
> http://github.com/10gen/babble/tree/master/src/mai... for
> the directory containing most of the code I'm talking about.

By "the source code", I mean the source code to the 10gen app server
that uses JRuby.

Jim
3bb23e7770680ea44a2d79e6d10daaed?d=identicon&s=25 M. Edward (Ed) Borasky (Guest)
on 2008-12-21 04:29
(Received via mailing list)
Jim Menard wrote:
>
> Note: the Rails support does not yet include ActiveRecord. We're
> working on it. In the mean time, you can access the database via an
> AR-like set of classes or "raw".
>
> Jim

Am I the only one who thinks "supports Rails" and "does not yet include
ActiveRecord" are an oxymoron? ActiveRecord is the *core* of Rails, is
it not?


--
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P), WOM

I've never met a happy clam. In fact, most of them were pretty steamed.
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-21 14:32
(Received via mailing list)
On Sat, Dec 20, 2008 at 10:19 PM, M. Edward (Ed) Borasky
<znmeb@cesmail.net> wrote:

> Am I the only one who thinks "supports Rails" and "does not yet include
> ActiveRecord" are an oxymoron? ActiveRecord is the *core* of Rails, is
> it not?

Actually, you can run Rails without ActiveRecord just fine. Rails has
been designed that way. For an example app that uses the Mongo
database (http://www.mongodb.org), see
https://github.com/jimm/rorob/tree/master.

On the other hand, internally we have a subset of ActiveRecord working
already and are working on supporting as much of it as makes sense
with a non-relational database. I already have the Rails app from
"Agile Web Development With Rails" running unchanged.

On the gripping hand, you can run the 10gen cloud yourself, in which
case you can run it with MySQL or any other relational database. In
that case, you can use ActiveRecord unchanged.

Jim
F8101d1b395ef58feb1d5c99bf9356df?d=identicon&s=25 Jim Menard (Guest)
on 2008-12-21 14:33
(Received via mailing list)
On Sun, Dec 21, 2008 at 8:31 AM, Jim Menard <jim.menard@gmail.com>
wrote:
> https://github.com/jimm/rorob/tree/master.
Oops. That should be http://github.com/jimm/10gen-rorob/tree
This topic is locked and can not be replied to.