Hacker RealtimeBuilt with Neon Realtime
connecting… · checking source…

Comment on Hacker News

  1. DetachHead (maintainer of basedpyright) has criticized the TSP before:

    - https://docs.basedpyright.com/v1.40.2/type-server/

    - https://github.com/microsoft/pylance-release/discussions/718...

    Ty (the type checker maintained by astral) however will apparently support the TSP: https://github.com/astral-sh/ruff/discussions/23432

    reply
  2. This should be called Python Type Server Protocol, no? Seems weird to mine the generic protocol namespace for a protocol that only supports Python. Especially coming from the company behind LSP, which actually is generic.
    reply
  3. Can someone explain what this is to someone like me that doesn't know python very well, but programs a lot in c#?
    reply
  4. As someone with minimal knowledge of LSP specifics, I'm a bit confused about why this exists. Is it the case that LSP alone does not provide adequate functionality for Python type queries?
    reply
  5. So basically adding machine readable type-at-point queries as an lsp extension so Pylance and Pywright can be separated?

    The 'result types'format is super python specific, like not having a for all binder. I don't think this specific schema will be used for any non-python languages.

    reply
  6. It kept with UTF-16. New protocol is a chance to correct that poor decision.
    reply
  7. The primary reason i guess is standardizing the type checking, so you can bring your own (3rd party).
    reply
  8. Is there any application for that, except python?
    reply
  9. It's such a shame python got such mindshare. It's a disaster of a language and ecosystem that people keep bolting and hacking things that much better thought out languages have had for decades.
    reply
  10. [deleted]
  11. languages with dynamic types will be obsolete thanks to AI, you heard it here first. It is just introduces more errors, with AI you want formal checking, sure static types are not that, but it is a small piece of it. If 10 percent of errors are types, with a typed language keeping everything the same you have 10 percent less errors, simple as that.
    reply
  12. Blog posts:

    Pylance + Pyrefly: bring your preferred type checker to Visual Studio Code

    https://devblogs.microsoft.com/python/announcing-tsp/

    Pyrefly + Pylance Integration in VS Code

    https://pyrefly.org/blog/pyrefly-pylance/

    reply
  13. Interesting, LSP, DAP, MCP, and TSP now...
    reply
  14. Type-shed, type-server. When can this Python madness stop? How about using CORBA to make it even more enterprisey?

    Why don't you spend your resources on F# instead of this nonsense?

    reply
  15. [dead]
  16. [dead]