Show newer
timorl boosted

.hg so I'm banging some code out, right

#rust is complaining that a certain type isn't deserializable. I don't particularly care yet, because I'm trying to fix errors in other parts of the code, so I slap a `#[serde(skip)]` on there. /That/ doesn't work because the type isn't defaultable either. The obvious thing to reach for in this case is `unimplemented!()`, but that won't work; serde attributes only accept bare paths.

Since I'm trying to slap together at maximum speed the minimum stuff that will compile—and come back to it once the other things are done—I ask our brain for a function (not a macro!) that takes no arguments and always diverges. `_: fn() -> !`. Do we know of any such function that already exists?

Why, yes we do, in fact: `std::process::abort()`.

```
#[derive(Serialize, Deserialize)]
struct Foo {
#[serde(skip, default = "std::process::abort")]
bar: Bar,
}
```

:up
^Z
cargo check

Show thread
timorl boosted

@dylanvanassche Out of curiosity, what do you think about the Gentoo approach, where some packages have versions marked "99999" and these versions are sometimes compiled e.g. from the tip of the development/main branch?

@schratze And naming, don't forget naming!

Also, no kinkshaming plx.
@luci

timorl boosted

my therapist: and what do we do when we feel like this?

me: identify the oppressive social systems responsible and dismantle the fuck out of them

my therapist: oh yeah that's way better than what i was gonna say

@raphaelmorgan Although in your specific case the family changing room should be alright, unless you get extremely unlucky no one should care, and even if you do you are technically using it for its intended purpose.

@raphaelmorgan Normalize nakedness and make single locker rooms for everyone, problem solved.

@christianp Since the deck is shuffled you can transpose the "look at the next card" and "remove the required number of cards" steps. This means it's equivalent to drawing cards from the top until they either sum to 52 (success) or higher (failure).

This doesn't really give a full answer, only simplifies the problem a little.

@christianp That's single player blackjack with 52 instead of 21, innit?

@siina@cybre.city Welp, no clue then, probably a terrible lack of understanding of base rates or something.

@siina@cybre.city On fedi everyone and all the people they know is trans and gay. These are just facts of life.

timorl boosted
>In 2015, Dzongsar Khyentse Rinpoche, Bhutan's most prominent Buddhist teacher, said that sexual orientation has nothing to do with who will reach enlightenment. He further stated that Bhutanese should not merely tolerate gay people but should respect them. He said, "Your sexual orientation has nothing to do with understanding or not understanding the truth. You could be gay, you could be lesbian, you could be straight, we never know which one will get enlightened first… Tolerance is not a good thing. If you are tolerating this, it means that you think it's something wrong that you will tolerate. But you have to go beyond that – you have to respect."
we stan
timorl boosted

One meter is technically defined by the speed of light and a Cs-133 clock at 9.2 GHz, but it's not very practical. For real-world length measurement tasks you use light interferometry. But how do you obtain traceability from a microwave frequency to visible light?

Easy! Here how: Lock a hydrogen clock to the cesium clock first because for better short-term stability, then lock a 100 MHz crystal oscillator to the hydrogen clock to get started. Then, lock a 22.7 GHz Gunn oscillator to the 100 MHz crystal oscillator with a mixer and a PLL. Next, lock a 386.5 GHz Backward Wave Oscillator to the Gunn oscillator. Next, derive a 4251.76 GHz methanol laser from the BWO. Next, derive the 13C 16O2 laser at 29770.665 GHz from that with a mixer, a counter and a 8.99 GHz Gunn oscillator. Next, derive a 29477.165 GHz CO2 from that with a mixer, a PLL, and a 73.35 GHz Klystron oscillator. Next, derive a 28464.674 GHz laser, which derives a 28464.684 GHz then a 29477.165 GHz laser with a mixer, .... #electronics

timorl boosted
timorl boosted

In a summary of the paper on Cambridge's security research blog, the researchers explain that even if you start with unbiased - that is, broadly representative - data, the *order* in which you present that data to a machine-learning model can induce bias:

lightbluetouchpaper.org/2021/0

That's because ML models are susceptible to "initialization bias" - whatever data they see first has a profound impact on the overall weighting of subsequent data. Here's an example from the researchers' blog:

9/

Show thread
timorl boosted
type of guy who takes estrogen because using the girl filter in faceapp would mean using proprietary software

@Yujiri The stranger the fact that libertarian movements get coopted into fascism so reliably. I used to be a libertarian and I still don't quite understand why that happens. @mhoye

timorl boosted

time capsule for digital data 

Pick an encryption method that we know is vulnerable to quantum computers.

Encrypt a drive with it, and fill it up with a bunch of stuff currently important to you.

Conveniently forget the decryption key, put the drive in storage.

Perhaps one day you’ll be able to open this time capsule. :blob3c:

timorl boosted

Pe Lang has a temporary exhibition in Paris (in deniserene.fr/) until ~first week of July: bibliogram.art/p/Cdf2MDjseRm

Pe Lang makes artifacts that, for me, show some nonobvious or obvious-but-often-overlooked physical property. pelang.ch/works.html has some examples (but even not the ones I liked most when I saw his exhibition in, sadly defunct, museum of digital art in Zürich).

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.