frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Kate and Python Language Server

https://akselmo.dev/posts/kate-python-lsp/
79•todsacerdoti•1y ago

Comments

josteink•1y ago
As someone who recently set up something similar in Emacs with eglot I had to ditch Python-LSP-server.

It was so incredibly slow to respond, even on a M2 Max MBP, that it lowered my productivity by orders of magnitudes (and made Emacs laggy).

Maybe I did something wrong? I don’t know.

What I do know is that I tried pyright instead as a different LSP-server for Python and I haven’t looked back.

It’s a night and day difference. It’s snappy and everything works as expected, with venvs and mypy too.

kstrauser•1y ago
I agree. I really wanted to like python-lsp-server (aka pylsp), but I felt it's kind of a mess getting everything set up and configured. Loathe as I was to configure a server running in Node to help my editor with Python code, it's far and away the best option I've found so far.

I do hope "ruff server" will do for Python LSPs what ruff did for linting and formatting.

nerdponx•1y ago
I haven't tried the Ruff server yet, but Jedi Language Server is usably fast, and does a good enough job.
kstrauser•1y ago
Jedi's very nice for refactoring and auto-completion! I get more value from linting and type checking, though, and Jedi doesn't handle those. Pairing it with something like pyright is a great combination if your editor lets you connect to multiple servers.
kristjansson•1y ago
It's not ready yet, but https://pyrefly.org/ might be a good competitor/complement in the future
tiltowait•1y ago
Looks promising! It doesn't work with my poetry environment, but I like what I see so far. Definitely something to watch.
team_pyrefly•1y ago
Hi! I'm on the team behind Pyrefly. Thanks for taking a look and raising the need for poetry support. We added a GitHub issue to track that here: https://github.com/facebook/pyrefly/issues/166
arccy•1y ago
last time i looked the people were recommending basedpyright: https://github.com/DetachHead/basedpyright
Hasnep•1y ago
I've been recommending it whenever Pylance comes up on HN or Lobsters, the docs explain how to set it up on the most popular editors: https://docs.basedpyright.com/dev/installation/ides
wormius•1y ago
Not particularly relevant to the core article, but just a dumb thought re: the LSP/LS annoyance mentioned in the intro.

I think maybe some of it stems from 'ls' the command. If I saw something called py-ls instead of py-lsp, I may think it's a python based ls command. "Name Collision" as it were.

Anyways off to read the rest of the article...

ogoffart•1y ago
I wrote a language server too, and I also went with "-lsp" naming because it's way more recognizable. "LSP" is kind of a brand. If you look at the list at https://microsoft.github.io/language-server-protocol/impleme... a lot of them are named -lsp.
dundarious•1y ago
Might not be an issue for your typical setup, but I suggest quoting your variable expansions in bash. Otherwise, spaces, etc., will lead to issues.

It would also make sense to use path after it is defined, instead of sometimes using `$1` again.

But I'm confused by `cd`ing into `$path` and then checking paths that are prefixed by `$path`... I assume that is an error, and you won't run it like `script.sh ./work/project` and expect a path like `./work/project/work/project` or `./work/project/project` to exist. Can just `cd "$1"` and be done.

Mildly surprised the .venv/venv check isn't an elif as well.

  #!/usr/bin/env bash
  cd "$1"
  if [ -d ./.venv ]; then
    source ./.venv/bin/activate
  elif [ -d ./venv ]; then
    source ./venv/bin/activate
  fi
  exec pylsp --check-parent-process

Gemini 4 Argon

https://deepmind.google/models/gemini/
385•737max•1h ago•305 comments

Apple HomeView

https://www.apple.com/apple-homeview/
453•etothet•4h ago•562 comments

Thunderbird for iOS

https://blog.thunderbird.net/2026/10/thunderbird-for-ios-a-first-look-at-the-native-iphone-email-...
144•mjorgers•2h ago•51 comments

Cyberattack halts construction of tunnel between Denmark and Germany

https://ua.news/en/world/kiberataka-zupinila-budivnitstvo-tuneliu-mizh-daniieiu-ta-nimechchinoiu-...
44•paaloeye•1h ago•14 comments

11 year old unsoundness bugs found in Rust borrow checker

https://github.com/rust-lang/rust/issues/164250
551•formerly_proven•7h ago•315 comments

