frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Anyone doing production image editing with Image models? How?

1•geooff_•1m ago•0 comments

Claude Code Outage: Auth Issues

https://status.claude.com/incidents/58sxy43h7kvf
2•joshcsimmons•3m ago•1 comments

Show HN: Text-to-video model from scratch (2 brothers, 2 years, 2B params)

https://huggingface.co/collections/Linum-AI/linum-v2-2b-text-to-video
2•schopra909•3m ago•0 comments

Show HN: BrowserOS – "Claude Cowork" in the browser (open source)

https://github.com/browseros-ai/BrowserOS
4•felarof•4m ago•0 comments

Ax Not UX

https://www.robkopel.me/field-notes/ax-agent-experience/
3•robkop•4m ago•1 comments

Kellblog Predictions for 2026

https://kellblog.com/2026/01/22/kellblog-predictions-for-2026/
2•markoa•4m ago•0 comments

Ubisoft cancels six games including Prince of Persia and closes studios

https://www.bbc.co.uk/news/articles/c6200g826d2o
4•piqufoh•5m ago•0 comments

How do you think about pricing and monetization for your AI product?

1•AmeliaWampler•7m ago•0 comments

Draig, a Welsh Programming Language

https://raku.land/zef:l10n/L10N::CY
1•librasteve•7m ago•1 comments

Miami, Your Waymo Ride Is Ready

https://waymo.com/blog/2026/01/miami-your-waymo-ride-is-ready
3•ChrisArchitect•8m ago•1 comments

The Forwardable Email

https://pointc.co/the-forwardable-email/
1•hampelm•9m ago•0 comments

Canada's General Fusion to go public

https://www.axios.com/pro/climate-deals/2026/01/22/general-fusion-1b-spac
1•leopoldj•9m ago•0 comments

Quiz Genius – AI Flashcards

https://quizgenius.app/en/
1•SFGWisdow•9m ago•0 comments

Stealing Isn't Innovation – America's creative community message against AI

https://www.stealingisntinnovation.com
1•giuliomagnifico•10m ago•0 comments

Yann LeCun's New Venture

https://www.technologyreview.com/2026/01/22/1131661/yann-lecuns-new-venture-ami-labs/
1•leopoldj•11m ago•0 comments

Show HN: ManagerList Is Now Live

https://managerlist.com/
1•miketu•11m ago•0 comments

Lessons in Changemaking from a Peace Corps '40 Under 40'

https://www.whitman.edu//whitman-stories/whitman-magazine/winter-2026/good-food-and-good-business...
1•mooreds•11m ago•0 comments

Dynamical simulations of many-body quantum chaos on a quantum computer

https://arxiv.org/abs/2411.00765
1•rbanffy•11m ago•0 comments

S-v-g.xyz: Vector Drawing Photobooth

https://www.s-v-g.xyz/
1•evakhoury•11m ago•0 comments

What Is the University For? – Remaining Human in the Transition to LLMs

https://comment.org/what-is-the-university-for/
2•culturalgeology•12m ago•1 comments

The Five Levels of PHP 8.5 Pipes

https://alganet.github.io/blog/2026-01-22-11-The-Five-Levels-of-PHP-8-5-Pipes.html
1•gaigalas•13m ago•0 comments

The State of European Tech 2025

https://www.stateofeuropeantech.com/
1•gmays•15m ago•0 comments

TranslateGemma: A new family of open translation models

https://blog.google/innovation-and-ai/technology/developers-tools/translategemma/
1•tosh•16m ago•0 comments

Enable Smoother 120Hz Browsing in Safari

https://www.macrumors.com/how-to/enable-smoother-120hz-browsing-in-safari/
1•tosh•18m ago•0 comments

Show HN: It took us 4 months to realize that users wanted charts, not text

https://chartgen.ai
1•cenrunzhe•18m ago•0 comments

Threads Feed Will Show Ads Soon, May Start Next Week

https://www.pcmag.com/news/your-threads-feed-will-show-ads-soon-may-start-next-week?test_uuid=04I...
3•el_duderino•19m ago•1 comments

I used AI to 3D print a tiny figurine of myself

https://www.zdnet.com/article/i-used-ai-to-3d-print-a-mini-me/
2•Owlsfordays•21m ago•0 comments

Why Intel stopped making motherboards

https://dfarq.homeip.net/why-intel-stopped-making-motherboards/
1•zdw•21m ago•0 comments

Running a tiny GPT on the client-side

https://code-labeler.vercel.app/
2•tmickleydoyle•21m ago•0 comments

Zack Polanski to hand in NHS contract termination notice to Palantir

https://www.thecanary.co/uk/news/2026/01/22/zack-polanski-to-hand-in-nhs-contract-termination-not...
13•robtherobber•21m ago•3 comments
Open in hackernews

Tree-sitter vs. Language Servers

https://lambdaland.org/posts/2026-01-21_tree-sitter_vs_lsp/
67•ashton314•1h ago

Comments

tetris11•1h ago
I love tree-sitter+eglot but a few of the languages/schemes I work in, simply don't have parsers:

    > pacman -Ssq tree-sitter
    tree-sitter
    tree-sitter-bash
    tree-sitter-c
    tree-sitter-cli
    tree-sitter-javascript
    tree-sitter-lua
    tree-sitter-markdown
    tree-sitter-python
    tree-sitter-query
    tree-sitter-rust
    tree-sitter-vim
    tree-sitter-vimdoc

