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

I've factored the RSA keys of a Certificate Authority from the 90s

https://mcpherrin.ca/2026/09/07/rsa.html
174•ahlCVA•3h ago•32 comments

TALA Is Open-Source

https://d2lang.com/blog/tala-is-open-source/
133•alixanderwang•4h ago•10 comments

A Screensaver for LG's Spying Smart TVs

https://weowntheglass.com
23•taylorfinley•1h ago•1 comments

Jellyfin 12.0

https://jellyfin.org/posts/jellyfin-release-12.0/
169•0xC0ncord•2h ago•70 comments

Watch Los Angeles get built, one building at a time (1880–2026)

https://lax-skyline.parcelscope.net/
250•rustywasm•9h ago•129 comments

John Margolies' photographs of roadside America

https://publicdomainreview.org/collection/john-margolies-photographs-of-roadside-america/
49•duck•3d ago•14 comments

Leaving VMware just got harder after Broadcom pulled VDDK downloads

https://www.virtualizationhowto.com/2026/09/leaving-vmware-just-got-harder-after-broadcom-pulled-...
137•josephcsible•8h ago•58 comments

How well do agents use test/verification techniques?

https://danluu.com/agentic-testing/
9•vinhnx•1h ago•0 comments

WeatherNext 3

https://deepmind.google/science/weathernext/
275•matthieu_bl•4d ago•64 comments

Scientists observe Einstein's gravity in the quantum world

https://www.ox.ac.uk/news/2026-08-28-scientists-observe-einsteins-gravity-in-the-quantum-world
178•mudil•3d ago•44 comments

Trusting-Trust Attack against an Entire Linux Distribution

https://arxiv.org/abs/2607.24888
178•signa11•2d ago•40 comments

216M Spy TVs – The LG Smart TV Problem [video]

https://www.youtube.com/watch?v=6IFVTcM28KA
623•treve•1d ago•840 comments

Show HN: Stuxnet – A reconstructed source code of the infamous cyber-weapon

https://github.com/Sadpainy/Stuxnet
130•CMDDestory•6h ago•45 comments

Show HN: Jigsaw Haiku

https://jigsawhaiku.com/
72•windowshopping•3d ago•27 comments

Colorlight 5A-75B: A dive into a popular low-cost ECP5 (FPGA) development board

https://blog.yosyshq.com/p/colorlight-part-1/
18•gregsadetsky•3d ago•5 comments

AI cancer cures slowed by chip shortage, says Arm boss

https://www.bbc.com/news/articles/c0m39g7xzevo
6•dabinat•2h ago•3 comments

Show HN: NYC MapTap – Learn NYC neighborhoods (with subway routes when you miss)

https://albertjoseph0.github.io/nyc-maptap/
6•abj908•1h ago•3 comments

Everything is free now, so why not a floating orb in my IDE

https://eighttrigrams.net/post/79
9•eighttrigrams•2d ago•2 comments

Show HN: Interactive Tree of Life

https://ptree.org/
78•Lucent•4d ago•22 comments

Emacs Bedrock 2.0

https://lambdaland.org/posts/2026-09-06-bedrock-v2/
66•ashton314•8h ago•3 comments

Caltech Mathathon – first hackathon ever devoted to research level mathematics

https://mathathonchallenge.com/index.html
246•astroanax•19h ago•85 comments

Icy Moons Are Ocean Worlds

https://mceglowski.substack.com/p/icy-moons-are-ocean-worlds
144•worldvoyageur•1d ago•15 comments

This Month in Ladybird – August 2026

https://ladybird.org/newsletter/2026-08-31/
197•exploraz•3d ago•46 comments

Finding a bug in Dummit and Foote's Abstract Algebra

https://kallus.org/blog/dummit_and_foote.html
74•evakhoury•3d ago•34 comments

Decoding the NEC V20 Microcode

https://martypc.blogspot.com/2026/09/decoding-nec-v20-microcode.html
130•mariuz•3d ago•9 comments

Keep Our Servers Running

https://blog.archive.org/2026/09/01/keep-our-servers-running-your-recurring-donation-goes-3x-this...
971•sonicrocketman•1d ago•253 comments

Simple Is Not Small

https://jyn.dev/simple-is-not-the-same-as-small/
220•zdw•4d ago•67 comments

Catching Crumbs from the Table (2000)

https://www.nature.com/articles/35014679
16•stefanpie•1d ago•5 comments

Macbeth and His Problems

https://porticoquarterly.com/essay/macbeth-and-his-problems/
48•apophatic•7h ago•19 comments

Methods for Random Gradients (2024)

https://justinjay.wang/methods-for-random-gradients/
47•nickswalker•4d ago•5 comments