vscode

Quiet in here? Check #calva-dev out :smiley:
2020-02-03T13:04:51.097900Z

here's a screenshot of a poc vscode extension (written in cljs) for doing rainbow parens via tree sitter. (the colors for other things are not done by this extension)

pez 2020-02-03T13:49:37.098900Z

That's nice!

2020-02-03T21:07:41.099700Z

thanks - do you have any tips or resources on measuring performance?

pez 2020-02-03T21:52:51.101Z

I think parcera might have some performance testing. But I could be remembering wrongly.

pez 2020-02-03T21:55:53.103400Z

Something that chokes one of Calva's parsers is long input strings. So if you get a large/deep structure back as a result from evaluation and it is not pretty printed. It starts to get painful at 10K chars. The parser for Calva's rainbow parens deals with long strings much better.

2020-02-03T22:44:58.105100Z

thanks for the parecera hint -- may be this part? https://github.com/carocad/parcera/blob/master/test/parcera/benchmark.clj it looks like (at least the c api of) tree sitter has the ability to work with timeouts: https://github.com/tree-sitter/tree-sitter/blob/master/lib/include/tree_sitter/api.h#L289_L296 i don't see that exposed for web-tree-sitter though: https://github.com/tree-sitter/tree-sitter/blob/master/lib/binding_web/tree-sitter-web.d.ts