suburbia

Premshree's (品速力) Personal Weblog

etc.


  • 1

REBOL link

(Anonymous)
Also points to yaml...
BTW, looks like XML wins when depth is big, right?
JJ

When compared to YAML, yes.

Of course, this is _not_ a thorough analysis—I have considered only one structure.

Re: REBOL link

(Anonymous)
so, you have to have a structure nested more than 15 deep to have YAML be worse than XML? I've never seen a real-life structure that deep -- have you?

Regardless. AS some other poster mentioned, if you are looking for small downloads -- just use gzip.

I was just experimenting with different depth levels. I haven’t seen a real-life structure that deep. :)

File size becomes important when it comes to serving feeds—RSS, et al.

Your RSS feed should be gzip compressed.

Lose Weight, Save Money with Compression!
Leknor.com - Code - gziped?

A gziped RSS feed would take more than 40% more space than its gziped YAML equivalent.

illegal yaml

(Anonymous)
In your example YAML you have some illegal YAML, generator: My Generator -item: title: Hotel Foo perhaps you meant to write, generator: My Generator item: - title: Hotel Foo link: ... - title: Bingles link: ...

illegal yaml

(Anonymous)
In your example YAML you have some illegal YAML,
generator: My Generator
-item:
 title: Hotel Foo
perhaps you meant to write,
generator: My Generator
item:
- title: Hotel Foo
  link: ...
- title: Bingles
  link: ...

item is meant to be a sequence. No problems parsing it using yaml4r.

I'm not the anonymous poster, but you forgot about the space after the dash.

Ah, my bad. [I managed to use it with yaml4r, though :-)]

  • 1
?

Log in