Onigurama

H

Harry Ohlsen

I've just started reading "Mastering Regular Expressions" because, while
I use them many times in any given day, there's a heap that I don't know
and I thought it was time to bite the bullet.

One of the first new things I discovered was lookahead and lookbehind.
I was keen to try this stuff out, so I powered up IRB and had a go.
Sadly, 1.8.2 doesn't have lookbehind, so the first cool thing I tried
failed :-(.

I then remembered that there was a separate regex system called
Onigurama. A bit of Googling revealed that Matz had said that Onigurama
would be adopted in 1.9. If that's the case, I'll go to the trouble of
downloading and building a copy of 1.9 myself.

I just thought I'd check first that Matz's plan came to be. Is
Onigurama used in 1.9?

Also, is there any roadmap as to when Onigurama will be standard? I'm
happy to use 1.9 for my regex learning, but it would be nice to be able
to use Onigurama for "production" work, too.

Cheers,

Harry O.
 
G

Gully Foyle

Harry said:
I've just started reading "Mastering Regular Expressions" because, while
I use them many times in any given day, there's a heap that I don't know
and I thought it was time to bite the bullet.

One of the first new things I discovered was lookahead and lookbehind. I
was keen to try this stuff out, so I powered up IRB and had a go. Sadly,
1.8.2 doesn't have lookbehind, so the first cool thing I tried failed :-(.

I then remembered that there was a separate regex system called
Onigurama. A bit of Googling revealed that Matz had said that Onigurama
would be adopted in 1.9. If that's the case, I'll go to the trouble of
downloading and building a copy of 1.9 myself.

I just thought I'd check first that Matz's plan came to be. Is
Onigurama used in 1.9?

Also, is there any roadmap as to when Onigurama will be standard? I'm
happy to use 1.9 for my regex learning, but it would be nice to be able
to use Onigurama for "production" work, too.

Cheers,

Harry O.

It would be great if Onigurama can be selected as drop-in replacement
with a simple command-line option when installing ruby 1.8.2.
 
V

vruz

[snip]
I just thought I'd check first that Matz's plan came to be. Is
Onigurama used in 1.9?

According to:
http://www.rubygarden.org/ruby?Rite
Oniguruma would make it in 1.9

1.8.2 is due later this month, I'd say it will take
some months before 1.9.0 sees the light of day,
maybe in time for the next Rubyconf.
(pure especulation on my part)


cheers
vruz
 
A

Austin Ziegler

[snip]
I just thought I'd check first that Matz's plan came to be. Is
Onigurama used in 1.9?

According to:
http://www.rubygarden.org/ruby?Rite
Oniguruma would make it in 1.9

1.8.2 is due later this month, I'd say it will take
some months before 1.9.0 sees the light of day,
maybe in time for the next Rubyconf.
(pure especulation on my part)

It is my understanding that 1.9 already uses Oniguruma as its default
regexp engine. However, 1.9 is not a "release" version -- and it will
never see the "light of day"; the next "major" version will be 2.0 --
Ruby 1.7 was a dev version; 1.9 is also a dev version. It's like the
Linux kernel releases (2.4, 2.6 are public versions; 2.5 and 2.7 are
dev versions).

-austin
 
G

Gavin Sinclair

Also, is there any roadmap as to when Onigurama will be standard? I'm
happy to use 1.9 for my regex learning, but it would be nice to be able
to use Onigurama for "production" work, too.


Is it not possible/practical to use Onigurama as a separate library?

Gavin
 
M

Mauricio Fernández

It is my understanding that 1.9 already uses Oniguruma as its default
regexp engine. However, 1.9 is not a "release" version -- and it will
never see the "light of day"; the next "major" version will be 2.0 --
Ruby 1.7 was a dev version; 1.9 is also a dev version. It's like the

The numbering policy has changed. What you describe applied up to 1.8,
but 1.9.1 will be a stable release too.

Remember that 2.0 will be a complete reimplementation...
Linux kernel releases (2.4, 2.6 are public versions; 2.5 and 2.7 are
dev versions).

--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

oh okay. my mistake.

Yafcot:atj(*),

mark

* Yet another fool coming over this: according to joey
-- (e-mail address removed)
 
H

Harry Ohlsen

Gully said:
It would be great if Onigurama can be selected as drop-in replacement
with a simple command-line option when installing ruby 1.8.2.

Agreed. I was going to suggest that, but thought better of it, since I don't know how ready for production it is.

Now, if I can only get CVS to work through our firewall here at work, I'll be Oniguruma-ing any minute now ...

H.
 
M

Mark Hubbart

It would be great if Onigurama can be selected as drop-in replacement
with a simple command-line option when installing ruby 1.8.2.

If you get Onigurama from the cvs, it states in the README (i think)
how to compile 1.8 to use Onigurama. I remember it being pretty simple,
I think you just pass a special option to Onigurama's configure, and
then configure/make Ruby.

cheers,
Mark
 
G

gabriele renzi

il Tue, 20 Jul 2004 09:33:52 +0900, Harry Ohlsen
Agreed. I was going to suggest that, but thought better of it, since I don't know how
ready for production it is.

well, oniguruma is being around for years, the 1.0 version is dated
2002.. I think it's fairly mature.
 
T

Tom Copeland

If you get Onigurama from the cvs, it states in the README (i think)
how to compile 1.8 to use Onigurama. I remember it being pretty simple,
I think you just pass a special option to Onigurama's configure, and
then configure/make Ruby.

If someone wants to set up a "Ruby 1.8.x with Onigurama".tar.gz, I'd be
happy to post it here:

http://rubyforge.org/frs/?group_id=30

Yours,

Tom
 
A

Aredridel

If someone wants to set up a "Ruby 1.8.x with Onigurama".tar.gz, I'd be
happy to post it here:

I would, but it is -rather- easy to make it go with 1.8 yourself. I've
been using it that way for many months now. Works like a charm, and only
a couple extra steps in the install. Read the README that comes with
Oniguruma and it becomes clear.

Ari
 
O

Ollivier Robert

It would be great if Onigurama can be selected as drop-in replacement
with a simple command-line option when installing ruby 1.8.2.

On FreeBSD systems, one has just to specify "WITH_ONIGURUMA=yes" with
make or portinstall to get it.

Thanks to knu-san.
 
M

Michael Mueller

Ollivier said:
On FreeBSD systems, one has just to specify "WITH_ONIGURUMA=yes" with
make or portinstall to get it.

Just did that and it works like a charm!
I recently switched over to FreeBSD vom Debian and FreeBSD's-ruby-support
turns out to be one more point that makes me enjoy it a lot :)

