News for hackers. Stuff that matters.

odvcencio

Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @05:04PM (#47158663)
i really appreciated this comment the most because of how much work "somehow" is doing here
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:33PM (#47157449)
ii am trying to not take issue with this comment because im aware of the huge stigma around ai generated code.

i needed this project so i made it for my use case and had to build on top of it. the only way to ensure quality is to read it all line by line.

if you give me code that you yourself have not reviewed i will not review it for you.

Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:31PM (#47157419)
the 90x figure is on Go source for apples to apples against CGO bound tree-sitter.

your use case is not one i designed for although yeah maybe the readme has some sections too close. the only external scanner missing atm is norg. now that i know your use case i can probably think of a way to close it

Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:26PM (#47157361)
thank you for the kind words! Very cool project! Very happy you can find some utility in it
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:24PM (#47157329)
yes and if you clicked the links you would know that i did answer it in the readme.
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:20PM (#47157264)
well how did it do?
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:10PM (#47157143)
re: up to date grammars, yes i found the official grammars in use by the original tree-sitter library today
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:09PM (#47157127)
yes basically about 70% of the engineering effort was spent porting the external scanners and ensuring parity with original (C) tree-sitter
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @03:06PM (#47157097)
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 on Wednesday February 25, 2026 @02:58PM (#47156989)
yeah the tests live with the implementation code always (Go thing) and the repo root thing is like a preference, main is an acceptable package to put stuff in (Go thing), i see this a lot with smaller projects or library type projects
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @02:54PM (#47156938)
gah,. sincere apologies for formatting of this post. i ahve been on HN for basically 10 years now without ever having made a post (:
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @02:53PM (#47156907)
it is interoperable with git. we like git when its good but attempted to ease the pains in UX somewhat. you can take advantage of got locally but still push it to git remote forges jsut the same. when you pull stuff in this way, got will load the entity history into the git repo ensuring that you can still do got stuff locally (inspect entity histories, etc)
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @02:51PM (#47156872)
primarily, got is structural VCS intended for concurrent edits of the same file.

it does this via gotreesitter and gts-suite abstractions that enable it to: - have entity-aware diffs - not line by line but function by function - structural blame - attribution resolution for the lifetime of the entity - semver from structure - it can recommend bumps because it knows what is breaking change vs minor vs patch - entity history - because entities are tracked independently, file renames or moves dont affect the entity's history

when gotreesitter cant parse a language, the 3way text merge happens as a fallback. what the structural merge enables is no conflicts unless same entity has conflicting changes

Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @02:12PM (#47156310)
thanks so much for the note! i really appreciate it. i built this precisely for folks like yourself with this specific pain, thanks again!
Re:Show HN: I ported Tree-sitter to Go on Wednesday February 25, 2026 @02:11PM (#47156289)
oh wow! i really thought i was being too clever but i shouldve assumed nothing new under the sun. well im taking name suggestions now!

Show HN: I ported Tree-sitter to Go

https://github.com/odvcencio/gotreesitter

This started as a hard requirement for my TUI-based editor application, it ended up going in a few different directions.A suite of tools that help with semantic code entities: https://github.com/odvcencio/gts-suiteA next-gen version control system called Got: https://github.com/odvcencio/gotI think this has some pretty big potential! I think there's many classes of application (particularly...

( Read More... | 107 comments | 128 points | on HN )