← Back to context

Comment by krapp

13 hours ago

Use Lua tables. Lua's parser is smaller than many JSON parsers, the syntax is almost the same and you can use comments.

On the web? In wasm? I'd much rather use a new format. MAML's parser is 2kb of js gzipped according to the repo and very fast.

  • If that matters, the just bite the bullet and use JSON, which is supported in every browser in existence and has a parser library in every language worth using.