frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I ported Tree-sitter to Go

https://github.com/odvcencio/gotreesitter
101•odvcencio•2h ago
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-suite

A next-gen version control system called Got: https://github.com/odvcencio/got

I think this has some pretty big potential! I think there's many classes of application (particularly legacy architecture) that can benefit from these kinds of analysis tooling. My next post will be about composing all these together, an exciting project I call GotHub. Thanks!

Comments

sluongng•1h ago
Oh this is really neat for the Bazel community, as depending on tree-sitter to build a gazelle language extension, with Gazelle written in Go, requires you to use CGO.

Now perhaps we can get rid of the CGO dependency and make it pure Go instead. I have pinged some folks to take a look at it.

odvcencio•1h ago
thanks so much for the note! i really appreciate it. i built this precisely for folks like yourself with this specific pain, thanks again!
3rly•1h ago
Wouldn't `got` be confused with OpenBSD's Got: https://gameoftrees.org/index.html
odvcencio•1h ago
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!
boobsbr•1h ago
Goty McGotface
sbankowi•53m ago
YAGOT (Yet Another GOT)
bityard•34m ago
Probably taken already, better use YAGOT-NG (Next Generation) just to be safe.
himata4113•25m ago
might be taken too so just YAGOT2 would work
Imustaskforhelp•37m ago
uGOT / uGOTme? (sort of like the idea behind uTorrent) but I will agree that sbankowi's idea of Yet another got is great as well. +1 to that as well.
allknowingfrog•36m ago
Well, find and sed have modern "fd" and "sd" alternatives. Naming it "gt" allows you to claim that your version save 33% compared to typing "git".
gritzko•51m ago
That is very very interesting. I work on a similar project https://replicated.wiki/blog/partII.html

I use CRDT merge though, cause 3-way metadata-less merges only provide very incremental improvements over e.g. git+mergiraf.

How do you see got's main improvement over git?

odvcencio•37m ago
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

odvcencio•33m ago
gah,. sincere apologies for formatting of this post. i ahve been on HN for basically 10 years now without ever having made a post (:
dorianmariecom•28m ago
use four spaces " " in front of a line for <pre> formatting

    like "    this"
srcreigh•26m ago
It's 2 or more spaces, not four
gritzko•33m ago
I think I understand the situation.
skybrian•45m ago
How about making 'got' compatible with git repos like jujutsu? It would be a lot easier to try out.
odvcencio•35m ago
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)
irishcoffee•34m ago
Is it a go-ism that source for implementation and test code lives in the root of the repo or is this an LLM thing?
odvcencio•30m ago
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
jbreckmckye•28m ago
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

odvcencio•22m ago
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
jbreckmckye•20m ago
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!

odvcencio•18m ago
re: up to date grammars, yes i found the official grammars in use by the original tree-sitter library today
conartist6•25m ago
It looks like porting the custom C lexers is a big part of the trouble you had to go to do this.
odvcencio•19m ago
yes basically about 70% of the engineering effort was spent porting the external scanners and ensuring parity with original (C) tree-sitter
acedTrex•11m ago
Claude attempted a treesitter to go port

Better title

odvcencio•8m ago
well how did it do?
red_hare•6m ago
How is OP using Claude relevant?
DeepYogurt•5m ago
maintenance burden
gritzko•5m ago
I work on a similar project, except merge is CRDT. On Feb 22 there was a server break-in (I did not keep sources on the client, server login was YubiKey only, but that is not 100% guarantee). I reported break-in to my Telegram channel that day.

My design docs https://replicated.wiki/blog/partII.html

I used tree-sitter for coarse AST. Some key parts were missing from the server as well, because I expected problems (had lots of adventures in East Asia, evil maids, various other incidents on a regular basis).

Breakthrough Study Shows Sound Stimulation May Help Clear Alzheimer's Plaques

https://scitechdaily.com/breakthrough-study-shows-sound-stimulation-may-help-clear-alzheimers-pla...
1•donsupreme•27s ago•0 comments

Mike Little: the British co-founder of WordPress you've probably never heard of

https://25.netribution.co.uk/nic/mike-little-the-british-co-founder-of-wordpress-youve-probably-n...
1•mwenge•1m ago•0 comments

Magnavox Odyssey 2 – By Paul Lefebvre

https://www.goto10retro.com/p/magnavox-odyssey-2
1•rbanffy•1m ago•0 comments

Show HN: Vaulty, sync your chats to the cloud for AI to read (iMessage/WhatsApp)

https://github.com/felipap/vaulty
1•felipap•2m ago•0 comments

