212 karma · joined January 4, 2019
edit: [1] Turns out it was the first iPhone.
And C++ (and rust probably) compilers have no issue doing these optimizations as well.
Take the example of Java:
Why are loops faster than using streams (in most cases)? Shouldn't the optimizer/jit be able to see that most streams (even chains of map, filter and reduce etc) are equivalent to simple loops and just optimize away the overhead (in the cases where loops are (obviously) faster; non-parallell, serial computing)?
(I got the sarcasm)
Every comparison article doesn't need to (and shouldn't) include a comparison about every kind of detail about two technologies.
> I get that reddis, memcached, and keydb are all roughly in memory hashmaps but beyond that knowing what makes them different, how hard are they to operate, what they are good at and bad at is going to be more helpful in selecting which technology to use than a simple throughout benchmark.
If a post is about speed/performance, and you want to know implementation details (or accessibility or how well it plays with your stack) then look for something else. A quick google search quickly gives me whatever details I want to know about whatever two widely used technologies:
For example redis vs memcached: https://stackoverflow.com/questions/10558465/memcached-vs-re...
But more importantly its okay for a post to be narrow in scope. The requirement should be that it is not misleading in whatever question it sets out to answer.
A benchmark like this [1] (showing c++ < js < java) is absolutely useless as the person writing it has no idea what they are doing, e.g. using vector in java.
Looking at most benchmarks java beats js more often than not, but they are often neck in neck.[2]
C++ always beats both, often by a huge margin (when written well).[3]
[1] https://www.linkedin.com/pulse/algorithmic-performance-compa...
[2] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
[3] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Changing the creations of God is still very much considered forbidden in the religion. Also many scholars would still consider e.g. abortion without valid reason before ensoulment as forbidden. Personally I think the Islamic world would wrestle much more with this than any other.