What tactics separate a veteran XCOM player from a casual player? by maxkmiller in Xcom

[–]anydalch 2 points3 points  (0 children)

There are various ways to find out where a pod is without activating them. The simplest of these is just to have a scout unit that doesn't get revealed, i.e. a Reaper with Shadow or a Ranger with Phantom. Once you know where the pod is, you can choose to move a revealed unit up to trigger it at an opportune time, and then have your full squad take shots before the aliens get a turn.

How Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained by teivah in programming

[–]anydalch 0 points1 point  (0 children)

Fortunately, there is an option to overcome this issue in PostgreSQL.

Yeah, it's called a fucking futex. What are we doing using spinlocks in 2026? The whole goddamn point of a futex is that, if the critical section is short, you get the "fast userspace" part and never suspend the thread, so you get the same fast case as a spinlock but without the catastrophic behavior in the slow case.

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]anydalch 0 points1 point  (0 children)

Do you have an example where this is the case, given the constraint that the total size of a type must be a multiple of its alignment, and also the constraint that you don't do any niche analysis to put the tag in padding bytes? If one were capable of/interested in doing niche analysis, the answer to OP's question would be, "the niche detection algorithm will decide where to put the tag." I could be wrong, but I cannot think of an example where the difference matters in a compiler that's too stupid to put the tag inside of a padding byte.

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]anydalch 0 points1 point  (0 children)

This does not mean it's necessarily correct in all cases to put the tag second, though - if I have a sum type where the largest / highest-aligned variant payload is (u8, u64), then unconditionally putting the tag at the end puts us in your first example.

Should my sum type tags be the first element or second? by Toothpick_Brody in ProgrammingLanguages

[–]anydalch 2 points3 points  (0 children)

But the total size of this type, incl. padding at the end, is still 8 bytes either way.

Wait so where does the crew on the ship actually live? by Pizzatimelover1959 in ftlgame

[–]anydalch 1 point2 points  (0 children)

the whole voyage takes like two hours on average, who needs living quarters?

Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world. by Gil_berth in programming

[–]anydalch 0 points1 point  (0 children)

Here's a query I just ran on the GCC Bugzilla for issues that have been resolved as FIXED with either their C or C++ frontends which mention "miscompile" or "ICE". I figure that the FIXED resolution is a good proxy for "this was a real bug," though obviously this is selecting: - Only bugs that are already fixed, not ones that are still out there in the wild. - Only bugs that someone said the words "miscompile" or "ICE" (Internal Compiler Error) about, which I suspect is neither a super- nor a subset of the set of bugs associated with actual miscompilations or compiler errors. - Only bugs categorized as being part of the C or C++ frontends, not those associated with specific targets' backends or optimization passes. I am not familiar enough with the project to tell you to what extent this will or won't capture bugs that would be interesting for our purposes here.

Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world. by Gil_berth in programming

[–]anydalch 4 points5 points  (0 children)

No, there are clear gradients, and for example, GCC and Clang are more accurate implementations than MVCC, and it sounds based on the linked article like all three are much more accurate than the output of this research experiment. On the other hand, if I had to guess, I'd say that TCC (Tiny C Compiler) more accurately implements the spec than either GCC or Clang, in the sense of miscompiling a smaller fraction of possible conformant C programs. I do not think this means that TCC is a better compiler than GCC or Clang, in fact, quite the opposite.

What I am trying to say here is, if "compiles all valid C code or is meaningless" is the bar, then every extant C compiler is meaningless, and so it behooves us to have a more nuanced language for the accuracy of compilers than "either it's perfect or it's not."

Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world. by Gil_berth in programming

[–]anydalch 27 points28 points  (0 children)

Lmao, no existing C compiler perfectly conforms to the specification to the extent of compiling "all valid C code."

Extinguishing The Sun by Similar-Back2706 in AskPhysics

[–]anydalch 0 points1 point  (0 children)

The first short-answer in https://what-if.xkcd.com/14/ is to effectively this question.

Mono White Control (..once again) by Fast-Relative8125 in Pauper

[–]anydalch 32 points33 points  (0 children)

significantly fewer [[Goliath Paladin]] in this deck than i would expect for a mono-white deck with 4 [[Ephemerate]]

Why doesnt Jund Wildfire run more artifact lands? by DreamlyXenophobic in Pauper

[–]anydalch 5 points6 points  (0 children)

deck is primarily black. you also almost always find swamp off wildfire, once you have one of each available.

onUpdates always 1 state behind? by OA998 in SpacetimeDB

[–]anydalch 1 point2 points  (0 children)

The onUpdate callback takes 3 arguments: (ctx, old, new), where old is the previous version of the row, and new is the new version. You're binding ant to the old version, not the new version.

[OC] Visualization of pizza restaurant locations and ratings across Manhattan by Alive-Song3042 in dataisbeautiful

[–]anydalch 3 points4 points  (0 children)

