News for hackers. Stuff that matters.
Re:What I mean when I say that machine learning in Elixir is... by ajmurmann on Thursday May 09, 2024 @12:37PM (#40309996)
I am really intrigued by the distributed systems capabilities that BEAM brings. I built a chat app using it and am also using Mnesia DB to store recent messages. However, my experience coding it has been terrible. I am using IntelliJ with an Elixir plugin and there is essence is no auto-complete. I used to write a ton of Ruby, but there RubyMine was really good at guessing what's available. Not so much here. On top of that more often than not the errors from Mnesia are just terrible. Most of the time I just get "TypeError" and a line number. Unclear what it expected to get and what it got passed instead. What IDE/editor have you found helpful? Are there any tricks to work around this? In Ruby I sometimes would use Pry Byebug to explore live what's actually available and iterate on my code in the REPL. Is there a similar approach you recommend here?
Re:What I mean when I say that machine learning in Elixir is... by sbrother on Thursday May 09, 2024 @02:10PM (#40311100)
I'm glad I'm not the only one who has had awful luck with that IntelliJ Elixir plug-in. Maybe I'm doing something wrong, but it just doesn't work for me.

I've been using emacs + elixir-mode + alchemist since Elixir came out and I have zero complaints, it all works beautifully complete with autocomplete, jump to definition and documentation popups. But obviously emacs isn't for everyone.

Re:What I mean when I say that machine learning in Elixir is... by lawn on Thursday May 09, 2024 @01:07PM (#40310341)
I've had success with the ElixirLS language server. It should work with most editors I assume, but I use it with Neovim. Autocomplete, diagnostics, goto definition work as expected.
Re:What I mean when I say that machine learning in Elixir is... by kamma4434 on Wednesday May 15, 2024 @09:16AM (#40366508)
Vs Code with the default Elixir plugin is pretty solid. Not wonderful but you get all you need, including the debugger.