snaggen

joined 2 years ago
180
The ???? operator (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by snaggen@programming.dev to c/rust@programming.dev
 

I found this funny.

The context is as explained by @laund@hachyderm.io

the issue is that you can't return from inside a closure, since the closure might be called later/elsewhere

and this post was the asnwer to the question by @antonok@fosstodon.org

you got me curious what the record for the longest ? operator chain on crates.io is

Original post: https://fosstodon.org/users/antonok/statuses/111134824451525448

 

100x faster, 100x smaller, and it runs in the browser!

The “tl;dr” is that we rewrote it (mostly) in Rust which compiles to WebAssembly for VS Code or the web, and to native binaries for Python. It’s over 100x smaller, over 100x faster, much easier to install & use, works fully in the browser, and is much more productive & fun for the team to work on.

[–] snaggen@programming.dev 2 points 2 years ago

Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860

[–] snaggen@programming.dev 2 points 2 years ago (2 children)

If you look at Rust for example, then you specify the Traits instead. So, you could define a trait that defines the properties for birth, another to define if the animal have a beak, and another one to define the number and type of legs. The each animal implement these traits, which then properly can define a duck, cat and a platypus.

[–] snaggen@programming.dev 14 points 2 years ago

He is one of the key people to get all of the low level components "just work", and a big part of why I use Fedora as my go to desktop distribution. This kind of work is a key part of providing a smooth desktop experience, sad to see RedHat stopping to support it.

[–] snaggen@programming.dev 4 points 2 years ago (1 children)

It varies, depending on if I have submodules or not. I see no reason to have a folder with a single mod.rs.

[–] snaggen@programming.dev 6 points 2 years ago* (last edited 2 years ago) (2 children)

My 75 year old father in law have been running vanilla gnome for the last 5 years. Turned out to be less confusing than Windows and less ways to mess up the computer. Only support I had last year was when the printer queue was paused for som reason. But I also helped a relative with the same thing on Windows 11 a few weeks ago, so that seems to not be a Linux issue.

So, Gnome is pretty much suitable for your grandma.

[–] snaggen@programming.dev 6 points 2 years ago (2 children)

The guy arranging the burning of the Quran this spring, have been working for RT and have a Russian wife. The play here is to agitate Turkey to make the NATO process more difficult

[–] snaggen@programming.dev 5 points 2 years ago* (last edited 2 years ago)

Where do I find that option?

EDIT: Found it, it is in the menu when you click on your profile picture.

[–] snaggen@programming.dev 31 points 2 years ago* (last edited 2 years ago) (3 children)

The pricing is a bit much, especially compared to other services like Tutanota that actually runs servers and provides a service in addition to developing the applications. $20-$30 for the onetime purchase option would be more sane.

I know I bought Sync Pro for Reddit, but I know that was nowhere close to these prices.

EDIT: Found the Remove Ads option, and that is more reasonable priced.

[–] snaggen@programming.dev 6 points 2 years ago

You can show ads without tracking the user and violate privacy. But they are not just selling ads, they also collect user data and sell that. So, the correct question would be, how can they adapt to survive on just selling ads?

[–] snaggen@programming.dev 1 points 2 years ago

I'm not the author, but thanks for the link.

[–] snaggen@programming.dev 4 points 2 years ago (1 children)

Not even Linguistically. Colored people implies, that people are originally without color, and then some people have been painted. Hence, implying that no color is the norm.

view more: ‹ prev next ›