[syndicated profile] smbc_comics_feed

Posted by Zach Weinersmith



Click here to go see the bonus panel!

Hovertext:
Would you rather sit with friends watching shadows on the bigscreen or spending your time arguing with Plato about whether poetry should be legal?


Today's News:

it's music to my FEARS

Jun. 9th, 2025 12:00 am
[syndicated profile] dinosaur_comics_feed
archive - contact - sexy exciting merchandise - search - about
June 9th, 2025next

June 9th, 2025: TCAF was this weekend and it was, as always, a great time. Thank you to everyone who came by to say hi, and I hope we can do it again soon! I also hope you grabbed a lot of rad comics, I KNOW I DID!!

– Ryan

[syndicated profile] bruce_schneier_feed

Posted by Bruce Schneier

Researchers have discovered a new way to covertly track Android users. Both Meta and Yandex were using it, but have suddenly stopped now that they have been caught.

The details are interesting, and worth reading in detail:

>Tracking code that Meta and Russia-based Yandex embed into millions of websites is de-anonymizing visitors by abusing legitimate Internet protocols, causing Chrome and other browsers to surreptitiously send unique identifiers to native apps installed on a device, researchers have discovered. Google says it’s investigating the abuse, which allows Meta and Yandex to convert ephemeral web identifiers into persistent mobile app user identities.

The covert tracking­implemented in the Meta Pixel and Yandex Metrica trackers­allows Meta and Yandex to bypass core security and privacy protections provided by both the Android operating system and browsers that run on it. Android sandboxing, for instance, isolates processes to prevent them from interacting with the OS and any other app installed on the device, cutting off access to sensitive data or privileged system resources. Defenses such as state partitioning and storage partitioning, which are built into all major browsers, store site cookies and other data associated with a website in containers that are unique to every top-level website domain to ensure they’re off-limits for every other site.

Washington Post article.

EHRC nonsense

Jun. 9th, 2025 11:14 am
lnr: Halloween 2023 (Default)
[personal profile] lnr

We still haven't met with Senior Management: it's now due tomorrow, in person. I'm gently trying not to panic.

There's still been no message of support to all members of staff and students from the University, and nothing at all from the department. Though I understand they're still in discussions in the background. This is frustrating.

The subject was raised at a recent All Staff meeting (in which people submit questions as text, and senior management attempt to answer them). We were given broad assurances that the university values and supports trans people, but nothing actually useful or genuinely supportive was said.

In the meantime a new EHRC chair is due to be appointed, and they're considering a person with a known anti-trans background. There's an Open Letter available to sign in protest, written by a very good friend and colleague: https://docs.google.com/forms/d/e/1FAIpQLSe_Y77t7CQqKjdGifNa0lE3HKjDAb1UoJdjuLAbInhIQsRMhw/viewform

I've also seen a good template if you want to write directly: https://docs.google.com/document/d/1865KMfu24JgmwnWmYXaVc3jlzj5uQFEq69hXMxKP6BU/edit?tab=t.0

And I wrote my own version:

9th June 2025
Dear Women’s and Equalities Select Committee and Joint Committee on Human Rights,
Cc: Pippa Heylings, as my MP

I am writing to express my grave concern about the proposed appointment of Dr Mary-Ann Stephenson as the Chair of the Equality and Human Rights Commission.

I won't include a string of references here, because I think you will have seen them all already, but I think it is imperative that the next person appointed as Head of the EHRC should not be seen to have a strong anti-trans background. Trans people are currently scared. Scared for their jobs, if they cannot access their workplace in safety and dignity. Scared of being assaulted if they go to the "wrong" toilet. Scared of being outed as trans in public if they try to follow the new guidelines.

And I am scared as a cis woman, a woman who is not trans, at what is happening in our country, and what this means for my friends and colleagues and for trans people in general. For intersex people, non-binary people, and any woman who might be mistaken for being trans. Other women need to feel safe too, but excluding trans people is not the way to do this.

The EHRC needs to stand up for the rights of everyone, and to be seen to do so. I sincerely hope you will take this into account.

Kind Regards,

Eleanor Blair
Great Shelford, Cambridge, CB22

I'm not even going to attempt to get into the member of the EHRC who was quoted as effectively saying that trans people have been misled about their rights under the Equality Act for the last 15 years, and there will now be a period of adjustment, but they should just get used to having fewer rights than they thought they did. The Guardian changed their headline and reporting three times as a result of her protesting about being misquoted, but that seems to have been the gist of it. Not mentioning that the "misleading" guidance came from the EHRC themselves, and was based on the previous understanding of the Equalities Act and entirely consistent with it. FFS

kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)
[personal profile] kaberett

