‹ BackHN Continuity

Thread

From the creator of Redis; run LLM locally with ds4

359 points · 103 comments · fibo

  1. pulkitsh1234 · · focus · HN ↗
    curious, why did antirez go with C instead of something like Rust ?
    1. ilaksh · · focus · HN ↗
      Antirez has been writing C for a million years so is much more familiar with it than Rust.

      Also the goal of the project is to squeeze the absolute maximum performance and capability possible out of limited hardware resources (compared to clusters of B200s or something).

      Does Rust even give you good access to low-level code on different platforms? And if so, how much extra work do you need to do to make it acceptable to the compiler? And is that work worthwhile if you are not going to get the security guarantees of normal Rust code? Is it a worthwhile tradeoff when the goal is performance?

      Those are real questions by the way, not rhetorical. If Rust could work well for this type of project then I would like to know.

      1. Aeolos · · focus · HN ↗
        Yes, Rust gives you great access to low-level code on different platforms, including SIMD. It is also alias-free by default, and gives you excellent primitives to write multi-threaded code with compile-time correctness guarantees, which is how projects such as zlib-rs end up significantly faster than their C counterparts.[1]

        It's about as good as it can get for this kind of code.

        [1] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;rust&#x2F;comments&#x2F;1ixt1ei&#x2F;zlibrs_is_faster_than_c_trifecta_tech_foundation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;rust&#x2F;comments&#x2F;1ixt1ei&#x2F;zlibrs_is_fas...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.