Correct - Rust's attribute grammar allows any parseable sequence of tokens enclosed in #[attr ...]
basically. Serde specifically requires things to be in strings, but this is not a requirement of modern Rust or modern versions of syn
(if you're comfortable writing your own parser for the meta).
The author is not a Rust expert though, so I'm not surprised to see this assumption. It doesn't take away from the article though.
Edit: for fun, syn
has an example parsing an attribute in an attribute
Reddit makes an anti-user change. In other news, grass is green.
I haven't been on the site in over a year and nothing since then has convinced me to go back. Maybe I'm lucky that I'm not in any Reddit-only communities, but it could also just be that I treat those communities as though they don't exist and never had a reason to join one as a result.
This reminds me of when I visited Alaska over a decade ago. I thought it was the strangest thing that people there referred to Mt. McKinley as Denali. I was surprised to find out later that the name was officially changed to Denali in 2015.
It's nice to see these landmarks restored to their original names. The stories behind these original names are far more interesting anyway.
Reject assembly, return to machine code. Assembly is an inaccurate projection of what the machine truly does. Writing the binary by hand hardens us, and brings us closer to the computer. We better understand what our machine is doing when we calculate our jumps by hand.
To me, it seems like replacing almost all instances of this with "people" would be a harmless change. Is that something that would work? (Some, like "human emotion", could just become "emotion")
Do you have any specific examples of text that should be changed in the docs?
I made the mistake of starting Frostpunk (1) since I saw that 2 released. It's an incredibly well-made game. The art style is beautiful, the game is intense, there is a lot of emotion, and it does its one thing just so well. Unlike a lot of modern games these days, Frostpunk wants you to lose, which is fitting for its setting. It sees that you're behind, then kicks you in the shins for good measure rather than lending a helping hand. I've lost so many hours of my time to this game in the past week.
I've read that Frostpunk 2 is a completely different game. That one might be next on my list if I get to it before Factorio updates and the expansion for it comes out.
The "'modern' development stack" we used at my school when I was in a CS program was C++98 or something, compiled using gcc directly. This was in the last decade. It technically wasn't C!
But we did use C in my computer engineering classes so I guess they technically did teach it. I feel very fortunate that I haven't needed to use it since then.
Framework 16 laptops come with a 180W charger. The laptop itself might not draw that much (depends on your laptop configuration and settings), but the charger can draw that much to charge the laptop if needed.
Not quite 200W, but there are more powerful laptops on the market than the ones Framework sells.
The previous article in the series has a couple paragraphs at the start to introduce the idea and why:
Modern JavaScript frameworks like React JS and Vue JS have popularized the functional programming paradigm and declarative approaches to web app development. While these frameworks have made creating dynamic web applications more accessible, it's worth exploring the potential of web components in this landscape.
To me it seems more like an exploration and PoC for the purposes of learning than a real alternative to any particular frontend library, but that's just my interpretation. The subject is interesting anyway, even if I won't do this myself in a real world project at work.
Adding a single unused function should no effect on runtime performance. The compiler removes dead code during compilation, and there's no concept at runtime anyway of "creating a function" since it's just a compile-time construct to group reusable code (generally speaking - yes the pedants will be right when they say functions appear in the compiled output, to some extent).
Anyway, this can all be tested on Godbolt anyway if you want to verify yourself. Make a function with and without a nested unused function and check the output.
I can think of a few things I dislike about MTG as a whole (3yr standard and general powercreep of the format comes to mind), but my complaints about specifically Arena would be:
- Cost. I'd probably play more if sets didn't cost more than an entire new game on Steam to get the preorder bundles. Why are boosters so damn expensive?
- Grind. The F2P way to get cards is to grind like a madman to get your daily wins and finish the quests. The problem is I prefer slower decks, and I'm not going to play monored for my daily chore if I can just play a different game entirely.
- BO1 standard. This is more of a personal opinion, but I wish they'd keep a separate banlist for BO1. They've done it in the past with Nexus of Fate, but BO1 is so dense with aggro decks. Unfortunately, the daily wins system incentivizes more quick games rather than fewer interesting games, so I understand why these aggro decks are so popular. Maybe changing the daily wins system would solve this as well without the need for a separate banlist?
Someone I know failed an algebra exam for using calculus to get the vertex of a parabola. It'd be one thing if the reason was that it wasn't a method that was taught yet, but the teacher straight up didn't know any calculus and failed them by saying it was nonsense.
From the article:
Western-owned brands manufactured in China, such as BMW and Tesla
Looks like you're safe buying a Tesla.
I was expecting a meme about how few cards actually have "phasing" (and phase in/out automatically in the untap step). Instead it's a list of cards that make things phase out.
The list is a little more practical this way, but I'm still disappointed that WOTC dropped "phasing" itself entirely instead of trying to revisit it now that they've started printing cards that phase things out. They could have revisited the phasing lands idea with a tapped Ancient Tomb with phasing (and no self damage), or added cards that grant your opponent's permanents phasing (like [[Teferi's Curse]]).
Sorry if I'm missing some sarcasm here, but if this is all you have to contribute, then as a professional software developer, I'd much rather work with the author of the article on a daily basis.
Pushing HTML even further, one could say it's a declarative programming language that programs a UI in a mostly-stateless manner (inputs aren't really stateless but you can argue the state is provided by the UI rather than managed by HTML).
I'm not sure I'd make this leap myself though, I have a hard time classifying it (or any other markup language) as a PL. As far as I am aware, you can't really program a state machine with pure HTML, though you can accept inputs and return outputs at least.
Biden gets a rousing tribute from Democrats as he passes
I knew he was sick, but holy crap.
the torch to Harris in 2024 DNC speech
Oh, phew
I'm not sure I see the issue. Is there something wrong with them reporting on Ukraine's Kursk region? Doesn't seem like an illegal border crossing to me.
Two can play at this game.
Their GPUs are already bricks. Just throw the GPUs.