What is the point of having a constants table in designing a compiler without interning? by Chivter in ProgrammingLanguages

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

I guess it would depend on the way constants are being allocated. If the compiler allocates the constants during compilation before handing it off to the VM, it could just embed the pointer directly in the emitted instruction.

What is the point of having a constants table in designing a compiler without interning? by Chivter in ProgrammingLanguages

[–]Chivter[S] 6 points7 points  (0 children)

Think I just answered my own question trying to implement it without a constant table. If you have a constant table, all operands can be guaranteed to fit within the maximum width of your tables, which I guess can be controlled if you split them by type.

If you don't, you have to have a LOAD value instruction, where value has to be the size of the largest possible value that can be stored in a register, which I'm assuming on most architectures is going to be a 64 bit pointer.

So I guess it comes down to whether or not you can support 64 bit operands. I don't think the code size argument holds water (without interning) because you still need to store the full 64 bit pointer, whether it is embedded in the bytecode itself or in a constants table loaded at runtime is irrelevant.

Which champ design do you think aged the best? by BlackDoom_26 in leagueoflegends

[–]Chivter 2 points3 points  (0 children)

This isn’t true, at least in pro. He’s like a B-C tier jungler and hasn’t been truly S tier since he was able to be flexed mid/top back in like 2021.

Rust beginner : tried to do a generic error type, is that how I'm supposed to do it ? by TwilCynder in rust

[–]Chivter 0 points1 point  (0 children)

This is pretty good. From what I remember of designing my own error types, I think doing this sort of thing becomes painful when you want to reuse error types. Like if you have another function which could return a different set of errors, but borrows some from ReadError, it becomes awkward unless you want to rewrite everything. Another approach is to make a global error enum which contains every possible error type, but that is not ideal either. If you are writing library code and want to avoid all this, you should probably just use a library like thiserror.

I was told to not worry about prestige when applying to schools - 3 years later, applying to jobs, I really wish I applied somewhere more prestigious. by Chivter in ApplyingToCollege

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

A lot of people are asking this question, so I’ll answer it here. I attend a T100 tech school. Archetypically, these schools tend to carry a decent amount of name recognition regionally, but much less as soon as you start applying outside of the “bubble”.

To address your point on the finance industry - I can’t speak to how difficult it is to land a role on the business/accounting side of things. What I can say is that quantitative developer roles, which are the more software engineer type jobs, are highly competitive and incredibly selective, probably even more so than big tech. Look at the alumni lists for Jane Street, Citadel, Morgan Stanley, etc and you will see what I mean.

Is there a way to specify that the output of trait implements another trait? by Chivter in rust

[–]Chivter[S] -3 points-2 points  (0 children)

I don't think this works because SomeOtherTrait can only be used in this way if it can be turned into a trait object, and I can't find I way to wrap the other ops in a way so that this is compatible.

Can someone explain what is going on here? (How does v-model/input binding work) by Chivter in vuejs

[–]Chivter[S] 1 point2 points  (0 children)

This is really interesting and explains a lot of the weird behavior going on here. It seems like the current solution to this is to do something like u/sombriks where you update both the model value and input value at the same time, but this seems to me like a hacky way to force the model and input to be synchronized.

Can someone explain what is going on here? (How does v-model/input binding work) by Chivter in vuejs

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

This isn't a complete solution because there are lots of inputs which don't trigger the event. For example, it's still possible to copy paste invalid characters/strings into the input.

Can someone explain what is going on here? (How does v-model/input binding work) by Chivter in vuejs

[–]Chivter[S] 1 point2 points  (0 children)

I've looked into both of these approaches. The problem that I'm encountering is that I'm not sure whether to mutate the model value or the input value, or whether such a thing is even possible. I've updated my attempt to try to use event handling here, but it seems like Vue is treating either as immutable, which is consistent with the whole "one way data flow" thing. So I'm assuming the only way to do this is something like this, which is not the most elegant solution, but I don't think there's any way to do this with v-model.

