frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Kate and Python Language Server

https://akselmo.dev/posts/kate-python-lsp/
79•todsacerdoti•9mo ago

Comments

josteink•9mo 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•9mo 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•9mo ago
I haven't tried the Ruff server yet, but Jedi Language Server is usably fast, and does a good enough job.
kstrauser•9mo 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•9mo ago
It's not ready yet, but https://pyrefly.org/ might be a good competitor/complement in the future
tiltowait•9mo 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•9mo 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•9mo ago
last time i looked the people were recommending basedpyright: https://github.com/DetachHead/basedpyright
Hasnep•9mo 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•9mo 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•9mo 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•9mo 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

Claude Opus 4.6

https://www.anthropic.com/news/claude-opus-4-6
1895•HellsMaddy•15h ago•798 comments

Things Unix can do atomically (2010)

https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
66•onurkanbkrc•3h ago•23 comments

Systems Thinking

http://theprogrammersparadox.blogspot.com/2026/02/systems-thinking.html
66•r4um•3h ago•28 comments

GPT-5.3-Codex

https://openai.com/index/introducing-gpt-5-3-codex/
1270•meetpateltech•14h ago•475 comments

Show HN: Artifact Keeper – Open-Source Artifactory/Nexus Alternative in Rust

https://github.com/artifact-keeper
42•bsgeraci•4h ago•9 comments

My AI Adoption Journey

https://mitchellh.com/writing/my-ai-adoption-journey
557•anurag•13h ago•181 comments

We tasked Opus 4.6 using agent teams to build a C Compiler

https://www.anthropic.com/engineering/building-c-compiler
511•modeless•13h ago•478 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
337•ComputerGuru•1d ago•107 comments

How to carry more than your own bodyweight (2025)

https://www.bbc.com/future/article/20250124-how-to-carry-more-than-your-own-bodyweight
21•1659447091•3d ago•16 comments

Animated Knots

https://www.animatedknots.com/
178•ostacke•3d ago•23 comments

Unlocking high-performance PostgreSQL with key memory optimizations

https://stormatics.tech/blogs/unlocking-high-performance-postgresql-key-memory-optimizations
35•camille_134•4d ago•1 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
52•svespalec•5h ago•19 comments

Stay Away from My Trash

https://tldraw.dev/blog/stay-away-from-my-trash
18•EvgeniyZh•3d ago•3 comments

Review of 1984 by Isaac Asimov (1980)

https://www.newworker.org/ncptrory/1984.htm
146•doruk101•11h ago•73 comments

Waiting for Postgres 19: Better planner hints with path generation strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
27•sbuttgereit•5h ago•1 comments

The RCE that AMD won't fix

https://mrbruh.com/amd/
180•MrBruh•9h ago•70 comments

GitHub Actions is slowly killing engineering teams

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
208•codesuki•5h ago•90 comments

MenuetOS – a GUI OS that boots from a single floppy disk

https://www.menuetos.net/
142•pjerem•3d ago•29 comments

The time I didn't meet Jeffrey Epstein

https://scottaaronson.blog/?p=9534
161•pfdietz•13h ago•140 comments

The Color of Safety

https://protocolized.summerofprotocols.com/p/the-color-of-safety
3•laurex•3d ago•0 comments

Claude Opus 4.6 extra usage promo

https://support.claude.com/en/articles/13613973-claude-opus-4-6-extra-usage-promo
155•rob•12h ago•48 comments

LinkedIn checks for 2953 browser extensions

https://github.com/mdp/linkedin-extension-fingerprinting
389•mdp•12h ago•187 comments

Hypernetworks: Neural Networks for Hierarchical Data

https://blog.sturdystatistics.com/posts/hnet_part_I/
60•mkmccjr•15h ago•4 comments

Orchestrate teams of Claude Code sessions

https://code.claude.com/docs/en/agent-teams
346•davidbarker•14h ago•193 comments

What if writing tests was a joyful experience? (2023)

https://blog.janestreet.com/the-joy-of-expect-tests/
65•ryanhn•10h ago•24 comments

Company as Code

https://blog.42futures.com/p/company-as-code
239•ahamez•19h ago•120 comments

The browser catches homograph attacks, the terminal doesn't

https://github.com/sheeki03/tirith
53•MrBuddyCasino•2d ago•20 comments

Generative Pen-Trained Transformer

https://theodore.net/projects/Polargraph/
9•Twarner•4h ago•0 comments

The New Collabora Office for Desktop

https://www.collaboraonline.com/collabora-office/
167•mfld•18h ago•104 comments

Don't rent the cloud, own instead

https://blog.comma.ai/datacenter/
1137•Torq_boi•1d ago•467 comments