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•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

The solution might be cancelling my AI subscription

https://thoughts.hmmz.org/2026-05-31.html
114•dmw_ng•1h ago•60 comments

Cloudflare Turnstile requiring fingerprintable WebGL

https://hacktivis.me/articles/cloudflare-turnstile-webgl-fingerprinting
150•HypnoticOcelot•1h ago•80 comments

Dav2d

https://jbkempf.com/blog/2026/dav2d/
273•captain_bender•4h ago•81 comments

1-Bit Bonsai Image 4B Image Generation for Local Devices

https://prismml.com/news/bonsai-image-4b
39•modinfo•1h ago•7 comments

Restartable Sequences

https://justine.lol/rseq/
33•grappler•1h ago•8 comments

The Website Specification

https://specification.website/
342•k1m•9h ago•136 comments

London's Free Roof Terraces

https://diamondgeezer.blogspot.com/2026/05/londons-free-roof-terraces.html
193•zeristor•8h ago•94 comments

Domain expertise has always been the real moat

https://www.brethorsting.com/blog/2026/05/domain-expertise-has-always-been-the-real-moat/
752•aaronbrethorst•19h ago•445 comments

I Put a Datacenter GPU in My Gaming PC for £200

https://blog.tymscar.com/posts/v100localllm/
122•birdculture•2h ago•65 comments

Security Envelope Pattern collection – S.E.C.R.E.T

https://secret-archive.org/
59•ColinWright•2d ago•6 comments

Daily pill can double survival time for deadliest cancer, trial shows

https://www.theguardian.com/society/2026/may/31/daily-pill-daraxonrasib-double-survival-time-panc...
14•c-oreills•26m ago•2 comments

Show HN: Atomic Editor – Obsidian-style live preview for CodeMirror 6

https://kenforthewin.github.io/atomic-editor/
18•kenforthewin•3h ago•6 comments

Shantell Sans (2023)

https://shantellsans.com/process
347•aleda145•18h ago•40 comments

Thornton Wilder's Last Play Vanished into Thin Air. Or Did It?

https://www.nytimes.com/2026/05/27/theater/thornton-wilder-emporium-last-play.html
9•lermontov•3d ago•1 comments

One year of Roto, a compiled scripting language for Rust

https://blog.nlnetlabs.nl/one-year-of-roto-the-compiled-scripting-language-for-rust/
90•Hasnep•2d ago•19 comments

The AV2 Video Standard Has Released (Final v1.0 Specification)

https://av2.aomedia.org
290•ksec•18h ago•133 comments

A Gentle Introduction to Lattice-Based Cryptography [pdf]

https://cryptography101.ca/wp-content/uploads/lattice-based-cryptography.pdf
134•jayhoon•2d ago•12 comments

I found a seashell in the middle of the desert

https://github.com/Hawzen/I-found-a-seashell-in-the-middle-of-the-desert#i-found-a-seashell-in-th...
384•Hawzen•2d ago•104 comments

Avian Visitors

https://theodore.net/projects/AvianVisitors/
92•fdb•9h ago•7 comments

Telli (YC F24) is hiring in engineering, design, and GTM [Berlin, on-site]

https://hi.telli.com/join-us
1•sebselassie•9h ago

Show HN: Breathe CLI – Paced resonance breathing in the macOS terminal

https://github.com/marekkowalczyk/breathe-cli
87•marekkowalczyk•19h ago•11 comments

Inkstravaganza

https://www.inkandswitch.com/newsletter/dispatch-015/
18•surprisetalk•3d ago•3 comments

A pictorial introduction to differential geometry (2017)

https://arxiv.org/abs/1709.08492
95•ricudis•10h ago•2 comments

Folding Beijing

https://www.uncannymagazine.com/article/folding-beijing-2/
18•root-parent•1h ago•0 comments

The "Stars" of Titanic (2012)

https://blogs.loc.gov/inside_adams/2012/04/the-stars-of-titanic/
5•tosh•2d ago•0 comments

You Weren't Meant to Have a Boss (2008)

https://paulgraham.com/boss.html
41•downbad_•3h ago•34 comments

Frost: [Browser] Fingerprinting Remotely Using OPFS-Based SSD Timing [pdf]

https://hannesweissteiner.com/pdfs/frost.pdf
6•simjnd•1h ago•1 comments

Racket v9.2

https://blog.racket-lang.org/2026/05/racket-v9-2.html
213•spdegabrielle•3d ago•21 comments

Associative learning turns DEET from aversive to appetitive in Aedes aegypti

https://journals.biologists.com/jeb/article/229/10/jeb251935/371741/Associative-learning-switches...
62•croes•2d ago•30 comments

Accenture to acquire Ookla

https://newsroom.accenture.com/news/2026/accenture-to-acquire-ookla-to-strengthen-network-intelli...
311•Garbage•23h ago•158 comments