movq

www.uninformativ.de

No description provided.

In-reply-to » Eehhh, what the hell is going on here!?

@lyse@lyse.isobeef.org AI result ahead, feel free to ignore.

I โ€œaskedโ€ the AI at work the same question out of morbid curiousity. It โ€œsaidโ€ that SQLite converts that integer to floating point internally on overflows and then, when converting back, the x86 instruction cvttsd2si will turn it into 0x8000000000000000, even if the actual floating point value is outside of that range. So, yes, it allegedly actually saturates, as a side effect of the type conversion.

I couldnโ€™t find anything about that automatic conversion in SQLiteโ€™s manual, yet, but an experiment looks like it might be true:

sqlite> select typeof(1 << 63);
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ typeof(1 << 63) โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ integer         โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

sqlite> select typeof((1 << 63) - 1);
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ typeof((1 << 63) ... โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ real                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

As for cvttsd2si, this source confirms the handling of 0x8000000000000000 on range errors: https://www.felixcloutier.com/x86/cvttsd2si

The following C program also confirms it (run through gdb to see cvttsd2si in action):

<a href="https://we.loveprivacy.club/search?q=%23include">#include</a> <stdint.h>
<a href="https://we.loveprivacy.club/search?q=%23include">#include</a> <stdio.h>

int
main()
{
    int64_t i;
    double d;

    /* -3000 instead of -1, because `double` canโ€™t represent a
     * difference of -1 at this scale. */
    d = -9223372036854775808.0 - 3000;

    i = d;
    printf("%lf, 0x%lx, %ld\n", d, i, i);

    return 0;
}

(Remark about AI usage: Fine, I got an answer and maybe itโ€™s even correct. But doing this completely ruined it for me. It would have been much more satisfying to figure this out myself. I actually suspected some floating point stuff going on here, but instead of verifying this myself I reached for the unethical tool and denied myself a little bit of fun at the weekend. Wonโ€™t do that again.)

โค‹ Read More
In-reply-to » Eehhh, what the hell is going on here!?

@lyse@lyse.isobeef.org

Disclaimer: Canโ€™t guarantee that Iโ€™m fully awake and Iโ€™m being trained at work not to use my brain anymore, so maybe this is complete bullshit. ๐Ÿ˜ช๐ŸงŸโ€โ™€๏ธ

It says here that SQLite uses signed integers:

https://sqlite.org/datatype3.html

In pure bits, 1 << 63 would be 0x8000000000000000, but as a signed value, it gets interpreted as -9223372036854775808. Subtracting 1 yields -9223372036854775809 โ€“ but that doesnโ€™t fit in 64 bits anymore. Itโ€™s possible that SQLite doesnโ€™t want to wrap around but instead saturates? Havenโ€™t checked. ๐Ÿค”

With 62 bits, there is enough room.

With 1 << 64, I have no idea how SQLite wants to handle this, because this should immediately trigger a warning, because it doesnโ€™t fit right away. Maybe it gets truncated to 0?

sqlite> select printf('0x%x', 2 * (1 << 64));
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ printf('0x%x', 2 ... โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ 0x0                  โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
sqlite> select printf('0x%x', 0 - 1);
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ printf('0x%x', 0 ... โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ 0xffffffffffffffff   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
sqlite> select printf('0x%x', 0 - 2);
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ printf('0x%x', 0 ... โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ 0xfffffffffffffffe   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โค‹ Read More
In-reply-to » Christina Koch looking at Earth is my new wallpaper:

@lyse@lyse.isobeef.org Yeah, I really donโ€™t know anymore. ๐Ÿ˜…

By the way, why do so many of them wear glasses? As a kid, Iโ€™ve been told that people with glasses canโ€™t become astronauts. So I gave up my dreams. Now it looks like that was a lie? โ˜น๏ธ

โค‹ Read More
In-reply-to » Another vibe coded bot, I guess. ๐Ÿคฆโ€โ™€๏ธ

The problem is, they jump hosts all the time.

Maybe itโ€™s time to add automated blocking after all โ€ฆ God, Iโ€™m too lazy for that. ๐Ÿ˜ž

โค‹ Read More
In-reply-to » That's a very interesting thought and I agree: https://benhoyt.com/writings/dependencies/

@lyse@lyse.isobeef.org Indeed. Very unpopular, though. Iโ€™ve long given up that fight at work.

In reality, there are too few real incidents. It doesnโ€™t hurt enough. Itโ€™s always: โ€œSomething could happen!โ€ But weโ€™ve never been hit big time by an attack like this โ€ฆ so I just look like a paranoid idiot.

โค‹ Read More
In-reply-to » In case youโ€™re wondering where they are: https://artemistracker.com/

This whole thing was pretty weird, btw. I had no idea it was happening until basically yesterday. No news coverage, nobody mentioned it. ๐Ÿค” And suddenly, boom, weโ€™re going to the moon. What? ๐Ÿ˜…

โค‹ Read More
In-reply-to » This year for some reason or another, I decided to purchase an Ocarina, I've been practising a fair bit every now and again, basically during work breaks and sometimes in the afternoon / evenings (not enough to annoy the family ๐Ÿคฃ) Anyhoo, that was 3 months ago, since then I've built up a bit of a Repertoire:

@prologic@twtxt.net Nice. ๐Ÿ˜Š Thatโ€™s the beauty of a small instrument like that: You can just pick it up, play a little bit, put it back. ๐Ÿ‘Œ (Canโ€™t do that with my stuff. ๐Ÿคฃ)

โค‹ Read More
In-reply-to » For the record, the third thing is to activate agent forwarding. In ~/.ssh/config:

@lyse@lyse.isobeef.org Hm, Iโ€™m not sure I would want to do that:

ForwardAgent
    ...

    Agent forwarding should be enabled  with  caution.   Users
    with  the ability to bypass file permissions on the remote
    host (for the agent's Unix-domain socket) can  access  the
    local agent through the forwarded connection.  An attacker
    cannot  obtain  key  material from the agent, however they
    can perform operations on the keys that enable them to auโ€
    thenticate using the identities loaded into the agent.

โค‹ Read More
In-reply-to » Anyone else having trouble pulling from git.mills.io? ๐Ÿค”

@lyse@lyse.isobeef.org Changing the user name helped, it now says Authenticated to git.mills.io ([199.247.16.95]:2222) using "publickey". ssh-add ... had no effect (even after ssh-add -D).

Hereโ€™s a debug log, @prologic@twtxt.net, perhaps you could take a look at this ๐Ÿ™: https://movq.de/v/116c5f514b/clone2.txt

(Might be a silly mistake on my part. Wrong remote path or something?)

โค‹ Read More

Anyone else having trouble pulling from git.mills.io? ๐Ÿค”

$ g clone ssh://git@git.mills.io:2222/yarnsocial/twtxt.dev.git
Cloning into 'twtxt.dev'...
git@git.mills.io: Permission denied (publickey).
fatal: Could not read from remote repository.

The key verification function on https://git.mills.io/user/settings/keys says Iโ€™m using the correct key.

This also looks good:

$ GIT_SSH_COMMAND="ssh -v" g clone ssh://git@git.mills.io:2222/yarnsocial/twtxt.dev.git
...
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/user/.ssh/keys/key-millsio ED25519 SHA256:nVNT... explicit
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
git@git.mills.io: Permission denied (publickey).
fatal: Could not read from remote repository.

Does it work for you, @lyse@lyse.isobeef.org @prologic@twtxt.net?

โค‹ Read More

Now that Winter has come to an end, Iโ€™m realizing that the default amber color scheme of my widget toolkit might be problemaic.

Readability isnโ€™t great when the sun is blasting through the windows. ๐Ÿฅด

I should probably make this full themeable by the user โ€ฆ

(Havenโ€™t worked on this code in a month, sadly.)

โค‹ Read More
In-reply-to » Last year, I made a huge mistake. I repeated on here, what multiple sourcea at Google told me, and what is to this day, written on their blog about Android. I failed to take into consideration, that people who work at Google, often just lie, or present things intentionally vaguely, so they do not have to follow through with their promises. I would like to apologize to everyone, who took my previous posts here, as assurance software not explicitly approved by Google, will continue working on Android, past this year (or even just a couple months from now) and that everything has been resolved, as things are now in fact even worse, than they were before. To follow the current state of "Open Android", please check: https://keepandroidopen.org/

@thecanine@twtxt.net

as things are now in fact even worse

You mean this, right?

Contrary to a vague mention of a possible โ€œadvanced flowโ€ that may eventually allow โ€œexperienced users to accept the risks of installing software that isnโ€™t verifiedโ€, Googleโ€™s description of the program continues to state plainly that:

Starting in September 2026, Android will require all apps to be registered by verified developers in order to be installed on certified Android devices

Until such time that they have shown evidence that it will be possible to bypass the verification process without undue friction, we must believe what is stated on their official page: that all apps from non-registered developers will be blocked once their lock-down goes into effect.

โค‹ Read More
In-reply-to » RIP Vim ๐Ÿ˜ข https://hachyderm.io/@AndrewRadev/116175986749599825 https://github.com/vim/vim/pull/19413#issuecomment-4000394026

@prologic@twtxt.net So many people calling this thing โ€œheโ€ and saying things like โ€œI had a discussion with himโ€ or โ€œhe explained his reasoningโ€, itโ€™s mind boggling. Nobody even questions it anymore.

โค‹ Read More