News for hackers. Stuff that matters.
Re:What I mean when I say that machine learning in Elixir is... by hosh on Thursday May 09, 2024 @12:21PM (#40309795)
What typing does Python have available?
Re:What I mean when I say that machine learning in Elixir is... by greenavocado on Thursday May 09, 2024 @12:21PM (#40309799)
Enforcing use of mypy is good enough for all real world use cases

https://mypy.readthedocs.io/en/stable/index.html

Re:What I mean when I say that machine learning in Elixir is... by hosh on Thursday May 09, 2024 @12:43PM (#40310066)
As far as the lack of US Elixir developers, there is truth in that. It isn't that there are not Elixir developers, but that everyone who wants to work on Elixir is already working on Elixir.

Years ago, I knew this engineering manager whose strategy for recruiting Erlang developers wasn't to look for Erlang developers. He found generalists and polygots who would do well in any language, and were willing to learn Erlang, and recruited them, and then taught them Erlang. These are the kind of people who can take advantage of what Erlang/OTP (and Elixir) offers. They can do well with or without typing.

As for defects, the key isn't necessarily what's happening within a module, but how the various GenServer interact with each other. Having low defects within module boundaries are table stakes when working with Elixir. So if you're only measuring defects within module boundaries, you might miss the systemic problems related to interacting GenServers.

Re:What I mean when I say that machine learning in Elixir is... by h0l0cube on Thursday May 09, 2024 @12:45PM (#40310101)
How is this different to typespecs and Dialyzer?
Re:What I mean when I say that machine learning in Elixir is... by greenavocado on Thursday May 09, 2024 @12:51PM (#40310157)
See the first reply to the question linked below. I have nothing more to add.

https://elixirforum.com/t/how-to-make-dialyzer-more-strict/1...

Re:What I mean when I say that machine learning in Elixir is... by cess11 on Thursday May 09, 2024 @05:07PM (#40312982)
OK, great, then I'll add that pattern matching on struct types is built-in and good enough for my purposes.

Haven't used the LSP-server in a while, but I think it runs the Dialyzer-checking by default too, so that layer of checking will likely be there without adding project dependencies.

Re:What I mean when I say that machine learning in Elixir is... by hosh on Thursday May 09, 2024 @01:17PM (#40310436)