naonintendois

joined 2 years ago
[–] naonintendois@programming.dev 10 points 6 months ago (1 children)

I-4 was much easier to drive for me than I-95 in Miami. I have never seen worse drivers.

[–] naonintendois@programming.dev 4 points 6 months ago (2 children)

You can have a memory leak when items are still in scope in some loop or when you have a reference count cycle. The latter happens with the Rc/Arc types in rust.

An example for the former can be a web server that keeps track of every request it's ever received in memory. You will eventually run out of memory. But you did not violate any memory rules (dangling pointer, etc.). Memory leaks can be caused by design issues.

[–] naonintendois@programming.dev 8 points 6 months ago (2 children)

You don't need unsafe. Just keep pushing to a vec and never remove anything. Memory leaks are more than lost memory allocations. You can even have them with rc/arc cycles

[–] naonintendois@programming.dev 39 points 6 months ago (10 children)

Rust doesn't prevent memory leaks. You can do that in every language

[–] naonintendois@programming.dev 1 points 6 months ago

My only issue with nix is the documentation is terrible.

[–] naonintendois@programming.dev 2 points 7 months ago

VRR is variable refresh rate. Not sure about the others

[–] naonintendois@programming.dev 10 points 7 months ago (1 children)

I organized and threw away cables a few times. Every time a week or two later I'd find the things the power cables attached to and now have no replacement because they were unique to the device.

[–] naonintendois@programming.dev 2 points 7 months ago (1 children)

People become nicer on the east coast of Florida as you go away from Miami.

[–] naonintendois@programming.dev 6 points 8 months ago

Wow I almost fell for this. Sounds so believable in today's atmosphere.

[–] naonintendois@programming.dev 8 points 8 months ago

You're misreading the ..+? part. That means 2 or more characters, non greedy.

[–] naonintendois@programming.dev 7 points 8 months ago

I just wish it wasn't so expensive

[–] naonintendois@programming.dev 23 points 8 months ago (1 children)

I haven't regretted it. Did a road trip across the country. Takes more planning because chargers are more sparse than gas stations, but totally doable. Having a place to charge is a must. I lived in an apartment complex without charging and REALLY had to plan my charging sessions or it could get stuck in the parking garage.

view more: ‹ prev next ›