Avatar

Ephera

Ephera@lemmy.ml
Joined
32 posts • 299 comments
Direct message

Nope, crucial difference between Java’s char[] and Rust’s &str is that the latter is always a pointer to an existing section of memory. When you create a char[], it allocates a new section of memory (and then you get a pointer to that).

One thing that they might be able to do, is to optimize it in the JVM, akin to Rust’s Cow.
Basically, you could share the same section of memory between multiple String instances and only if someone writes to their instance of that String, then you copy it into new memory and do the modification there.
Java doesn’t have mutability semantics, which Rust uses for this, but I guess, with object encapsulation, they could manually implement it whenever a potentially modifying method is called…?

permalink
report
parent
reply

Yeah, I did figure out that it’s not a sheet folding machine pretty quickly. But I thought, it might have been a loom or something. Humanity has certainly built some big looms.

permalink
report
parent
reply

I feel like there’s maybe also a bit of disappointment in open-source going around? The last few years have shown that it’s not the silver bullet, it was thought to be.

Companies will find ways to relicense contributions via CLAs, or to just straight up violate your copyright with GenAI. And even projects that technically tick all the open-source boxes, like Chromium and parts of Android, can and do exert plenty control over users, because no one has the manpower to fork them.

Then there’s plenty unethical companies making use of open-source, and they rarely contribute back to make up for it.
Nevermind that the open-source infrastructure is owned by corporations (GitHub, Discord etc.).

And it feels ever more present to me that publishing things as open-source means maintenance work, which can quickly lead to burnout. People just expect you to provide updates, no matter what your license text says.

Like, I certainly don’t either think that not doing open-source is any closer to a solution. But I’m finally at a point where I feel like my code is useful and good enough to publish, and it just feels like either my only ‘users’ are corporations scraping my code, or if I promote it, then it’s just a ton of maintenance work waiting for me.
I don’t know, maybe that’s also just a me-problem…

permalink
report
reply

Why? I certainly expect that to be a factor, but I’ve gone through several generations of Android devices and I have never seen it without the GC-typical micro-stutters.

permalink
report
parent
reply

Which is funny, because I’ve actually never heard it used that way before. 🙃

Although, that’s probably because I’m not from a country with English as primary language.

permalink
report
parent
reply
4 points

In terms of reducing CO2 levels, yeah, but trees do also help cool down locally by simply providing shade and also because they evaporate water, which is an endothermic process.

permalink
report
parent
reply

Fair enough. I’m guessing, the lady using the quote had the same implication in mind, though? Otherwise, I’m really not sure what point she was trying to make.

permalink
report
parent
reply

A tip I read a while ago:

  1. Lay the fitted sheet upside down on your bed.
  2. Make sure all the stretchy stuff lies on top of the fitted sheet. You don’t want it hanging off the side.
  3. Put your hands under the stretchy stuff and push out all four corners, so you’ve got a nice rectangle.
  4. Take two of the corners and fold them onto the other two corners.

Now all the stretchy stuff should be neatly contained in the fitted sheet and you can just continue folding until it has the size you want.

permalink
report
reply

Personally, I just find it annoying, because it’s not immediately recognizable as such, especially with this old picture look. Having someone else comment that it’s horseshit is certainly appreciated, so I don’t have to spend the time finding out whether it’s garbage or not.

permalink
report
parent
reply

Can we also talk about how this quote makes just no sense in this case…?

The quote implies that you don’t have to give them fish, you can just teach them to fish, because they can reasonably learn to fish in an hour or so. They’re unlikely to starve in that timeframe.

Kids on the other hand go to school to learn to ‘fish’, i.e. earn their own money, for more than a decade. You can’t just say nah, they don’t need food, we’re teaching them how to earn it, when that teaching process takes magnitudes longer than it takes for a kid to starve to death.

permalink
report
reply