Comments by "Winnetou17" (@Winnetou17) on "Rust is not a faster horse" video.

  1. 2
  2.  @NoBoilerplate  But Java had trillions of dollars of optimisations too! That's why I was shocked. If I'm not mistaken Java has about the most advanced (and complex) garbage collection algorithms. And I know the JDK is quite a beast. And I say that as someone who doesn't like Java (and I like javascript, though I kind of hate about all frameworks on it). Of course, there's no ceiling in optimisations. Unless you don't have enough data. And Javascript (unlike Typescript) does lack having strong typing everywhere for example. That by itself includes some run overhead. I guess it's a matter of things like Python having those ML libraries that are basically implemented in C and calling them in Python gives you basically the same speed (for those specific functions). Also like the Falcon framework/module in PHP is basically a collection of C functions presented in PHP which, if you only use them, you're close to C speed. But in both cases, you're restricted to a set of functions. And the language itself, being dynamic, has an overhead of its own. I think that the benchmarks in which JS runs well are just that - cases where the engine already has an optimized solution implemented. Though if these cases are in good enough number, especially for the domain where JS is used, that's good and I think they can be used as representative of the language. But in general I'd go by worst case. I guess I'll just have to up my game on current language speeds. I did a quick search now and I can't say I'm happy with the first page of google's results. To be fair, I did find in there some instances where JS is faster or on the same plane (to say so) with Java. But I'm still not convinced. To be frank, I really don't see something like Elasticsearch being implemented and running as well on Javascript. While on this topic, do you have any good benchmarks sites ?
    2
  3. 1