TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

LSP client in Clojure in 200 lines of code

164 pointsby vlaaad10 days ago

2 comments

whalesalad10 days ago
This is the most Java-y Clojure I’ve probably ever read. Just use Java? It’s so verbose and complex for what it is doing. Breaking this down into smaller functions and using core.async would make it even more succinct.<p>Just want to emphasize this because clojure is indeed a small, lesser known language that has a hard enough time attracting users. This is not what anyone would consider an idiomatic example of using clojure.
评论 #43960179 未加载
评论 #43959102 未加载
评论 #43960325 未加载
评论 #43958458 未加载
评论 #43959894 未加载
评论 #43959907 未加载
askonomm9 days ago
Holy crap is this unreadable or what (notably the lsp-base fn). There&#x27;s a reason why in most Clojure companies I&#x27;ve worked at we try to make as small functions as possible, because otherwise it very very quickly becomes an unreadable mess, and you write code after all for humans to read, because if you didn&#x27;t, you might as well just write binary. But, I&#x27;m not surprised many people don&#x27;t want to get into Clojure or Lisps in general, because it takes a boatload of conventions and active discipline to make it a good experience.
评论 #43962689 未加载