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

Newgrounds.com – A community of games, music, and art

https://www.newgrounds.com/
138•azhenley•5h ago•35 comments

The Forgetful CPU (Linux on M4)

https://yuka.dev/blog-2026-10-02-linux-m4.html
177•signa11•15h ago•91 comments

Court agrees with EFF: Utah's VPN law demands a technical impossibility

https://www.eff.org/deeplinks/2026/10/court-agrees-eff-utahs-vpn-law-demands-technical-impossibility
581•hn_acker•1d ago•256 comments

Mike Tomlin spent 12 years building a Minecraft city

https://www.nytimes.com/athletic/7648198/2026/10/01/mike-tomlin-minecraft-nfl-coach/
395•CoryOndrejka•1d ago•99 comments

Apple Pass Designer

https://developer.apple.com/pass-designer/
383•soheilpro•11h ago•236 comments

Cloudflare OHTTP gateway

https://blog.cloudflare.com/announcing-cloudflare-ohttp-gateway/
38•est•2h ago•9 comments

A 12-year sequence of telescope images of a star and four planets orbiting

https://bsky.app/profile/theplanetaryguy.com/post/3mwucf5ert22f
239•mariuz•19h ago•53 comments

Extra Big Ass Intelligence

https://www.extrabigassintelligence.com/
83•34679•2h ago•14 comments

Loss of cell identity drives human aging: Two new papers

https://erictopol.substack.com/p/loss-of-cell-identity-drives-human
214•bookofjoe•1d ago•61 comments

With most information hidden, the game Stratego had stumped AI until now

https://arstechnica.com/science/2026/10/ai-finally-beat-the-best-stratego-player-in-history-and-d...
204•PaulHoule•15h ago•97 comments

Muse Gadgets

https://gadgets.muse.ai
174•anant•10h ago•78 comments

From the creator of Redis; run LLM locally with ds4

https://dwarfstar.sh/
204•fibo•12h ago•56 comments

Things that apparently cause cancer

https://www.breakthroughjournal.org/p/things-that-apparently-cause-cancer
157•timpera•5h ago•60 comments

FLUX 3 Image

https://bfl.ai/models/flux-3-image
306•minimaxir•1d ago•65 comments

The Nintendo 64 Partner-N64 Development Kit

https://www.behindthecode.ca/partner-n64pc-dev-kit/
14•paulgerhardt•11h ago•1 comments

What if AI worked at 1.000.000 tokens per seconds?

https://www.echohive.ai/one-million-tokens-per-second
4•echohive42•1h ago•3 comments

Updates to Full Disk Access in macOS

https://developer.apple.com/news/?id=p6zjojqw
170•notfirstpost•10h ago•110 comments

There's a new sea spider in town

https://nautil.us/theres-a-new-sea-spider-in-town-1285470
11•whiteblossom•12h ago•1 comments

Greg Kroah-Hartman – Security in the LLM Age [video]

https://www.youtube.com/watch?v=NnV_cWeoo5Q
214•usernomdeguerre•1d ago•56 comments

An Update on Orion for Linux and Windows

https://blog.kagi.com/update-orion-linux-windows
7•pentagrama•1h ago•0 comments

Sites in ChatGPT

https://chatgpt.com/features/sites/
247•polvi•1d ago•235 comments

The Legend of von Neumann (1973) [pdf]

https://gwern.net/doc/math/1973-halmos.pdf
270•suopspaces•16h ago•143 comments

Show HN: Giving Opus 5.5 a simulated paint canvas

https://stillwet.art/
244•alstonite•1d ago•77 comments

NTSB Preliminary Report: Prime Air 767 Runway Overrun [pdf]

https://www.ntsb.gov/investigations/Documents/DCA26MA352%20Prelim.pdf
33•sdko•5h ago•16 comments

Billions of triangles redux

https://zeux.io/2026/09/30/billions-of-triangles-redux/
32•ibobev•2d ago•0 comments

Venice’s failed war against Constantinople led to the first bond market

https://bigthink.com/books/a-fabulous-debt/
97•RickJWagner•16h ago•29 comments

Where Is the Planet

http://whereistheplanet.com
21•andsoitis•5h ago•1 comments

OKI Develops 124-Layer PCB Technology

https://www.oki.com/global/press/2025/z25006e.html
19•luu•1d ago•12 comments

Show HN: Made an open-source Lego AI generator

https://github.com/anteloc/ldraw-nova
94•antelocnova•10h ago•44 comments

Blogging with Gleam, Org-Mode and Pandoc

https://byzantine-systems.github.io/blogging-with-gleam-org-mode-and-pandoc/
75•schonfinkel•18h ago•15 comments