frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ty: A fast Python type checker and LSP

https://astral.sh/blog/ty
142•gavide•2h ago

Comments

Ch00k•1h ago
That's great news! TIL that ty is also a language server, which means it replaces not only mypy, but also Pyright in Neovim/VSCode.
modeless•1h ago
The title of this story should be "Announcing the Beta release of ty". A lot of people have been waiting for the beta specifically.

I've been using Pyrefly and loving it compared to Pyright, but they recently shipped some updates with crash bugs that forced me to pin to a previous version, which is annoying. Unfortunately my first impression of ty isn't great either. Trying to install the ty extension on the current version of Cursor says "Can't install 'astral-sh.ty' extension because it is not compatible with the current version of Cursor (version 2.2.20, VSCode version 1.105.1)."

charliermarsh•55m ago
If there's anything else accompanying the error, do you mind filing an issue? I've been using the ty extension with Cursor for weeks and am having trouble reproducing right now.
modeless•53m ago
That's the full error. It shows up in a dialog box when I press the install button. I'm on macOS, connected with the Anysphere Remote SSH extension to a Linux machine.

If I choose "install previous version" I am able to install the pre-release version from 12 hours ago without issue. Then on the extension page I get a button labeled "Switch to Release Version" and when I press it I get an error that says "Can't install release version of 'ty' extension because it has no release version." Filed a GitHub issue with these details.

In the meantime, the previous version appears to be working well! I like that it worked without any configuration. The Pyrefly extension needed a config tweak to work.

_carljm•35m ago
I can reproduce this; we're looking into it.
_carljm•23m ago
https://forum.cursor.com/t/newly-published-extensions-appear... suggests that there's some kind of delayed daily update for new VSCode extension versions to become available to Cursor? It seems likely that's what is happening here, since ty-vscode 0.0.2 was only published an hour or two ago.
modeless•15m ago
Oh, huh, and since there's no previous release version it just fails to install completely? That's unfortunate.
frou_dh•46m ago
Hopefully it gets added to this comparison:

https://htmlpreview.github.io/?https://github.com/python/typ...

If that table is anything to go by, Pyright is not to be underestimated.

I have briefly tried ty (LSP) in Emacs and it seems to work well so far. The only questionable thing I've encountered is that when the signature of a method is shown, the type annotations of some parameters seem to be presented in a particularly verbose form compared to what I'm used to - maybe they're technically correct but it can be bit much to look at.

Anyway, odds are pretty good that ty is what I will end up using long-term, so thanks and congrats on releasing the first beta!

_carljm•40m ago
We'll be adding ourselves to that table soon. We'll have some work to catch up with pyright on conformance, but that's what the time between now and stable release is for.
IshKebab•29m ago
Pyright is really really good. Anyone that doubts that 10x engineers exist, just go and look at Eric Traut. He's pretty much written it single handedly. Absolute machine.

Mypy is trash. Nice to have a table to point to to prove it.

buibuibui•21m ago
Oh my, I just looked him up. He is the developer of Virtual Game Station - a PS1 emulator that I used in the past to play PS Isos on my Windows ME PC! What a legend.
progbits•19m ago
pyright is very good, but there is also https://docs.basedpyright.com/latest/ which improves on it further.

That said I'm very happy user of uv, so once Ty becomes ready enough will be happy to migrate.

maxloh•44m ago
How conformant is this, compared to e.g. mypy?
danudey•8m ago
FWIW MyPy is not very conformant: https://htmlpreview.github.io/?https://github.com/python/typ...
almanael•36m ago
Not impressed because when tried ruff, and discovered that it doesn't replace (basic) pylint check https://github.com/astral-sh/ruff/issues/970 so we have ruff then pylint (and looking at the number of awaiting PR of ruff feels bad)
zanie•34m ago
As noted in the linked issue

> At time of writing, many of the remaining rules require type inference and/or multi-file analysis, and aren't ready to be implemented in Ruff.

ty is actually a big step in this direction as it provides multi-file analysis and type inference.

(I work at Astral)

f311a•35m ago
Too bad they did not benchmark Zuban, which is also promising.

Also, it's also too bad we have three competing fast LSP/typechecker projects now We had zero 1 year ago.

iamdanieljohns•5m ago
The guy behind Zuban should've put his project out the in open way earlier. I'd love to see both projects succeed, but in reality it should become one.
Svoka•25m ago
Very excited to see this. I thought that speed does not matter much for python tooling, but then I tried uv, and realized that I was wrong. The experience is just better. Looking forward to see more high performance quality tooling for Python.
tabbott•22m ago
Very exciting! I guess I'll have to wait for Django and Pydantic support to migrate to it on Zulip, but type checking was the last major linter that's still slow in Python.
Zababa•18m ago
Beautiful acknowledgment list, and congratulations on the beta release!
klysm•15m ago
I really hope astral can monetize without a highly destructive rugpull, because they are building great tools and solving real problems.
tabbott•4m ago
Yeah their work thus far has been an incredible public service to the Python community.
pansa2•8m ago
I still don’t understand how a single language can have multiple (what is it now, half a dozen?) different type checkers, all with different behaviour.

Do library authors have to test against every type checker to ensure maximum compatibility? Do application developers need to limit their use of libraries to ones that support their particular choice of type checker?

WD-42•5m ago
You’re talking about a duck typed language with optional type annotations. I love python but that’s a combination that should explain a bit why there are so many different implementations.
mirashii•1m ago
> Do library authors have to test against every type checker to ensure maximum compatibility?

Yes, but in practice, the ecosystem mostly tests against mypy. pyright has been making some inroads, mostly because it backs the diagnostics of the default VS Code Python extension.

> Do application developers need to limit their use of libraries to ones that support their particular choice of type checker?

You can provide your own type stubs instead of using the library's built-in types or existing stubs.

Space Data Center SIM

https://astrocompute.dev/
1•printerlover•43s ago•0 comments

Learning a new programming language with an LLM

https://feeding.cloud.geek.nz/posts/learning-new-programming-language-with-ai/
1•edward•1m ago•0 comments

Role of anthropogenic climate change in wildfire smoke concentrations in the US

https://www.pnas.org/doi/10.1073/pnas.2421903122
1•bikenaga•2m ago•0 comments

Microplastic exposure is associated with epigenomic effects in model organism

https://pubmed.ncbi.nlm.nih.gov/38742563/
2•donsupreme•3m ago•0 comments

Dafny: Verification-Aware Programming Language

https://dafny.org/
1•handfuloflight•4m ago•0 comments

Efficient Dockerfile templating for complex build scenarios

https://gagor.pro/2025/01/efficient-dockerfile-templating-for-complex-build-scenarios/
1•___timor___•6m ago•0 comments

I Ported JustHTML from Python to JavaScript with Codex CLI and GPT-5.2 in 4.5h

https://simonwillison.net/2025/Dec/15/porting-justhtml/
1•pbowyer•6m ago•0 comments

Google Fi Web Calls

https://fi.google.com/webcalls/calls
1•pcvetkovski•7m ago•0 comments

Launching ChinaRxiv, an automated translation pipeline of all Chinese preprints

https://twitter.com/seconds_0/status/2000606845644505093
1•Anon84•14m ago•0 comments

The "Commons Clause" License Condition

https://commonsclause.com/
1•Kerrick•22m ago•0 comments

Show HN: BoardSpace – AI that draws on a whiteboard in realtime for Calculus

https://www.useboardspace.com/
1•jonnotdoe•22m ago•1 comments

Texas sues biggest TV makers, alleging smart TVs spy on users without consent

https://arstechnica.com/tech-policy/2025/12/texas-sues-biggest-tv-makers-alleging-smart-tvs-spy-o...
9•c420•24m ago•7 comments

The Disappointing Truth About Wi-Fi 7: Multi-Link Operation Isn't Here Yet

https://www.rtings.com/router/learn/research/wifi-7-mlo
1•dokeeffe•24m ago•1 comments

Using Cursor's Bugbot to Spot Issues Early in Pull Requests

https://medium.com/@ali-dev/using-cursor-bugbot-to-spot-issues-early-0cdc142fbaff
1•stringtoint•25m ago•0 comments

The Writer Who Dared Criticize Silicon Valley

https://www.nytimes.com/2025/11/27/technology/writer-silicon-valley-criticism.html
3•petethomas•29m ago•0 comments

Show HN: Calm Companies – Businesses where less is more

https://calmcompanies.club
3•RaulOnRails•29m ago•1 comments

Glycemic index, glycemic load, and risk of dementia

https://academic.oup.com/ije/article-abstract/54/6/dyaf182/8313011?redirectedFrom=fulltext
1•bikenaga•31m ago•1 comments

What the Soviets Found on Venus

https://vinyasi.substack.com/p/what-the-soviets-found-on-venus
2•vinyasi•31m ago•0 comments

Write a Simple Code Agent using moonbitlang/async

https://www.moonbitlang.com/blog/moonbit-async-code-agent
1•necrodome•32m ago•0 comments

Read and Learn: open-source language learning app

https://readandlearn.app/
1•waveywaves•35m ago•1 comments

Breach at South Korea's Equivalent of Amazon Exposed Data of Almost Every Adult

https://www.wsj.com/world/asia/breach-at-south-koreas-equivalent-of-amazon-exposed-data-of-almost...
5•bookofjoe•36m ago•1 comments

Nicholas Deak

https://en.wikipedia.org/wiki/Nicholas_Deak
1•petethomas•36m ago•0 comments

Show HN: The Mirsky Ratio–Measuring R&D vs. SG&A as a predictor of S&P 100

https://substack.com/inbox/post/181826707
2•TheMirskyLimit•37m ago•1 comments

Who has enjoyed using PR code reviewers? What worked and what didn’t?

2•yashwantphogat•37m ago•1 comments

UK to rejoin EU's Erasmus student exchange programme

https://www.theguardian.com/world/2025/dec/16/uk-to-rejoin-eu-erasmus-student-exchange-programme
5•sandbach•38m ago•0 comments

Wall Street banks prepare for round-the-clock stock trading, reluctantly

https://www.reuters.com/business/finance/wall-street-banks-prepare-round-the-clock-stock-trading-...
3•gardncl•38m ago•0 comments

Director of MIT's Plasma and Fusion Center, Dies at 47

https://news.mit.edu/2025/nuno-loureiro-professor-director-plasma-science-and-fusion-center-dies-...
3•jacobedawson•41m ago•1 comments

Manifesto for AI Software Development: Code Is Cattle, Not Pets

https://metamagic.substack.com/p/manifesto-for-ai-software-development
1•r0ze-at-hn•43m ago•1 comments

Adding type-safe structs to Lua

https://if-not-nil.github.io/lua-structs/
1•qwool•43m ago•0 comments

Classify website content using text and screenshot

https://github.com/themains/piedomains
1•neehao•45m ago•0 comments