[ANN] RType-0.2

Hi. I've released RType 0.2 today.
RType is another Ruby interpreter written in Haskell.

Now, RType can imitate

* all kind of variables
* [Integer, String, Fixnum, Regexp].each
* class and method definition
* if unless while until case
* yield, block
* exception (begin ~ rescue ~ end and raise)

You can download RType from the following web site.

* http://mono.kmc.gr.jp/~oxy/hiki.cgi?rtype_en

RType requires ghc >= 6.4, and it's little hard to install.
So, the binary package is also provided (for Linux i386).

* http://mono.kmc.gr.jp/~oxy/archive/rtype-bin-0.2.0.gz

···

----
YOSHIDA, Yuichi
oxy@kmc.gr.jp
http://mono.kmc.gr.jp/~oxy/

Yuichi Yoshida ha scritto:

Hi. I've released RType 0.2 today.
RType is another Ruby interpreter written in Haskell.

this is really cool, thanks for sharing it.
But I wonder why did you choose to write a ruby interpreter in Haskell?

Excellent! It seems to work for me. This is very interesting. What are
the plans for this project? Do you plan on supporting a Ruby style
license at some point?

You also mention that RType is _another_ Ruby interpreter written
using Haskell. Which would be the other one?

Thanks,
Brian.

···

On 9/17/05, Yuichi Yoshida <oxy@kmc.gr.jp> wrote:

Hi. I've released RType 0.2 today.
RType is another Ruby interpreter written in Haskell.

Now, RType can imitate

* all kind of variables
* [Integer, String, Fixnum, Regexp].each
* class and method definition
* if unless while until case
* yield, block
* exception (begin ~ rescue ~ end and raise)

You can download RType from the following web site.

* http://mono.kmc.gr.jp/~oxy/hiki.cgi?rtype_en

RType requires ghc >= 6.4, and it's little hard to install.
So, the binary package is also provided (for Linux i386).

* http://mono.kmc.gr.jp/~oxy/archive/rtype-bin-0.2.0.gz
----
YOSHIDA, Yuichi
oxy@kmc.gr.jp
http://mono.kmc.gr.jp/~oxy/

Excellent! It seems to work for me. This is very interesting.

Thank you!

What are the plans for this project?

I just wanted to use Haskell, and write a compiler or interpreter.
So, I started implementing RType just for fun.
I am going to follow the standard Ruby Syntax for now, but if anyone
hit on a interesting extention, I will try to implement it.
For example, type theory or lazy evaluation or group thoery?

Do you plan on supporting a Ruby style license at some point?

Excuse me, but what is the merit of it?
If it is appreciated to support the licence, I will do that.

You also mention that RType is _another_ Ruby interpreter written
using Haskell. Which would be the other one?

In this case, "another" dosen't modify "written using Haskell",
but "Ruby interpreter"
Actually, there are some Ruby interpreters, original Ruby, yarv,
JRuby, Ruby.NET.
So, I used "another". This is my misusage?

···

Thanks,
Brian.

----
YOSHIDA, Yuichi
oxy@kmc.gr.jp
http://mono.kmc.gr.jp/~oxy/

this is really cool, thanks for sharing it.
But I wonder why did you choose to write a ruby interpreter in Haskell?

The strange feature of Haskell absorbed me, especially lazy evaluation did.
What a good sound, lazy! :wink:

I wanted to write somthing and learn more about Haskell,
and Ruby interpreter is a good theme to satisfy my desire.

But my mind translate logic or algorithm into C code, then
retranslate it to Haskell code.
So unfortunately, the source code of RType doesn't grab the
Haskell feature, I think.

···

----
YOSHIDA, Yuichi
oxy@kmc.gr.jp
http://mono.kmc.gr.jp/~oxy/

Ideally, you need a comma in there: "...another ruby interpreter,
written in Haskell".

Sounds like a very cool project, btw - any chance of your providing an
ebuild?

martin

···

Yuichi Yoshida <oxy@kmc.gr.jp> wrote:

> You also mention that RType is _another_ Ruby interpreter written
> using Haskell. Which would be the other one?

In this case, "another" dosen't modify "written using Haskell",
but "Ruby interpreter"
Actually, there are some Ruby interpreters, original Ruby, yarv,
JRuby, Ruby.NET.
So, I used "another". This is my misusage?

Hi,

> What are the plans for this project?