Where's R, YAML, Golang, and several others?
taeric•1h ago
Odd, yaml-ts-mode exists? Did they change how it gets its parser?
codethief•1h ago
Uhh… The fact that there's no Archlinux package for a given language doesn't imply there's no tree-sitter support (official or 3rd-party) for that language? See e.g. the very long list of languages on https://github.com/Goldziher/tree-sitter-language-pack , which does include R, YAML, Golang, and many more.
woodruffw•1h ago
tree-sitter-yaml definitely exists[1]. Presumably nobody has packaged it for Arch yet; that seems like a thing you could contribute.

[1]: https://github.com/tree-sitter-grammars/tree-sitter-yaml

_ache_•47m ago
It's in the AUR (aur/tree-sitter-yaml), a community-driven repository of Arch Linux packages. Not yet official.

Since it comes from `tree-sitter-grammars/tree-sitter-yaml`, it may be quick to integrate the official repo.

matthew-craig•1h ago
In my emacs configuration, I have the following parsers installed:

awk bash bibtex blueprint c c-sharp clojure cmake commonlisp cpp css dart dockerfile elixir glsl gleam go gomod heex html janet java javascript json julia kotlin latex lua magik make markdown nix nu org perl proto python r ruby rust scala sql surface toml tsx typescript typst verilog vhdl vue wast wat wgsl yaml

johanvts•59m ago
Go is here: https://github.com/tree-sitter/tree-sitter-go Try google, the others are probably out there as well.
jasonjmcghee•47m ago
Most of them are in the language pack (https://github.com/Goldziher/tree-sitter-language-pack)

For others, this is a sub optimal answer, but I’ve played with generating grammars with latest llms and they are surprisingly good at doing this (in a few shots).

That being said, if you’re doing something more serious than syntax highlighting or shipping it in a product, you’ll want to spend more time on it.

zokier•43m ago
https://tree-sitter.github.io/tree-sitter/#parsers

https://github.com/tree-sitter/tree-sitter/wiki/List-of-pars...

FjordWarden•58m ago
This is like the difference between an orange and fruit juice. You can squeeze an orange to extract its juices, but that is not the only thing you can do with it, nor is it the only way to make fruit juice.

I use tree-sitter for developing a custom programming language, you still need an extra step to get from CST to AST, but the overall DevEx is much quicker that hand-rolling the parser.

danielvaughn•48m ago
Every time I get to sing Treesitters praise, I take the opportunity to. I love it so much. I've tried a bunch of parser generators, and the TS approach is so simple and so good that I'll probably never use anything else. The iteration speed lets me get into a zen-like state where I just think about syntax design, and I don't sweat the technical bits.
lowbloodsugar•22m ago
N00b question: Language parsers gives me concrete information, like “com.foo.bar.Baz is defined here”. Does tree sitter do that or does it say “this file has a symbol declaration for Baz” and elsewhere for that file “there is a package statement for ‘com.foo.bar’” and then I have to figure that out?
FjordWarden•3m ago
You have to figure this out for yourself in most cases. Tree sitter does have a query language based on s-expressions, but it is more for questions like "give me all the nodes that are literals", and then you can, for example, render those with in single draw call. Tree sitter has incremental parsing, and queries can be fixed at a certain byte range.
lioeters•16m ago
> extra step to get from CST to AST

Could you elaborate on what this involves? I'm also looking at using tree-sitter as a parser for a new language, possibly to support multiple syntaxes. I'm thinking of converting its parse trees to a common schema, that's the target language.

I guess I don't quite get the difference between a concrete and abstract syntax tree. Is it just that the former includes information that's irrelevant to the semantics of the language, like whitespace?

mattnewport•10m ago
Yeah, you can even use tree-sitter to implement a language server, I've done this for a custom scripting language we use at work.
KlayLay•54m ago
Side note, but thanks for the note about not using AI to write your articles. I'm tired of looking for information online, finding an article that may answer it, and not being sure about the author's integrity (this is so rampant on Medium).
briaoeuidhtns•36m ago
I think the big reason to put syntax highlighting in the language server is you have more info, ex you can highlight symbols imported from a different file in one color for integers and a different for functions
mickeyp•26m ago
Tree-sitter is great. It powers Combobulate in Emacs. Structured editing and movement would not have been easily done without it.
Fiveplus•3m ago
>It is possible to use the language server for syntax highlighting. I am not aware of any particularly strong reasons why one would want to (or not want to) do this.

The strong reason is latency and layout stability. Tree-sitter parses on the main thread (or a close worker) typically in sub-ms timeframes, ensuring that syntax coloring is synchronous with keystrokes. LSP semantic tokens are asynchronous by design. If you rely solely on LSP for highlighting, you introduce a flash of unstyled content or color-shifting artifacts every time you type, because the round-trip to the server (even a local one) and the subsequent re-tokenization takes longer than the frame budget (16ms).

The ideal hygiene could be something like -> tree-sitter provides the high-speed lexical coloring (keywords, punctuation, basic structure) instantly and LSP paints the semantic modifiers (interfaces vs classes, mutable vs const) asynchronously like 200ms later. Relying on LSP for the base layer makes the editor feel sluggish.