3 ms·
How? Do you mean how do I know it's slow? Because it takes longer to run. Write a typical computation such as Fibonacci in Java and Erlang/Elixir and compare
by blunte 5y ago
How? Do you mean how do I know it's slow? Because it takes longer to run.
Write a typical computation such as Fibonacci in Java and Erlang/Elixir and compare. Fortunately someone has already done this.
Elixir is 3x slower than C and 2x slower than Java for this single thread example.
https://github.com/drujensen/fib https://github.com/drujensen/fib
Apparently this upsets people for me to point this out. However, I did not say that Elixir was slow in general or a bad choice. It's an excellent choice for problems which suit parallelization or which require reliable, consistent performance.
Since the parent poster had commented that adding this multi-module dispatch would not be performant, I merely pointed out that the single thread peformance was already slow (as in, why worry too much about the performance cost of the multi dispatch suggestion).
- CraigJPerry 5y agoI’m starting to get a bit fed up with the down-voting behaviour here recently. It used to be that on HN you down-voted for people who were obstructing conversation, being disingenuous or in some cases being excessively disrespectful. Now having read 3 of your comments and seeing all 3 are heavily down-voted and yet the content of your messages is constructive and interesting. If you disagree with something, fine, just don’t vote on it. Save the down-votes for bad actors, not someone with a different view. The last thing HN needs is to become the kind of place where you’re actively encouraged to karma farm or whatever that term is for that behaviour on reddit.
- dnautics 5y agoI think they were downvoted because the first response was almost contentless and the other posts complain too much about the downvotes. Yes, there is some "good info" there but basically they are still presented in a relatively context-poor fashion and defensive, and willfully ignoring other points being made, and most active practitioners of elixir are aware of the context, so the comments are of questionable utility except for people who don't use the system, who may interpret it out of context and come to conclusions that are wrong. In short, they still have a shitposty feel.
- ddek 5y agoEh, I'd rather the thread discussed the language features in TFA. Once again, a potentially interesting comment section is sidetracked by yet another referendum on {{ niche_programming_language }}'s application to web development. Can't we just keep this to release posts?
- pjmlp 5y agoHN now has lots of folks that just down vote when they disagree, as it happens in many other communities after they grew beyond a specific user base. I always made my statements the way I feel like, since the BBS days, and voting systems haven't change that. There will always people that want to silence you, regardless of the medium. Life is too short to care for them.
- brightball 5y agoIt’s slower for an operation like that because of the scheduler ensuring a single process isn’t hogging all of the CPU. When was the last time you needed to write a Fibonacci for anything you’ve built in your career? It’s a benchmark that doesn’t show anything useful for real world applicability.