![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.magnor.ovh/api/v3/image_proxy?url=https%3A%2F%2Fbeehaw.org%2Fpictrs%2Fimage%2Fc0e83ceb-b7e5-41b4-9b76-bfd152dd8d00.png)
Sounds like the internet needs to have some rules established to keep things under control. Personally, I think 34 rules is a good number, at least at a minimum.
Sounds like the internet needs to have some rules established to keep things under control. Personally, I think 34 rules is a good number, at least at a minimum.
I’m not sure I understand why this question comes up everytime some chinese app is in a news article.
Anyway, it should not come as a surprise, but “Arkansas Attorney General Tim Griffin”, someone who works as AG for a state in the US, presumably is more interested in US interests than Chinese interests, and presumably places more trust in the government and businesses of the country he lives in than in the government (and businesses, for where there’s a distinction anyway) of the country of his nation’s economic rival.
The debate covered important questions of national significance, including whether Trump had intercourse with a porn star, who was better at golf, each of their physical health conditions (including Trump’s height and weight and apparently cognitive ability), and even featured a modern use of the word “malarchy”. They might as well make a short, catchy intro for it, break it up into episodes, and advertise it as a sitcom.
The debate was completely useless. The only thing I got from it was that Biden’s brain still works but his body doesn’t, and Trump’s body still works but his brain doesn’t. There were some slight mentions of hot topics and each of their positions on the subject, but there was so much jumping around and avoiding questions that it was not very helpful.
Honestly, I think one of the things Biden said should just be applied to both candidates when determining who to vote for: “Just take a look at what he says he is, and take a look at what he is.” (I believe this was used in context of Trump’s weight… lol) Both of them have served 4 years in office, and both have done stuff outside of the oval office. It’s easy to see how each of them would spend their terms based on what they already have done.
In my case, since I get DashPass through my CC (not directly paying for it), I’ve seen it discounted to below the price some restaurants list on their websites. I pick up all my orders myself though.
I wouldn’t pay for DashPass directly, personally speaking at least. I don’t use DD nearly enough to justify investing more into it vs. just ordering on the restaurant’s website or calling in the order. The only reason I even use DD is because I get that as a benefit through my CC and it usually pushes the prices to same or lower as ordering directly.
Grief, in my opinion, was a mistake. It should really be banned in all formats (except those where it’s normal to restrict instead). In the right deck, it’s a 1-drop 3/2 menace that double/triple thoughtsiezes before your opponent can drop a land into play.
But hey, they fixed that problem by banning Fury in modern, right?
As for the “no changes” B&R, I wish they were a little more willing to unban cards. For example, I wonder if Invoke Despair could come back to standard at this point (despite it rotating out soon anyway). Anyway, I guess I’m just looking forward to rotation to change up standard since it feels mostly solved (a lot of the same decks have been on top for a while now, with minor changes each new set).
Ignoring the rest, just some thoughts about the list of proposed features:
A
capture
trait for automatic cheap clones
Automatic implicit cloning would be useful for high level developers, but not ideal at all for low level or performance-sensitive code. It’s not the case that anyone using a shared pointer wants to clone it all the time. The high level usecase doesn’t justify the cost assumed by the low level users.
Instead, being able to wrap those types with some kind of custom “clone automatically” type feels like a middle ground. It could be a trait like mentioned, or a special type in the standard library. Suppose we call it Autoclone[T]
or something (using brackets because Lemmy nonsense). Autoclone[Rc[T]]
could function like the article mentioned.
Automatic partial borrows for private methods
Having “private” and non-“private” methods function differently feels like confusing behavior that should be avoided if possible. Also, “private” I assume refers to pub(self)
methods (the default if unspecified), which is “module-level” methods (so accessible within the module it’s defined in). Anyway, there are years of discussion around this so I’ll just defer to that as to why it’s not in yet.
I agree with the urge to make it happen though. Some method of doing partial borrows for methods would be nice.
Named and optional function parameters
This is what prompted me to even comment. What “every language” does for complex constructors is different per language. C#, for example, supports both named and optional parameters, but construction usually uses an object initializer:
var jake = new Person("Jake")
{
Age = 30,
// ...
};
This is similar to Rust’s initializers:
let jake = Person {
age: 30,
...Person::new("Jake")
};
Where it gets tricky is around required parameters. Optional ones don’t really matter since you can use the syntax above if you want, or chain methods like with the builder style.
As for the overhead of writing builders, there’s already libraries that let you slap #[derive(Builder)]
on types and get a builder type automatically.
As for optional parameters, how those are implemented differs between languages. In C#, default values must be constant values. In Python, default values are basically “global” values and this nonsense is possible:
def count_calls(count=[]):
# if unset, count is a global list
count.push(0)
return len(count)
Anyway, all this is to say that the value of optional parameters isn’t obvious.
Named parameters is more of a personal choice thing, but falls apart when your parameter has no name and is actually a pattern:
async fn get_foo(_: u32) {}
Also, traits often use names prefixed with underscores in their default fn impls to indicate a parameter an implementer has access to, but the trait doesn’t use by default. Do you use that name, or the name the implementer defined? I assume the former since you don’t always know the concrete type.
Faster unwrap syntax
We have that, it’s called the try
operator.
Okay I know it’s different, and I know everyone’s use case is different, but I’ve been coding long enough to know that enabling easy unwraps means people will use it everywhere despite proper error handling being pretty dang important in a production environment.
Thinking of my coworkers alone, if we were to start writing Rust, they’d use that operator everywhere because that’s what they’re familiar with coming from other languages. Then comes the inevitable “how do I add a try-catch block?” caused by later needing to handle an error.
Anyway, I prefer the extra syntax since it guides devs away from using that method over propagating the error upwards. For the most part, you can just use anyhow::Result
and get most error types converted automatically.
Try trait
Yes please.
Specialization
Yes please.
Stabilizing async read/write traits to standardize on an executor API
I’d want input from runtime devs on this, but if possible, yes please.
Allowing compilation of builds that fail typechecking
???
How is the compiler going to know how to compile the code if it doesn’t know the types? This isn’t Python. The compiler needs to know things like how much memory to allocate, and there’s a ton of potential unsound behavior that can occur from treating one type as another, even if they’re the same size.
Anyway I’ll save the rest for later since I’m out of time.
Speaking as someone with a MTF close friend and NB spouse, but the term used in the article is the term everyone around me used when I was growing up. That term may be obsolete now, and if so, the author simply needs to be informed. There’s no need to assume they meant harm by it.
If they knowingly used a term that may offend, then that’s of course a separate issue.
I find it funny that the same people who are against government regulations and giving more power to the state are the ones voting for this. They also seem to be so poorly informed that they think it’ll stop anyone from watching this content lol.
I’m not sure which game this comment is in context of, but steam reviews showcase the issues pretty clearly. For example, I went on the steam reviews for MTGA at one point for fun and saw a comment complaining about there not being enough white male masculine looking avatars. I’m not sure how Gideon Jura (literally the definition, even in cards, of a masculine white guy) and Garruk are not masculine enough for this person lol.
Most likely, from how the comment read, they were complaining about the female portraits and portraits with non-white characters. I’m assuming they missed the NB character portrait (Niko Aris) since they didn’t specifically call them out.
I also remember back when Horizon: Zero Dawn came out there were a lot of people complaining about a female MC. Personally, that was one of my favorite parts of the game since it gave a non-traditional perspective of the story in my opinion. Maybe some people disagree, and that’s fine, but giving a game a poor review just because the MC is female is honestly just a dishonest review of the game.
You are not entitled to my money.
I don’t think the article claimed anyone was, at least from my read of it. It’s your loss if you refuse to enjoy games over such a petty reason though.
It’s also honestly just childish to give a game you haven’t played a bad review for having a more diverse cast. The main character is literally on the box art - if it bothers you, then the game is clearly not for you. It’s like me reviewing an otome game poorly because I don’t like otome games.
My Framework 16 hasn’t run out of battery… ever? I don’t use it often since I mostly use my desktop, but every time I have for the past couple months or so, the battery has been above 50%.
Without gaming, I could almost certainly last a whole day without charging it. I’m not sure I could really ask for more than.
Not sure how the 13 is on battery, but I’d imagine the battery is a bit smaller due to the size difference.
I was mostly looking for something more composable, similar to how jest
works. Some ideas that I’ve been working on are assertions like:
expect!([1, 2, 3])
.all()
.to_be_less_than(5);
I also have some ideas around futures that I’d like to play with.
Felt like making an assertions library since I can’t seem to find something quite what I’m looking for.
I’m sure Lockheed Martin wouldn’t mind it too much, but I can’t see Washington being interested in actually entering a conflict (given the situation with Ukraine), and I’m sure even the suits at Lockheed are hesitant about that major of a war.
In addition to 1:many, many:many, and many:1 (which is just 1:many but looking at it in the other direction), you also occasionally see 1:1, for example if you want to augment a table with additional data. This might be done by having your foreign key also be your primary key in the augmenting table, since that would also enforce a uniqueness constraint on the FK as a result.
Also, probably unnecessary to mention, but you can also have “0 or 1” relationship (meaning one side is optional but capped at 1). These are technically separated from “1” relationships usually when you get into all the theory. An example of this might be a “0:1” relationship using the above augment table, but where the augmenting table isn’t required to have a row for every row in the augmented table. (A 1:1 constraint can be enforced, for example, by having an additional FK in the augmented table pointing to the augmenting table.)
Inline consts also let you perform static assertions, like asserting a type parameter is not a zero-sized type, or a const generic is non-zero. This is actually pretty huge since some checks can be moved from runtime to compile time (not a lot of checks, but some that were difficult or impossible to do at compile time before).
All they’d have to do for me to buy premium is make a plan without YT music that costs less. It’s not that hard. I will never use YT music, and that has nothing to do with the quality of the service or whatever - I’m not interested in music streaming services at all.
This sounds like a nightmare for production lines. Items on belts just randomly turning into spoilage? I hate thinking about how this will break so many common factory setups, and I like this change just as much for that same reason. Just filtering out spoilage at the end of a belt won’t be enough for some designs, especially when 3+ ingredients are involved in the recipe (so two input belts). It’ll be interesting to come up with new designs that can filter the inputs mid-belt to remove the spoilage, since it’s inevitable if your inputs come faster than you can process them.
Can’t wait to see the update.
To add - blocking the main thread on a long running task in the browser can make the page unresponsive. There’s not really a way, as far as I know, to “block until a promise completes”, which might be the source of the frustration. It seems to me that was intentional by the ones who designed this function.
If they are mutually exclusive special cases, using an enum like another comment mentioned makes sense, and can limit the special cases to one field. You can use an enum of strings if you want it to be more readable.
As for how the data is represented, only including the special case field when there is one makes sense as well. Keep in mind JSON is also a flexible format - you can even have the array contain mixed types, like strings for simple licenses, and objects for more complex licenses. That can reduce the size of the JSON document quite a bit, if that’s an option.
I felt like neither side really answered the question about how they planned to address addictions in the US. They both talked about the US-Mexico border and trying to catch more imported drugs, but failed to address domestic production, and more importantly, failed to answer how they plan to address addiction in the US (as in current and future addicts).
Also, the whole question about physical ability diverted so off topic that I lost what they were even talking about. Biden seemed to try to answer it, but then it took a sharp turn towards weight and golfing skills?
Edit: I should also add that yes, Biden tended to stay on topic more. Trump always seemed to be answering a different/previous question instead.