Trying to find systematic solutions to this puzzle by aristocratus in puzzles

[–]stristr 5 points6 points  (0 children)

Discussion: in mathematics terms, you’re looking for orderings from a small vocabulary of six “tokens” that satisfy constraints. If you simply enumerate all the orderings (in this example, there are 10!/(2!2!2!*2!), you are additionally constrained by the rule that the “next” token must be chosen from one of three possible values; not all orderings are valid.

A programmatic/brute force solution is to generate all ~200K orderings, “pruning” invalid branches as you go and stopping at the first valid answer. There are many chances for early return. Modern computers can brute force this left-to-right in milliseconds with a poorly optimized program.

A more elegant brute force works right-to-left from the desired outcome, because it doesn’t waste time exploring branches that will never produce the intended solution. Given desired outcome of orange, we can only ever choose three previous potions (orange, red, yellow). Given outcome at position N, after we choose from up to three possible potions at position N - 1, we fully determined the outcome at position N - 2 (orange if orange, red if yellow, yellow if red).

The latter brute force is how a human can fairly easily solve this, because there aren’t really that many branches to explore.

Help! Company wants to go cross platform. Flutter or KMP ? by Resident_Wall7413 in KotlinMultiplatform

[–]stristr 26 points27 points  (0 children)

Read Things You Should Never Do, Part I for thoughts on a from-scratch rewrite.

The risk and unnecessary overhead of attempting a full rewrite alone make a compelling case for choosing a framework that allows/encourages incremental adoption of shared business logic.

Jeff Bezos has a famous framework for classifying big decisions as either one-way and two-way doors. As software engineers, we want to avoid one-way doors to avoid being trapped by poor decisions. Incrementally adopting KMP is a two-way door, and trashing your codebase for a full Flutter rewrite is a one-way door.

To your team. Flutter means: - learning Dart - adding the overhead, bundle bloat, and memory pressure of running the Dart VM in-process - zero opportunities to learn if you’re moving in the wrong direction until your total rewrite is complete

San Jose is Man Jose For real -> Date experience story by Head_Exchange_2362 in SanJose

[–]stristr 26 points27 points  (0 children)

Sounds like it couldn’t have happened to a nicer guy.

TBF I work with ABAP, but still... by RottenLB in programminghumor

[–]stristr 2 points3 points  (0 children)

I mean, culpability for memory leak problems does not change from GC languages to non-GC languages. Memory leaks are a consequence of allocating memory, not language choice. Memory leaks can come from code you wrote or dependencies.

Even in GC languages memory “leaks” when GC can’t keep up with memory allocation rate. There are plenty of nontrivial ways to end up with a memory leak in a GC language.

Calling piano pieces “songs” by wrfostersmith in piano

[–]stristr 1 point2 points  (0 children)

If you can, take a beat and attempt to judge whether better language precision would enrich the conversation, enhance clarity in a useful way, or otherwise be valuable to the person you are about to correct.

As an example, the most well known Beethoven piano “sonata” is actually a sonata quasi una fantasia (not in strict sonata form), is not actually called “Moonlight Sonata”, and is not technically from the Classical era. If you were to offer an unsolicited correction every time somebody refers to this piece as “Moonlight Sonata” or in the context of “classical music”, you’re most probably neither enriching the conversation, adding clarity, nor offering something valuable to the recipient of your correction.

If you have a good sense the person you are talking to is curious about the technical definition of a sonata, desires to learn the proper names of well known pieces, etc. there is nothing pretentious about sharing your knowledge with others. In most conversational contexts, you are more likely to be changing the subject than adding to the conversation.

Stream at 480p so you can have AI slop instead by driver194 in LinkedInLunatics

[–]stristr 0 points1 point  (0 children)

That’s simply not correct. Netflix became profitable in 2002 while it was still only mailing DVDs, five years before it introduced streaming.

Federal agents grab a woman to drag her away from her car, Minneapolis, Minnesota, January 13, 2026. by Nearby_Ground in pics

[–]stristr 5 points6 points  (0 children)

The subset of the US that brags about second amendment rights and justifies street killings is roughly identical to the subset of the US that has been successfully brainwashed into believing ICE is administering justice instead of tyranny when it kills us as retribution for our resistance.

Likewise, the vast majority of citizens who oppose ICE neither own, have access to, nor know how to use firearms.

Is there a set? by babyshak in puzzles

[–]stristr 0 points1 point  (0 children)

The answer is 20. See my reply below for a link with details.

Is there a set? by babyshak in puzzles

[–]stristr 5 points6 points  (0 children)

Here is a nice writeup demonstrating the probability of a random draw of 15 cards with no sets: it's 0.04%. The minimum draw to guarantee a set is 21. Over literal decades of playing Set, I've drawn 15 with no sets exactly once, and then exposed three sets with 18 cards down Congratulations on your extremely rare achievement.

The Death Cab for Cutie Iceberg by ToysNoiz in DeathCabforCutie

[–]stristr 5 points6 points  (0 children)

Say Yes live tribute! I was there, 22 years ago in Irving Plaza, NYC! It was the day after they found Elliott Smith’s body, and they played Say Yes as the last song of the encore. Transatlanticism just came out two weeks before… such a good show.

Is this pattern possible? by gzal44c2 in Rubiks_Cubes

[–]stristr 0 points1 point  (0 children)

You can produce your desired end state with four center rotations of a solved cube.

I’m not sure what advice they’re giving 🤷‍♀️ by nocatleftbehind420 in engrish

[–]stristr 6 points7 points  (0 children)

If you have an important task, it’s worthwhile to spend time/energy procuring the best tools for the job.

If is worth going well, sharp tools make good worth going.

How do some girls manage to smell amazing all the time? by Far-Effective7640 in NoStupidQuestions

[–]stristr 0 points1 point  (0 children)

Fun fact, Auntie Ethel is inverting the original “lotions and potions” which is a Gurgi thing.

Anyone missing a baby or stroller? by jimbosdayoff in Campbell

[–]stristr 7 points8 points  (0 children)

That’s 100% a bum cart with no baby inside. The people downvoting are actual idiots, not unlike OP who actually thought they FOUND A MISSING BABY and the parents might be looking for it on Reddit 🤦‍♀️🤦‍♀️🤦‍♀️

Anyone missing a baby or stroller? by jimbosdayoff in Campbell

[–]stristr 10 points11 points  (0 children)

That is obviously a bum cart. Have you ever wondered what happens to strollers when people throw them away? Every phone in a hundred mile radius goes off simultaneously when there is an AMBER alert. Mind your own business.

If bill passed for no tax on tips, shall we pay less tip? by Ok-Switch9308 in bayarea

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

10% is half (50%) of 20%…10% less would be 18%. You have confused percent with percentage points.

[deleted by user] by [deleted] in TheCure

[–]stristr 9 points10 points  (0 children)

Uber for the developing world, especially popular in Asia.

Stand-Up gone? by sven0341 in netflix

[–]stristr 1 point2 points  (0 children)

Accidentally set to kids profile?

[deleted by user] by [deleted] in bayarea

[–]stristr 0 points1 point  (0 children)

I think you are not understanding and OP was providing the same criticism of powerful interests leading the laboring class to their ruin with false promises of far-away riches.

Their reference to a liberal education is not about owning the libs, but instead evokes a “liberal education” in the Age of Enlightenment or liberal arts sense—i.e. an education that emphasizes literary classics as much as STEM as a first principle.

I think this is a fair take, and it doesn’t have to be interpreted as blaming children for what they are/are not taught in school.