# Ruby on AIX?

**URL:** <https://rubytalk.org/t/ruby-on-aix/24741>\
**Category:** ruby-talk\
**Created:** [9 February 2006 08:42 UTC](https://rubytalk.org/t/ruby-on-aix/24741 "2006-02-09T08:42:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Obie\_Fernandez](https://avatars.discourse-cdn.com/v4/letter/o/ea666f/32.png) [@Obie\_Fernandez](https://rubytalk.org/u/Obie_Fernandez)\
**Post date:** [9 February 2006 08:42 UTC](https://rubytalk.org/t/ruby-on-aix/24741/1 "2006-02-09T08:42:13Z")

</div>

We’re looking at big IBM hardware running AIX as a potential  
deployment platform for the big credit card processing Rails and Ruby  
stuff that my team is currently building. I was wondering if anyone  
else is running on AIX or knows if Ruby is well-supported on this  
platform.

I googled the subject, but  
[http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/3daaf60b012c1921](http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3daaf60b012c1921)  
is the only thing I found – it’s not 100% confidence inspiring.

It seems like more people out there are running Ruby on Solaris, but  
the client is indicating that they’d rather host our stuff on the IBM  
servers rather than Fujitsu.

Any advice is appreciated.

Thanks,  
Obie

---

<div class="post-metadata">

**Author:** ![Victor\_Reyes](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@Victor\_Reyes](https://rubytalk.org/u/Victor_Reyes)\
**Post date:** [10 February 2006 15:49 UTC](https://rubytalk.org/t/ruby-on-aix/24741/2 "2006-02-10T15:49:19Z")

</div>

Obie,  
I have a mixed of Ruby 1.6.7 and Ruby 1.8.2 running in over 75 RS/6000 under  
AIX 4.3.3, AIX 5.2.0 and AIX 5.3.0. I had some issues with the installation,  
but with the help of this great Ruby gang I was able to quickly address my  
issues.  
Although I do some networking (TCP and UDP protocol) with Ruby, I am not an  
experienced Ruby programmer. But the point is that Ruby works just fine and  
I try to use it always in place of the Korn Shell, which is the default  
shell in AIX.

Victor

> **···**
>
> On 2/9/06, Obie Fernandez \<obiefernandez@gmail.com\> wrote:
> 
> > We're looking at big IBM hardware running AIX as a potential  
> > deployment platform for the big credit card processing Rails and Ruby  
> > stuff that my team is currently building. I was wondering if anyone  
> > else is running on AIX or knows if Ruby is well-supported on this  
> > platform.
> > 
> > I googled the subject, but
> > 
> > [http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/3daaf60b012c1921](http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3daaf60b012c1921)  
> > is the only thing I found -- it's not 100% confidence inspiring.
> > 
> > It seems like more people out there are running Ruby on Solaris, but  
> > the client is indicating that they'd rather host our stuff on the IBM  
> > servers rather than Fujitsu.
> > 
> > Any advice is appreciated.
> > 
> > Thanks,  
> > Obie

---

<div class="post-metadata">

**Author:** ![Diego\_Cano\_Lagneaux](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Diego\_Cano\_Lagneaux](https://rubytalk.org/u/Diego_Cano_Lagneaux)\
**Post date:** [10 February 2006 18:05 UTC](https://rubytalk.org/t/ruby-on-aix/24741/3 "2006-02-10T18:05:26Z")

</div>

Hi,  
I reckon this is my first post to this mailing list.

The other day, I stumbed across the need to reindent some ruby code. So I started hacking some little script for it. Then I thought that probably somebody else has had the same idea, so I looked around for this kind of project. I found some references to the idea in the mailing-list archives, but no real project. I also found a project in [http://rindent.rubyforge.org/](http://rindent.rubyforge.org/), but there was no access to any code.

So I have more or less finished my quick hack, which incidentaly is also named Rindent, and which can be found here: [http://blep.org/doku.php?id=proyectos:scripts](http://blep.org/doku.php?id=proyectos:scripts)  
But still, it is very limited and all; so I would like to know if anybody has written some better implementation, has worked on the idea of the parser making a tree of the code and all that?

Thanks,  
Diego

---

<div class="post-metadata">

**Author:** ![Obie\_Fernandez1](https://avatars.discourse-cdn.com/v4/letter/o/848f3c/32.png) [@Obie\_Fernandez1](https://rubytalk.org/u/Obie_Fernandez1)\
**Post date:** [12 February 2006 04:41 UTC](https://rubytalk.org/t/ruby-on-aix/24741/4 "2006-02-12T04:41:34Z")

</div>

Thanks everyone for the info. Once my team starts benchmarking (in a  
few weeks) I'll try to contribute back whatever info I can.

Cheers,  
Obie

> **···**
>
> On 2/10/06, Victor Reyes \<victor.reyes@gmail.com\> wrote:
> 
> > Obie,  
> > I have a mixed of Ruby 1.6.7 and Ruby 1.8.2 running in over 75 RS/6000 under  
> > AIX 4.3.3, AIX 5.2.0 and AIX 5.3.0. I had some issues with the installation,  
> > but with the help of this great Ruby gang I was able to quickly address my  
> > issues.  
> > Although I do some networking (TCP and UDP protocol) with Ruby, I am not an  
> > experienced Ruby programmer. But the point is that Ruby works just fine and  
> > I try to use it always in place of the Korn Shell, which is the default  
> > shell in AIX.
> > 
> > Victor
> > 
> > On 2/9/06, Obie Fernandez \<obiefernandez@gmail.com\> wrote:  
> > \>  
> > \> We're looking at big IBM hardware running AIX as a potential  
> > \> deployment platform for the big credit card processing Rails and Ruby  
> > \> stuff that my team is currently building. I was wondering if anyone  
> > \> else is running on AIX or knows if Ruby is well-supported on this  
> > \> platform.  
> > \>  
> > \> I googled the subject, but  
> > \>  
> > \> [http://groups.google.com/group/comp.lang.ruby/browse\_thread/thread/3daaf60b012c1921](http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/3daaf60b012c1921)  
> > \> is the only thing I found -- it's not 100% confidence inspiring.  
> > \>  
> > \> It seems like more people out there are running Ruby on Solaris, but  
> > \> the client is indicating that they'd rather host our stuff on the IBM  
> > \> servers rather than Fujitsu.  
> > \>  
> > \> Any advice is appreciated.  
> > \>  
> > \> Thanks,  
> > \> Obie  
> > \>  
> > \>

---

<div class="post-metadata">

**Author:** ![Edward\_Faulkner](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@Edward\_Faulkner](https://rubytalk.org/u/Edward_Faulkner)\
**Post date:** [10 February 2006 18:15 UTC](https://rubytalk.org/t/ruby-on-aix/24741/5 "2006-02-10T18:15:10Z")

</div>

Any worthwhile editor should have a Ruby mode that handles indenting  
for you.

(In emacs, use M-x indent-region)

regards,  
Ed

> **···**
>
> On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote:
> 
> > The other day, I stumbed across the need to reindent some ruby code.

---

<div class="post-metadata">

**Author:** ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)\
**Post date:** [10 February 2006 18:21 UTC](https://rubytalk.org/t/ruby-on-aix/24741/6 "2006-02-10T18:21:13Z")

</div>

Dňa Piatok 10 Február 2006 19:15 Edward Faulkner napísal:

> (In emacs, use M-x indent-region)

I also think you can run emacs in batch mode and have it reindent a whole file  
somehow.

What I couldn't figure out within the time I get sick of going through info  
manuals is how to remap RUBY-REINDENT-NEWLINE-AND-INDENT (or however the  
function is called) to RET in init.el or custom.el in a load hook for  
ruby-mode.el short of hacking ruby-mode.el itself. Any budding (X)Emacs gurus  
able to help?

David Vallner

---

<div class="post-metadata">

**Author:** ![Diego\_Cano\_Lagneaux](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Diego\_Cano\_Lagneaux](https://rubytalk.org/u/Diego_Cano_Lagneaux)\
**Post date:** [10 February 2006 18:27 UTC](https://rubytalk.org/t/ruby-on-aix/24741/7 "2006-02-10T18:27:21Z")

</div>

En Fri, 10 Feb 2006 19:15:10 +0100, Edward Faulkner \<ef@alum.mit.edu\> escribió:

> > The other day, I stumbed across the need to reindent some ruby code.
> 
> Any worthwhile editor should have a Ruby mode that handles indenting  
> for you.
> 
> (In emacs, use M-x indent-region)
> 
> regards,  
> Ed

I am aware that it should (I use Vim, by the way), but it doesn't. I have all imaginable variables in my .vimrc (indent on, smartindent, etc.), but all I have is syntax colours, no autoindentation.

It's not a big problem for the code I write now, since I am quite careful with correct indentation and all; but for old messy code, it could help me a lot to have a auto-reindenter, and even better, a code beautifier limiting code to 80 columns, uniformising spaces after commas and all this.

Thanks,  
Diego

> **···**
>
> > On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote:

---

<div class="post-metadata">

**Author:** ![Cameron\_McBride](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@Cameron\_McBride](https://rubytalk.org/u/Cameron_McBride)\
**Post date:** [10 February 2006 18:48 UTC](https://rubytalk.org/t/ruby-on-aix/24741/8 "2006-02-10T18:48:50Z")

</div>

I use vim, and the following works just fine for me:  
:1  
shift-v  
shift-g

> **···**
>
> On 2/10/06, Diego Cano Lagneaux \<d.cano.lagneaux@gmail.com\> wrote:
> 
> > I am aware that it should (I use Vim, by the way), but it doesn't. I have  
> > all imaginable variables in my .vimrc (indent on, smartindent, etc.), but  
> > all I have is syntax colours, no autoindentation.
> 
> ==
> 
> I always forget vim config stuff, but I think these are the relevant  
> config variables in my vimrc:  
> set formatoptions=tcqronwl " see :help fo-table  
> set cindent  
> set autoindent  
> set nosmartindent
> 
> Cameron

---

<div class="post-metadata">

**Author:** ![Reid\_Thompson1](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Reid\_Thompson1](https://rubytalk.org/u/Reid_Thompson1)\
**Post date:** [10 February 2006 18:48 UTC](https://rubytalk.org/t/ruby-on-aix/24741/9 "2006-02-10T18:48:56Z")

</div>

Diego Cano Lagneaux wrote:

> En Fri, 10 Feb 2006 19:15:10 +0100, Edward Faulkner \<ef@alum.mit.edu\> escribió:
> 
> > > The other day, I stumbed across the need to reindent some ruby code.
> > 
> > Any worthwhile editor should have a Ruby mode that handles indenting  
> > for you.
> > 
> > (In emacs, use M-x indent-region)
> > 
> > regards,  
> > Ed
> 
> I am aware that it should (I use Vim, by the way), but it doesn't. I have all imaginable variables in my .vimrc (indent on, smartindent, etc.), but all I have is syntax colours, no autoindentation.
> 
> It's not a big problem for the code I write now, since I am quite careful with correct indentation and all; but for old messy code, it could help me a lot to have a auto-reindenter, and even better, a code beautifier limiting code to 80 columns, uniformising spaces after commas and all this.
> 
> Thanks,  
> Diego

[http://rubyforge.org/projects/vim-ruby/](http://rubyforge.org/projects/vim-ruby/)

> **···**
>
> > > On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote:

---

<div class="post-metadata">

**Author:** ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)\
**Post date:** [10 February 2006 18:49 UTC](https://rubytalk.org/t/ruby-on-aix/24741/10 "2006-02-10T18:49:42Z")

</div>

Dňa Piatok 10 Február 2006 19:27 Diego Cano Lagneaux napísal:

> escribió:  
> \>\> The other day, I stumbed across the need to reindent some ruby code.  
> \>  
> \> Any worthwhile editor should have a Ruby mode that handles indenting  
> \> for you.  
> \>  
> \> (In emacs, use M-x indent-region)  
> \>  
> \> regards,  
> \> Ed
> 
> I am aware that it should (I use Vim, by the way), but it doesn't. I have  
> all imaginable variables in my .vimrc (indent on, smartindent, etc.), but  
> all I have is syntax colours, no autoindentation.

Weird, last time I used Vim, it worked fine in this respect. But that was GVim  
back in Windows times, and both the Windows Vim and XEmacs seem to come with  
slightly more sensible defaults in some respects.

> It's not a big problem for the code I write now, since I am quite careful  
> with correct indentation and all; but for old messy code, it could help me  
> a lot to have a auto-reindenter, and even better, a code beautifier  
> limiting code to 80 columns, uniformising spaces after commas and all this.

Bite into the bitter pill and have an emacs in batch mode chomp over your old  
code? Although it might not quite work, the emacs ruby-mode doesn't quite  
support auto-fill-mode (the code to limit code to a set page width) properly,  
or handle multi-line comments and such.

And a pure ruby source code beautifier for Ruby does sound interesting, but  
there are some pitfalls - especially in the page width limitation when  
determining where to put a line break.

Wasn't there a project to make a self-hosting Ruby? You might want to have a  
look at how far they got and possibly rip... err... -borrow- their Ruby  
parser, and then just write a pretty printer for their code model to save  
yourself a lot of work?

David Vallner

> **···**
>
> > En Fri, 10 Feb 2006 19:15:10 +0100, Edward Faulkner \<ef@alum.mit.edu\>  
> > \> On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote:

---

<div class="post-metadata">

**Author:** ![George\_Ogata1](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@George\_Ogata1](https://rubytalk.org/u/George_Ogata1)\
**Post date:** [11 February 2006 08:13 UTC](https://rubytalk.org/t/ruby-on-aix/24741/11 "2006-02-11T08:13:23Z")

</div>

David Vallner \<david@vallner.net\> writes:

> DÅa Piatok 10 FebruÃ¡r 2006 19:15 Edward Faulkner napÃ­sal:
> 
> > (In emacs, use M-x indent-region)
> 
> I also think you can run emacs in batch mode and have it reindent a whole file  
> somehow.
> 
> What I couldn't figure out within the time I get sick of going through info  
> manuals is how to remap RUBY-REINDENT-NEWLINE-AND-INDENT (or however the  
> function is called) to RET in init.el or custom.el in a load hook for  
> ruby-mode.el short of hacking ruby-mode.el itself. Any budding (X)Emacs gurus  
> able to help?
> 
> David Vallner

(add-hook 'ruby-mode-hook  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(lambda ()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(define-key ruby-mode-map [return]  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'ruby-reindent-then-newline-and-indent)))
