qwertyasdef

joined 2 years ago
[–] qwertyasdef 9 points 1 year ago (2 children)

I disagree with the author on operator overloading. They claim that this function in C

float foo(float a, float b) {
	return a+b;
}

is perfectly clear because you know it's doing floating point addition, while this function in Python isn't

def foo(a, b):
	return a + b

because you don't know if it's floating point addition, integer addition, or string concatenation, and what happens if the inputs are different types?

I think that's fundamentally mistaken. You could also ask of the C version if it's doing normalized floating point addition, denormalized floating point addition, infinity addition, or NaN propagation. What happens if you mix different types of floats? And the answer is that it doesn't matter. These are all just aspects of floating point addition. It returns the most sensible result in whatever format is best to hold that value, and you don't need to worry yourself about how floats are stored under the hood.

The same is true of the Python version. It doesn't matter if it's integer addition or floating point addition or string concatenation. Those are just different aspects of the addition operator and it returns the most sensible result in whatever type is best to hold that value.

[–] qwertyasdef 2 points 1 year ago

This book has been on my reading list for a long time, I really have to get around to it sometime.

[–] qwertyasdef 1 points 1 year ago* (last edited 1 year ago)

What web games are you playing? Do you count the time it takes to load the web page? I can't think of a single game that loads so fast, web or otherwise. agar.io is super slow and bloated, hanab.cards takes about half a second to make a room, candybox2.github.io comes close but the network tab reports 128 ms to download the javascript.

[–] qwertyasdef 4 points 1 year ago

I think that's a British influence. Rs in English words tend to get transcribed into katakana as long vowels to resemble British pronunciation, like parking → パーキング or art → アート. For a Japanese person who hasn't formally learned a romanization system but knows a decent amount of these English → Japanese word pairs, it seems pretty reasonable to try to reverse the process by turning long vowels into Rs when writing Japanese in Romaji.

[–] qwertyasdef 3 points 1 year ago

Oooh, looks exciting! I never played with RotaryCraft back in the day, but I was interested in the idea and I love skyblocks and quests-as-guides so this might be just the thing to make me go back and try it out.

[–] qwertyasdef 3 points 1 year ago (1 children)

Some clarifications: f(x) = -2x/3 + 5 isn't technically correct. It happens to equal that when x is between 6 and 9, but the function is different outside of that range. Similarly, your equation for F(x) is only correct when x is between 6 and 9. The reason this matters is because F(0) = 2 doesn't mean C = 2. That only works if the function is the same all the way to x = 0, which it's not.

If you want to solve by integrating, you would have to integrate each section and find the right C for each section that makes the integrals all connect to each other.

Alternatively, you can use the property that F(b) - F(a) = the area under f(x) from a to b. I think that region from x = 4 to 6 is supposed to be a semicircle, so each section is a standard shape and you can calculate the area using geometry.

[–] qwertyasdef 5 points 1 year ago (5 children)

Just a guess, but was there an extra space after the comma? Unlike in English, the full-width comma takes up an entire square worth of space like all other characters and shouldn't have an extra space after it. I don't know if Duolingo even considers spaces when marking answers though so that may not be it.

[–] qwertyasdef 2 points 1 year ago (1 children)

Is that a GregTech pack? I tried InfiTech 2 a while back but hated the mining so much. I resorted to using JourneyMap waypoints to teleport to all the ores but still couldn't stand it and gave up. GregBlock was more to my taste being a skyblock with automatable ores, but all the crafting and the machines always ending up with an odd amount of liquid left over got to me. Never made it past MV. Are Omnifactory/Nomifactory any better?

[–] qwertyasdef 1 points 1 year ago

I'm pretty close to done, got the dawn machine and working on automating all the inputs. There's probably still some lore out there though that I want to go find after.

[–] qwertyasdef 1 points 1 year ago (1 children)

So good! Drown is my current favourite track. I actually foolishly ignored Bae's music for about a year before I discovered what I'd been missing out on.

[–] qwertyasdef 6 points 1 year ago (3 children)

Bae and Fauna, probably because their streams times are the most convenient for me tbh. Not that I don't have reasons to love them but I'm pretty sure I could find something to love about any holomem I could consistently watch, and that just happens to be these two.

[–] qwertyasdef 2 points 1 year ago (1 children)

Does anyone else find this suspicious? My Japanese isn't good enough to say for sure but Musubi University isn't a real university which immediately gives me PragerU vibes. And at some point, he seems to give a character etymology for 心 based on spelling out the sound "kokoro", which is questionable given that it can also be pronounced "shin" and Chinese also uses the same character but doesn't pronounce it anything like "kokoro". Maybe he had an explanation that I just failed to understand.

view more: ‹ prev next ›