Readit News logoReadit News
magpie09 commented on I like e-readers now   devinlogan.org/e-readers.... · Posted by u/ivanech
clktmr · 4 years ago
Personally would love to use an e-reader to read lengthy blog posts, but last time I tried it was very tedious. I converted the post to PDF using firefox's reader mode and uploaded these to the device. Are there any e-readers with something like firefox's reader mode integrated?
magpie09 · 4 years ago
I use Kobo with Pocket integration for exactly this! Just install the extension, click the button, refresh on your e-reader and get reading :) It doesn't work for every page but it has been really useful for me.
magpie09 commented on Google broke a conditional statement that verifies passwords on Chrome OS   arstechnica.com/gadgets/2... · Posted by u/stalfosknight
secondcoming · 5 years ago
Edit: Someone has explained the issue below

I don't understand how that broke anything?

The C++ codegen for && and & is the same:

    bool good(bool a, bool b) { return a && b; }

    good(bool, bool):                              
        mov     eax, edi
        and     eax, esi
        ret


    bool bad(bool a, bool b) { return a & b; }

    bad(bool, bool):
        mov     eax, edi
        and     eax, esi
        ret
[0] https://godbolt.org/z/84MMqTehs

magpie09 · 5 years ago
I made what I think is a minimal example here: https://godbolt.org/z/dcnzonjar

Interestingly I couldn't get it to fail on GCC (even with -fnoexceptions and -Ofast), only on Clang. Maybe someone else has some info as to why this is?

There is a clear difference in the assembly output for the correct and incorrect implementations, with a testb instruction run much earlier in the correct version. You can see this at line 22 of the output, if you highlight it the && in the source is highlighted in bold.

u/magpie09

KarmaCake day4July 23, 2021View Original