Michael
 
R

Ralf Müller

Am Donnerstag, 22. Juli 2004 08:57 schrieb Michael Mueller:
Just did that and it works like a charm!
I recently switched over to FreeBSD vom Debian and FreeBSD's-ruby-support
turns out to be one more point that makes me enjoy it a lot :)
HI Michael,
what do you think about FreeBSD in general? I am about using FreeBSD too, but
don't exactly know the (dis-)advantages especially in contrast to Debian.
What I am looking for is a personal view (and not 'theoratical' handbook
stuff).

So, if you'd spend a minute, i'll be glad to read your statement.

Many Thanks and lucky coding

Ralf
 
M

Michael Mueller

HI Michael,
what do you think about FreeBSD in general? I am about using FreeBSD too,
but don't exactly know the (dis-)advantages especially in contrast to
Debian.
What I am looking for is a personal view (and not 'theoratical' handbook
stuff).

To make it short: I love it :)

I'm not using it as a server but as a workstation both at home and @work.
I was always quite satisfied with woody on both my boxes but was since I'm
not willing to use the old software woody provides (e. g. kde 2.2) I was
using lots of backports.
First I switched at home and after using it at home for about half a year, I
switched at work too last week :)

The imho coolest thing of FreeBSD ist the strict separation between base
system and Ports. I'm using 4.10 stable - let's say that's somehow like
using Debian woody - but I can always install the lates software like kde
3.2.3, ruby 1.8.1 etc....
One thing to consider is, that if you want new versions, you nearly always
have to compile them by yourself... in the case of ruby no big deal, but
when you want to compile kde or openoffice you can easily keep your box
occupied the whole night or more...
I'm using it on a celeron 1100 and it's ok to do such things at night....
but it wouldn't dare to compile big programs on let's say an P2-300...

