• 2 Posts
  • 745 Comments
Joined 2 years ago
cake
Cake day: September 24th, 2023

help-circle


  • Using a function is strictly worse than figuring out the formatting at compile time (something Zig also does).

    The derives are just shortcuts. You can write everything out long-hand like you would in C++ or Python too if you really want.

    Honestly both of these complaints are essentially “why does Rust use macros to make writing code better/easier?”.





  • Try interacting with anything that uses u64 and you’ll be a lot less happy!

    Anyway JavaScript does have BigInt so technically you are choosing.

    that insanity is how C and Intel handle NaN conversions.

    It’s not actually quite as bad as the article says. While it’s UB for C, and it can return garbage. The actual x86 conversion instruction will never return garbage. Unfortunately the value it returns is 0x8000… whereas JS apparently wants 0. And it sets a floating point exception flag, so you still need extra instructions to handle it. Probably not many though.

    Also in practice on a modern JS engine it won’t actually need to do this operation very often anyway.












  • because someone believed an ANSWER on a different question answered my question

    Yeah that is actually their official position. Your question is duplicate if an answer elsewhere might answer it, which is clearly absurd. Essentially they think “what’s 1+3?” is a duplicate of “what’s 2+2?”.

    I think fundamentally they gamified moderation too well, and for many people they turned the site into a mod-maxing game, which obviously makes it an abysmal place to be for normal users.