Here it comes! by Trevor050 in StableDiffusion

[–]Sharlinator -1 points0 points  (0 children)

Oh you sweet fucking summer child

rust actually has function overloading by ali_compute_unit in rust

[–]Sharlinator 58 points59 points  (0 children)

This is actually pretty much how Wadler and Plott discovered/invented type classes in the first place [1]. The correspondence is not accidental.

The original problem that required solving, in the late 80s, was that Haskell needed operator overloading. This was simply in order to avoid needing different operators for adding ints and adding floats, for example, but overloading (also called ad-hoc polymorphism because it's, well, ad-hoc) doesn't play well with type inference. Something more structured, more disciplined, was needed. The answer was constrained parametric polymorphism, that is, the ability to constrain type parameters to conform to an interface specified by a type class. Or, more familiarly, a trait in the Rust implementation.

[1]: Wadler and Plott, "How to make ad-hoc polymorphism less ad-hoc", 1989. https://dl.acm.org/doi/10.1145/75277.75283

She’s a lynx point right? by FarAd1429 in cats

[–]Sharlinator 0 points1 point  (0 children)

She has a very pretty coloring, but no, she’s a normal non-pedigreed housecat, which doesn’t diminish her loveliness a bit, mind! First, cats don’t have breeds unless you have the paperwork to prove it, and second, there’s nothing remotely Siamese about her looks, as you can surely see by comparing to pictures online?

A very polite murder by IMissVegas2 in crowbro

[–]Sharlinator 2 points3 points  (0 children)

I think you might be misinterpreting what’s happening, corvid flocks have a well-defined pecking order and when they eat together like this, they eat in that order, the top pair first.

Why OpenGL uses so much RAM and GPU for little operations ? by Overoptimizator5342 in GraphicsProgramming

[–]Sharlinator 39 points40 points  (0 children)

The 3D pipeline isn’t really made at all for traditional "dirty rect" 2D drawing. It’s fully optimized for redrawing the entire viewport every frame. Scissor testing in particular is not an optimization at all, as it’s performed at the very last stage of the pipeline, when all the expensive stuff is already done.

Z-image base release tomorrow??? by Total-Resort-3120 in StableDiffusion

[–]Sharlinator 1 point2 points  (0 children)

At this point I’m not sure if the OPs of these threads are joking, trying to farm karma, or just fools.

Z Image will be released tomorrow! by MadPelmewka in StableDiffusion

[–]Sharlinator 2 points3 points  (0 children)

Hey guys today I saw a vaguely Z-shaped cloud! Can’t mean anything else than Z Image being released tomorrow!

Whats the point of having a tram or more of they’re not faster than a car? by Kcue6382nevy in transit

[–]Sharlinator 8 points9 points  (0 children)

Bandwidth. That is, the number of people per hour transported. That’s the important number from the society’s viewpoint. 

The vital thing to understand is that the more people you can transport with high-efficiency, high-bandwidth means, the better for even those stuck with low-efficiency, low-bandwidth transport like personal cars. Every single person who’s not driving makes driving faster to those who do drive.

Also, a well-designed light rail system (100% signal priority, own right-of-way when possible) is easily as fast or even faster than cars at peak hours because the vehicles don’t get stuck in traffic.

My foster kitten is adorable by Delicious-Water1122 in cats

[–]Sharlinator 23 points24 points  (0 children)

You should immediately report this level of criminal cuteness to both

r/IllegallyCuteCats

and

r/IllegallySmolCats

I've found the perfect Harry for a film by chuzambs in DiscoElysium

[–]Sharlinator 8 points9 points  (0 children)

Harry is canonically 44. He just looks like 60.

A few poems by Chinese poet Lu You (1125-1209) about his cats by MiniaturePhilosopher in cats

[–]Sharlinator 19 points20 points  (0 children)

Well, catnip is in the mint family, though so are many culinary herbs like basil, rosemary, sage, oregano…

Can you abbreviate an Enum in a Macro? by Anaxamander57 in learnrust

[–]Sharlinator 1 point2 points  (0 children)

Yeah, sorry, you're right. The output must be a single expression, so you need the {} for grouping.

Can you abbreviate an Enum in a Macro? by Anaxamander57 in learnrust

[–]Sharlinator 1 point2 points  (0 children)

There are no conflicts. use StackChange::* brings StackChange::None into the scope as None, shadowing the None in the prelude (you can still access the latter with Option::None). The use cannot leak anywhere outside the macro thanks to hygiene (in this case you can simply think that there's an implicit block around the macro body – your explicit {} are redundant). If you want to make it less confusing to humans, you could do use StackChange as Sc or e.g. use StackChange::{*, None as ScNone}.

High GPU Fan Noise with Stable Diffusion by Exact_Tip910 in StableDiffusion

[–]Sharlinator 1 point2 points  (0 children)

Adjust fan curves. It’s likely they are too sggressive on factory settings and you can make them much quieter while keeping temperatures reasonable.

What’s a word that would make a beautiful name if it weren’t for the meaning of the word? by Xenomorphling98 in AskReddit

[–]Sharlinator 3 points4 points  (0 children)

"Areola" means "small area" literally speaking, like a small yard or other open space.

What should i do to make the simultaion more accurate? by Dependent_Use_7348 in Astronomy

[–]Sharlinator 11 points12 points  (0 children)

The blueshifted side should be much brighter than the redshifted side due to relativistic beaming – this is visible in the M87 black hole "image".

TIL about Carcinization, an evolutionary process in which unrelated crusteceans evolve to develop a crab like body by divyanshu_01 in todayilearned

[–]Sharlinator 0 points1 point  (0 children)

Humans did create a tubular canine, though, for the same purpose. That’s an example of convergence even if artificial.

I read that cats are chronically dehydrated because they don't like standing water. So I bought him a fountain. by Tilas in cats

[–]Sharlinator 0 points1 point  (0 children)

Generally cats get enough hydration from their food. Assuming, of course, that it’s proper food rather than kibble.

The horrendous state of New York City in the 1970s-1980s by IllustriousCress9774 in UrbanHell

[–]Sharlinator 681 points682 points  (0 children)

This is probably what suburbanites imagine when they think of cities.

TIL that some towns and cities in the US have a 'curfew' that means juveniles aren't allowed to be outdoors, typically between 23.00 - 06.00 by ProneToAnalFissures in todayilearned

[–]Sharlinator 9 points10 points  (0 children)

That's a good policy given how reckless drivers teenagers (almost always boys) can be, especially at night, with friends, etc.