HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jmcomets

no profile record

comments

jmcomets
·2 เดือนที่ผ่านมา·discuss
From NewPipe : https://github.com/woheller69/FreeDroidWarn?tab=readme-ov-fi...

I wouldn't consider this "a few buttons", it's enough to turn off the less savvy users
jmcomets
·7 เดือนที่ผ่านมา·discuss
Obvious caveat: pushing this a bit further it can quickly fallback to the default case. The optimizer is a superpower but you still need to try to write efficient code.

    unsigned add_v5(unsigned x, unsigned y) {
      if (x == y) return 2 * x;
      return x + y;
    }
Results in:

    add_v5(unsigned int, unsigned int):
      lsl w8, w0, #1
      add w9, w1, w0
      cmp w0, w1
      csel w0, w8, w9, eq
      ret
(armv8-a clang 21.1.0 with O3)

If compiler folks can chime in, I'm curious why incrementing in a loop can be unrolled and inspected to optimize to an addition, but doubling the number when both operands are equal can't?
jmcomets
·10 เดือนที่ผ่านมา·discuss
Still is. It's a French/Lebanese corp based in Paris/Beirut. I worked there for a few years early in my career.
jmcomets
·4 ปีที่แล้ว·discuss
For me it was a watch.

I bought a Fitbit Charge 4, originally to track my heart rate/steps since I've never owned one and always relied on my phone for time.

With my phone generally on silent and by not checking it so often, I've found my use of social media/apps has reduced drastically this year. To the point that I recently forgot my phone at home, something that I didn't imagine possible.