r/ProgrammerHumor • • 6d ago

Meme dynamicProgramming

Post image
6.2k Upvotes

152 comments sorted by

View all comments

Show parent comment

2

u/Jedkea 4d ago

I don’t think this is correct? I mean you literally store things in random access memory.

I take memoize to be a specific use case of memorization, wherein it’s used as a cache for expensive calculations.

I have never heard someone use memoize outside of this context, and would be pretty baffled if they did.

1

u/SuitableDragonfly 4d ago edited 4d ago

Yes, because a memo is a cache for partial solutions to calculations. That is literally what a memo is in computer science terms. Storing things in a computer's memory is not called "memorization" in any context. It refers to the human process of committing things to human memory, which is a lot more involved than just storing a piece of data somewhere.

1

u/-Redstoneboi- 4d ago

a parallel universe where the correct term is "memorization" is not so distant, considering how many typos have made it into the english language

see also: "sine" wave

1

u/SuitableDragonfly 4d ago

Not sure what you mean. Sine is from Latin sinus and follows standard patterns for how things were borrowed from Latin into English.

1

u/-Redstoneboi- 4d ago

actually they were supposed to be half-chord waves, as in the length of a chord inside a circle. a mistranslation or two later, we got to "sinus" or nose, which had nothing to do with the mathematical concept of a chord.

1

u/SuitableDragonfly 4d ago edited 4d ago

Sinus in Latin meant "bosom". It came to also mean "sine" (in Latin) because someone who was translating an Arabic author into Latin misinterpreted the Arabic word for sine as being the Arabic word for bosom because they were spelled similarly, and therefore used "sinus" to translate it into Latin. But that has nothing to do with English borrowing the word from Latin. It wasn't "supposed to be" anything, it's just one of the many terms in science and mathematics that were borrowed from Latin because Latin is considered prestigious in those areas. 

English "sinus" also happens to come from Latin sinus by way of also being a curved piece of anatomy, but that's not really anything to do with mathematicians borrowing the word to mean sine. Words almost always have multiple meanings, and can be borrowed multiple times with different meanings. The adjective "grave" comes from the same French word as "grieve", for example. This is a normal occurrence in etymology. 

1

u/-Redstoneboi- 4d ago

shiet i got the nose bit wrong

but it most definitely was supposed to be chord

1

u/SuitableDragonfly 4d ago

It wasn't "supposed to" be anything. God doesn't predestine language evolution. "Chord" originally meant "string", which has even less to do with sine waves than bosoms do. 

1

u/-Redstoneboi- 4d ago edited 3d ago

https://en.wikipedia.org/wiki/Chord_(geometry)

it's a string tied between two points on a circle

chord(theta) = 2radius * sine(theta/2)

1

u/SuitableDragonfly 3d ago

Yes, just like "sine" also has a meaning in math in the modern day, and also has a wikipedia page so it's perfectly fine to use it to mean that, and it's not "supposed to" be something else.