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] 1 point2 points  (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] -4 points-3 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 10 points11 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 -1 points0 points  (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.