69 karma · joined Mar 12, 2011 (15y ago) · 15 submissions
[ my public key: https://keybase.io/ericmj; my proof: https://keybase.io/ericmj/sigs/8XDVhXU20uUdMCdnYZj49F7Q08Z3a6Qd1rJMUQQY954 ]
comment 5y ago · link · parent
comment 6y ago · link · parent
The danger is using a single process of the GenServer instead of multiple, so you can get single process bottleneck that won’t use multiple cores. You don’t have to know any intricacies of BEAM or OTP to know and design around using multiple process instances of the GenServer.
> I know you can do distributed state in Elixir too, but it doesn't seem as easy as it is in other languages.
You can use Redis in Elixir as well. Saying that Elixir is worse at distribution than Python/Ruby because ETS isn’t distributed is a bit like saying Python is bad at distribution because objects are not distributed. It’s especially strange since Elixir ships with a distribution system (so you can access ETS from other machines) while your other example languages do not.
comment 6y ago · link · parent
You should check the `:plug_status` field of the exception and only log/report the error if it's in the 5xx range.
comment 6y ago · link · parent
You don’t have to go to Erlang documentation to learn about them since they are documented in Elixir as well [1] [2].
[1] https://elixir-lang.org/getting-started/typespecs-and-behavi... [2] https://elixir-lang.org/getting-started/typespecs-and-behavi...
comment 9y ago · link · parent
But regardless of how good search is it wouldn't find ryal_core when searching for "commerce" if that word or any similar is nowhere in the metadata. The description for the package ryal_core is "The core of Ryal." which doesn't do the search any favours.
comment 9y ago · link · parent
comment 11y ago · link · parent
For function overloading the decision for which implementation to use usually happens at compile time along with the type checking. Pattern matching happens at runtime but is more powerful since you can pattern match based on you guessed it: patterns, instead of just types.
Another small difference is that with overloading multiple functions with different signatures are created (they just share name) but with pattern matching there is a single function with multiple "function clauses".
12.
EmberJS and Confusion, Part 2(1fifty9.com ↗)
30 points · by ericmj · 13y ago · 6 comments
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent