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

Astra for Law

https://openai.com/index/astra-for-law/
153•vertigoruntime•1h ago•140 comments

Bend – A language that blocks AI mistakes via proof and runs on GPUs

https://bend-lang.com/
138•nicolas-siplis•1h ago•58 comments

I Hate You Microsoft

https://henriquenunez.eu/posts/you_did_it_again_ms/
31•henriquenunez•15m ago•4 comments

Hister: A private search engine for the pages you visit and the files you keep

https://github.com/asciimoo/hister
354•bookofjoe•5h ago•113 comments

Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint

https://prismml.com/news/bonsai-2-27b
27•JonSchneider•44m ago•7 comments

Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA

https://global.fujitsu/en-global/pr/news/2026/09/14-02
463•my123•2d ago•168 comments

Wax motor

https://en.wikipedia.org/wiki/Wax_motor
136•mhb•1d ago•28 comments

Everybody's Lost Their Minds

https://www.netmeister.org/blog/everybodys-lost-their-minds.html
201•ibobev•2h ago•99 comments

CrowdSec Source Code Leak

https://www.crowdsec.net/blog/crowdsec-statement-source-code-exposure
110•eccgecko•6h ago•32 comments

Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data

https://arxiv.org/abs/2609.18842
83•Betelbuddy•5h ago•25 comments

Rate limits on GitLab.com are changing

https://about.gitlab.com/blog/rate-limit-change-2026/
131•darkwater•6h ago•101 comments

Towards Self-Driving Codebases

https://blog.detail.dev/posts/towards-self-driving-codebases/
83•wilhelmklopp•4h ago•70 comments

TSMC revealing details about next gen A14 node

https://iedm26.mapyourshow.com/8_0/sessions/session-details.cfm?scheduleid=331
65•osnium123•2d ago•23 comments

The American Religion of Self-Storage Facilities

https://www.newyorker.com/magazine/2026/09/21/the-american-religion-of-self-storage-facilities
158•pseudolus•8h ago•272 comments

Why I didn’t sign the Fields medallists’ letter

https://gowers.wordpress.com/2026/09/17/why-i-didnt-sign-the-fields-medallists-letter/
179•simianwords•13h ago•228 comments

Zettascale (YC S24) Is Hiring ASIC/FPGA Engineers to Build Chips for ASI

https://zscc.ai/careers?job_id=109821
1•el_al•4h ago

How GLM built its own inference infrastructure

https://z.ai/blog/glm-built-its-inference-infrastructure
341•whiteros_e•13h ago•252 comments

Flet 1.0 – Build cross-platform apps in Python

https://flet.dev/
6•absqueued•1h ago•2 comments

André Weil and the Hodge Conjecture

https://jiahao116.github.io/Articles/
23•caojiahao•5d ago•7 comments

GraphViz Pocket Reference – Make a Graph

https://graphs.grevian.org/graph/6322783643500544
6•vismit2000•2d ago•0 comments

Running Ubuntu on the Lenovo IdeaPad Duet

https://vhaudiquet.fr/blog/duet-ubuntu/
55•vhaudiquet•3d ago•15 comments

How do we prevent mathemathics from devolving into the Medieval Era of secrecy?

https://mathoverflow.net/questions/515260/how-do-we-prevent-mathematics-from-devolving-into-the-m...
43•jjgreen•2d ago•22 comments

One year of sponsored Servo development

https://servo.org/blog/2026/09/15/one-year-of-sponsorship/
335•AshleysBrain•13h ago•136 comments

Canto: A speech model built for the real world

https://wisprflow.ai/canto
20•sleepypandas•3h ago•9 comments

The most important product decision is what you don't build

https://liamnugent.me/posts/what-you-dont-build/
5•ChrisArchitect•1h ago•3 comments

Launch HN: Skillsync (YC W26) – AI chat sessions made portable across agents

33•cat-whisperer•5h ago•42 comments

CCC invites all model citizens to 40C3

https://events.ccc.de/en/2026/09/12/40c3-model-citizens/
308•antonly•13h ago•170 comments

Sex, AI, and the Apocalypse

https://www.iankduncan.com/personal/2026-09-16-sex-ai-and-the-apocalypse/
5•Anon84•41m ago•1 comments

T. Rex Had a Body Temperature of 97 Degrees

https://www.nytimes.com/2026/09/16/science/trex-dinosaur-temperature-warm-blooded.html
48•marojejian•4h ago•80 comments

Show HN: Share your AI Setup, Learn from others

https://mysetup.ai/
154•steveybrown•8h ago•79 comments