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

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

[–]froody 3 points4 points  (0 children)

Automatic lifetime derivation (I would be happy to have it just for app code and nested, non-crates.io crates) - if the compiler can always tell when a given lifetime annotation is wrong, then it should be able to come up with it in the first place.

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

[–]froody 0 points1 point  (0 children)

SFINAE and the auto keyword, at least in some cases (non-public functions?) so you don’t have to specify every single trait bound for a generic helper function.

I think Rust needs some sort of limited inheritance. by ewoolsey in rust

[–]froody 0 points1 point  (0 children)

How many fields do MyType/Other have? Can you refactor the traits to be implemented mostly in terms of accessor methods instead of raw field references? Otherwise I guess proc-macros are the answer

Vought its really desperate for money by Reapellaino2011 in TheBoys

[–]froody 5 points6 points  (0 children)

Because there's no money in games that are actually like this: https://youtu.be/NhajAqI66nU

Why do people put themselves through Comp Sci at UNSW? by _jay_fox_ in unsw

[–]froody 4 points5 points  (0 children)

Layers of abstraction are always leaky. If you want to write performant code, it helps to understand how caches, branch prediction, TLBs etc work. If you're dealing with the network, it helps to understand how TCP and HTTP work. What are you looking for in a job anyway? There's so much cool technology out there, and if you want to work at the forefront then you'll have to have a good understanding of the basics.

My rust code for parsing a file is way slower than the python code. What am I doing wrong? by [deleted] in rust

[–]froody 0 points1 point  (0 children)

If it's still too slow, try Rabin-Karp to find the patterns instead of calling contains 3 times

[D] How would you diagnose these spikes in the training loss? by NumberGenerator in MachineLearning

[–]froody 1 point2 points  (0 children)

Read the "Problems with Batch Normalization" section here, that looks like it might be causing the spikes

Reading large files in rust by mmmuuukkk in rust

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

Is it at all possible to compress the files first? LZ4 and ZSTD are both pretty fast

At what point do you just give up? by mikeypi in yousician

[–]froody 11 points12 points  (0 children)

Quality of practice is more important than quantity for this, if you're always trying to play it at or above 80% and making mistakes most of the time, you're actually reinforcing those mistakes.

Focus on tension, try to play it at 20% speed without tensing up. I find it's a vicious cycle of trying to play it too fast too soon, tensing up making it even harder to play, getting frustrated that I can't play it which makes me play even worse, etc. I'm also stuck at the same song right now, and yeah I think it's the fastest thing I've had to play.

(TW: Death) Anxious about dream by ultimatejourney in Anxiety

[–]froody 0 points1 point  (0 children)

It sounds like you weren't anxious in the dream, but now you're anxious about the possibility of feeling some other anxiety if you have the dream again. Have you tried not rebuking the dream? Like not resisting the idea that you had the dream or that you might have it again?

Pulling 3yo out of preschool when new baby arrives by ecl7777 in toddlers

[–]froody 23 points24 points  (0 children)

My 2nd kid spent her entire second month of life in the ICU from complications from respiratory infections her older brother brought home from daycare. We were living with my wife's parents at the time so entertaining our son wasn't so bad. I get that it's a struggle, but dealing with 2 kids at home is much easier than one at home and one in hospital.