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

Jensen Huang resigns

https://apnews.com/article/nvidia-megaspeed-china-singapore-huang-5403f152a601cf82ce939f1d24fffa0f
1785•lldb•4h ago•1842 comments

Rust 1.100.0

https://github.com/rust-lang/rust/releases/tag/1.100.0
59•thesuperbigfrog•18m ago•7 comments

Gemini 4 Hydrogen

https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydr...
156•dvaplima•41m ago•84 comments

Abandoned Quake 4 expansion finished by modders and now playable

https://www.moddb.com/mods/openq4/downloads/openq4-0141-windows-x64
162•klaussilveira•4h ago•58 comments

I'm making LLMs work on small and old devices

https://github.com/hyperionaidev/smolmaxxing/
130•mrashad74•3h ago•51 comments

Ask HN: Microsoft/Azure Outage?

72•nazgulsenpai•25m ago•22 comments

Talking Zen 6 with Mike Clark at AMD In-Depth

https://chipsandcheese.com/p/talking-zen-6-with-mike-clark-at
123•dverlaeckt80•4h ago•1 comments

Outlook is down, and so is Microsoft's status page

https://gvwire.com/2026/11/12/microsoft-outlook-down-for-thousands-of-users-downdetector-shows/
47•dkpk•22m ago•9 comments

ExcalidrawZ: Local Native Excalidraw on macOS/iOS

https://github.com/chocoford/ExcalidrawZ
61•Qision•3h ago•18 comments

Why Writing Correct Software Is Hard

https://pron.github.io/posts/correctness-and-complexity
290•AriFordsham•8h ago•127 comments

Libreagi – Save OSS Models

https://libreagi.com/
82•satuke•4h ago•17 comments

Paths in Pieces

https://stoppels.ch/2026/11/12/paths-in-pieces.html
13•acossta•1h ago•0 comments

Nintendo Takes Down Emulators and Firmware in Massive GitHub DMCA Sweep

https://www.ign.com/articles/nintendo-takes-down-switch-emulators-and-mod-chip-firmware-in-massiv...
120•CharlesW•2h ago•67 comments

Anthropic IPO

https://ipo.anthropic.com/us/
651•josephljohnston•6h ago•666 comments

Show HN: Kapso – Iterative learning from enterprise data

7•alireza_msh•51m ago•0 comments

AWS Lambda Web Functions keep billing memory ~7 minutes after the last request

https://www.easel.sh/blog/lambda-web-functions-idle-memory
39•seanw265•1h ago•11 comments

Socratic Tutor

https://github.com/janestreet/agent_skills/blob/master/socratic-tutor/SKILL.md
576•tosh•2d ago•133 comments

Our software engineering interviews are changing a little

https://blog.janestreet.com/software-engineering-interviews-are-changing-a-little/
96•maitland•4h ago•91 comments

A live tree of systemd jobs on the boot console

https://codeberg.org/wvhulle/bootvine
299•orhunp_•3d ago•115 comments

Relax: JIT compiler for Rust to reduce build times

https://makepad.github.io/relax/
11•adamnemecek•21h ago•1 comments

Electric Ship Batteries Promise Compact, Cooler Power

https://spectrum.ieee.org/electric-ship-batteries
43•rbanffy•4h ago•39 comments

Creating Worlds: Runes and Spells Prototype

https://www.fractalkitty.com/creating-worlds-runes-and-spells/
13•evakhoury•2d ago•2 comments

Show HN: AgentRun – open-source, Self-improving Managed Agents

https://github.com/Parcha-ai/agentrun/blob/main/README.md
10•miguelrios•27m ago•0 comments

Researchers discover rare star system that emits radio signals every 8 minutes

https://www.curtin.edu.au/news/media-release/researchers-discover-rare-star-system-that-emits-rad...
88•giuliomagnifico•7h ago•49 comments

Decoding REXPaint Files in Odin

https://tylerelton.com/posts/decoding-rexpaint-files-in-odin/
12•tylerelton•2d ago•1 comments

Fitting Four 32 GB Resizable Bars Behind a PCIe Switch on Linux

https://doug.sh/posts/gpu-bars-behind-a-pcie-switch/
43•dougcalobrisi•3h ago•19 comments

Critical RCE Vulnerability in Apache HTTP Server

https://www.wiz.io/blog/cve-2026-119618-rce-apache-http-server-vulnerability
340•soheilpro•16h ago•182 comments

Pulling the Lever in a Subway Problem

https://www.jefftk.com/p/pulling-the-lever-in-a-subway-problem
20•NaOH•23h ago•20 comments

Making a €40 USB-C hub work as a Nintendo Switch 2 dock

http://blog.nozomi.space/posts/sw2_dock/
127•mkopec•2d ago•44 comments

Show HN: AI Red Lines – write down what would make you act on AI

https://yourairedlines.com
24•ap11071•4h ago•15 comments