11 comments

  • nikolatt 10 minutes ago
    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

  • rjbwork 20 minutes ago
    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.
    • loeg 1 minute ago
      I’m not a fan either, but it doesn’t bother me at all. Who cares? Let the python people do their thing.
    • benrutter 2 minutes ago
      I work in python daily, it's not necessarily my favourite language, but I'd say it's mostly fine.

      What languages are you thinking of specifically when you mention better thought out ones?

    • Toutouxc 1 minute ago
      As a Ruby dev I'm kind of primed to hate on Python a little bit, but I have to agree. I've written some Python over the years, I've tried to like it, but it just doesn't feel good to me. There are things that are really great about Rust, Elixir, C#, Swift, Java, Common Lisp... Sometimes it's the standard library, sometimes the package manager, sometimes a feature (borrow checker, pattern matching), sometimes a principle (everything is an object, the code is just data). In Python, everything is kind of meh. Like they came up with the list comprehension syntax and that was it for cool things.
    • mi_lk 13 minutes ago
      OTOH I don't want to live in a universe where Haskell wins
    • lijok 12 minutes ago
      Fascinating take.

      What do you attribute Python's success to, in spite of being a disaster of a language and ecosystem?

      • johnfn 8 minutes ago
        It's incredibly easy for new engineers to pick up. On the spectrum between "features easy for beginners but nightmarish for experienced engineers" and "features complex for beginners but great for experienced engineers" it always makes the tradeoff for the former.
        • dude250711 6 minutes ago
          Yes, just like Go, it's a junior developer onboarding language, that somehow managed to overstay its welcome.
          • theplumber 3 minutes ago
            Go is awesome and has great ecosystem. I think if you want to just deliver Go is one of the best language out there. Of course as long as the project makes sense(I.e no client side/GUI stuff, there it gets messy)
      • aaabbbbb 3 minutes ago
        Marketing in academia, decent C-API that led to use in scientific Python.

        The language is a disaster since it deviated from its original purpose. The community is ruled by insane, mediocre narcissists who drove away all reasonable people.

      • avaer 7 minutes ago
        - Math + visualization libraries (which ironically have to break out of Python to do their job)

        - Reasonable ergonomics for describing data flows, as long as you never run the code, which you often don't care about if you're a mathematician

        - Adoption by people who optimize pumping citations, not reproducible results -- non-working code is a feature when you're trying to BS

    • brcmthrowaway 6 minutes ago
      The packaging is a nightmare thats for sure.

      Venvs, activate, deactivate, shitty scripts hacking on $PATH. How did this ever ship? Then there was poetry, `uv`, and maybe something in else in $CURRENT_YEAR.

      Try to set it up on a new macOS, go on. Install a package from pip, and there's a bunch of garbage that won't let you do it.

      It's horrible. Python packaging engineer is now an FTE, maybe that's what they wanted.

    • theplumber 4 minutes ago
      it could be worse like …PHP
    • Quitschquat 1 minute ago
      I blame Perl 6
    • esafak 14 minutes ago
      Worse is better. Avoid using it yourself and tell others; that's the best you can do.
    • quotemstr 5 minutes ago
      Python is pretty decent. What are you talking about?
  • anonymous908213 55 minutes ago
    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.
    • rzzzt 22 minutes ago
      Type Server Subsystem for Python
    • wolttam 53 minutes ago
      It is namespaced under the pylance project. I also don't see any announcement here, just a markdown file.

      Perhaps the post title could use a tweak

    • pantsforbirds 46 minutes ago
      I do wonder if it generalizes outside of python similar to how LSPs do.
    • Blackarea 51 minutes ago
      100% - it would make more sense if they also supported elixir or other dynamic languages
  • Tarean 47 minutes ago
    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.

  • rmzs0711 27 minutes ago
    Is there any application for that, except python?
  • 0cf8612b2e1e 38 minutes ago
    It kept with UTF-16. New protocol is a chance to correct that poor decision.
  • paaloeye 50 minutes ago
    Interesting, LSP, DAP, MCP, and TSP now...
    • intrasight 32 minutes ago
      TSP : TriSodium Phosphate. Very good for cleaning up a mess.
  • ahgrta 52 minutes ago
    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?

  • beaconflint 34 minutes ago
    [flagged]
  • wetpaws 1 hour ago
    [dead]