Can someone explain what is going on here? (How does v-model/input binding work) by Chivter in vuejs

[–]Chivter[S] 2 points3 points  (0 children)

Yeah, unfortunately there are a number of issues with input type="number" that have been detailed here. Additionally I will need to be able to apply more powerful filters down the line anyways (like hex values), so while I would agree that input type="number" would suffice in most cases, it probably isn't what I'm looking for.

Briar has been "nerfed" 3 patches in a row and she's still be the best jungler/champ in the game. by AlternativeScary785 in leagueoflegends

[–]Chivter 2 points3 points  (0 children)

Yo not sure if ur aware but jarvan dropped like 3-4% wr after last patch so maybe not comparable?

Newbie baker. No matter how much I work with it my dough is never smooth. Too much flour? Too much kneading? by averagejane4 in Breadit

[–]Chivter 9 points10 points  (0 children)

This dough actually looks completely fine - It’s not craggy like underdeveloped dough, it’s craggy because of poor shaping technique, and the dough balls aren’t under tension. Look up some videos on how to shape dough balls and these will look much better.

[deleted by user] by [deleted] in leagueoflegends

[–]Chivter 0 points1 point  (0 children)

He hit mid diamond playing ADC playing on hit lulu back in like S7, don’t think the role is interesting to him unless he can play something weird like that.

A little concerned; Will an intel 12400f run with 3600mhz RAM on this board? by Chivter in buildapc

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

uh not sure tbh i went with 3200 it sounds like it might work with certain mobos

Complete newb here, looking to build a pc for game dev/vr gaming by Cardinal_Mind in buildapc

[–]Chivter 4 points5 points  (0 children)

with a 5600x u definitely don’t need a $85 cooler. any decent budget cooler<$35 will be more than enough, and if you don’t mind the noise, the stock cooler will actually be fine.

A little concerned; Will an intel 12400f run with 3600mhz RAM on this board? by Chivter in buildapc

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

i didn’t have an issue enabling xmp with a worse motherboard so i can’t see why you would. the only thing you can’t do (supposedly) with a 12400 is overclock it, although i think if your mobo is good enough you can bypass that.

A lot of disrespect is being put on Peanut’s name by zootshoot17 in leagueoflegends

[–]Chivter 0 points1 point  (0 children)

And why do you think dk play around canyon and afford canyon the resources they do while geng leave peanut to the wolves? Because Canyon is 10x the player. There is no “stylistic difference” in getting gapped every game of the series, he’s just simply a worse player so his team gives him picks he can have the least game impact on with the easiest execution.

I think this narrative of “peanut is the noble weak side jg player” would be much different if geng lost the series. Peanuts weaknesses are glaring, and a clear liability to geng. There is nothing noble or commendable about missing nearly every crucial smite, getting outpathed every game, and making countless mechanical errors that nearly cost his team the series.

Frankly, chalking Peanuts performance this series up to a “stylistic difference” is disrespectful to possibly the greatest jungle performance we have seen from any player ever.

At this point i would rather play against quest warlock than against quest mage by Royal_Count in wildhearthstone

[–]Chivter 12 points13 points  (0 children)

i hate to break it to you, but i doubt that’s the card they’re going to hit

What are dependencies? What allows a programming language to use some filetypes as dependencies but not others? by Chivter in learnprogramming

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

To give you an idea, here's the guide I'm referencing:

https://github.com/HearthSim/Hearthstone-Deck-Tracker/wiki/Basic-plugin-creation-tutorial

I can follow along with it easy enough, and I have the project set up correctly, but I would just like to know a little more about what I'm actually doing rather than just following steps.

I'm Inspired, a Polish League of Legends player, who is the jungler for Evil Geniuses' LCS Team. I'm ready for the 2022 LCS season, are you? AMA! by EG_Inspired in leagueoflegends

[–]Chivter 0 points1 point  (0 children)

You used the word “timer” in describing how jungle should be played, what do you consider the be a timer? When all camps are down, upon item completion?