Live data from Hacker News

Show HN: I ported Tree-sitter to Go

github.com

21–30 of 116 posts

Re: Show HN: I ported Tree-sitter to Go

#21

Earlier quoted context omitted.

gah,. sincere apologies for formatting of this post. i ahve been on HN for basically 10 years now without ever having made a post (:

use four spaces " " in front of a line for formatting like " this"

It's 2 or more spaces, not four

Re: Show HN: I ported Tree-sitter to Go

#24

Interesting. I have a similar usecase but intended to use CGo tree-sitter with Zig Are these pretty up-to-date grammars? I'm awfully tempted to switch to your project How large are your binaries getting? I was concerned about the size of some of the grammars

206 binary blobs = 15MB, so not crazy but i built for this use case where you can declare the registry of languages you want to load and not have to own all the grammar binaries by default

Re: Show HN: I ported Tree-sitter to Go

#25

Interesting. I have a similar usecase but intended to use CGo tree-sitter with Zig Are these pretty up-to-date grammars? I'm awfully tempted to switch to your project How large are your binaries getting? I was concerned about the size of some of the grammars

206 binary blobs = 15MB, so not crazy but i built for this use case where you can declare the registry of languages you want to load and not have to own all the grammar binaries by default

If all the languages together add up to 15MB that is a game changer for me.

It means the CLI I am working on can ship support for many languages whilst still being a smallish (sub 50mb) download

I shall definitely check it out!

Re: Show HN: I ported Tree-sitter to Go

#27

Earlier quoted context omitted.

206 binary blobs = 15MB, so not crazy but i built for this use case where you can declare the registry of languages you want to load and not have to own all the grammar binaries by default

If all the languages together add up to 15MB that is a game changer for me. It means the CLI I am working on can ship support for many languages whilst still being a smallish (sub 50mb) download I shall definitely check it out!

re: up to date grammars, yes i found the official grammars in use by the original tree-sitter library today
Post reply on HN