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

Fable turned remarkable into Tom Riddle's diary from Harry Potter

https://github.com/MaximeRivest/Riddle
47•modinfo•1h ago•15 comments

OpenWrt One – Open Hardware Router

https://openwrt.org/toh/openwrt/one
390•peter_d_sherman•5h ago•159 comments

CoMaps – FOSS Offline Maps

https://www.comaps.app/
273•basilikum•5h ago•59 comments

Ternlight – 7 MB embedding model that runs in browser (WASM)

https://ternlight-demo.vercel.app/
31•soycaporal•1h ago•6 comments

GLM 5.2 and the coming AI margin collapse

https://martinalderson.com/posts/the-upcoming-ai-margin-collapse-part-1-glm-5-2/
94•martinald•3h ago•60 comments

A global workspace in language models

https://www.anthropic.com/research/global-workspace
243•in-silico•6h ago•79 comments

Pruning RAG context down to what the answer actually needs

https://www.kapa.ai/blog/how-we-prune-rag-context
39•emil_sorensen•4h ago•2 comments

A 2048-spin bulk acoustic wave Ising machine for number partitioning and Sudoku

https://arxiv.org/abs/2607.02112
12•Jimmc414•2d ago•0 comments

Full Writeup of the Windows GDID

https://github.com/SmtimesIWndr/gdid-reversal
25•typeofhuman•2h ago•9 comments

Linux on the Atari Jaguar

https://cakehonolulu.github.io/linux-for-jaguar/
94•cakehonolulu•5h ago•16 comments

Evaluation order and nontermination in query languages

https://www.rntz.net/post/2026-06-11-datalog-nontermination.html
16•luu•4d ago•0 comments

AI: The ROI Runway Could Be Long Outside the Tech Sector

https://www.apollo.com/wealth/insights-news/insights/daily-spark/ai-the-roi-runway-could-be-long-...
33•u1hcw9nx•2h ago•20 comments

Resetting Xbox

https://news.xbox.com/en-us/2026/07/06/resetting-xbox/
447•dijksterhuis•9h ago•411 comments

Stealth robotics startup (YC S26) is hiring principal engineers (Palo Alto)

1•david-venegas•7h ago

AMD Ryzen AI Halo – $4k AI Dev Kit

https://www.lttlabs.com/articles/2026/07/06/amd-ryzen-ai-halo
264•LabsLucas•9h ago•194 comments

Vessel

https://claude.ai/public/artifacts/2c647671-3f94-4d22-b3c1-f2b5a0e17b6e
11•schwarzarno•1h ago•3 comments

OfficeCLI: Office suite for AI agents to read and edit Microsoft Office files

https://github.com/iOfficeAI/OfficeCLI
111•maxloh•7h ago•33 comments

The LLVM Compiler Infrastructure

https://cacm.acm.org/federal-funding-of-academic-research/the-llvm-compiler-infrastructure/
31•tosh•2d ago•4 comments

OpenSSH 10.4/10.4p1 Released

https://www.openssh.org/txt/release-10.4
11•throw0101a•1h ago•3 comments

M/PC – A Concatenative OS

https://wiki.xxiivv.com/site/m_pc.html
27•caminanteblanco•3h ago•2 comments

Using precision editing to study human embryo development shows master gene

https://www.cam.ac.uk/research/news/first-use-of-precision-editing-to-study-human-embryo-developm...
37•gmays•3d ago•16 comments

Januscape: Guest-to-Host Escape in KVM/x86 [CVE-2026-53359]

https://github.com/V4bel/Januscape
68•Imustaskforhelp•6h ago•22 comments

Rotman Lens

https://en.wikipedia.org/wiki/Rotman_lens
66•thomasjb•5d ago•17 comments

Aluminum foil (2021)

https://dernocua.github.io/notes/aluminum-foil.html
228•firephox•10h ago•101 comments

Kani: A Model Checker for Rust

https://arxiv.org/abs/2607.01504
121•Jimmc414•8h ago•7 comments

Poly/ML – A Standard ML Implementation

https://github.com/polyml/polyml
7•Lyngbakr•1h ago•1 comments

Taiganet.com, Home of the WS4000 Simulator

https://www.taiganet.com/
12•Aloha•3h ago•2 comments

Road to Elm 1.0

https://elm-lang.org/news/faster-builds
296•wolfadex•12h ago•148 comments

Real-time map of Great Britain's rail network

https://www.map.signalbox.io
379•scrlk•14h ago•140 comments

Egypt Is Building a New Nile

https://www.theb1m.com/video/egypt-is-building-a-new-nile
118•geox•3d ago•67 comments