Yaml Parser

Has anyone else started working on a Yaml parser? If so, how can I
contribute?

Adam E.:

Has anyone else started working on a Yaml parser? If so, how can I
contribute?

I don’t think anyone has started work on a yaml parser. As for
contributing, check out the somewhat videos on http://www.ironruby.net
to get started, sign a contributor agreement (see the archives for
instructions) and start coding!

There are numerous YAML parsers out there (including some .NET ones that
have incompatible licenses).

Thanks,
-John

I started work on porting Ola B.'s JvYAML library to C#, but I’ve had
very
little time lately. I’ll try to get my code on a public SVN repo
sometime
this weekend or early next week.

How are you converting? Did you use JLCA to do the grunt work?

I did use JLCA to start, but have made many changes since. JLCA didn’t
migrate everything and there are still some calls that don’t exist on
the
CLR. I made a bunch of changes to try to get the code compiling but I
don’t
think it is compiling at the moment. I also made some changes to get
the
code to be more idiomatic C#, like moving some methods to properties,
using
generics when possible, etc…
Right now I think the biggest issue (besides getting it to compile) is
that
the code is written for JRuby’s String class which is a list of bytes,
where
IronRuby is using the MutableString class which is a StringBuffer. I
remember John saying that IronRuby will move to a byte list for String
eventually, but I haven’t had much time to work on the YAML port and
haven’t
coordinated when that change will happen, if at all.

Hopefully I’ll get some time to work on it soon.

I did not port the tests yet. :frowning:

Let me know when you check it in and I will try to make some more
progress. Did you port the tests as well?

Making changes (getters/setters to properties; generics…) seems
risky until the port is compiling and all tests are passing. Is
there a reason for taking on the extra risk?

AE

Is the MIT license, of rbyaml, compatible with IronRuby?

AE

Adam E. wrote:

Has anyone else started working on a Yaml parser? If so, how can I
contribute?

Why would you need to write a new one? Is there something wrong with
http://rbyaml.rubyforge.org/

2007/10/24, Adam E. [email protected]:

Is the MIT license, of rbyaml, compatible with IronRuby?

I can’t see why not. And it’s not like rbyaml is derivative work of
IronRuby or vice versa, so license compatibility doesn’t matter.

The problem is that rbyaml is a bit too advanced to be run by current
IronRuby :slight_smile:

I think license does matter. If rbyaml was used, it would be
shipped with IronRuby as a standard library. I think that means that
their license have to be compatible.

Can someone please clarify?

AE

Adam E.:

I think license does matter. If rbyaml was used, it would be
shipped with IronRuby as a standard library. I think that means that
their license have to be compatible.

Can someone please clarify?

This is something that we still have to figure out on our end. AFAIK we
have never shipped multiple licensed code before in a single
distribution. I’ve got some inquiries out on this, and I’ll report back
what we figure out.

Worst case we could enlist the help of someone like Seo who has lots of
experience redistributing our code to help come up with a standard
distribution, but clearly that’s a worst case scenario.

Thanks,
-John

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs