Live data from Hacker News

Viewing profile — sans-seraph

sans-seraph

HN member
Joined
Thu, May 23, 2024, 5:37 PM UTC
HN karma
72
Public activity
11 items

About sans-seraph

No profile information was provided.

Recent public activity

  1. comment
    Comment #41115264

    > Ability to temporarily borrow exclusively owned objects as either shared or exclusive-mutable adds enough flexibility. Rust quietly has several other features in order to improve…

  2. comment
    Comment #41113103

    > I do wish not handling a Result was a hard error, and not just a warning via `must_use` It is possible to turn any Rust warning into an error with the use of the `deny` attribute…

  3. comment
    Comment #41112200

    I have been aware of this proposed initiative for some time and I find it interesting that it is now becoming public. It is a very ambitious proposal and I agree that this level of…

  4. comment
    Comment #40783708

    > Most serious programs will use write() and then check the return value. Similarly in Rust, serious programs will use writeln rather than println, and will receive the standard co…

  5. comment
    Comment #40783603

    Let us be clear that the notion of "change" being referred to here is forward compatibility, not backward compatibility. The user is commenting on the fact that Rust library author…

  6. comment
    Comment #40662746

    This was my initial mindset as someone whose background lies in untyped languages, but after time with Rust I no longer feel that way. My feeling now is that seeing a Rust codebase…

  7. comment
    Comment #40662313

    In the case of Rust the fast feedback loop is facilitated by the `cargo check` command which halts compilation after typechecking. Unlike in Swift the typechecking phase in Rust is…

  8. comment
    Comment #40601968

    The +=1 in the above code is defined behavior. Unlike in C, the Rust compiler is not allowed to assume that overflow does not happen, and must restrict its optimizations accordingl…

  9. comment
    Comment #40601781

    Rust's linting tool, Clippy, provides a lint that will produce a warning when a function pointer is cast to any integral type: https://rust-lang.github.io/rust-clippy/master/index.…

  10. comment
    Comment #40600951

    No, Rust does not allow safe conversions from integers to function pointers. The code `main as usize as fn()` will result in a "non-primitive cast" error. In order to convert from …

  11. comment
    Comment #40457616

    > Question: are there any opportunities to rewrite this logic in a more "structured" style, or to make any other optimizations? Because A and C only jump to B it is possible to str…