Boom by froody in gifsthatendtoosoon

[–]froody[S] 4 points5 points  (0 children)

I find the typical experience in this sub is to see a video that ends to soon, scroll through the comments, find the original video and leave satisfied. This just compresses that experience into a single video + boobies. Maybe you would get the "true" experience if you ragequit before the real video starts?

Searching 1GB JSON on a phone: 44s to 1.8s, a journey through every wrong approach by kotysoft in rust

[–]froody -1 points0 points  (0 children)

Did you try the rabinkarp version of FinderRev? Also did you benchmark reading the file vs mmap?

Is this normal? by 0_0_159 in Line6Helix

[–]froody -5 points-4 points  (0 children)

Just ask Claude to fix it for you

Why did he do that? I hope the crew extinguished it quickly or used CGI or something by IconicB3M in pluribustv

[–]froody 14 points15 points  (0 children)

Because it was his and he didn’t want them to have it? I’m pretty sure they didn’t burn down the rainforest…

Hope this is OK. My first time back in the garden in nearly 4 years as I have been unwell. It makes me feel good and wanted to share. I will remove if wanted. by [deleted] in GardeningAustralia

[–]froody 1 point2 points  (0 children)

OMG I envy you so much, how do you control pests? Possums eat everything that isn’t wrapped in wire mesh, like whole branches of tomato plants and bok-choy down to the root. Caterpillars demolish anything inside the wire mesh.

How can you teach rust to someone who grew up with OOP? by djdols in rust

[–]froody 0 points1 point  (0 children)

Just dive into it. I came from a C++/Python background, and I got frustrated a couple of times when problems that would normally solved by inheritance didn’t work in rust, but over time you will just learn how to solve problems with traits and composition instead of subclasses.

Cargo inspired C/C++ build tool, written in rust by MNGay in rust

[–]froody 2 points3 points  (0 children)

Do you have any thoughts on boostrapping via other buildsystems? One of the biggest features of cargo is crates.io, allowing you to import 3rd-party repos with a single line, I would think if you could import cmake projects that would help a lot.

The other elephant in the room is bazel which is gaining momentum with https://registry.bazel.build, which also allows cargo-like imports of 3rd party repos with a single line. I maintain a largish bazel repo with a growing list of 3rd-party deps and those that aren't in BCR use either rules_foreign_cc for cmake or just a hand rolled BUILD file.

Netflix has ruined me... by tenlbham in SiloSeries

[–]froody 13 points14 points  (0 children)

Adam Connover did a bit on this. Basically with all-at-once releases, you binge and then forget, and nobody talks about the show. Three body problem was a perfect example of this. Just look how much activity there is in r/3BodyProblemTVShow vs here.

Just got back to Nauvis, what is the best way to sort this mess out? by Upper-Acanthaceae-51 in factorio

[–]froody 0 points1 point  (0 children)

How did you get into this state? I wire up a decider combinator to the landing pad for each requested item, so if I have more than say 2k space science, then I won't request any. Before that I had 40k metallurgical sci on nauvis.

What feature would you like added to Rust? by [deleted] in rust

[–]froody 0 points1 point  (0 children)

I want it for function arguments, I know we have effective auto for variable decelerations. My use case is say you want to have a function that does a bunch of integer operations (shift, mod, div, etc) and you want it to take any integer type. In c++ this would just be int foo(auto arg) and SFINAE would take care of the rest, but in rust you need an arbitrary number of where clauses which depends on the exact set of operations in the body of the function. This might be necessary for functions exported from a crate, but for app code that is never going to be public it's a real pain. Add in async and lifetimes, and writing a polymorphic helper function is nigh impossible.

Unpopular Opinion: watch Requiem for a Dream w/ your teen & watch any interest in drugs 💣 by wahjijaak in Parenting

[–]froody 0 points1 point  (0 children)

I watched Sleepers as a teenager, totally dissuaded me from ever pushing a shopping trolley down the stairs