Earlier quoted context omitted.
Yeah, one thing it really shines at is recommending eating disorder content to teenage girls.
To be honest the world at large doesn't have an anorexia problem but an obesity epidemy. 50 millions children under the age of 5 are already obese (and I think 93% of obese children shall stay obese their entire life ). So... Anorexia may be a hill to die on and it's not fun for parents of anorexic kids but priorities, priorities and priorities. The real eating disorder worldwide leads to obesity, not anorexia and I…
Elixir saves Pinterest $2M a year in server costs
71–80 of 481 posts
Re: Elixir saves Pinterest $2M a year in server costs
#72Earlier quoted context omitted.
> When our notifications system was running on Java, it was on 30 c32.xl instances. When we switched over to Elixir, we could run on 15. Would be curious to know how they tried to optimise the Java stack. Because on every benchmark I've seen the JVM is faster in every which way than Elixir. Except for memory where often people will over-provision the JVM rather than look at where their code might be over-allocating o…
Elixir is slower than plain PHP according to the techempower benchmarks. I'm not even sure how that's possible but it is. By like a factor of 2 iirc. I'm not sure how elixir is that slow since it's compiled.
Are you looking at a benchmark that compares real-world usage, or a microbenchmark like hello world or a small JSON payload?
Re: Elixir saves Pinterest $2M a year in server costs
#73And then they take that $2M and bribe someone at Google to ensure 59% of the image search results are from Pinterest.
I'm really surprised Google Images doesn't block Pinterest.
Re: Elixir saves Pinterest $2M a year in server costs
#74Earlier quoted context omitted.
To be honest the world at large doesn't have an anorexia problem but an obesity epidemy. 50 millions children under the age of 5 are already obese (and I think 93% of obese children shall stay obese their entire life ). So... Anorexia may be a hill to die on and it's not fun for parents of anorexic kids but priorities, priorities and priorities. The real eating disorder worldwide leads to obesity, not anorexia and I…
Obesity is not due to an eating disorder, it's due to sedentary lifestyles, pedestrian hostile neighborhoods, and market forces in the food industry.
Wrong. Not in most cases, but binge eating disorder is a thing.
Re: Elixir saves Pinterest $2M a year in server costs
#75Re: Elixir saves Pinterest $2M a year in server costs
#76I am very skeptical about this. The title makes it look like it's all about Elixir, but there seems to have been a fair amount of re-architecturing. "One of the systems that ran on 200 Python servers now runs on four Elixir servers" This alone is a major telltale.
However, could they have done a 50x performance improvement in Python? And what about the other numbers, like speed and concurrency?
That said, I'm confident they crunched the numbers and did the tradeoffs; after all, adding another language and/or architecture will make your company more complex, makes hiring more complex.
Re: Elixir saves Pinterest $2M a year in server costs
#77My problem with Elixir is that the syntax is too noisy: defmodule Math do def sum(a, b) do a+b end end Compare that with Python: def sum(a, b): return a+b Having the name of the file be the name of the module and whitespace defining the blocks is the perfect approach for me.
Re: Elixir saves Pinterest $2M a year in server costs
#78I wonder how much of their traffic is angry people who ended up there by mistake. They could save a lot more than $2M if they just set robots.txt to disallow everything.
I probably might even sign-up some day if I weren't repelled by this being required every time I come. I even stopped reading Quora, and, most recently, Twitter because of this - they started requiring signing-in while I don't want to stay signed in and be tracked even though I actually have respective accounts.
Re: Elixir saves Pinterest $2M a year in server costs
#79My problem with Elixir is that the syntax is too noisy: defmodule Math do def sum(a, b) do a+b end end Compare that with Python: def sum(a, b): return a+b Having the name of the file be the name of the module and whitespace defining the blocks is the perfect approach for me.
That said, code volume is never the issue, code clarity is. Right now you're comparing trivial examples, but what does in this case Pinterest's high volume spam detection code look like? I wouldn't judge a language on microscopic code snippets, or disregard them as "too noisy" when it usually isn't a deciding factor in programming languages.
Re: Elixir saves Pinterest $2M a year in server costs
#80By the way, why Elixir and not just Erlang? (I mean a genuine question, not a dislike to Elixir, I don't code either of these yet and am curious)