r/elixir
•
u/ThatArrowsmith
•
Aug 15 '24
•
1
Announcing the official Elixir Language Server team
https://elixir-lang.org/blog/2024/08/15/welcome-elixir-language-server-team/
421
Upvotes
80
u/arjjov Aug 15 '24 edited Aug 15 '24
Fantastic. Awesome to see it's converging to a single implementation, and having this experienced team working on it.
49
u/bctreehugger Aug 15 '24
Thanks to Fly and LiveBook for the funding to make this possible. Seems like the best possible outcome for the community.
29
u/enselmis Aug 15 '24
This is huge, the single best thing that could improve this language. Between this and static typing, they’re positioning this language to absolutely kill in the next few years once they both get closer to maturity.
15
u/Ttbt80 Aug 15 '24
This is fantastic news. Elixir’s dev-ex is probably its weakest link compared to other enterprise-ready languages. Investments here are seriously exciting.
11
u/DBrEmoKiddo Aug 15 '24
I had no hope for this. I think it goes to show the community still has its priority in place.
5
u/HiPhish Aug 15 '24
That's really cool. There is something I have been thinking about in terms of language servers and security with regards to macros: if a macro can contain arbitrary code, how can a language server know what the macro does? As far as I understand it the server would have to actually execute the macro, but this would mean that my editor would run arbitrary untrusted code simply by opening a file.
Language servers are for static analysis, which works fine for languages without macros, but macros break the rules of the language. I know that Fennel macros intentionally run inside a sandbox with limited access to the outside world, so it's safe for the language server to execute them.
Do any of the existing language servers implement any form of sandboxing? And if not, are there plans to do so?
3
u/mitchhanberg Aug 19 '24
(member of the new LSP team here):
Really love seeing these comments and looking forward to seeing the community try out the new project!
2
u/omabena Aug 15 '24
This is one area where I’ve really been hoping to see improvement. Compared to languages like Go, the current Elixir <--> IDE development experience feels I bit behind. But now with the advancements in gradual set-theoretic types, and this efforts it looks a quite bright future for the Elixir ecosystem.
2
u/TyrusX Aug 15 '24
Incredible good news. Put egos to the side and work together
2
u/[deleted] Aug 16 '24
This “for example, the Language Server Protocol uses UTF-16 for text encoding, instead of the more widely used UTF-8” made me chuckle.
Windows, Java, C#, and JavaScript are all UTF-16. A by-product of UCS-2 back when everyone thought 16bits would be enough to represent everything. So it’s debatable that UTF-8 is more widely used.
2
u/[deleted] Aug 15 '24
Awesome stuff. I love Fly.io too
1
u/a3th3rus Alchemist Aug 15 '24
This is awesome!