News for hackers. Stuff that matters.
Re:Next Generation Ruby packages for Ubuntu by fingerprinter on Wednesday April 11, 2012 @07:03AM (#3826876)
Color me intrigued. Would love to see someone step up and maintain Ruby again. RVM is great, but a native package is always preferable.
Re:Next Generation Ruby packages for Ubuntu by sciurus on Wednesday April 11, 2012 @09:05AM (#3827304)

  Added Sokolov Yura‘s performance patches for 1.9.3
  Added Narihiro Nakamura’s Lazy Sweep garbage collector (backported by Sakolov Yura)
Why isn't this work a part of an official ruby release?

  Patched Ruby 1.9.3 to export the right symbols to work with ruby-debug
  Built Ruby 1.9.3 with Google’s high performance memory alloactor, tcmalloc
Why aren't Debian and Ubuntu doing this already?
Re:Next Generation Ruby packages for Ubuntu by bratsche on Wednesday April 11, 2012 @11:57AM (#3828122)
Debian and Ubuntu shouldn't be in the business of trying to second-guess upstreams. They should be packaging things up as they're released.
Re:Next Generation Ruby packages for Ubuntu by comice on Wednesday April 11, 2012 @09:49AM (#3827492)
imo, I don't think Debian and Ubuntu should do this - it's not really their job. Distros should, for the most part, just be packaging upstream code and not maintaining an unofficial fork.

Though counter to this, RedHat basically maintain their own fork of the Linux kernel but it's a bit of a special case, and they do employ full time kernel developers to do it!

Re:Next Generation Ruby packages for Ubuntu by sciurus on Wednesday April 11, 2012 @05:00PM (#3829605)
I was assuming use of tcmalloc was a supported option when configuring and building Ruby. If it's not, then yeah, probably not the right thing for a distro to do.

If a ruby release didn't have a working debugger but this could be easily patched, then I would expect distros to do that. However, I'm not familiar enough with the ruby ecosystem to know the context of "patched Ruby 1.9.3 to export the right symbols to work with ruby-debug"

Re:Next Generation Ruby packages for Ubuntu by judofyr on Wednesday April 11, 2012 @11:21AM (#3827936)
> Why isn't this work a part of an official ruby release?

nobu's lazy sweep collector is in trunk. Sokolov Yura's patches have been submitted; some of the merged, others introduce slight incompatibility issues.

Re:Next Generation Ruby packages for Ubuntu by omarqureshi on Wednesday April 11, 2012 @07:11AM (#3826895)
This looks pretty good - it's always painful installing packages from source (RVM included in that) mainly as a time + another thing I have to maintain thing.

I'm not that familiar with Debian package management but would it be much work to also have these packages working on squeeze too? In which case I would most likely start using Debian a lot more.

Re:Next Generation Ruby packages for Ubuntu by obtu on Wednesday April 11, 2012 @11:36AM (#3828004)
Rebuilding the source packages should be easy enough, just loop over the .dsc urls and run dget -x; sudo mk-build-deps -i; debuild; sudo debi. pbuilder and sbuild also work for cross-builds, but I didn't get the hang of cross-building entire package graphs.
Re:Next Generation Ruby packages for Ubuntu by comice on Wednesday April 11, 2012 @07:23AM (#3826932)
They should build without much modification - it just needs a bit of effort to setup a repository and do the builds. If there is demand for it, we could look at doing it.
Re:Next Generation Ruby packages for Ubuntu by KTamas on Wednesday April 11, 2012 @08:17AM (#3827131)
I'd love to see RVM/rbenv support a version of 1.9.3 with the mentioned patches.
Re:Next Generation Ruby packages for Ubuntu by ryanf on Wednesday April 11, 2012 @11:52AM (#3828097)
Re:Next Generation Ruby packages for Ubuntu by perlpimp on Wednesday April 11, 2012 @06:59AM (#3826862)
Thought 1.9.3 is not very favorable for Rails deployment or am I wrong?
Re:Next Generation Ruby packages for Ubuntu by judofyr on Wednesday April 11, 2012 @07:03AM (#3826877)
1.9.3 is stable and fine for deployment.
Re:Next Generation Ruby packages for Ubuntu by bradleyland on Wednesday April 11, 2012 @11:04AM (#3827844)
1.8.7 remains popular, but is declining, and for good reason. While there are some areas where 1.9 branches gave up ground (I'm looking at you `require` [1]), there are other areas where it absolutely smokes older versions; like date formatting functions [2]. Fortunately, Rails processes run for a long time under most app servers, so the performance regression of `require` isn't a huge deal. It is, however, very common to format dates as part of output, which may happen on hundres or thousands of records. There are also some nice features of 1.9 branches that are useful in a practical sense. For example, hash order is presered in Hash under 1.9, so you can get the extra features of a hash, and avoid superfulous sorting (can result in big compute savings).

[1] https://github.com/bradland/require-benchmarks

[2] https://gist.github.com/1352997

Re:Next Generation Ruby packages for Ubuntu by cheald on Wednesday April 11, 2012 @12:26PM (#3828264)
1.9.3 is great for production. You give up a bit of memory savings compared to REE (since Ruby proper won't be COW-friendly until 2.0), but 1.9.3 in general is faster, has a lot more features, and is widely supported by gems and libraries now.

1.8.7 has been EOL'd, which is as good a reason as any to upgrade.

Re:Next Generation Ruby packages for Ubuntu by InfernalH on Wednesday April 11, 2012 @08:41AM (#3827204)
Already in production for months, no particular problems
Re:Next Generation Ruby packages for Ubuntu by ef4 on Wednesday April 11, 2012 @01:56PM (#3828742)
I just switched from 1.9.2 to 1.9.3 specifically because it cuts Rails startup time in half.
Re:Next Generation Ruby packages for Ubuntu by getsat on Wednesday April 11, 2012 @01:42PM (#3828670)
You are not even remotely close to being correct.