I am still at the beginning of my learning path, but I have heard a lot
about Rubinius and I am interested in using it. I am wondering if I
should wait until I have finished learning Ruby using MRI or if I can
safely use Rubinus without fear of running into incompatibilities that
will confuse the matter. I am using several sources including Beginning
Ruby From Novice To Professional and Eloquent Ruby. I believe both of
them are assuming 1.9 (although they mention differences in 1.8.
I am still at the beginning of my learning path, but I have heard a lot
about Rubinius and I am interested in using it. I am wondering if I
should wait until I have finished learning Ruby using MRI or if I can
safely use Rubinus without fear of running into incompatibilities that
will confuse the matter.
Actually, you could install all the different versions you’d like to.
Depending on your OS, you can use RVM (on Linux, and *NIX), or pik (on
Windows), to install and/or use several Rubies in parallel.
Then, you can just use RVM’s or pik’s capabilities of running a script
against multiple Rubies, and see if you have a bug in your script, or
if the runtime you are using is buggy (in which case the maintainers
will be happy to learn about the issues!).
And, of course, you can ask on this here mailing list / forum, too.
Then, you can just use RVM’s…capabilities of running a script
against multiple Rubies, and see if you have a bug in your script, or
if the runtime you are using is buggy (in which case the maintainers
will be happy to learn about the issues!).
I am not quite skilled enough to set that up yet, but I really like
that as a plan and I am sure I can figure it out. Thanks!
I am still at the beginning of my learning path, but I have heard a lot
about Rubinius and I am interested in using it. I am wondering if I
should wait until I have finished learning Ruby using MRI or if I can
safely use Rubinus without fear of running into incompatibilities that
will confuse the matter. I am using several sources including Beginning
Ruby From Novice To Professional and Eloquent Ruby. I believe both of
them are assuming 1.9 (although they mention differences in 1.8.
I’m going to make a bit of a bold proposition. That is I’m going to
recommend using Rubinius for learning Ruby. Your point about worrying
about incompatibilities is indeed a valid one, however it is my belief
that if you really want to learn the language, you need to thrive in an
environment where you have to prove everything and can’t assume
anything. If you run through everything smoothly, then are you really
learning? You should step outside of comfortable boundaries and
experiment a little. In fact here’s a 2.0 developer preview release that
supports 1.9:
It also has the nice benefit of being able to help out a project. Think
something is not working how it’s supposed to? Write tests. Prove it. If
it is a bug, you have a workable test case to submit with your bug
report and get that great feeling that you contributed to something.
I’m going to recommend using Rubinius for learning Ruby. Your point about
worrying
You should step outside of comfortable boundaries and
experiment a little. In fact here’s a 2.0 developer preview release that
supports 1.9:
Hmm, I like that idea too. Actually, using this method in combination
with the possibility to run against multiple Rubies could help track
down the source of problems. I do want to use 1.9 when possible.
On Thu, Sep 15, 2011 at 10:05:43AM +0900, Aaron J. wrote:
Phillip G. wrote in post #1022046:
Then, you can just use RVM’s…capabilities of running a script
against multiple Rubies, and see if you have a bug in your script, or
if the runtime you are using is buggy (in which case the maintainers
will be happy to learn about the issues!).
I am not quite skilled enough to set that up yet, but I really like
that as a plan and I am sure I can figure it out. Thanks!
Word of warning for RVM: at present, the official installation process
requires you to have bash installed on your system. It’s annoying, but
I
bit the bullet and dealt with the annoyance of installing bash for the
sole purpose of installing RVM, and the benefits for me have been worth
it. Your mileage may vary – as has that of some others I know. I look
forward to the day it will work with sh, so I do not have to install
bash
on systems that don’t need it just to have RVM.
On Fri, Sep 16, 2011 at 12:49:57AM +0900, Chuck R. wrote:
FYI, the 2.0.0pre branch of Rubinius has been merged back to master.
The 1.2.5 branch is available too, but everyone should be using the
master branch at this point. It can be built to handle both 1.8 and 1.9
syntax (though the 1.9 syntax is incomplete).
Pop into the #rubinius channel on freenode and we’ll lend you a hand
getting it compiled and running.
I’ve been there (mostly lurking) for quite a while. Thanks for the help
figuring out that “rvm install rbx-head” would upgrade my rbx-head
version today.
On Thu, Sep 15, 2011 at 10:43:23AM +0900, Aaron J. wrote:
down the source of problems. I do want to use 1.9 when possible.
As an addendum, I think Rubinius 1.2.4 should be “safe” to use, if you
want to use a Rubinius version compatible with Ruby 1.8.7 – though
Chris
White’s recommendations for using 1.9.x-compatible Rubinius 2.0 make
sense if you are willing to go that route. I actually use RVM to test
my
code with MRI 1.8.7 and the 1.9.3 preview, as well as with Rubinius
1.2.5
and the 2.0 preview. My system provides an MRI Ruby 1.8.7 and an
MRI/YARV Ruby 1.9.2, as well, but frankly I do not remember the last
time
I used either of those for anything I wrote.
with the possibility to run against multiple Rubies could help track
down the source of problems. I do want to use 1.9 when possible.
As an addendum, I think Rubinius 1.2.4 should be “safe” to use, if you
want to use a Rubinius version compatible with Ruby 1.8.7 – though Chris
White’s recommendations for using 1.9.x-compatible Rubinius 2.0 make
sense if you are willing to go that route. I actually use RVM to test my
code with MRI 1.8.7 and the 1.9.3 preview, as well as with Rubinius 1.2.5
and the 2.0 preview. My system provides an MRI Ruby 1.8.7 and an
MRI/YARV Ruby 1.9.2, as well, but frankly I do not remember the last time
I used either of those for anything I wrote.
FYI, the 2.0.0pre branch of Rubinius has been merged back to master. The
1.2.5 branch is available too, but everyone should be using the master
branch at this point. It can be built to handle both 1.8 and 1.9 syntax
(though the 1.9 syntax is incomplete).
Pop into the #rubinius channel on freenode and we’ll lend you a hand
getting it compiled and running.
FYI, the 2.0.0pre branch of Rubinius has been merged back to master. The
1.2.5 branch is available too, but everyone should be using the master
branch at this point. It can be built to handle both 1.8 and 1.9 syntax
(though the 1.9 syntax is incomplete).
Pop into the #rubinius channel on freenode and we’ll lend you a hand
getting it compiled and running.
cr
Chuck,
Due to work issues, sadly it’s been a few weeks since I’ve tried (and
failed) to build 2.0.0pre (zlib dep and segv issues), but are you aware
of
anyone building the current master for Windows on Windows (mingw-w64 and
friends), not a VM?
FYI, the 2.0.0pre branch of Rubinius has been merged back to master. The
1.2.5 branch is available too, but everyone should be using the master
branch at this point. It can be built to handle both 1.8 and 1.9 syntax
(though the 1.9 syntax is incomplete).
Pop into the #rubinius channel on freenode and we’ll lend you a hand
getting it compiled and running.
cr
Chuck,
Due to work issues, sadly it’s been a few weeks since I’ve tried (and
failed) to build 2.0.0pre (zlib dep and segv issues), but are you aware
of
anyone building the current master for Windows on Windows (mingw-w64 and
friends), not a VM?
Jon
Chuck,
Nevermind, just tried building master this morning and after manually
applying
Due to work issues, sadly it’s been a few weeks since I’ve tried (and
failed) to build 2.0.0pre (zlib dep and segv issues), but are you aware
of
anyone building the current master for Windows on Windows (mingw-w64 and
friends), not a VM?
I have seen hints that brixen is reloading Windows in his virtual
environment recently. Other than these hints I have not seen any other
word that non-core people are actively working on Windows support.
I’ll split off my current Windows VM and try loading up mingw-w64
according to your instructions. But that’s going to have to wait…
today I’m pairing with Steve K. on trying to get Red Shoes to build
on Windows using MRI 1.9.2. That scratches a current itch of mine
whereas rbx on windows doesn’t.
I am not an expert at using the terminal by any stretch of the
imagination, but I think I have everything installed except Rubinius 2.0
and the latest and greatest Ruby 1.9.x.
I could use a little help with these last two installations and with
setting Rubinius as my default instead of MRI.
I am not sure where each of these is installed, but I have the
following:
hi i’m new to rvm it looks great
i deleted ruby 1.9.2p0.x before installing the new 1.9.2p290
deleting it was 550 megabytes into the trash
my new version is just 90 megabytes
i guess all the gems and docs were deleted that might have been saved
for the new version?
it seems like it will take ages to make the long road back to find the
gems again
or even if they would be any use with the new ruby
after the new security fixes why would anyone use the old stuff?
It’s also useful to join the #rvm irc channel on freenode.net. There is
a lot of (usually) real-time help for people during the week. It’s
probably a lot quieter on weekends.
That said, I think the way to set the default is like so:
% rvm ruby-1.9.2-p290 --default
Of course, insert whatever the full name is of the Ruby runtime to set a
different default (rubinius, jruby, etc).
hi cr
i am looking at the rvm site basics but your install process
your code has % and $ symbols which sounds like it wouldn’t work on
windows
if i type $ sign or % sign in ruby command prompt it responds with not
recognized
hi cr
i am looking at the rvm site basics but your install process
your code has % and $ symbols which sounds like it wouldn’t work on windows
if i type $ sign or % sign in ruby command prompt it responds with not
recognized
Tim,
the % sign I used was to indicate the standard bash shell prompt on UNIX
(or OSX). You aren’t supposed to type it.
Also, rvm doesn’t work on Windows. You should take a look at the “pik”
product for managing your Rubies.
cr
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.