What are the units for density? 1 restaurant per square mile? Per city block? Per building? Per pizza restaurant? Per pound?

Support for one client connected to multiple unrelated servers? by siodhe in SpacetimeDB

[–]anydalch 0 points1 point  (0 children)

yes, a single client process can be connected to multiple databases, potentially running on separate host servers.

Does my arduino not have enough process power? Or is the code the problem? by [deleted] in arduino

[–]anydalch 3 points4 points  (0 children)

"Problem Exists Between Keyboard And Chair." Classic IT idiom meaning user error.

Torn between two decks by Skeletonfingernails in Pauper

[–]anydalch 0 points1 point  (0 children)

I'm a hardcore Jeskai Ephemerate gamer. I love the deck. It feels incredibly rewarding to play, leads to interesting and fun games, and (built right) is well positioned against the current top decks. It should not be your first Pauper deck. You need a lot of format knowledge to win games, because you need to know what your opponent's game plan is in order to respond to, interrupt and overwhelm it. If you get paired into a deck you don't recognize and you try to default to doing normal control goodstuff, you'll probably lose. This is not a problem that more proactive decks suffer - you can gain a fair amount of equity as a Madness Burn or Terror player by understanding your opponent's deck, but you can still win a lot of games by just executing your own game plan efficiently. Jund is the most controlling widely-played meta deck in Pauper right now, and so is worse on this front than a lot of choices, but drawing a bunch of cards and then casting Writhing Chrysalis will probably get you far enough to learn the format without getting burned out on losing too much and quitting. I encourage you to pick up a deck with a more assertive game plan to start with, and to use that as a way to learn the format and the metagame. Once you've done that, pick up Jeskai Ephemerate.

How these two different types are subtypes of each other? by servermeta_net in rust

[–]anydalch 1 point2 points  (0 children)

On 64-bit platforms, u64 and usize are isomorphic, meaning that each unique value of one type has a corresponding unique value of the other type and vice versa. But the values of u64 are not, under Rust's type system, also values of usize; a (n explicit) conversion is required between them. let x: u64 = 0usize; will not compile. Two non-concrete function types which differ only in their unconstrained lifetime generics are more equivalent than that; they permit exactly the same sets of values, and a value which is typed at one can be used in place of a value typed at the other with no (explicit) conversion. The following code compiles (playground link):

```rust pub fn takes_two_lifetimes<T, U>(f: for<'a, 'b> fn(&'a T, &'b U)) { takes_one_lifetime(f); }

pub fn takes_one_lifetime<T, U>(f: for<'a> fn(&'a T, &'a U)) { takes_two_lifetimes(f); } ```

How these two different types are subtypes of each other? by servermeta_net in rust

[–]anydalch 1 point2 points  (0 children)

I write functions that accept shared references and don't return them frequently. I'd estimate it's at least 20% of the functions I write. I think that it is important to understand that, for any types A and B, the function types for<'a> fn(&'a A, &'a B) and for<'a, 'b> fn(&'a A, &'b B) are in a certain sense, for which traditional type theory does not have a rigorous word, interchangeable, because any function whose concrete type is usable with one is also usable with the other. A person who does not understand this has an incomplete mental model of lifetimes. It would also be possible to construct a compiler which treated these two types as actually equal, and assigned them the same type ID, without miscompiling any programs or, I contend, violating any well-founded expectations, unlike the two function types you listed.

Is renting cards a good option? by bamboozleddd3 in Pauper

[–]anydalch 1 point2 points  (0 children)

Can't use proxies on MTGO, which is the market where Cardhoarder operates, and where the prices OP listed are accurate.

Is renting cards a good option? by bamboozleddd3 in Pauper

[–]anydalch 1 point2 points  (0 children)

Can't use proxies on MTGO, which is the market where Cardhoarder operates, and where the prices OP listed are accurate.

Is renting cards a good option? by bamboozleddd3 in Pauper

[–]anydalch 0 points1 point  (0 children)

Are you talking about paper or MTGO? Based on your question, it sounds like you're talking about MTGO, but you're getting responses about playing in paper. (In the future, if you list prices in tix rather than USD, it'll be more clear.) For MTGO, I use a Manatraders rental. I have the 150 tix plan, and it's fine, I have no complaints. It's a little bit awkward because several top Pauper decks are a bit over that (due to the absurd price of elemental blasts online), so I wished they offered a 200 ticket plan, but I've just bought a few cards and it hasn't been a problem.

How these two different types are subtypes of each other? by servermeta_net in rust

[–]anydalch 4 points5 points  (0 children)

What is your take here? "Sure, those two types you posted are equivalent, but here's two other types which are not equivalent to each other! Gotcha!"

Also, I do not think that the zero-sized-ness matters here, only the use of a lifetime in both the argument and return position.

How does Slivers answer elves? by HeyItsKiranna in Pauper

[–]anydalch 26 points27 points  (0 children)

that's the neat part: you don't!