bamboo

joined 1 year ago
[–] bamboo@lemm.ee 11 points 1 month ago

I’ll be honest if that’s your complaint, I have a hard time believing you would find the equivalent C or C++ code to be better.

[–] bamboo@lemm.ee 16 points 1 month ago (2 children)

Cargo being an all-in-one tool is actually one of my favorite things about the rust ecosystem. It’s many things, and it does it all seamlessly.

Regarding comparing to C or C++, how can you argue either is designed better? C, while standing the test of time, predates so many modern programming concepts or standards and writing C code is extremely error prone. C++ improves on many of C’s shortfalls, but it wasn’t designed. It’s the result of different things being loosely bolted on to C over the course of 30 years. And it’s still error prone, for example while there are smart pointers and other types that can make writing memory safe code possible, they’re not default and they aren’t always fully supported in the standard library, let alone anything else.

[–] bamboo@lemm.ee 10 points 1 month ago (4 children)

I do systems programming work, sometimes with constrained memory scenarios. We always want to use the smallest types we can for any task, and unless negative numbers are a necessary, always prefer unsigned. That means a lot of u8 and u16 unless we know a value is likely to need more bits to be represented. Probably doesn’t matter as much in we programming but that’s not Rust’s niche (or well not its original niche).

[–] bamboo@lemm.ee 3 points 1 month ago

It does define minimum sizes for different types. An int for example is at least two bytes, whatever size those might be!

[–] bamboo@lemm.ee 5 points 1 month ago

Why this over a much more popular modern language like Rust?

[–] bamboo@lemm.ee 8 points 1 month ago

The earth is neither a perfect sphere nor is gravity uniform over the earth’s surface. The ground is also moving around, naturally due to plate tectonics but also due to human factors like oil and gas extraction as well as the depleting of fossil water. There might be more factors at play, but these alone are probably enough variation to explain this difference.

[–] bamboo@lemm.ee 1 points 1 month ago
[–] bamboo@lemm.ee 1 points 1 month ago

And likewise the aliens will want to get ahold of our computers where they will try porting an alternate version of doom where you play as an alien shooting humans.

[–] bamboo@lemm.ee 2 points 1 month ago

How often are you doing work on another computer? You probably have like 1-3 you use on any regular basis, just set them up and forget it.

[–] bamboo@lemm.ee 2 points 1 month ago

I mean if the government is providing a bailout, at a minimum they should get shares of the company at the current market value. If that’s a controlling share, well then it’s as good as nationalized.

[–] bamboo@lemm.ee 4 points 1 month ago (2 children)

This is just… super wrong. RCS is more open than iMessage by virtue of being supported on two different platforms from different vendors. Doesn’t really mean it is fully open, it’s not, but 2 is more than 1.

[–] bamboo@lemm.ee 2 points 1 month ago

This is a bad take that ignores that the Israeli occupation has been terrorizing Lebanon and the greater Levant since its inception.

view more: ‹ prev next ›