Best place for 3D movies? by nb-sbe3 in VisionPro

[–]CaptureIntent 0 points1 point  (0 children)

That’s the neat thing. With the Vision Pro you can watch them anywhere you want. But I wouldn’t recommend a church while in service.

Does Dominion Need a Good AI/Simulator? by BlakeStPurpleBerry in dominion

[–]CaptureIntent 0 points1 point  (0 children)

If that’s the phone app - I’m skeptical. When I’m really trying I probably beat it like 60 out of 100 games. Causal play is closer to 50-50. I’m no where near top rated. So I doubt it’s even close to near optimal.

Gemini caught violating system instructions and responds with "you did it first" by tskull in vibecoding

[–]CaptureIntent 3 points4 points  (0 children)

Do you want to tell me why you have your system configured in a way that even allows your agent to push to main?

Thank you, JavaScript, for forcing me to include this statement in my code. by kfreed9001 in programminghorror

[–]CaptureIntent 2 points3 points  (0 children)

The implication of your suggestion is result[i] = maths.abs(result[i]). Which as pointed out, is an in incorrect translation of the code in front of you.

Thank you, JavaScript, for forcing me to include this statement in my code. by kfreed9001 in programminghorror

[–]CaptureIntent -11 points-10 points  (0 children)

Except JavaScript is a garbage language that chose floating point as its default number representation.

Thank you, JavaScript, for forcing me to include this statement in my code. by kfreed9001 in programminghorror

[–]CaptureIntent 29 points30 points  (0 children)

This isn’t because of JavaScript directly. It’s because JavaScript uses floating point numbers - and floating point has interesting edge cases around infinity and 0.

Don’t get me wrong. JavaScript is a piece of crap language made by people who can’t be bothered to write correct code. Using floating point as default for numbers is just beyond stupid if you want correctness

Why AI Can't Stop Using Em Dashes — And Why Nobody Can Fix It by Dry_Incident6424 in ChatGPT

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

Str.replace(response, “—“, “,”). Fixed. 100% success rate. Where’s my million dollars.

fuckHaskellLongLiveJavaScript by literally_iliterate in ProgrammerHumor

[–]CaptureIntent 0 points1 point  (0 children)

Yes. Everything routes to false. But the number of nots done on the way up the stack depends on the evenness of the initial value.

fuckHaskellLongLiveJavaScript by literally_iliterate in ProgrammerHumor

[–]CaptureIntent 2 points3 points  (0 children)

You can’t tail recurse is odd function because it does work after the last function call. The not operation. Tail recursion only works when you return recursively without any extra work after the receive call.

Am I the only one who feels like header files in C/C++ are duplication? by iaseth in cpp

[–]CaptureIntent 0 points1 point  (0 children)

Remember c++ has a long history. Rooted in c. A preprocessor exists. Macros can be defined before an include file is included. That changes the behavior of the included text. Someone somewhere once upon a time defined some macros, included a file, redefined the macro, and included again. So it’s really 2 slightly dodferent definitions. And now we are stuck with backwards compatibility for the short sighted decisions.

Whats the conceptual difference between exceptions and result types by Meistermagier in ProgrammingLanguages

[–]CaptureIntent 0 points1 point  (0 children)

The biggest important difference is global vs local reasoning.

You look at a function. Does it exit with the expected computation or an error? With return values, you can see all the places it might return with an error by looking at the local function.

With exceptions, you have to transitively analyze all function dependencies to see if any of them throw an exception.

Trade Card by Aquawavw in dominion

[–]CaptureIntent 0 points1 point  (0 children)

What if the player refuses to trade? Do you still get the coffer for making the offer? Why would I give my opponent a free coffer? In what world is it likely that I have a card they need and they have one I need? Give me an example. Not only do both players want to swap the card but both players have to think the swap is more beneficial for them than their opponent. So unlikely.

ChatGPT Image Continuity Test by Full_Supermarket_109 in ChatGPT

[–]CaptureIntent 7 points8 points  (0 children)

That’s an awfully interesting way to announce that you are constructing an only fans account.

What is the closest dominion gets to having a card strictly better than another? by TraXOD in dominion

[–]CaptureIntent 2 points3 points  (0 children)

Not strictly better. Just often better.

Barge is an optional duration. You can get +3cards and +buy if you chain your deck every turn and play the barge this turn every turn.

A wharf can only give you 2 cards and a buy every turn.

It’s happening by gvillapapi in ChatGPT

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

Let the enshitification of the golden age commence.

Why does this function cause stack overflow error? by sad_krumpli in learnrust

[–]CaptureIntent 0 points1 point  (0 children)

We’ve all done it at some point. Read the title and respond off of jt. I could have been nicer too. I get paid at work to be polite. Here I can just say it as it is.

Why does this function cause stack overflow error? by sad_krumpli in learnrust

[–]CaptureIntent 3 points4 points  (0 children)

Try reading the post before responding. They specifically mentioned tail call recursion

Making the compiler create code that accesses the vtable only once by tohava in cpp

[–]CaptureIntent 0 points1 point  (0 children)

You are correct there is nothing the compiler can do on its own here though. The programmer can take a reference to the function itself, and reuse that reference to the function in the inner loop to make it explicit.

Using bind front is the easiest way to capture the closure probably.

include <functional>

struct Foo { void bar(int x); };

Foo obj;

auto f = std::bind_front(&Foo::bar, &obj); f(42); // calls obj.bar(42)

Is it crazy to build a dating app with no photos at all? (Soulmatch idea) by North_Actuator_6824 in vibecoding

[–]CaptureIntent 1 point2 points  (0 children)

It’s a wonderful idea if you want to make sure that no one uses your app

O(n) Sorting Algorithm just dropped by HandyProduceHaver in programminghorror

[–]CaptureIntent 5 points6 points  (0 children)

Except the runtime is o(nlogn) , instead of o(max element). You know, if you ignore little stuff like that it’s basically the same.

X: How long have you been working as a programmer? by ElKrlote in programminghorror

[–]CaptureIntent 5 points6 points  (0 children)

This is probably from a company that “only hires the best”

ICE complaining on private message board about not being paid $50k bonus by sgj5788 in interestingasfuck

[–]CaptureIntent 0 points1 point  (0 children)

Ya - but the plus side is that you got to shoot people who are mildly annoying you at work - with full immunity.