frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Pixel Watch 4 Launches with Satellite SOS: Hands-On

https://www.dcrainmaker.com/2025/08/google-pixel-watch-4-everything-you-need-to-know.html
1•nradov•16s ago•0 comments

Serbian scientists experiment with mealworms to degrade polystyrene

https://www.reuters.com/sustainability/climate-energy/serbian-scientists-experiment-with-mealworms-degrade-polystyrene-2025-08-20/
1•petethomas•37s ago•0 comments

HTTP/2 implementations are vulnerable to "MadeYouReset" DoS attack

https://kb.cert.org/vuls/id/767506
1•karussell•1m ago•0 comments

Tim O'Reilly – Is AI a "Normal Technology"?

https://www.oreilly.com/radar/is-ai-a-normal-technology/
1•rmason•5m ago•0 comments

Vikings were captivated by silver – analysis reveals how far they travelled

https://theconversation.com/vikings-were-captivated-by-silver-our-new-analysis-of-their-precious-loot-reveals-how-far-they-travelled-to-get-it-263222
1•zeristor•5m ago•0 comments

Recreationally overengineering my Location History

https://overengineer.dev/blog/2025/08/19/overengineering-location-history/
1•kickofline•5m ago•0 comments

What Happens When a Generation of Scientists Changes Its Mind

https://www.scientificamerican.com/article/what-happens-when-an-entire-scientific-field-changes-its-mind/
1•CharlesW•6m ago•0 comments

Show HN: 1999date – Dating Like It's 1999

https://1999date.com
2•DavCreator•7m ago•0 comments

New zero-day startup offers $20M for tools that can hack any smartphone

https://techcrunch.com/2025/08/20/new-zero-day-startup-offers-20-million-for-tools-that-can-hack-any-smartphone/
2•kingforaday•7m ago•0 comments

Pope Leo to share papal apartments with 'flatmates'

https://thecatholicherald.com/article/pope-leo-to-share-papal-apartments-with-flatmates
1•Michelangelo11•8m ago•0 comments

Wavacity – Online Audio Editor Based on Audacity

https://wavacity.com/
1•janandonly•9m ago•0 comments

Vienna has been declared a renters' utopia – here's why

https://www.theguardian.com/commentisfree/2025/jul/10/housing-crisis-in-europe-vienna-renters-social-housing
1•drankl•11m ago•0 comments

Moving Money Isn't the Same as Building a Business

https://www.anildash.com/2025/08/20/moving_money_ain%E2%80%99t_building_a_business/
3•sealeck•13m ago•0 comments

Stephanie Shirley, Who Created a Tech World for Women, Dies at 91

https://www.nytimes.com/2025/08/20/business/stephanie-shirley-dead.html
2•donohoe•13m ago•0 comments

Let `jj absorb` help you keep a clean commit history

https://www.pauladamsmith.com/blog/2025/08/jj-absorb.html
3•todsacerdoti•13m ago•0 comments

The CodeRabbit exploit: proof that "boring mistakes" cause big security failures

https://railsfever.com/blog/security-best-practices-web-apps-lessons-coderabbit-exploit/
1•quantum_mech•13m ago•1 comments

Disco: Running Commodity Operating Systems on Scalable Multiprocessors [pdf]

https://lass.cs.umass.edu/~shenoy/courses/fall07/papers/disco.pdf
1•rbanffy•16m ago•0 comments

Oregon Man Accused of Operating One of Most Powerful Attack 'Botnets' Ever Seen

https://www.wsj.com/tech/oregon-man-accused-of-operating-one-of-most-powerful-attack-botnets-ever-seen-380b2caf
2•voxadam•17m ago•1 comments

iOS/iPadOS/macOS updates fix actively exploited ImageIO memory corruption

https://support.apple.com/en-us/124925
2•tech234a•17m ago•0 comments

In defence of the Online Safety Act

https://thecritic.co.uk/in-defence-of-the-online-safety-act/
1•drankl•17m ago•0 comments

Becoming Capable

1•JosephForesight•19m ago•0 comments

Cycle-Accurate 8088 Emulation [video]

https://www.youtube.com/watch?v=qatzd0niz9A
1•matt_d•20m ago•0 comments

UNIX: A History and a Memoir by Brian Kernighan [video]

https://www.youtube.com/watch?v=WEb_YL1K1Qg
2•matt_d•22m ago•0 comments

Why American painter Lois Dodd is finally getting her dues at 98

https://www.ft.com/content/705c3cbf-b5f6-4bb5-bca3-893236505353
2•drankl•23m ago•0 comments

Show HN: I built a tool to convert WhatsApp chats to PDF

https://chattopdf.app
1•gprogrammer1•24m ago•0 comments

Nuclear can dial down/up 80% on hourly basis

