Hacker GitHub

← All repos

hsivonen/encoding_rs

View on GitHub ↗ ★ 473 Rust

A Gecko-oriented implementation of the Encoding Standard in Rust

7 mentions on Hacker News by 5 people: 1 story, 6 comments · first 2017-07-04 · latest 2022-08-22

Mentions per year 7 mentions · busiest year 2021 (3)
20082026
  1. …licensed or not? encoding_rs is clearly licensed, otherwise I wouldn't have used it in ripgrep: https://github.com/hsivonen/encoding_rs Take it up with the auto-detection tools. Or at least do your due diligence before claiming ripgrep is…
  2. …on my machine (newer version of cargo-license maybe?). Slightly complicated but still above board https://github.com/hsivonen/encoding_rs#licensing > Custom License File (1): encoding_rs
  3. That's not the only use of SIMD in the crate (e.g. see https://github.com/hsivonen/encoding_rs/blob/e98a2096ab09c92... ), but I haven't looked into exactly where/how it's used further.
  4. As far as I can see it does not use SIMD for UTF8 validation, only likely/unlikely instrinsics, see https://github.com/hsivonen/encoding_rs/blob/e98a2096ab09c92...
  5. I'd be curious how this compares with the encoding_rs crate ( https://github.com/hsivonen/encoding_rs ), which also offers UTF-8 validation (among many other things).
  6. …is now (I think) in Firefox. [1] - https://encoding.spec.whatwg.org/#concept-encoding-get [2] - https://github.com/hsivonen/encoding_rs
    comment by burntsushi · 2017-07-04 · in Skip grep, use awk