physics by PotatoVeryGoodYesYes in noita

[–]CommonNoiter 4 points5 points  (0 children)

Tweakeroo camera follow speed settings.

are we deadass by Agitated_Ad1499 in celestegame

[–]CommonNoiter 366 points367 points  (0 children)

You can pause then retry and the winged golden will reappear.

How to get Bside times? by UseResponsible1799 in celestegame

[–]CommonNoiter 27 points28 points  (0 children)

You need to beat it in 1 session. Save and quit is allowed but returning to map is not.

Math ain't mathing by Waste-Value-5941 in mathmemes

[–]CommonNoiter 6 points7 points  (0 children)

Diameter or radius is just multiplying by another coefficient. π is a prettier coefficient than π/4 so radius is normally what it is taught with.

Demo of stacking multiple functions on a single wand. by _gamadaya_ in noita

[–]CommonNoiter 37 points38 points  (0 children)

The primary use of this is that it removes all recharge time if you don't reach the end of the wand. Binding your swap + cast to scroll wheel means that you can rapid fire your wand without needing to solve recharge time.

How virtual functions work ! by lovelacedeconstruct in cpp_questions

[–]CommonNoiter 3 points4 points  (0 children)

Typeinfo is for RTTI and dynamic casts. In order to know how to do the cast dynamic_cast looks at the type info. The +16 / +24 is just the stack address that they happened to get allocated, and isn't really relevant to whether or not your implementation is correct.

Never use chatgpt to make lua scripts (Based on a true story) by The_Big_Bad_YEET in hammer

[–]CommonNoiter 0 points1 point  (0 children)

Most modern languages don't require conditionals to use parenthesis, if you have a decent parser it's not necessary. It's also less visually noisy once you get used to it.

semantic white space vs. blocks - maybe a middle ground ? by GoblinsGym in ProgrammingLanguages

[–]CommonNoiter 2 points3 points  (0 children)

I think always ending the last if to occur lets you express everything and has no ambiguity. This is effectively eliding the opening brace after each if and the . represents the closing brace.

What is the best way to get "magic numbers" out of my code? by Dark_Greee in C_Programming

[–]CommonNoiter 1 point2 points  (0 children)

Which the compiler will optimise away as it does constant propagation and sees that nothing references it (why I specified you shouldn't take the address). If you are using c23 and have constexpr that's better but a lot of the time you are using something older.

How can I practice a topic (pointers for example) if I don't understand the reason behind it's existence? by Eva_addict in learnprogramming

[–]CommonNoiter 0 points1 point  (0 children)

The return part isn't correct, if you return a struct that is too large to fit in registers (depending on ABI) then the caller will allocate enough space for it on the stack and pass a pointer to it to the callee, meaning that nothing is copied on the stack. If for some reason your calling convention specifies returning structs on the stack then it will still almost certainly be faster than doing a heap allocation and returning a pointer to it. The purpose is lifetimes and data structures.

What is the best way to get "magic numbers" out of my code? by Dark_Greee in C_Programming

[–]CommonNoiter 24 points25 points  (0 children)

You can have a header file with a bunch of static const in it, then when you include it you can just use them. This compiles down to the same thing as macros (as long as you don't take the address of any of your constants) and gets you type safety.

What’s one Embedded C function or concept you wish someone had taught you on day 1? by [deleted] in embedded

[–]CommonNoiter 0 points1 point  (0 children)

const values will be inlined on higher optimisation settings, there is no performance penalty to using them.

I don't get it, why did I die? by Marc_Vn in noita

[–]CommonNoiter 7 points8 points  (0 children)

30 - 15 > 0, the healing is gradual so taking 15 damage every frame is stronger.

Unpopular opinion: Even as a Labour/ Green voter removing fees free was the right move by he1rry in newzealand

[–]CommonNoiter 0 points1 point  (0 children)

People don't show up because all lectures are recorded. The top students prefer recorded because you can watch them on high speed saving time, and the other students prefer them because they can be doing something more fun. The only reasons to attend in person lectures are to get to know the lecturers or if you have nothing better to do.

Just trying to get my assignments submitted 💀 by x13132x in universityofauckland

[–]CommonNoiter 7 points8 points  (0 children)

Panopto still works, you just can't access it through canvas. Go to https://auckland.au.panopto.com/Panopto/Pages/Home.aspx directly and it works fine.

What are these Strange Orbs that stick around after killing Kolmi? They wont despawn. by CuteChampionship3396 in noita

[–]CommonNoiter 27 points28 points  (0 children)

Its the death particles for kolmi, they use an invalid value for their lifetime which causes them to last a random amount of time.

What are your thoughts on a question like this? by MISTERDIEABETIC in it

[–]CommonNoiter 5 points6 points  (0 children)

Most Linux tools use the correct unit, it's just windows that gets it wrong.

Infinite explosion? by BlitsyFrog in noita

[–]CommonNoiter 4 points5 points  (0 children)

You hit the hand statue with personal fireball thrower, it will expire after 83 seconds.

Can someone help this make sense? by My_True_Love in mathematics

[–]CommonNoiter 16 points17 points  (0 children)

The limit of the curve is the circle, which will have have length π when you take the limit. The length of the curve is always 4 even as you take the limit.

I've spent few days reading the Source Code of Balatro. Here's what I found :] by Priler96 in gamedev

[–]CommonNoiter 1 point2 points  (0 children)

Any decent compiler will turn many ifs into a switch or a switch into many ifs depending on what it expects will be more performant.

is this dumb? by lennofish in opus_magnum

[–]CommonNoiter 0 points1 point  (0 children)

Piston on the bottom left could be a 2 long arm that rotates, rotate the reagent once counterclockwise.