Summary from my talk at Ya!va Conf 2026
Since I wrote Beans: a new LSP for the JVM, almost 3 months have passed; I’ve been thinking and experimenting a lot since. I’ve been speaking about Beans at Ya!va Conf 2026. That made me think a lot about the reasoning why I think there is a reason for Beans to exist.
What is an IDE
When I imagine what the I stands for in an Integrated Developer Environment, I imagine something like this:
On the left, we have the languages we wish to implement. In the IDE, we will have what I call language support modules (here showing up as yellow boxes). The language support, editor, and UI are forming a very cohesive, very tightly coupled system. The language support shapes the UI, the UI shape what the support needs to provide.
This is how you are getting your big-box IDE product like IDEA or (classic) Visual Studio. These products are hyper-optimized to the use-case they are serving. Nothing wrong with this. But what happens when you have someone entering the space?
As mentioned, these language support modules are really tightly integrated into their own respective product. That means that a new IDE or editor will need to implement these bits again-and-again. This diagram makes an IDE vendor happy; your own respective platform had a moat, and others need to replicate work.
But who is winning by this? The developers? I can understand that a developer might build a relationship to an IDE because they learn how to us it, but I don’t think restricting the market benefits them overall.
I think an often forgotten persona here is the language author. I think apart academic languages, language authors are looking for adoption. The more people use your language, the better; you get a bigger community, you get more feedback, you get more people willing to put work into making your language better.
Do you think as a language author you win by having independent IDEs cooking up independently their special sauces to support your languages? Does the figure above show you a space that favors developers and language authors by limiting reuse? For me, it does not.
The LSP
The year is 2026 and Microsoft announces VSCode 1.0. The editor1 already has some language support:
- C# by OmniSharp
- TypeScript by… TypeScript
And the VSCode team was at the time planning to add linter support to ESLint and TSLint.
According to my research, at this point, all of these integrations run on their own protocol. Already decoupled from the IDE, but still speaking their own language.
I think the team saw that this is an untenable state to be in: they are reinventing protocols for compilers and linters that do—for the most part—a very similar job.
Eight months later the VSCode team announces the Language Server Protocol.
The protocol
The LSP on its surface is quite simple. The LSP is a client/server architecture with:
- The client being the editor
- The language support being the server
The two talks over whatever bidirectional pipe, talking JSON+RPC.
We talked about IDEs above, and their well integrated, but platform-locked language support. What the LSP did is create the ability for making language support once, by moving the yellow boxes out of the editor, into its own independent box on the left.
But as always, doing this is not a free lunch:
- The protocol constraint what you can do.
- Presentation is out of control by default to the language support (through extensions it can impact the editor, but then you need to do into per-editor level)
However:
- By being an external process, you are not bound to the platform or language of your editor.
- An example I could make is the increasing level of Kotlin usage in the IntelliJ platform. If you want to integrate with IDEA, you will need to use coroutines. You can isolate, you have Java compat, but the writing is on the wall: life is comfy if you use Kotlin.
And this benefit is huge.
Now you are free to choose whatever language to build your language server.
If you can make bash respond to LSP requests, you can build your support in it (please don’t).
What happens when you have multiple editors or IDEs now?
As our language support is extracted out, we don’t need to replicate work unnecessarily. Language support can focus on doing its job right, and editors can focus on doing their work right.
LSP as a success story
Outside the JVM, there are plenty of examples. Just picking the major ones (sorry if I left you out 🫡)
- As external language support:
- rust-analyzer (Rust),
- gopls (Go),
- clangd (C/C++),
- Tinymist (Typst)
- As compilers giving you a language server out-of-the-box:
- TypeScript 7
- Gleam: the new strongly-typed Erlang BEAM VM language (cool stuff!)
- Linters:
- Ruff
- Biome
- Oxlint
- many more…
- Even grammar checking:
- Harper,
- LTeX+
I would lie however if I would state that the JVM didn’t benefit from LSPs. Inside the JVM, we have:
- Eclipse JDT (Java)
- kotlin-lsp (Kotlin)
- Metals (Scala)
- clojure-lsp (Clojure)
However I felt when I used them that something was missing. As a reference, I had been a Gradle contributor for many years; that meant that I’ve spent the majority of my day writing:
- Java, the still prominent language in Gradle
- Groovy, as Gradle is mostly tested using Spock
- Kotlin as most the builds are written using
.gradle.kts
I was always saddened by the gray text I was meeting up with when I opened an editor, or the incompatibility between languages even after installing extensions. And by thinking almost years why this is the case, I think it clicked.
What’s wrong?
The LSP works great if you have isolated languages. Let’s take the following example:
Here, we have a diagram showing C/C++, Python, and Go. They are mostly independent from each other. We could argue that they have some overlap, but for the most part these are standalone languages; if you work in them, you don’t leave them often.
However if we look at this picture featuring JVM languages, we can feel something is off:
These are not independent languages. In my everyday development I move between these fluidly. Navigating a definition in Kotlin and landing on a Java class is normal.
And that’s when it clicked: of course we are not dealing with isolated, individual languages; we are dealing with languages bound by the ecosystem.
The JVM is great because it can accommodate a wide variety of folks. You want to build a product core in Kotlin, have a public API written in Java, testing it with Groovy, and when the strange dude shows up who wants to write Scala or Clojure you could be “sure, why not?”. That is a huge superpower when you use the JVM. Languages becomes leafs, belonging to the allmighty JVM.
But this means that if you want to truly enjoy the JVM, you should be free to move around languages. No matter if you use a Kotlin class from Clojure, a proper language support should facilitiate this.
What’s the blocker?
There is a big problem. When you look at the the LSP specification you find something unnerving. It has zero word about how language servers should communicate between each other. The case is not helped by the fact that the lifecycle is controlled by the editor. For example, VSCode will only start up a language server when it sees a matching file.
Suddenly, we find our distributed language servers with their pants down. We just found out they they cannot talk to each other. How we are going to now move from my Scala class to Kotlin?!
When I was thinking about this, I thought there is two possibilities:
- We sit down major language langauge servers, we agree on a common intra-language-server protocol, and individual LSPs will use that to interchange model information. And this is without mentioning the lifecycle problems caused by the client.
- Or else…
Or else doing something quite maniac. I came to the conclusion is that number one is infeasible. I don’t see independent members of ecosystem willing and doing such a high-level of cooperation.
And that’s when I realized: the abstraction level if all wrong. If you have all these indenpendent languages, sort of an implementation detail to get a JVM class file… We might’ve worked over the wrong level. We need to push the level higher. We need an LSP for the JVM ecosystem.
That’s how my idea of Beans came. With Beans, you have a simple LSP today’s and tomorrow’s editors can connect to. No tricky inter-LSP communication. No tricky lifecycle-management. A one-stop-shop for the major JVM languages.
This… is quite a moonshot, I know. But at this point I’m convinced that if we want more people to enjoy the JVM, we need to bring it to other editors than the classic Java IDEs.
What Beans should be?
There are some functional requirements I want Beans to fulfill:
- Have an open data format
- Be a language server
- Be a command-line usable tool
Next to the functional things, we should think of the non-functional requirements as well:
- Near instant startup time
- Eventual consistency over correctness
- Single binary executable
Have an open data format
Unless there is a strict requirement to go custom, I want Beans to serialize and store data in a format in a way that is easily processable by external tools and by you or your agent. Currently, this is manifested in:
- JSON-based semantic data serialization
- SQLite as data storage backend
Both of them have already established toolsets to extract, transform, and load into whatever you want.
Be a language server
Obviously, Beans should be able to communicate through the LSP.
Be a command-line usable tool
This is an interesting one. We didn’t cover this yet, but Beans should be able to start up almost immediately. This opens up some possibilities, that I’m not sure of, but I want to keep the door open for them.
The major topics are querying and maybe mutating code. Beans as a linter? Beans as a formatter? I’m not sure yet of use-cases, but I want to keep the door open. What is important to design the CLI interface of Beans, so it will have room for future expansions.
Near instant startup time
Beans should be ready to work almost immediately, whether an editor starts it or you invoke it from the command line.
Eventual consistency over correctness
I would rather have responsive language support that catches up with my changes than wait for a perfectly up-to-date view of the whole project.
Single binary executable
Installing and running Beans should mean downloading a single executable, without having to set up a separate runtime.
Footnotes
-
Yes, I don’t think VSCode by default is an IDE. With the right extensions, however, it can get close to one. ↩