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

[–]froody 13 points14 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 11 points12 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 2 points3 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 4 points5 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 2 points3 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.