frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

...24 Years Ago (2013)

https://sis.web.cern.ch/archives/history_CERN/historical_images/24-years-ago
1•jruohonen•57s ago•0 comments

The Lymphaterian Formula

https://www.scribd.com/document/533666733/Stanislaw-Lem-Formula-Lymphatera
1•root-parent•4m ago•0 comments

iOS 26 Gets First Jailbreak Thanks to Dopamine

https://www.macrumors.com/2026/08/07/ios-26-dopamine-jailbreak/
2•akyuu•4m ago•0 comments

Banksy works cost public almost £150k

https://www.bbc.co.uk/news/articles/cx2vnny7j5zo
3•alvis•14m ago•1 comments

Show HN: Ember – Redshift safe color palettes

https://github.com/carpdiem/ember
2•carpdiem•21m ago•0 comments

FCC moves to ban Lidar-equipped foreign drones from US

https://www.tomshardware.com/tech-industry/drones/fcc-moves-to-ban-lidar-equipped-foreign-drones-...
7•f-serif•22m ago•0 comments

Personal Software Is Getting Cheaper to Build, So I Killed My LinkedIn Feed

https://andrewpollack.dev/blog/fixing-linkedin-customizing-the-web/
4•andrewpollack•22m ago•0 comments

What Michael Levin's Lab Is Teaching Us About How Bodies Build Themselves

https://float64co.github.io/the-body-electric.html
5•LukeB42•25m ago•0 comments

The Cooler – tic-tac-toe where every line is scored as a poker hand

https://gorgekara.itch.io/the-cooler
2•gorgekara•26m ago•0 comments

The Apple II Wasn't the Best Computer of 1977

https://comuniq.xyz/post?t=1526
1•01-_-•26m ago•1 comments

Ask HN: Anything as Fast as Google's AI Mode in the CLI?

1•dom96•26m ago•0 comments

An OpenAI Strategist Says AI Labs Should Rival Government Power

https://ai-updates.net/an-openai-strategist-says-ai-labs-should-rival-government-power/
3•ashurandi•29m ago•1 comments

The Legend of the Novell NE2000 [video]

https://www.youtube.com/watch?v=nNXzQ7V1S_k
3•voxadam•30m ago•0 comments

Super-readable and debuggable shell pipeline command tool, styled like YAML

https://github.com/puutaro/yomel
1•puutaro•31m ago•1 comments

Covid can wake up a slew of dormant viruses inside you

https://www.nature.com/articles/d41586-026-02443-2
2•bookofjoe•31m ago•2 comments

Apple Tests Chinese Memory Chips as Supply Squeeze Bites

https://www.wsj.com/tech/apple-tests-chinese-memory-chips-as-supply-squeeze-bites-d292bb97
2•Brajeshwar•32m ago•0 comments

I started the same side project three times in two years

https://kracik.sk/articles/idea-worth-building-never-shipped
1•pk-dev•38m ago•1 comments

LVMvis: Browse SDSS-V's new interactive map of the Milky Way's ionized gas

https://dr20.sdss.org/lvmvis/
1•MarcoDewey•39m ago•0 comments

Integrated Sensing and Communication (ISAC)

https://www.ericsson.com/en/6g/isac
2•elasticdog•39m ago•0 comments

Mount Toba eruption doesn't seem like it could nearly kill our species

https://arstechnica.com/science/2026/08/mount-toba-eruption-doesnt-seem-like-it-could-nearly-kill...
1•sbulaev•40m ago•0 comments

Structured Analytic Techniques for Improving Intelligence Analysis (2009) [pdf]

https://www.govinfo.gov/content/pkg/GOVPUB-PREX3-PURL-gpo587/pdf/GOVPUB-PREX3-PURL-gpo587.pdf
1•30030•42m ago•0 comments

Ancient surveying instruments laid the math for early land grids

https://thehistoricalinsights.page/2026/07/forgotten-surveying-tools-civilization.html
2•peter-grifin•43m ago•0 comments

Neutrinos from Deep Inside Earth Provide a New Picture of the Mantle

https://www.quantamagazine.org/neutrinos-from-deep-inside-earth-provide-a-new-picture-of-the-mant...
1•ibobev•44m ago•0 comments

The Life and Times of Maxis, Part 3: The Sims

https://www.filfre.net/2026/08/the-life-and-times-of-maxis-part-3-the-sims/
1•ibobev•44m ago•0 comments

Factorio Friday Facts: The Biters Bite Back

https://factorio.com/blog/post/fff-445
1•ibobev•44m ago•0 comments

LedgerNest – a hosted Quicken alternative for households

https://ledgernest.headsoft.net/
1•mhlavenka•49m ago•0 comments

Tech sucks: You have to vote with your wallet, or nothing will change

