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

H3-metal – Native MiniMax-H3 inference for Apple Silicon

https://github.com/antirez/h3.c
157•swyx•4h ago•18 comments

Show HN: Mcptoon – MCP CLI client that cuts tool discovery tokens by 97%

https://github.com/activeing123/mcptoon
9•mcptokensaver•20m ago•0 comments

Chicken Scheme 6.0

https://code.call-cc.org/releases/6.0.0/NEWS
123•eatonphil•5h ago•15 comments

Recycle – Floppydisks

https://www.floppydisk.com/recycle
42•calvinmorrison•3h ago•14 comments

Show HN: Scroll through all 43252003274489856000 Rubik's Cube states

https://everycube.alen.is/
135•Alen123•6h ago•36 comments

Show HN: Needle2: 14MB agentic LLM for phones, wearables, smart home and robots

https://cactuscompute.com/needle
261•HenryNdubuaku•12h ago•100 comments

The “mechanical miracle” that ruined Mark Twain’s life

https://resobscura.substack.com/p/the-mechanical-miracle-that-ruined
100•benbreen•5d ago•42 comments

LFM2.5 2.6B model competitive with 4x larger models

https://huggingface.co/LiquidAI/LFM2.5-2.6B
17•nateb2022•6d ago•3 comments

Mark Zuckerberg attacks 'closed' AI rivals as Meta returns to open models

https://www.ft.com/content/4e3957f8-ea7c-4c46-a3de-cdce8e526878
448•root-parent•15h ago•419 comments

Hyperspace

https://hypercritical.co/hyperspace/
38•swyx•3h ago•25 comments

Rust SIMD on the GPU

https://www.vectorware.com/blog/simd-on-gpu/
162•sagacity•11h ago•75 comments

Stowaway – Take the window seat on any plane or satellite overhead

https://stowaway.live/
202•thunderbong•3d ago•23 comments

World Train Map – 1247 train routes around the world

https://worldtrainmap.com/
89•Flightmussy•7h ago•28 comments

Sonic Pi v5

https://www.patreon.com/samaaron/posts/sonic-pi-v5-166001392
340•samaaron•3d ago•83 comments

Publishing Schematics Before “Open Source” Was a Word

https://fabscene.medium.com/publishing-schematics-before-open-source-was-a-word-55-years-of-akizu...
79•extralongdivisi•3d ago•18 comments

Confessions of a Long-Distance Sailor

https://arachnoid.com/lutusp/sailbook.html
83•AntiRush•8h ago•25 comments

Muse Glimmer: 30B-parameter model optimized for always-on local agent workflows

https://research.meta.ai/blog/introducing-muse-glimmer-open-agentic-model
1081•riordan•19h ago•592 comments

What's the best programming language for coding agents?

http://danluu.com/pl-tokens/
122•chaychoong•13h ago•76 comments

Squeak 6.1

https://squeak.org/release_notes/6.1/
245•fniephaus•17h ago•124 comments

Humanising LLM Outputs Is Dumb

https://kuber.studio/blog/Reflections/Humanising-LLM-Outputs-is-Actually-Dumb
188•kuberwastaken•16h ago•116 comments

Exploiting System Management Mode with a very long interrupt

https://github.com/xoreaxeaxeax/smiiiiiiiiiiiiiiii
150•WhiteDawn•13h ago•54 comments

Microsoft Responds to Outcry After Quiet Enterprise Install of Beta 'Photos' App

https://www.neowin.net/news/windows-11-admins-unhappy-as-microsoft-found-installing-unexpected-ne...
21•m463•1h ago•6 comments

Why My Father Is Wrong: A Defense of Guitar Hero

https://whatever.scalzi.com/2026/08/10/why-my-father-is-wrong-a-defense-of-guitar-hero/
26•Tomte•1h ago•6 comments

Choral: Choreographic Programming for Java

https://www.choral-lang.org/
17•dplyukhin•3d ago•1 comments

Updated GPG Key for Signing Firefox and Thunderbird Releases

https://blog.mozilla.org/security/2026/08/10/updated-gpg-key-for-signing-firefox-and-thunderbird-...
20•csmantle•1h ago•4 comments

The Story of Mac: A Just-So Story

https://gigamonkeys.com/book/macros-defining-your-own
22•kscarlet•6d ago•3 comments

Launch HN: Stoa Markets (YC S26) – A Marketplace for GPUs and AI Servers

https://www.stoaexchange.com
74•erenberke•13h ago•46 comments

Parametron: 50s Japanese computer that uses neither transistors nor vacuum tubes

https://ethw.org/Milestones:Parametron,_1954
210•xeonmc•19h ago•51 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

172•BoxOfRain•3d ago•55 comments

Exploring Claude/GPT Knowledge Cutoffs and Pre-Training Timelines

https://blog.sshh.io/p/exploring-claudegpt-knowledge-cutoffs
136•sshh12•15h ago•19 comments