I just wanted to use Haskell, and write a compiler or interpreter.
So, I started implementing RType just for fun.
I am going to follow the standard Ruby Syntax for now, but if anyone
hit on a interesting extention, I will try to implement it.
For example, type theory or lazy evaluation or group thoery?

I'd like to see pattern-matching built in.

def length(x|xs)
  if x.nil?
    0
  else
    1 + length(xs)
  end
end

Regards,
Aki

···

--------------------------------------------------------
Name: 立川察理 Akimichi Tatsukawa
Email: akimichi_tatsukawa@yahoo.co.jp
Web: http://akimichi.homeunix.net/~emile/

> Excellent! It seems to work for me. This is very interesting.

Thank you!

> What are the plans for this project?

I just wanted to use Haskell, and write a compiler or interpreter.

It is an ironic statement as I am also about to start such a project
but for the Io language. Haskell is a very interesting and powerful
language.

My project was originally using the C interpreter but the number of
errors in the 10,000+ line code base where hurting my efforts in
building a Ruby interpreter using Io.

I have found Haskell to be one of the most worthwhile languages to
learn (along with Ruby of course :)).

So, I started implementing RType just for fun.
I am going to follow the standard Ruby Syntax for now, but if anyone
hit on a interesting extention, I will try to implement it.
For example, type theory or lazy evaluation or group thoery?

I will keep my open for ideas that might fit RType. This is not
specific to RType of the powers of Haskell but I would like to see
selector namespaces implemented somewhere. I was going to do this in
IoRuby but that is still too far away for me to plan.

> Do you plan on supporting a Ruby style license at some point?

Excuse me, but what is the merit of it?
If it is appreciated to support the licence, I will do that.

I use Haskell for a few projects and the thought of an easy to embed
interpreter is nice. The only problem I have with the GPL is that it
forces me to GPL the code rather than use something more liberal like
BSD or Ruby licenses.

At this moment I don't have an immediate use but it was just a thought
for the future. I am fine with GPL if that is what _you_ want your
code published as.

> You also mention that RType is _another_ Ruby interpreter written
> using Haskell. Which would be the other one?

In this case, "another" dosen't modify "written using Haskell",
but "Ruby interpreter"
Actually, there are some Ruby interpreters, original Ruby, yarv,
JRuby, Ruby.NET.
So, I used "another". This is my misusage?

Ok. Thanks. Just a misinterpretation on my part. Don't worry about
exact grammar. I use broken English myself. I am sure if I tried
composing this message in Japanese I would fail to make even one
sentence correct.

:slight_smile:

Brian.

···

On 9/18/05, Yuichi Yoshida <oxy@kmc.gr.jp> wrote:

Ideally, you need a comma in there: "...another ruby interpreter,
written in Haskell".

I see. Thanks.

Sounds like a very cool project, btw - any chance of your providing an
ebuild?

Hmm...
It's difficult because I don't use Gentoo and don't know well about ebuild.
Before that, I think I should prepare source repository.

···

martin

----
YOSHIDA, Yuichi
oxy@kmc.gr.jp
http://mono.kmc.gr.jp/~oxy/

On second thoughts, ignore me :slight_smile: We package-system users get too greedy
at times.

martin

···

Yuichi Yoshida <oxy@kmc.gr.jp> wrote:

> Sounds like a very cool project, btw - any chance of your providing an
> ebuild?

Hmm...
It's difficult because I don't use Gentoo and don't know well about ebuild.
Before that, I think I should prepare source repository.

You could probably find another ebuild packaging something that uses
Cabal as it seems this is how RType accomplishes packaging. I have not
explored Cabal myself but it is said to promise a very clean
configuration free deployment of libraries and programs written using
Haskell.

For people on macs make sure you are setup to use gcc 3.3 not 4.0 (a
ghc bug until 6.4.1 release). This is easily toggled using:

sudo gcc_select 3.3

Brian.

···

On 9/18/05, Martin DeMello <martindemello@yahoo.com> wrote:

Yuichi Yoshida <oxy@kmc.gr.jp> wrote:
>
> > Sounds like a very cool project, btw - any chance of your providing an
> > ebuild?
>
> Hmm...
> It's difficult because I don't use Gentoo and don't know well about ebuild.
> Before that, I think I should prepare source repository.

On second thoughts, ignore me :slight_smile: We package-system users get too greedy
at times.

martin