Lose Myself

https://www.eod.com/blog/2026/02/lose-myself/
1•speckx•3m ago•0 comments

Show HN: Upjack – Declarative framework for building apps over MCP

https://github.com/NimbleBrainInc/upjack
1•barefootsanders•4m ago•0 comments

Show HN: Aniframe- AI Powered Cartoon E-Ink Picture Frame

https://justusdevs.substack.com/p/aniframe-love-animated
1•floydhead01•5m ago•0 comments

Squad – AI agent teams. A team that grows with your code. (GitHub Copilot CLI)

https://github.com/bradygaster/squad
1•cdisns•6m ago•0 comments

RK3588 and RK3576 video decoders support merged in the upstream Linux Kernel

https://www.collabora.com/news-and-blog/news-and-events/rk3588-and-rk3576-video-decoders-support-...
1•losgehts•7m ago•0 comments

Did anyone here use EyeEm before it shut down?

https://www.diyphotography.net/eyeem-closure-2026-migrate-freepik/
1•nemath•7m ago•1 comments

SpacetimeDB ThreeJS Support

https://discourse.threejs.org/t/spacetimedb-threejs-support-and-free-tier/90052
1•ryker2000•8m ago•1 comments

Show HN: SocialCompute – Local LLM social simulation engine

https://www.socialcompute.dev/
1•dev_marcospimi•9m ago•0 comments

Show HN: Claude-PR-reviewer – AI code review in GitHub Actions (BYOK)

https://github.com/indoor47/claude-pr-reviewer
1•adamrunboy•11m ago•0 comments

Jimi Hendrix Was a Systems Engineer

https://spectrum.ieee.org/jimi-hendrix-systems-engineer
6•tintinnabula•12m ago•1 comments

How Not to Measure the ROI from AI in Your Software Organization

https://www.fightforthehuman.com/how-not-to-measure-the-roi-from-ai-in-your-software-organization/
1•speckx•12m ago•0 comments

Your Everyday Companion

https://www.crowdsupply.com/meterbit-cybernetics/pixlpal
2•fustinus•17m ago•0 comments

Refine

https://www.grumpy-economist.com/p/refine
2•paulpauper•17m ago•0 comments

PA Bench: Evaluating Frontier Models on Multi-Tab Pa Tasks

https://vibrantlabs.com/blog/pa-bench
2•shahules•17m ago•0 comments

Neuroscientists identified brain circuitry behind hesitation

https://theconversation.com/hesitation-is-costly-in-sports-but-essential-to-life-neuroscientists-...
3•PaulHoule•17m ago•0 comments

Show HN: A CLI to query the unsealed court files with local LLMs

https://github.com/simulationship/epstein-search
2•simulationship•17m ago•0 comments

The Macroeconomic Effects of Tariffs: Evidence from U.S. Historical Data

https://www.nber.org/papers/w34852
2•paulpauper•18m ago•1 comments

Early Signals: How is AI reshaping the labor market?

https://labor.mattzieger.com/
2•donohoe•18m ago•0 comments

Local Prosecutors and Public Health

https://drive.google.com/file/d/1aEfIlS943SwbDytdghTdFeWc49dws7yw/view
2•paulpauper•19m ago•0 comments

Reverse engineering the KakaoTalk app so I can build a Beeper Bridge

https://jusung.dev/posts/kakao-talk-is-making-me-local/
4•badeeya•19m ago•0 comments

Google Pixel 10a

https://blog.google/products-and-platforms/devices/pixel/google-pixel-10a/
2•tosh•19m ago•1 comments

Firefox pwn2own 2025 documentary part 2 [video]

https://www.youtube.com/watch?v=uXW_1hepfT4
2•todsacerdoti•20m ago•0 comments

Intrinsic joins Google to accelerate the future of physical AI

https://www.intrinsic.ai/blog/posts/intrinsic-joins-google-to-accelerate-physical-ai
2•kscottz•20m ago•0 comments

Anthropic is claiming that SWEs will go away, but hiring more SWEs than ever

https://old.reddit.com/r/cscareerquestions/comments/1refayi/i_tracked_job_openings_at_anthropic_f...
3•MontyCarloHall•20m ago•0 comments

How Much Does It Cost to Hit #1 on Product Hunt in 2026?

https://smales.com/blog/how-much-does-it-cost-to-hit-1-on-product-hunt-in-2026.html
2•andrewcastmate•21m ago•0 comments

Divorce, Beijing Style

https://www.lrb.co.uk/the-paper/v48/n04/long-ling/diary
4•mitchbob•22m ago•1 comments