https://www.ft.com/content/22a594a0-39a4-4f4e-9f4f-e32c4905119d
2•julcol•28m ago•3 comments

Record Label Is Trying to Silence Me

https://www.youtube.com/watch?v=zBq_krhKbW4
2•belter•30m ago•2 comments

The Four Dimensions of Tone of Voice

https://www.nngroup.com/articles/tone-of-voice-dimensions/
1•handfuloflight•31m ago•0 comments

Learn the Basics of Synthesizers

https://learningsynths.ableton.com/en/get-started
1•interweb•31m ago•0 comments

Stop Fighting Housing Development vs. Flood Control: Houston vs. Jersey City

https://www.governance.fyi/p/stop-fighting-housing-development
2•guardianbob•32m ago•1 comments
Open in hackernews

An Update on Pytype

https://github.com/google/pytype
104•mxmlnkn•4h ago

Comments

md3911027514•4h ago
Pytype was cool before Python type annotations became widespread. It seems to me like the industry is naturally moving toward native type annotations and linters and away from static analyzers like Pytype and mypy.
underdeserver•3h ago
Pytype and mypy check native annotations.
md3911027514•2h ago
Well yes but with native annotations the linter you’re already using can do a lot of the type checking work so for many teams it’s not worth it to add Pytype or mypy
underdeserver•3h ago
I think this is for the best.

I used Pytype at Google years ago and while it's well written and the team was responsive, ultimately Python is not well suited for type checking Python. It's compute intensive.

I think the Ty people at Astral have the correct idea, and hope it'll work out.

https://docs.astral.sh/ty/

zhikanbumai•3h ago
In theory, nothing prevents the pytype team at Google to develop a new backend in a different language.

