Earlier quoted context omitted.
Yup. Writing a good language server is a big task. It needs to do everything a compiler frontend does, and most languages don't have compilers that are written with this use case in mind. Even if parts of compilers can be used as a library, they are very rarely written in a IDE compatible way, where you need fast, incremental and very resilient parsing and type checking. Typescript was written with IDEs in mind from…
> Yup. Writing a good language server is a big task. Language servers, along with auto formatting and debugging features should now be first-class design decisions for a new language. They shouldn’t be afterthoughts. Something Go for right was the formatted, something that they for wrong was debugability. New languages must make a decision to get these features right from the start.
Erlang LS – The Erlang Language Server
11–20 of 22 posts
Re: Erlang LS – The Erlang Language Server
#12https://gitpod.io/#https://github.com/erlang-ls/erlang_ls
Zero setup, just login via your GitHub account.
Re: Erlang LS – The Erlang Language Server
#13If you would like to try it out, you can do it in the browser: https://gitpod.io/#https://github.com/erlang-ls/erlang_ls Zero setup, just login via your GitHub account.
Re: Erlang LS – The Erlang Language Server
#14If you would like to try it out, you can do it in the browser: https://gitpod.io/#https://github.com/erlang-ls/erlang_ls Zero setup, just login via your GitHub account.
Is there a way to try it without logging in?
Re: Erlang LS – The Erlang Language Server
#15Does it work better than: https://github.com/pgourlain/vscode_erlang ?
https://github.com/pgourlain/vscode_erlang#erlang-for-visual... https://erlang-ls.github.io/features/
Re: Erlang LS – The Erlang Language Server
#16I'm sure this one is good. But something I've noticed from trying Language Servers for various languages is that a lot of them still need to get over the hump to be an overall help rather than a hinderance. i.e. using a Language Server that's flakey and fouls up often is more annoying than not having one enabled at all.
Yup. Writing a good language server is a big task. It needs to do everything a compiler frontend does, and most languages don't have compilers that are written with this use case in mind. Even if parts of compilers can be used as a library, they are very rarely written in a IDE compatible way, where you need fast, incremental and very resilient parsing and type checking. Typescript was written with IDEs in mind from…
Re: Erlang LS – The Erlang Language Server
#17Earlier quoted context omitted.
It's not erlang-ls, but having used elixir-ls is a pleasure (for the unaware, elixir runs on the erlang vm). Pretty much everything just works as you would expect, and it's a huge timesaver. Erlang and elixir have static typechecking, which is a slow process from the command-line, but it's integrated and "just works" with the ls, and rather refreshingly fast. I even wrote a Zig package for elixir, which plugs into th…
Wait, please explain/expound on using Zig contained within Elixir?! Is this running in or out of proc? What is your dev/edit cycle like? I love Zig, but it doesn't have the security guarantees (yet) of Rust, so I would recommend either running it out of proc or within an in-proc Wasm environment, which actually has other interesting properties. edit https://www.reddit.com/r/elixir/comments/e955jw/zigler_zig_n... http…
I think in general though you should be using zig not rust, because zig is aggressively unopinionated about memory allocators, so when you allocate memory in your code, you'll use the allocator that zigler provides, which makes the BEAM alloc conformant to zig's allocator interface. This means your code will be more performant, because there are fewer trips to the kernel on allocate and destroy, and your code will respect the BEAM's memory fragmentation, cache optimization, etc.
Re: Erlang LS – The Erlang Language Server
#18Re: Erlang LS – The Erlang Language Server
#19Re: Erlang LS – The Erlang Language Server
#20The more I learn about lisp the more I see its insights. The interpreter itself is kind of like the language server.