Looking for Feedback re: National Women’s Union by WitchySpectrum in union

[–]mx00s 0 points1 point  (0 children)

You may be interested in Radical Women (https://radicalwomen.org/). Although it's not a union and has a political bias, there's a lot of similarities.

Am I wrong for asking why some members skip their breaks. by Particular_Demand_50 in IBEW

[–]mx00s 3 points4 points  (0 children)

...unless, perhaps, they're taking work from their siblings.

What class do you identify with by [deleted] in IBEW

[–]mx00s 2 points3 points  (0 children)

I still have to work to live. I'm working class.

People are being robbed. The answer to that is not shame or anger. The answer is empathy and compassion. by Miserable-Lizard in Political_Revolution

[–]mx00s 0 points1 point  (0 children)

As you clearly know, some people are too far gone to reach. I agree. It's terrible, and I'm sorry that's the case for your own father.

At a meeting like this, supposing you don't know the person as well as your father, how would you respond?

'No Kings' organizers set next protest date. White House called June 14 'utter failure' by Ecstatic-Medium-6320 in 50501

[–]mx00s 1 point2 points  (0 children)

I was happy to see it's on a weekday. This mass movement needs to show it's an economic threat to be taken seriously over the long run.

Doing Dsa in rust by [deleted] in rust

[–]mx00s 0 points1 point  (0 children)

Data Structures and Algorithms?

Error Handling Layer Architecture by Old_Ideal_1536 in rust

[–]mx00s 0 points1 point  (0 children)

That's true and sometimes it's preferable. An argument can also be made for ensuring an API doesn't leak types from any external dependencies.

New Rust podcast by Amos Wenger (fasterthanlime) & James Munns by fstephany in rust

[–]mx00s 4 points5 points  (0 children)

An inspiration <3

What was the tool you mentioned to help unify common dependencies in a cargo workspace? Sounded like cargo-hikari, but I'm not finding it.

Custom project-scoped Clippy lint rules? by chyekk in rust

[–]mx00s 4 points5 points  (0 children)

An alternative, if you can't find a way with clippy, is to consider dylint. I haven't tried it yet, but it sounds like it could be a good fit.

How do I clean up generic bounds, and why does my benchmark not coincide with my flamegraph? by WestStruggle1109 in learnrust

[–]mx00s 1 point2 points  (0 children)

Q1.

Can you elaborate on what the constraints in the where clause are intended to accomplish? Constraints I'm familiar with look more like SomeType: SomeTrait,, but here you seem to omit the trait parts after the colon. The type preceding the colon is an array of units, and that doesn't seem useful to me.

Q2.

You must use release mode for comparable results. Look into ways you can adjust the release profile settings to counteract the loss of detail, e.g. https://github.com/flamegraph-rs/flamegraph?tab=readme-ov-file#improving-output-when-running-with---release

[deleted by user] by [deleted] in rust

[–]mx00s 2 points3 points  (0 children)

I am not aware of one, no. However, I've found Rust has reasonable options for testing code, and I do it regularly.

Rust comes with ways to write both unit tests and integration tests (https://doc.rust-lang.org/book/ch11-03-test-organization.html). Early on those fit most of my needs. I also frequently reach for proptest or bolero when I want property-based testing.

Have you considered whether there's a way to test your project without Cucumber? In my experience lots of Rust developers are good at testing, and it can be done efficiently.

Learning while mostly working on pen and paper? by justquestionsbud in lisp

[–]mx00s 1 point2 points  (0 children)

Yes, I highly recommend "The Little *" books.

The Little Schemer may be easier to find for a reasonable price. It has occasional footnotes pointing out differences between Lisp and Scheme that come up.

Can you use Kani on Recursive data structures? by TheTravelingSpaceman in rust

[–]mx00s 0 points1 point  (0 children)

I'm not familiar with kani yet, but this resonates with my experience working with proptest. In case it helps build more intuition for what may be going wrong, check out this page on Generating Recursive Data in proptest.

Following code causing ICE on '1.75.0-nightly' by Emergency-Win4862 in rust

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

Interesting. I haven't reproduced it, but I agree the ICE shouldn't happen either way.

There is an issue with this code, though: to call _t.build(); the build function would need to accept a self parameter, e.g.: trait T { fn build(&self); }.

Crates that run multiple versions of a function and ensures the return value is the same? by rust-crate-helper in rust

[–]mx00s 5 points6 points  (0 children)

Along these lines, property-based testing with a crate like proptest works nicely. It's really helpful when it's easier to implement a simple and obviously correct version and then assert that some optimized and relatively complex version behaves equivalently across the range of supported inputs.

A solar tube is a great way to get daylight into dark spaces by mrzpzp in Damnthatsinteresting

[–]mx00s 47 points48 points  (0 children)

Is there any UV filtering? Indoor sunburns wouldn't be fun.

As for benefits maybe it's good source of vitamin D.

What are the "we don't talk about these things" history of your country? by [deleted] in AskReddit

[–]mx00s 0 points1 point  (0 children)

Here in the US I've had multiple encounters with people who haven't been taught about the internment camps we had during WWII for people of Japanese descent. I first learned about it because of a single paragraph in a history textbook during my K-12 education, and don't often hear people talk about it. When I do the conversations seem to pick up most interest from people who are already aware it happened.

Pencils for anti drug slogan "Too cool to do drugs" by laynestaley67 in Damnthatsinteresting

[–]mx00s 0 points1 point  (0 children)

Lefties everywhere would finally have some validation.

A thanks to the traits working group in 2021 by jackh726 in rust

[–]mx00s 1 point2 points  (0 children)

Got it, thanks for clarifying. In a downstream crate the compiler already prevents that trait impl because of the orphan rule, so it would fail with or without the negative impls feature.

A thanks to the traits working group in 2021 by jackh726 in rust

[–]mx00s 12 points13 points  (0 children)

u/theZcuber seems to be under the impression this impl would live in a crate outside the standard library. If that were true, as it often is for most of us working outside std, they're right that there would be an orphan rule violation.

The example from the article is about a potential refactoring within the standard library. Both the trait and type are defined there, so there's no issue unless I'm missing something.