qwertyasdef

joined 2 years ago
[–] qwertyasdef@programming.dev 7 points 2 years ago (4 children)

It's a Substack thing, not added by the author

[–] qwertyasdef@programming.dev 15 points 2 years ago (3 children)

Ask it a question about basketball. It looks through all documents it can find about basketball...

I get that this is a simplified explanation but want to add that this part can be misleading. The model doesn't contain the original documents and doesn't have internet access to look up the documents (though that can be added as an extra feature, but even then it's used more as a source to show humans than something for the model to learn from on the fly). The actual word associations are all learned during training, and during inference it just uses the stored weights. One implication of this is that the model doesn't know about anything that happened after its training data was collected.

[–] qwertyasdef@programming.dev 1 points 2 years ago (1 children)

Oh shit that sounds useful. I just did a project where I implemented a custom stream class to chain together calls to requests and beautifulsoup.

[–] qwertyasdef@programming.dev 1 points 2 years ago

Thanks for the embed preview trick. I didn't mind needing a Spotify account but then it refused to play it in the browser and wanted me to download their app instead, which was too much for something I have no intention of ever using again.

[–] qwertyasdef@programming.dev 1 points 2 years ago

Also Vector2f instead of Vector3f for the cross product example. I'll give them the benefit of the doubt that that's a typo instead of them not knowing what a cross product is.

[–] qwertyasdef@programming.dev 9 points 2 years 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@programming.dev 2 points 2 years ago

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

[–] qwertyasdef@programming.dev 1 points 2 years ago* (last edited 2 years 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@programming.dev 3 points 2 years 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@programming.dev 3 points 2 years 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@programming.dev 2 points 2 years 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@programming.dev 1 points 2 years 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.

view more: ‹ prev next ›