all 2 comments

sorted by: hot top controversial new old
[–] 3 points 2 months ago (1 child)

Very interesting. Thanks for posting!

  • source
  • hideshow 1 child comment
  • 5 comments in c/programming@programming.dev view that post
    [–] 14 points 2 months ago

    This abuses errors in the fixed-point math, to have the first "error" line up exactly where we want, on that final leap second.A round-down multiplier is used, with a pre-increment, as that is the type of adjustment that yields an eventual long-minute and long-hour.

    i love it

  • source
  • [–] 8 points 2 months ago (1 child)

    If everyone coded like this, we wouldn't have so many data centres spewing soot into the sky.

  • source
  • hideshow 1 child comment
  • [–] 12 points 2 months ago

    I would say that 90% of devels would look at this and have no clue what is going on or why.
    This is something to be done in the compiler, but not in the code unless there's some actual slow down in the code that is visible via benchmarking.

  • source
  • parent
  • [–] 2 points 2 months ago (1 child)

    This is utterly incomprehensible tbh, but I guess I'll believe it

  • source
  • hideshow 1 child comment