However FreeBSD when compared to linux lacks supports for some new
hardware.. AFAIK there is no USB 2.0-support in the 4.X STABLE Line... But
since I don't have any fancy Multimedia-equipment I don't care..

HTH
Michael
 
R

Ralf Müller

Am Donnerstag, 22. Juli 2004 10:22 schrieb Michael Mueller:
To make it short: I love it :)

I'm not using it as a server but as a workstation both at home and @work.
I was always quite satisfied with woody on both my boxes but was since I'm
not willing to use the old software woody provides (e. g. kde 2.2) I was
using lots of backports.
First I switched at home and after using it at home for about half a year,
I switched at work too last week :)

The imho coolest thing of FreeBSD ist the strict separation between base
system and Ports. I'm using 4.10 stable - let's say that's somehow like
using Debian woody - but I can always install the lates software like kde
3.2.3, ruby 1.8.1 etc....
One thing to consider is, that if you want new versions, you nearly always
have to compile them by yourself... in the case of ruby no big deal, but
when you want to compile kde or openoffice you can easily keep your box
occupied the whole night or more...
I'm using it on a celeron 1100 and it's ok to do such things at night....
but it wouldn't dare to compile big programs on let's say an P2-300...

However FreeBSD when compared to linux lacks supports for some new
hardware.. AFAIK there is no USB 2.0-support in the 4.X STABLE Line... But
since I don't have any fancy Multimedia-equipment I don't care..

sounds great,
what i wonder about is the linux binary compatibility. Do You know, what it
exactly means? Can i simply run binaries compiled for linux, or can i even
compile for linux on a FreeBSD machine? Is it possible to install rpm or deb
packages?

regards
ralf
 
M

Michael Neumann

Ralf said:
Am Donnerstag, 22. Juli 2004 10:22 schrieb Michael Mueller:



sounds great,
what i wonder about is the linux binary compatibility. Do You know, what it
exactly means? Can i simply run binaries compiled for linux, or can i even
compile for linux on a FreeBSD machine? Is it possible to install rpm or deb
packages?

Yes, you can run Linux binaries on FreeBSD. The linux syscalls are
"simply" mapped to FreeBSD syscalls.

But that does not work in any case. Mostly, the problems are due to
missing shared libraries. But for example the Linux version of
Mathematica 5 runs fine on FreeBSD, Maple, too.

Regards,

Michael
 
M

Michal 'hramrach' Suchanek

Am Donnerstag, 22. Juli 2004 10:22 schrieb Michael Mueller:

sounds great,
what i wonder about is the linux binary compatibility. Do You know, what it
exactly means? Can i simply run binaries compiled for linux, or can i even
compile for linux on a FreeBSD machine? Is it possible to install rpm or deb
packages?

The ports system benefits from the focus on source packages. Afret
trying FreeBSD I saw more packages than I could imagine any distribution
could have. But now that I have seen Gentoo Linux I think it is because
of the focus on source packages, not different kernel+license.

I am currently using NetBSD and the binary emulation in there is used
like this: there are packages which wrap some basic SuSe rpms (like
libc) and others that wrap Linux binaries (like OpenOffice or Mozilla).
It is then possible to install them without recompiling the software for
NetBSD. However, I recompiled even OpenOffice on my PIII 500 because the
native one is quite stable and the binary emulation would crash even the
whole system.
Another problem is convincing the package manager to install packages
for different platform. I think it is easy to just unpack the package
but running the install scripts and tracking dependencies as usual would
be probably quite hard.

Michal Suchanek
 
G

gabriele renzi

sounds great,
what i wonder about is the linux binary compatibility. Do You know, what it
exactly means? Can i simply run binaries compiled for linux,

sure you can, see:

or can i even
compile for linux on a FreeBSD machine?

that's cross compiling IMO is a different thing
Is it possible to install rpm or deb
packages?


rpm is there as a port, I don't know about .deb.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,149
Messages
2,570,842
Members
47,388
Latest member
EarthaGilm

Latest Threads

Top