Live data from Hacker News

Show HN: I ported Tree-sitter to Go

github.com

41–50 of 116 posts

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

#41
post #38

Earlier quoted context omitted.

How is OP using Claude relevant?

OK for prototyping. Not OK for prod use if noone actually read it line by line.

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

#42

Claude attempted a treesitter to go port Better title

How is OP using Claude relevant?

AI often produces nonsense that a human wouldn't. If a project was written using AI the chances that it is a useless mess are significantly higher than if it was written by a human.

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

#45

Do you have an equivalent of TreeCursors or tree-sitter-generate? There are at least some use cases where neither queries nor walks are suitable. And I have run into cases where being able to regenerate and compile grammars on the fly is immeasurably helpful. At least for my use cases, this would be unusable. Also, what the hell is this: > partial [..] missing external scanner Why do you have a parsing mode that guar…

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

So your benchmarks are primarily just “how fast is go’s c interop” rather than any algorithmic improvement on tree-sitter?

Edit: yep, you are just calling a c function in a loop. So your no-op benchmark is just the time it takes for cgo to function. I would not be able to get any perf benefits from e.g. rust

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

#46
post #31

Claude attempted a treesitter to go port Better title

I work on a revision control system project, except merge is CRDT. On Feb 22 there was a server break-in (I did not keep unencrypted 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, bec…

Wait, are you suggesting that OP broke in to your server and stole code and is republishing it as these repos?

I have questions. Have you reviewed the code here to see if it matches? What, more specifically, do you mean when you say someone broke in? What makes you think that this idea (which is nice but not novel) is worth stealing? If that sounds snarky, it’s not meant to; just trying to understand what’s going on. Why is that more likely than someone using Claude to vibe up some software along the same lines?

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

#47

Claude attempted a treesitter to go port Better title

well how did it do?

Hard to say. Claude’s very good at writing READMEs. In fact, Copilot often complains about docs that sound like they’re about current capabilities when in fact they’re future plans or just plan aspirational.

Without downloading and testing out your software, how can we know if it’s any good? Why would we do that if it’s obviously vibed? The dilemma.

I’m not at all against vibe coding. I’m just pointing out that having a nice README is trivial. And the burden of proof is on you.

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

#49
post #31

Claude attempted a treesitter to go port Better title

I work on a revision control system project, except merge is CRDT. On Feb 22 there was a server break-in (I did not keep unencrypted 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, bec…

Also, evil maids, what?

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

#50
post #44
post #38

Earlier quoted context omitted.

OK for prototyping. Not OK for prod use if noone actually read it line by line.

That ship has sailed, man…

No it has not - if it had, there'd be no need to shout down folk who disagree.

Not everyone buys into the inevitabilism. Why should I read code "author" didn't bother to write?

Post reply on HN