In practice, there is no longer a pytype team at Google [https://news.ycombinator.com/item?id=40171125], which I suspect is the real reason for the discontinuation.

ASinclair•2h ago
There is still a team within Google in charge of this space.
comex•2h ago
To be fair, even if there is/were a team, I don’t know that writing a new backend from scratch would be a good use of their time. pytype apparently started before mypy or any of the other Python type checkers existed. [1] But at this point there’s mypy, pyright, pyre/pyrefly, Ty, and probably more I’m not thinking of. It sounds more useful to collaborate with one of those existing projects than to write yet another new type checker.

Especially when, in my experience, each checker produces slightly different results on the same code, effectively creating its own slightly different language dialect with the associated fragmentation cost. In theory that cost could be avoided through more rigorous standardization efforts to ensure all the checkers work exactly the same way. But that would also reduce the benefit of writing a new type checker, since there would be less room to innovate or differentiate.

[1] https://news.ycombinator.com/item?id=19486938

zem•1h ago
there is a new python team, we met up with them at pycon and had some nice conversations. as a former pytype dev I will be the first to admit that maintaining it as a legacy project without the context of having developed it over the years would not have been a pleasant experience at all, but also pytype, while very powerful at what it did, definitely had some flaws that put it firmly in the last generation of type checkers.

the current generation (mostly ty and pyrefly right now, though major props to pyright for being ahead of the curve) is moving towards fast, incremental type checking with LSP integration, and pytype was never going to get there. it's fundamentally a slow, batch-based type checker, which will catch a lot of errors in your project, but which will never be usable as an incremental type checker within your ide. add that to the fact that it had a different philosophy of type checking from most of the other major checkers and you had users facing the issue that their code would be checked one way by pyright in the ide, and then a subtly different way by pytype in the CI pipeline.

I loved my time working on pytype, and I would like to see some of its features added to pyrefly, but it has definitely been superseded by now.

LtWorf•3h ago
I'm personally just staying away from startups anywhere in my dependencies.
vovavili•19m ago
The cost of your dogmatic preference is your Python experience being more miserable than it should be. Astral's ruff and uv are widely adopted for a good reason, and there is no reason to think that ty will come any different.
rhaps0dy•3h ago
I've heard of `ty` too but recently I learned about Pyrefly, which is not in pre-production alpha, and is also Rust: https://pyrefly.org/

Is there a good reason to avoid using Pyrefly?

jolux•3h ago
I believe Pyrefly is stricter, so it may be a better choice for new projects but harder to integrate into existing ones without type-checking.
denis-•1h ago
I have a medium-sized codebase that is all green when running mypy with the strictest configuration possible.

Pyrefly spits put around 200 errors for the same codebase.

Most errors are related to SQLAlchemy.

diggan•3h ago
> Is there a good reason to avoid using Pyrefly?

Wouldn't the other way around be easier for finding good tools? Figure out what matters to you, inspect if the project fulfills those needs and then go with it after making sure it works well for you.

Regardless, a comparison between the two was posted to HN not too long time ago: https://news.ycombinator.com/item?id=44107655

veber-alex•3h ago
https://github.com/facebook/pyrefly/releases

Pyrefly v0.29.0

Status : ALPHA

kubb•3h ago
Maybe they could do typechecking using an LLM agent? I'm sure they'd fund a team for that.
mudkipdev•2h ago
This is the way
delduca•3h ago
Another abandoned project from Google? Not surprised. Never trust on Google.
silentsea90•3h ago
Pytype is used heavily inside Google so they bear the penalty likely more than you. Besides, py typing libraries is a dynamically changing landscape so it isn't anything out of the norm. Not everything is an abandoned project, and if anything Google abandons some projects well after the winners and losers are apparent eg Tensorflow.
sito42•3h ago
astral bags another one
RS-232•3h ago
Is ty more mature than pyright or mypy?

I'm currently using pyright, but I'm going to migrate once ty and its vscode extension are given the "production ready" greenlight.

sito42•2h ago
at this stage I get very few false positives and it's so much easier to configure and use than pyright
denis-•1h ago
ty still doesn't understand match + typing.assert_never pattern, last barrier for me to switching.
jdlyga•2h ago
I'm surprised Google still maintained their own solution for this for so long. The standard for statically type checking Python nowadays is mypy.
ipsum2•2h ago
Mypy is far too slow to type check a codebase like Google's. That's why Facebook, Google, and Microsoft have/had their own solutions.
joshuamorton•2h ago
Google, Facebook, and Microsoft all maintain(ed) independent non-mypy typecheckers for internal and external uses that aren't served by mypy.

The various features mypy didn't support include speed, type inference/graduality, and partial checking in the presence of syntax errors (for linter/interactive usecases and code completion).

zem•1h ago
pytype had two features that made it uniquely suited to google's needs:

1. it had powerful type inference over partially or even completely unannotated code, which meant no one has to go back and annotate the very large pre-type-checking codebase.

2. it had a file-at-a-time architecture which was specifically meant to handle the large monorepo without trying to load an entire dependency tree into memory at once, while still doing cross-module analysis

there were a couple of attempts to get mypy running within google, but the impedance mismatch was just too great.

ccbncvnnccvbj•2h ago
Free fire 2018
froh•2h ago
in the related FAQ https://github.com/google/pytype/issues/1925 they point explicitly to the future:

> What alternatives can I consider? There are four Python static type checkers that can be considered: mypy and Pyright have been released to the community for a while and have well established user bases. Pyrefly, ty were announced recently at PyCon US 2025 and are in active development stage in the current time of August 2025 when this was written.

mypy - https://github.com/python/mypy

Pyright - https://github.com/microsoft/pyright

Pyrefly - https://github.com/facebook/pyrefly

ty - https://github.com/astral-sh/ty

zem•2h ago
ex-pytype dev here - we knew this was coming and it's definitely the right thing to do, but it's still a little sad to see the end of an era. in particular, pytype's ability to do flow-based analysis across function boundaries (type checking calls to unannotated functions by symbolically executing the function body with the types of the call arguments) has not been implemented by any of the other checkers (again for good reasons; it's a performance hit and the world is moving towards annotations over pure inference anyway, but I still think it's a nice feature to have and makes for more powerful checking).

as an aside, while I agree that bytecode-based analysis has its drawbacks, I think it's a tool worth having in the overall python toolbox. I spun off pycnite from pytype in the hope that anyone else who wanted to experiment with it would have an easier time getting started - https://github.com/google/pycnite

I have recently jumped onto the "write python tooling in rust" bandwagon and might look into a rust reimplementation of pycnite at some point, because I still feel that bytecode analysis lets you reuse a lot of work the compiler has already done for you.

almostgotcaught•1h ago
> while I agree that bytecode-based analysis has its drawbacks

abstract interpretation of the bytecode like y'all were doing is the only way to robustly do type inference in python.

> https://github.com/google/pycnite

there's also https://github.com/MatthieuDartiailh/bytecode which is a good collection

zem•1h ago
yeah, that's a really nice project too!
yegle•1h ago
fwiw the original pytype team was laid off as part of laying off the Python team last year.

Google lays off its Python team | Hacker News https://news.ycombinator.com/item?id=40171125

instig007•1h ago
Scala 3: exists, https://docs.scala-lang.org/scala3/book/scala-features.html

Developers: mypy, pyright, pyrefly, ty, pypy, nogil, faster-python, sub-interpreters, free-threading, asyncio, ...

vovavili•9m ago
This would have been a fair point had Scala 3 supported Python's packages and was compatible with Python's tooling. At the very least until Mojo is mature and open-sourced, there are simply no alternatives to pouring time and effort into making Python a better language.
mgaunard•1h ago
tl;dr please use pyright instead
wiseowise•13m ago
DAE GOole killing another project?!!! (Apparently maintaining something completely free of charge for 13 years is not enough for online cannibals)