https://82mhz.net/posts/2026/08/tech-sucks-you-have-to-vote-with-your-wallet-or-nothing-will-change/
59•reallydontask•52m ago•47 comments

Ask HN: Is there a mobile operating system with (wasi) container support?

2•wseqyrku•54m ago•0 comments

UnYOLO: Agent credential broker and policy engine for your GitHub account

https://unyolo.io/
2•hosolmaz•54m ago•0 comments

Gaza: Children killed in 300 days of Israeli-Hamas 'ceasefire'

https://news.un.org/en/story/2026/08/1168088
11•kome•58m ago•1 comments
Open in hackernews

LSP client in Clojure in 200 lines of code

https://vlaaad.github.io/lsp-client-in-200-lines-of-code
164•vlaaad•1y ago

Comments

whalesalad•1y 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.

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.

roenxi•1y ago
Would it be 200 lines of Java? It'd be 200 lines of just for the boilerplate. It isn't really a selling point of Clojure because it is subjective, but low-syntax high-terseness look of the code is in itself a reward for using the language.

And there isn't anything especially wrong with sticking to Java primitives if someone is comfortable with them. They work fine for Java programmers. The dude doesn't need to learn a new async library to write an LSP client if he doesn't feel like it. Code works, its easy to read, easy to understand and modify.

koito17•1y ago
Line count is not very useful to compare without the context of standard library size, third-party dependencies, etc. The code in TFA depends[1] on a JSON library[2] that is about a thousand lines of code (excluding tests) wrapping a Java library for JSON decoding.

Then there's other things to consider, like the fact that this LSP client, while succinct, pays not only the cost of loading Jackson, but also the cost of loading clojure.core, which is quite non-trivial[3]. Startup time for LSP servers and clients definitely matters to some, considering that e.g. even clojure-lsp recommends running native executables over JAR files[4]. Can't find documentation proving it's for quick startup, but it's a plausible rationale for their recommendation of a binary over a JAR.

Note: I have used Clojure professionally and in hobby projects. I think it's nice that one can interactively develop a minimal LSP client and the resulting amount of work is roughly 200 lines of code. I say "minimal" because it's unclear how this client deals with offsets reported by LSP servers, which are all given as offsets in a UTF-16 encoded string. In any case, I still think advertising "LSP client in 200 lines of code" hides valuable information regarding functionality, implementation, "actual" code size, and trade-offs made in the choice of technology stack.

[1] https://github.com/vlaaad/lsp-clj-client/blob/a567e66/deps.e...

[2] https://github.com/metosin/jsonista/blob/c8f2b62/project.clj...

[3] https://clojure-goes-fast.com/blog/clojures-slow-start/#cloj...

[4] https://clojure-lsp.io/installation/#embedded-jar-legacy-exe...

pron•1y ago
Between records and compact classes [1] Java's boilerplate isn't what it once was.

[1]: https://openjdk.org/jeps/512

newlisp•1y ago
It's idiomatic "low-level" Clojure, though. Not everything is a happy place where you're just manipulating maps and vectors like in most examples.
0x1ceb00da•1y ago
> lesser known language that has a hard enough time attracting users

For very good reasons.

dig1•1y ago
I don't see why this wouldn't be considered idiomatic clojure code; it makes proper use of all the facilities provided by the language and the main intention of this code is to follow the article. Additionally, the clojure core team often encourages not to shy away from using java code directly, as this approach strikes a good balance between performance and language expressivity.

> It’s so verbose and complex for what it is doing. ... and using core.async

I think this code is actually quite straightforward and easy for a clojure developer to understand. In fact, using core.async in this case would be overkill and could complicate things further.

daveliepmann•1y ago
This looks like the other completely normal, idiomatic Clojure programs I've seen which manipulate a StringBuilder. And as Clojurians go I'm far to the succinctness/concision-preferring end of the spectrum.

I'm curious to see your core.async-based version :)

askonomm•1y ago
Holy crap is this unreadable or what (notably the lsp-base fn). There's a reason why in most Clojure companies I'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't, you might as well just write binary. But, I'm not surprised many people don'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.
slifin•1y ago
To me something unreadable is code that I cannot statically make any assertions about the runtime behaviour of the code

This function you're complaining about looks like 2 virtual threads doing program input reading and output writing for the LSP client given some ArrayBlockingQueues in about 25-30 lines

If I wanted the complete story I could use Clojure's inbuilt test runner to slip some ArrayBlockingQueues in there and run it under record with Flowstorm

Then leisurely seek through the entire state of the program, to get the play-by-play of how this works

There are so many good design choices in this language and a good 30% of colleagues I run into are not even doing the basics of like running a REPL, I think some people just need to clock in with a decade of C# or PHP or TS or JS or Python or whatever to get a taste of a language with next to no inbuilt immutability, statements instead of expressions, no reload-ability in the language semantics and just crapshot debuggers that run in lockstep with the program execution