Reading. FINISHED:

  • Furiously Happy, Jenny Lawson. I can see why people like her! I have also remembered why I wound up unsubscribing from her blog. Very interesting proof of concept in re audiobooks, though.
  • Prophet, Helen MacDonald and Sin Blaché. Very enjoyable reread in which many things landed differently, in service of...
  • a word you've never understood, [personal profile] rydra_wong. EXACTLY the post-canon follow-up I wanted but would have absolutely failed to articulate. Have already tried to lure one more person into reading the book so I can then make them go read the fic. Now I just selfishly want Even More Of It.
  • Pain is really strange, Steve Haines. Reread for the purpose of making notes, this time. Sparked at least one useful thought. Following up references is a work in progress.
  • How to cook... Desserts, Leiths Cookery School. Read all the way through for the purposes of EYB indexing first pass! Go me.

STARTED:

  • Adventures in Stationery, James Ward. Borrowed from library on a whim for low-brain non-fiction.

Writing. First pass through indexing a cookbook on EYB!

Some Actual Notes re pain for The Book, including (and I am very proud of myself for this) actually writing down my questions alongside the bare "here's what it contained".

Watching. Murderbot S01E01. I am dubious but expecting to keep watching. If you encourage me I might say more when it is not past curfew.

Cooking. ... apparently I have not managed Much Of Note this week.

Eating. POTATOES at the ALLOTMENT courtesy of ALLOTMENT FRIENDS. Also finished my choi sum and had my first AMAZING broad beans and nibbled kohlrabi speculatively, all on Tuesday.

Today I have nibbled: a cherry; the first few redcurrants; a pod's worth of Kelvedon Wonder peas; half a tiny tomato.

Making & mending. Made some progress on A's left glove. Realised, belatedly, that I'd done the same thing with picking up stitches unevenly along the two sides of the palm. Ripped back most of the way to where I started from and Sulked. BUT HEY I've remembered the pattern and where I'd stowed all the bits for it!

Growing. See Eating for my biggest excitements. Sugar Magnolia (purple sugar-snap pea) now setting pods; my main intention with it this year (given that I planted a whole packet of seeds and have wound up with ...fewer plants than that) is just to get myself sorted with a significantly larger number of seeds for next year, but hey, maybe they'll all be super productive and I'll actually get to eat some too.

Stockings now at the plot to go onto the cherry tomorrow, hopefully.

Tomatoes planted out when tiny not doing so great (i.e. have mostly disappeared). Tomatoes planted out when larger Actually Flowering. Desperately need to stake the lot of them.

Tiny single solitary surviving oca has started to Go.

V grumpy about how poorly the squash I got started A While Ago have coped with getting put outside given that they are in biodegradable fibre pots so I'm not even disturbing their roots. Getting the rest of them in the ground AND THEN SOWING MORE very much also high on tomorrow's priority list. (And the beans, augh.)

Observing. Met a neighbour!

[personal profile] cosmolinguist

The other day I overhead D telling someone that I now naturally have the voice that I put on for my character in our D&D game a couple of years ago.

I was an orc barbarian, heh.

I was delighted to hear this because I hadn't consciously been doing a voice for Bulrik (I went through dozens of orc names I hated in one of the online name generators before finding one I could live with at all, only much later realizing it's most of the name I chose for my self!) and I didn't know that's what I sound like all the time now! How delightful.

I haven't done any conscious voice training at all, just let the testosterone do its work. And I didn't record my voice at any point with the intent of tracking the change, which I guess is a norm in some online cultures. Both of these choices have been conscious decisions made to protect my mental health and I feel really good about that, but it does mean my boundless self-absorption has nothing to work with here! So it's nice to have some external observation.

The other stuff I've been meaning to write about is gonna have to wait; I'm too tired now apparently.

I do like being a gay uncle.

Jun. 8th, 2025 07:58 pm
[personal profile] cosmolinguist

I went to the park with [personal profile] haggis and her kid this morning.

