azi

@azi@mander.xyz
0 Post – 28 Comments
Joined 6 months ago

I'm not sure if there's anything enable_if can do that concepts can't do somewhat better but yeah there's definitely a lot of subtleties that reflection is going to make nicer or possible in the first place

You already can do that with C++20 concepts and the requires expression

template 
concept has_member_foo = requires(T t) {
    t.foo();
};

// Will fail to instantiate (with nice error 
// message) if t.foo() is ill-formed
template 
void bar(T t) {
    // ...
}

// abbreviated form of above
void baz(has_member_foo auto t) {
    // ...
}

// verbose form of above
template  requires
    has_member_foo
void biz(T t) {
    // ...
}

// same as above but with anonymous concept
template  requires
    requires(T t) { t.foo(); }
void bom(T t) {
    // ...
}

// If already inside a function
if constexpr (has_member_foo) {
    // ...
}

// Same but with anonymous concept
if constexpr (requires(T t) { t.foo(); }) {
    // ...
}
2 more...

C++26 reflection is compiletime

Honestly I think the fame of the tank man has overshadowed other scenes of the incident and people often don't realize just how bloody it was.

CW blood and shooting

gamers reinvent the stenomask

Honestly I feel like Shadow is an IEM guy so he can feel superior to others

nah biology discoveries are always like "we thought this lesser spotted derpy pig didn't have big enough spots. turns out it's a new species" or "this protein turns out to be less curly and more squiggly when the fruit flies are having a lot of sex"

1 more...

Pretty sure he's only in a defensive posture because the plate was just plopped right in front of him. Crayfish are cannibalistic scavengers so this would actually be a welcome sight.

Serbian

Map of Siberia

Shoutout to Menes for inventing dying unusually

Better than asking a dentist is asking a dental hygienist. Dentists are dental surgeons primarily concerned with solving specific problems with surgical intervention. Hygienists are oral health nurses concerned with preventive care and overall health and wellbeing.

And listen to your hygienist. There is no cure-all toothpaste for everyone (eg not everyone needs anti-sensitivity toothpaste, the risk of erosion in whitening toothpastes might be a concern for some people, some people need higher fluoride concentrations, etc)

forehead

in my defence, am sleeby ouppy 😌

Currently used definitions of the cup:

The US customary cup (236.6 mL) is 8 US customary fluid ounces. The US customary fluid ounce (29.6 mL) is 1/16 of a US fluid pint.

The US legal cup (240 mL) is 8 US nutritional fluid ounces. The US nutritional fluid ounce is 30 mL.

The metric cup is 250 mL

Historically used definitions of the cup:

Ths British cup (284.1 mL) is 10 imperial fluid ounces. The imperial fluid ounce (28.4 mL) is 1/20 of an imperial fluid pint

The Canadian cup (227.3 mL) is 8 imperial fluid ounces

Imagine being a social worker trying to find people housing and one of the guys in the tent city tells you he already rents a place and just wanted see what living in the park was like.

Imperial (used in the British Empire) vs US customary. The imperial fluid gallon (4.54609 L exactly) was never historically defined in terms of another unit while the US fluid gallon was defined as 231 cubic inches (3.785411784 L exactly). A pint is defined as 1/16 of a gallon in each system, but they can't agree on how many ounces are in a pint (16 for US, 20 for imperial). Note that there are also imperial and US customary dry gallons and thus imperial and US customary dry pints...

The angel has a wikipedia page and the demon does not

imagine how a leafs fan would feel reading this lol

Beneath the salt sea of humanity's weeping, a terrible chasm abides. It couldn't be darker, it couldn't be deeper. It is stained with a bloody red tide. but we stay silly :33

But she's speaking Ukrainian or Slovene.

3 more...

then spell bóbr right 😤

1 more...

The twitter takeovers are game promo events where the voice actors answer twitter questions in character; realshadowfan01 is an actual guy on twitter. Sega's recently been having fun with sonic 'canon' outside of serious game plots (eg one of the gags in the takeovers about Shadow eating coffee beans with a spoon was referenced in the Murder of Sonic the Hedgehog)

It's gotta be the companies. Since the British forced out the Indigenous population in the 70s the only permanent inhabitants of the Cagos Islands/BIOT have been US military personnel.

Sounds like something an anti-Hui racist visiting Dali would say

If it's fluoride free then it doesn't do much. Get toothpaste with actual medicinal ingredients

2 more...

Gur languages moment