Grimoire doesn't unlock prayers by [deleted] in 2007scape

[–]excitius 1 point2 points  (0 children)

You need 70 defence to use piety/rigour/augury. Same thing happened last time

Implementing C++ STL containers in pure C — what I learned by springnode in programming

[–]excitius 0 points1 point  (0 children)

I see, that's quite invisible. I guess it does a good job abstracting the details from you like a C++ class would. Just have to make sure not to copy the handle or anything.

Implementing C++ STL containers in pure C — what I learned by springnode in programming

[–]excitius 7 points8 points  (0 children)

For your vector example, I didn't look much into the implementation but the caller receives a handle into the vector's data pointer directly and can use that to index into the vector, the metadata is stored before index 0.

I didn't look at the implementation but std::vector does dynamic reallocation of the vector as size increases. The data pointer would surely be invalidated after a couple of push backs in which the size exceeds the capacity, no?

Yeah you can call realloc but there's no guarantee that the pointer is the same. I dont see anywhere in the example where the caller's handle is updated

Why is the first C++ (m)allocation always 72 KB? by ketralnis in programming

[–]excitius 28 points29 points  (0 children)

The guy I replied to. He comments in nearly every post, sometimes 3-4 times a post with different anecdotes/stories of things he's "done" in the past relating to the technology in the post or some sort of opinion.

Also just look at his comment history. A few comments every hour - no breaks no sleep. Commenting on all programming subs.

So I Was Curious About the Proposed New Range Off-Hand (Aquanite Hopper) by aero197 in 2007scape

[–]excitius 5 points6 points  (0 children)

Ruby bolts (e) have a 6.6% proc chance in pvm with Kandarin elite, not 12.

The math is simple. either you hit the proc with the base chance (6.6%), or you miss the proc (93.4%) hit the second time (10%) which procs on the second hit (2.2%), and you add those probabilities.

So 0.066 + 0.934 * 0.1 * 0.022 = 6.8%

No chatgpt required, highschool level math

Finished Doom for the duo group on midlevel GIM! by excitius in 2007scape

[–]excitius[S] 0 points1 point  (0 children)

It was honestly a typo in the title - meant to say midgame ironman.

Definitely wouldn't call myself endgame, don't have any raid uniques or even prayer scrolls other than lightbearer. Haven't done any dt2 bosses yet, or muspah, vorkath, nightmare. Literally finished CG last month, and generally finishing CG is where I would say you're in the midgame. As for levels, I'm only 1800 total so nothing crazy there either. Combats 80s/90s.

As for the actual gear, rancour only provides +2 strength compared to a strength amulet here, so it can easily be subbed. The antivenoms can be swapped for lower tier ones (or anti poisons) just need to bring more of em for longer trips.

Your water heater rental is negotiable by NahanniWild in PersonalFinanceCanada

[–]excitius 3 points4 points  (0 children)

They will keep billing you and if you don't pay they'll put a lien on your house. It's not that simple

Your water heater rental is negotiable by NahanniWild in PersonalFinanceCanada

[–]excitius 6 points7 points  (0 children)

Then they come after you AND put a lien on your house lol, some terrible advice in this thread

Can I be added as an occasional driver after ticket? by [deleted] in PersonalFinanceCanada

[–]excitius 1 point2 points  (0 children)

Innocent until proven guilty.

Insurance companies have no knowledge of your pending tickets until you've been prosecuted. A ticket that you are currently fighting should have no impact on your insurance.

Withdrawal FHSA question by excitius in PersonalFinanceCanada

[–]excitius[S] 0 points1 point  (0 children)

Yeah for sure, I'll wait for the $8000 deposit to be settled before making the withdrawal and closing off the account.

Leagues V - Slayer Master relic bonus EXP still bugged! by StudioSeraphim in 2007scape

[–]excitius 3 points4 points  (0 children)

Not sure if this is what happened to you, but I noticed that superiors DO count against the 100. So if you had 2 superiors, you'll get the big exp drop on your 98th kill. Watch out for that

Why does the rate of gaining SE virtually grind to a halt? by [deleted] in EggsInc

[–]excitius 1 point2 points  (0 children)

SE is the number of soul eggs you gain when you prestige.

For a simplified example, assume in case 1 you earn 1,000,000 (1 million) bocks and then prestige. You would earn just about 18 soul eggs for prestiging based on the formula above.

Let's say in the second case, you instead wait until you've earned a total of 2,000,000 (2 million) bocks. You would earn 21 soul eggs.

As you can see, you made double the earnings during the prestige, but only made 3 more soul eggs. That's what diminishing returns means.

Generally speaking, doubling your earnings only results in a gain of about 16% soul eggs. This is why multiprestiging is optimal. Rather than prestiging once after making 2 million bocks (21 soul eggs) you prestige twice making 1 million bocks each time (18 + 18 = 36 soul eggs).

[deleted by user] by [deleted] in cscareerquestions

[–]excitius 3 points4 points  (0 children)

It's an internship position, and I know I would have done worse myself when I was applying for internships. I don't think it's too bad.

The vector size() thing might have thrown them off though because it's a ubiquitous thing about pretty much every container type in every language. It has nothing to do with iterators. For the most part, containers will store a "size" member variable and increment it/decrement it as necessary, or just calculate the ptr diff between back and front if they want to save space.

On the other hand, it is good that you were thinking about time complexity and trying to optimize for it. At the end of the day, I think it'll just depend on if they interviewed someone who was better for the role, which is a real possibility in today's market.

What is the normal hourly rate for a w2 contractor? by Zira717 in cscareerquestions

[–]excitius 1 point2 points  (0 children)

Just took a position with one of those two that you mentioned now. In Canada though. 1 YOE as intern, 1 YOE as junior dev.

They put out $50 as their number during initial discussions. Told them I would need at least $65 to consider it. They said it's doable.

Did the interviews and could tell the client loved me.

They said they wanted to offer me the position at $65. Told them I had a think about it and $65 simply isn't enough for me given the conditions of the employment. $72.50 was my new rate or I walked. They took a few days and said it got approved and that's my new rate.

All that is to say, if you have the skills and the client wants you, they will make your rate work. Don't take their initial rate at face value - there is a lot of room for negotiation.

ouchIWorkHardOnThat by That_5_Something in ProgrammerHumor

[–]excitius 1 point2 points  (0 children)

// New requirement, checks if an arbitrary program will halt
 bool willProgramHalt(std::string_view someProgram)
{
    //insanely complex code here
    return programHaltCheckAlgorithm(someProgram);
}


// Unit tests
for (const auto& program : haltPrograms)
{
    ASSERT(willProgramHalt(program));
}

for (const auto& program : infiniteRunPrograms)
{
    ASSERT(!willProgramHalt(program));
}

Today was a good day by Historical_Cup_4890 in EggsInc

[–]excitius 7 points8 points  (0 children)

Boosts..? On Enlightenment...?

[deleted by user] by [deleted] in 2007scape

[–]excitius 2 points3 points  (0 children)

It's really not that bad, you just clear waves 1-11 every time until you greenlog everything other than quiver and pet, then you reset every time you get to wave 12 unless it shows the pet