[-] orangeboats@lemmy.world 6 points 6 days ago

Isn't "turning right" the main political theme across the world now? It's not just France.

But I will still put a disclaimer here that I am not French, just sharing my view since it seemed to be that most countries including mine are, ultimately, having the same problem. Feel free to correct me! Here goes:

I think, the general reason for this right-wing surge ultimately boils down to economics. People are obviously not satisfied with their current quality of life - see e.g. housing prices. Many blame it on things such as outside migrations or the geopolitical enemy of their country, etc etc. This is a hotbed for conservative-leaning mindsets.

Those factors I mentioned could have played a hand in this problem, but my opinion is that the biggest issue lies in unequal wealth distribution across the globe. That's why the GDP is growing, but people's standard of living (except for a minor few) is not. People directed their unhappiness at the wrong thing.

[-] orangeboats@lemmy.world 30 points 3 weeks ago

Wow, Europe, you guys sure are worrying us a little.

-- Best regards, South East Asia

[-] orangeboats@lemmy.world 29 points 1 month ago

Assuming the entire US court system isn't in the corporate pocket

I love your optimism

[-] orangeboats@lemmy.world 30 points 1 month ago

But personal files are... personal?

Research journals are published. Public.

[-] orangeboats@lemmy.world 37 points 2 months ago

I still don't quite get why some people are defending manufacturers which remove the headphone jack on their phones...

3.5mm jacks don't cost much materially. Removing it doesn't bring any benefit at all, and you are forced to buy a bluetooth headphone or a Type-C-to-3.5mm dongle on top of that.

[-] orangeboats@lemmy.world 49 points 2 months ago

Entitled brat? What... Have you ever seen how GNOME developers respond to some bug reports and merge requests?

Since when has reporting bugs and contributing to the project become an entitlement?

[-] orangeboats@lemmy.world 38 points 2 months ago* (last edited 2 months ago)

I've noticed that many Reddit users with the username format Word_Word_Number (for example Absolute_Bot_1230) are almost guaranteed to either be a bot or extremely inflammatory -- it's like everything they post is meant to generate controversies.

[-] orangeboats@lemmy.world 84 points 2 months ago

Society in general encourages and rewards those who speak more, even if the things they speak have zero contribution or are absolute nonsense.

[-] orangeboats@lemmy.world 50 points 3 months ago* (last edited 3 months ago)

Not sure if it's still the case today, but back then cellular ISPs could tell you are tethering by looking at the TTL (time to live) value of your packets.

Basically, a packet starts with a TTL of 64 usually. After each hop (e.g. from your phone to the ISP's devices) the TTL is decremented, becoming 63, then 62, and so on. The main purpose of TTL is to prevent packets from lingering in the network forever, by dropping the packet if its TTL reaches zero. Most packets reach their destinations within 20 hops anyway, so a TTL of 64 is plenty enough.

Back to the topic. What happens when the ISP receives a packet with a TTL value less than expected, like 61 instead of 62? It realizes that your packet must have gone through an additional hop, for example when it hopped from your laptop onto your phone, hence the data must be tethered.

[-] orangeboats@lemmy.world 86 points 10 months ago

It's the fear of centralization, I believe (correct me if I'm wrong!).

Seeing that the whole point of federation is to decentralize the web, putting everything under the Cloudflare umbrella goes against this philosophy.

[-] orangeboats@lemmy.world 35 points 10 months ago

Awesome! I don't have a Discord account (well, I had) so this will be very useful.

[-] orangeboats@lemmy.world 27 points 10 months ago* (last edited 10 months ago)

I still won't buy one just because of this news - they have done lots, lots of shitty things in the past. GameWorks, PhysX, Geforce Partnership Program, etc. While AMD is not exactly a saint when it comes to open sourcing, they still commit far more than Nvidia to open standards.

12
submitted 11 months ago* (last edited 11 months ago) by orangeboats@lemmy.world to c/rust@programming.dev

For context: I am trying to write a Rust wrapper over a C library.

Like many C libraries, most of its functions return an int. Positive return values are meaningful (provides information) and negative values are error codes.

To give an example, think of something like int get_items_from_record(const struct record *rec, struct item *items). A positive value indicates how many items were returned. -1 could mean ErrorA, -2 ErrorB, and so on.

Since this is Rust, I want to represent this kind of integer as Result<T, E>, e.g.:

enum LibError {
    A = -1,
    B = -2,
    // ....
}

// LibResult is ideally just represented as an integer.
type LibResult = Result<NonNegativeInteger, LibError>;

// Then I can pass LibResult values back to the C code as i32 trivially.

Is there a way/crate to do this?

view more: next ›

orangeboats

joined 1 year ago