There was one point where I was pushing said kid on the swings (a lot of the morning was haggis, D and I doing as we were directed and I'd been specifically told to push her at this point) next to a nice young man doing the same with his own toddler.

He said hello by asking me "How old is she?" to which I of course panicked because I'm not sure these days. "...Four??" I said eventually. [personal profile] haggis came over and saved me from more of this peril by making normal parent conversation herself.

Then the guy said "Is she the only one you guys have?" and my thoughts hadn't gotten any further than what, here with us today?

[personal profile] haggis said the kid is hers, and her husband's but I'm not her husband, and meanwhile I was like oh shit he thinks I'm the husband! or the new dad! Oh no! So I joked about being a gay uncle.

I don't think I've ever been mistaken for a husband before! I probably would've thought it was fun, if I wasn't too confused at the time to know that it was happening...

[syndicated profile] smbc_comics_feed

Posted by Zach Weinersmith



Click here to go see the bonus panel!

Hovertext:
The only problem is that if someone disproves existence, all your fake compliments become void.


Today's News:
siderea: (Default)
[personal profile] siderea
2025 Jun 7 11:40 am: [profile] benjalvarez1 on Twitter:

WATCH THIS: https://x.com/BenjAlvarez1/status/1931375699786334704

Click through to see the video. You really, really should. Sound is irrelevant.

Text: "Tanks, fighting vehicles and howitzers arrive in Washington, D.C. ahead of next week's military parade. They departed from Texas on June 2." Two minutes and forty seconds.

Allegedly that train is a mile long and is transporting:

• 28 Abrams tanks (M1A2 main battle tank)
• 3 armored recovery vehicles (M88)
• 28 Bradleys (M2A3 infantry fighting vehicle)
• 5 Paladins (M109A7 self-propelled howitzer), and
• 28 Strykers (infantry carrier vehicle)

Source: 2025 Jun 6: @USAMilitaryChannel on YT [not official military channel]: "1-Mile Military Train -Texas to D.C. with Tanks, Armor, and More for Army's 250th Parade". I do not know if that source is reputable or if that inventory is accurate.

USA Today is reporting that "The military vehicles will be joined by 1,800 soldiers". (Source: 2025 Jun 6, USATODAY on YT: "Watch: Tanks, fighting vehicles head to DC for Trump's military parade", CW: face full of Trump, alt: screenshot).

I dunno, maybe it's just me, but I'm thinking that maybe the guy who attempted one coup already bringing a well-armed military force into our capitol city and, crucially, within artillery-range of the Pentagon, is just throwing himself a birthday party, but also maybe not.

ETA: For those of you confused by this, thinking, but doesn't he already control the military? You might want to watch this video about the rise of Xi Jinping.

Now, obviously, Trump would never play a long game like Xi did. But, 1) there are other ways to achieve the same end and 2) he doesn't have to, because his buddies, the Dominionists, did.

performance of random floats

Jun. 8th, 2025 03:15 am
fanf: (Default)
[personal profile] fanf

https://dotat.at/@/2025-06-08-floats.html

A couple of years ago I wrote about random floating point numbers. In that article I was mainly concerned about how neat the code is, and I didn't pay attention to its performance.

Recently, a comment from Oliver Hunt and a blog post from Alisa Sireneva prompted me to wonder if I made an unwarranted assumption. So I wrote a little benchmark, which you can find in pcg-dxsm.git.