I posted to HN, and then my website was flooded with AI bot traffic

https://www.sammystraus.com/#i-posted-to-hn-and-then-my-website-was-flooded-with-ai-bot-traffic
98•sammy0910•2h ago•56 comments

Coris (YC S22) Is Hiring Back End Engineer

https://www.ycombinator.com/companies/coris/jobs/h0nDly8-backend-engineer-ai-native-risk-infrastr...
1•smaddali•44m ago

Firefox Enterprise

https://www.firefox.com/en-US/enterprise/
382•recvonline•5h ago•167 comments

We turned EmbeddingGemma 2 into a speech-to-text model

https://eg2.haku.sh/
306•amrrs•6h ago•76 comments

Redesigning Source Control at Anthropic

https://www.anthropic.com/engineering/redesigning-source-control
66•Philpax•1h ago•28 comments

A Dynamic and Distributed Virtual GPU Cloud Built on Idle Apple Silicon Devices

https://machinelearning.apple.com/research/distributed-gpu-cloud
174•acossta•5h ago•73 comments

New Apple TV 4K

https://www.apple.com/newsroom/2026/10/apple-unveils-the-new-apple-tv-4k/
153•corvad•4h ago•305 comments

MIT class project turns into an FDA-cleared treatment for tremors

https://news.mit.edu/2026/mit-class-project-turns-into-fda-cleared-treatment-for-tremors-1002
25•zdw•22h ago•3 comments

Gemini 4 Argon for Robotics

https://developers.googleblog.com/gemini-4-argon-for-robotics/
13•xnx•49m ago•1 comments

Launch HN: Consus (YC F24) – LLM gateway for companies handling sensitive data

16•ericmags•2h ago•12 comments

BB(10) > Graham's Number

https://github.com/jeff87654/busy-beaver/blob/main/BB10/1RB0RA_1LC1LF_1RD0LB_1RA1LE_1LI0LC_0RG1LD...
57•surprisetalk•5h ago•31 comments

Show HN: Use your OpenAI subscription to create audiobooks

https://pdftomp3.com/connect-ai/
135•janpmz•7h ago•67 comments

Show HN: How Random Are You?

https://lab.specr.net/rigged-draw/
5•vunderba•47m ago•1 comments

Hittite royal archive found in Turkey

https://www.thehistoryblog.com/archives/77107
285•benbreen•11h ago•73 comments

How to engineer an AI harness for game development

https://kylekukshtel.com/ai-harness-engineering-game-development-claude-code
31•kkukshtel•3h ago•10 comments

Character.ai has initiated voluntary Chapter 11 bankruptcy

https://blog.character.ai/an-update-on-character-ai/
176•nryoo•10h ago•194 comments

AI is a tool and using it well takes skill

https://yyhh.org/blog/2026/10/ai-is-a-tool/
585•layer8•20h ago•466 comments

A Visual Intro to Complex Numbers

https://photonlines.substack.com/p/a-visual-intro-to-complex-numbers
86•surprisetalk•5h ago•56 comments

GLM-Legal

https://z.ai/blog/glm-legal
654•ilreb•1d ago•353 comments

The United Kingdom Generates Less Electricity per Person Than in the 1970s

https://ourworldindata.org/data-insights/electricity-generation-per-person-in-the-united-kingdom-...
49•karakoram•2h ago•28 comments

The baffling intelligence of a single cell (2024)

https://jsomers.net/e-coli-chemotaxis/
383•jsomers•2d ago•121 comments

Hackers activate automatic defrosting in supermarket fridges across Europe

https://www.tomshardware.com/tech-industry/cyber-security/unprecedented-cyberattack-cripples-supe...
856•Zeekaas•1d ago•955 comments

Intel D270 GPU AI Accelerator–Up to 480 GB LPDDR5X

https://www.intel.com/content/www/us/en/products/details/discrete-gpus/data-center-gpu/d-series.html
292•hurricanepootis•20h ago•167 comments

A Modern Web App in C

https://prophitt.me/writing/a-modern-web-app-in-c
676•prophittcorey•1d ago•301 comments

Document Review with Unsiloed and TypeSafe Jev

https://www.unsiloed.ai/blog/document-review-unsiloed-typesafe-jev
40•ritzaco•9h ago•7 comments