Live data from Hacker News

Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

news.ycombinator.com

21–30 of 68 posts

Re: Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

#21
After a quick look I have a lot of questions

1) Unlike YAML or JSON this doesn't parse into a simple array structure, but a library dependent object hierarchy?

2) Is the API of the libraries also part of the language spec?

3) Can I assume that document.lookup() will be available as document->lookup() in the PHP library?

4) What about programming language specifics that may differ between languages? Will the PHP objects implement the Iterable interface? Or the ArrayAccess interface? (There are probably similar but slightly different concepts in other languages).

5) There is eno.parse(), but is there some kind of reverse mechanism to create a new Eno document? Like document.addList([...]).addSection('hey', 2) or something.

Re: Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

#23
It seems bizarre that you wouldn't create a C version of this library. If you create a C version, everyone can write bindings and consume it from their favorite language. I think maybe you can do that with Rust code, but it's typical to write the canonical version in C.

Your benchmarks are flawed, as they only compare between different implementations using the same language. If you really care about performance, it seems bizarre that you'd use PHP or Ruby.

Re: Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

#24
It looks like there is no support for writing data to this formatting. My inner hope was that there was a format I could parse, modify, and write again preserving as much comments and formatting as is reasonable.

I looked at the Python implementation but did not see that type of functionality. Am I wrong?

Re: Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

#25

It seems bizarre that you wouldn't create a C version of this library. If you create a C version, everyone can write bindings and consume it from their favorite language. I think maybe you can do that with Rust code, but it's typical to write the canonical version in C. Your benchmarks are flawed, as they only compare between different implementations using the same language. If you really care about performance, it…

(You can with Rust, yes)

Re: Show HN: Eno – A lightning fast, user-friendly YAML/TOML alternative

#28

Related as a better config language (but universal, not for a use case like this) is dhall (non-turing complete, type-safe, remote imports). https://github.com/dhall-lang/dhall-lang

At first glance dhall looks a bit like some of the CSS preprocessors out there.
Post reply on HN