(Note 2025-06-09: I've edited this post substantially after discovering some problems with the results.)

recap

Briefly, there are two basic ways to convert a random integer to a floating point number between 0.0 and 1.0:

  • Use bit fiddling to construct an integer whose format matches a float between 1.0 and 2.0; this is the same span as the result but with a simpler exponent. Bitcast the integer to a float and subtract 1.0 to get the result.

  • Shift the integer down to the same range as the mantissa, convert to float, then multiply by a scaling factor that reduces it to the desired range. This produces one more bit of randomness than the bithacking conversion.

(There are other less basic ways.)

code

The double precision code for the two kinds of conversion is below. (Single precision is very similar so I'll leave it out.)

It's mostly as I expect, but there are a couple of ARM instructions that surprised me.

bithack

The bithack function looks like:

double bithack52(uint64_t u) {
    u = ((uint64_t)(1023) << 52) | (u >> 12);
    return(bitcast(double, u) - 1.0);
}

It translates fairly directly to amd64 like this:

bithack52:
    shr     rdi, 12
    movabs  rax, 0x3ff0000000000000
    or      rax, rdi
    movq    xmm0, rax
    addsd   xmm0, qword ptr [rip + .number]
    ret
.number:
    .quad   0xbff0000000000000

On arm64 the shift-and-or becomes one bfxil instruction (which is a kind of bitfield move), and the constant -1.0 is encoded more briefly. Very neat!

bithack52:
    mov     x8, #0x3ff0000000000000
    fmov    d0, #-1.00000000
    bfxil   x8, x0, #12, #52
    fmov    d1, x8
    fadd    d0, d1, d0
    ret

multiply

The shift-convert-multiply function looks like this:

double multiply53(uint64_t u) {
    return ((double)(u >> 11) * 0x1.0p-53);
}

It translates directly to amd64 like this:

multiply53:
    shr       rdi, 11
    cvtsi2sd  xmm0, rdi
    mulsd     xmm0, qword ptr [rip + .number]
    ret
.number:
    .quad     0x3ca0000000000000

GCC and earlier versions of Clang produce the following arm64 code, which is similar though it requires more faff to get the constant into the right register.

multiply53:
    lsr     x8, x0, #11
    mov     x9, #0x3ca0000000000000
    ucvtf   d0, x8
    fmov    d1, x9
    fmul    d0, d0, d1
    ret

Recent versions of Clang produce this astonishingly brief two instruction translation: apparently you can convert fixed-point to floating point in one instruction, which gives us the power of two scale factor for free!

multiply53:
    lsr     x8, x0, #11
    ucvtf   d0, x8, #53
    ret

benchmark

My benchmark has 2 x 2 x 2 tests:

  • bithacking vs multiplying

  • 32 bit vs 64 bit

  • sequential integers vs random integers

I ran the benchmark on my Apple M1 Pro and my AMD Ryzen 7950X.

These functions are very small and work entirely in registers so it has been tricky to measure them properly.

To prevent the compiler from inlining and optimizing the benchmark loop to nothing, the functions are compiled in a separate translation unit from the test harness. This is not enough to get plausible measurements because the CPU overlaps successive iterations of the loop, so we also use fence instructions.

On arm64, a single ISB (instruction stream barrier) in the loop is enough to get reasonable measurements.

I have not found an equivalent of ISB on amd64, so I'm using MFENCE. It isn't effective unless I pass the argument and return values via pointers (because it's a memory fence) and place MFENCE instructions just before reading the argument and just after writing the result.

results

In the table below, the leftmost column is the number of random bits; "old" is arm64 with older clang, "arm" is newer clang, "amd" is gcc.

The first line is a baseline do-nothing function, showing the overheads of the benchmark loop, function call, load argument, store return, and fences.

The upper half measures sequential numbers, the bottom half is random numbers. The times are nanoseconds per operation.

         old    arm    amd

    00  21.44  21.41  21.42

    23  24.28  24.31  22.19
    24  25.24  24.31  22.94
    52  24.31  24.28  21.98
    53  25.32  24.35  22.25

    23  25.59  25.56  22.86
    24  26.55  25.55  23.03
    52  27.83  27.81  23.93
    53  28.57  27.84  25.01

The times vary a little from run to run but the difference in speed of the various loops is reasonably consistent.

The numbers on arm64 are reasonably plausible. The most notable thing is that the "old" multiply conversion is about 3 or 4 clock cycles slower, but with a newer compiler that can eliminate the multiply, it's the same speed as the bithacking conversion.

On amd64 the multiply conversion is about 1 or 2 clock cycles slower than the bithacking conversion.

conclusion

The folklore says that bithacking floats is faster than normal integer to float conversion, and my results generally agree with that, apart from on arm64 with a good compiler. It would be interesting to compare other CPUs to get a better idea of when the folklore is right or wrong -- or if any CPUs perform the other way round!

[syndicated profile] smbc_comics_feed

Posted by Zach Weinersmith



Click here to go see the bonus panel!

Hovertext:
The explanation of the Fermi Paradox is no beings who practice internal fertilization are to be invited to the galactic party.


Today's News:

some joys of the day

Jun. 7th, 2025 11:57 pm
kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)
[personal profile] kaberett
  1. goslings! (Canadian; one still very yellow and fluffy, several more rather larger.)
  2. SNAILS. so many excellent snails. we went out on a couple of stupid little walks and saw MANY snails.
  3. ate the last of my birthday cake, with discounted raspberries courtesy of one of said stupid little walks. <3
  4. the post brought Several more books for me (two pain-related, ...some cookery) and I am very pleased with them. particularly looking forward to warm bread and honey cake, though given that I've still not actually read Salt Fat Acid Heat I don't rate my chances of getting to it any time soon...
  5. current borrowed-on-a-whim-from-the-library book: Adventures in Stationery, James Ward. First chapter was paperclips; current chapter is a whistlestop tour of The History Of The Pen, including a much more loving biography of the BIC Cristal than I am normally exposed to via fountain pen fandom!

Photo cross-post

Jun. 7th, 2025 12:29 pm
andrewducker: (Default)
[personal profile] andrewducker


My brother Mike got me this for my birthday, and it just takes a weight off my mind being able to say "bring the steam temperature up to 95 degrees and hold it there"

(Control over oil temperature when frying eggs is also awesome.)
Original is here on Pixelfed.scot.

Profile

pseudomonas: "pseudomonas" in London Underground roundel (Default)
pseudomonas

November 2024

S M T W T F S
     12
34567 89
10111213141516
17181920212223
24252627282930

Most Popular Tags

Expand Cut Tags

No cut tags
Page generated Jun. 11th, 2025 02:52 pm
Powered by Dreamwidth Studios

Style Credit