Show newer
Kornel boosted

1st day on Mastodon: hi everyone, I'm interested in art, architecture, and cat pics!! 😊

3rd day on Mastodon: gonna find bigfoot and fuck him

It's pretty cool that images can be created using pure implementation: github.com/kornelski/cavif-rs

There are already many encoders and decoders to choose from. That looks healthier than VP8 and WebP, which (AFAIK) still have only one implementation after 10 years.

I've realized that I don't use any dependency injection in , and I don't miss it.

Cargo makes dependencies and workspaces so easy, that I break code up into small libraries instead. They are testable individually, and bigger things that would be unit tests with DI become more of integration tests instead.

Kornel boosted

thinking about the decades of pain Microsoft set themselves up for by apparently thinking they could not possibly release something called “Xbox 2” when its competitor would be a “PlayStation 3” ign.com/articles/2016/07/25/xb

Kornel boosted

The yearly state of #Rust survey is out.🎉 You can take part until the 24th of September.
Please help the Rust community improve the Rust ecosystem by taking part in the survey. It should take less than 15 minutes:
blog.rust-lang.org/2020/09/10/

#StateOfRustSurvey2020

Does anyone know what’s the exact formula for YCgCo color space in 8-bit bytes?

There are tons of them around, but they usually assume -1..1 range or produce 9/10-bit values. How am I supposed to fit that in a byte!?

Kornel boosted
if java stops working on your computer, that just means someone else has installed java,and yours had to be sacrificed to maintain the 3 billion figure
Kornel boosted

Smells Like Teen Spirit Cover In Classical Latin (75 BC to 3rd Century AD) Bardcore

youtube.com/watch?v=PbEKIW3pUU

Kornel boosted
Kornel boosted

If you're defining an alias for your crate's Result type, instead of:

type Result<T> = std::result::Result<T, MyError>;

use:

type Result<T, E = MyError> = std::result::Result<T, E>;

This still works as `Result<()>`, but doesn't cause errors when someone accidentally shadows std's Result with it. It also makes Rustdoc display the error type explicitly in the documentation.

#rustlang

Kornel boosted

I've released new version of gif.ski — the high-quality encoder.

If you need to upload clean-looking GIFs somewhere (e.g. demos), that's the tool!

Kornel boosted

Do's and don'ts for novices:

References in function arguments = do
References in structs = don't

Kornel boosted

twitter.com/monadliker/status/

<< it was charming when someone shortened my name to “k8e” but i am now displeased my friends (a vile pack of scoundrels) are referring to me as “kubernetelyn >>

Show thread
Kornel boosted

The only advice I give to new programmers 

Arrest the cops who murdered Breonna Taylor

Kornel boosted

You can't replace QA with a versioning scheme.

Kornel boosted
Show older
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!