News for hackers. Stuff that matters.
Re:Minify your container by jewayne on Wednesday August 03, 2022 @03:41PM (#32335928)
I have a minor in math, and I don't know what "shrinking by 30X" means. To me, decreases always start from 100%. So I think we are talking about a ~97% decrease in size?
Re:Minify your container by fb03 on Wednesday August 03, 2022 @03:51PM (#32336012)
I don't have a minor in math, and I instinctively thought "shrinking by 30x" means 1/30 of size.
Re:Minify your container by jonas21 on Wednesday August 03, 2022 @04:16PM (#32336235)
Yeah. "growing" = numerator. "shrinking" = denominator.

It's nice because they're inverses - if you shrink by 30x, then grow by 30x, you're back where you started, whereas a 97% decrease in size followed by a 97% increase in size leaves you at ~6% of the original size.

Re:Minify your container by jewayne on Wednesday August 03, 2022 @06:10PM (#32337154)
I think if you want to say "1/30th of the size", you should say that. Growth is usually measured as a difference. For example, a 200% increase means the value has tripled.
Re:Minify your container by bigpod on Wednesday August 03, 2022 @05:03PM (#32336645)
essentialy yes
Re:Minify your container by Karellen on Wednesday August 03, 2022 @04:33PM (#32336376)
But "30x" is just another way of saying "3000%". Or, "3000%" is just another way of saying "30x". "Shrinking by 30x" means the same thing as "shrinking by 3000%".
Re:Minify your container by Karellen on Thursday August 04, 2022 @07:20AM (#32341512)
Huh. Downdooted without explanation for correctly explaining how percentages work. Not something I expected on HN. Never change, interwebs!
Re:Minify your container by anon2020dot00 on Thursday August 04, 2022 @07:34AM (#32341595)
30x doesn't seem to mean 3000% but means 30 times original value.

If I had starting capital of 100 usd and it increased by 20x then that means I gained 2000 usd which is 20x of my starting capital.

EDIT: correction 30x is same as 3000%.

Re:Minify your container by rr888 on Wednesday August 03, 2022 @03:47PM (#32335979)
Thanks I hate this, but seems to be everywhere now. "This products is now 3 times cheaper!", WTF. They still haven't got to percentages yet, like 200% off!!.
Re:Minify your container by bigpod on Wednesday August 03, 2022 @03:50PM (#32336007)
its more about being more like people say as smaller by 200% isnt as understandable as 30 times smaller
Re:Minify your container by SomeBoolshit on Wednesday August 03, 2022 @04:03PM (#32336124)
Neither of those makes any sense.
Re:Minify your container by inopinatus on Wednesday August 03, 2022 @06:06PM (#32337131)
If you try pronouncing that aloud as “…by a factor of 30” it’ll seem less ungrammatical.
Re:Minify your container by Fnoord on Wednesday August 03, 2022 @05:00PM (#32336615)
> I have a minor in math, and I don't know what "shrinking by 30X" means.

X is input

Y is output

X / 30 = Y

All you need to know, no minor required, as its taught on elementary school (age 11/12 or so?).

Re:Minify your container by Karellen on Wednesday August 03, 2022 @06:28PM (#32337286)
So, shrinking by 2x means dividing by 2?

But... doesn't shrinking by 1/2 also mean dividing by 2?

Therefore, 1/2 == 2x ??

I feel like my elementary school math is letting me down somewhere.

Re:Minify your container by JordanTenn on Wednesday August 03, 2022 @03:43PM (#32335948)
Thanks for this note. I'm part of the DockerSlim and Slim.AI ecosystem. Will take this feedback and rework the way we phrase things. Thank you!
Re:Minify your container by bigpod on Wednesday August 03, 2022 @03:49PM (#32335993)
this is not valid but its what people say 30 times smaller.
Re:Minify your container by jewayne on Wednesday August 03, 2022 @06:20PM (#32337243)
I know and it drives me crazy. "Bigger" and "smaller" express differences, not fractions or multiples.
Re:Minify your container by nemetroid on Thursday August 04, 2022 @11:26AM (#32344176)
If I say "image A is 1 MB, image B is 30 times bigger", what is the size of B? I don't think many would respond "31 MB". If you consider it improper to use "bigger" in this way to express a multiple, how would you express that?
Re:Minify your container by OJFord on Wednesday August 03, 2022 @06:02PM (#32337102)
Do you know what 'two times smaller' means?
Re:Minify your container by jewayne on Wednesday August 03, 2022 @06:14PM (#32337187)
No I don't. That's my point. To me, the number that's two times smaller than x is -x. (x-2x)
Re:Minify your container by OJFord on Wednesday August 03, 2022 @06:55PM (#32337450)
I'm no mathematician and it wouldn't often be my choice of phrasing, but it seems unambiguous and clear to me; your definition is much stranger/less intuitive to me.

We're clear on 'x is two times larger than y', right?

    x = 2*y
An equivalent statement is 'y is two times smaller than x', but it conveys a construction more like:

    y = x/2
Which, since we're speaking English sentences, might change the emphasis/implication.
Re:Minify your container by bigDinosaur on Wednesday August 03, 2022 @10:24PM (#32338630)
This is really just an English expression that doesn't map perfectly to the actual mathematics it's intended to describe. 2 times smaller does usually mean 1/2 by convention in English and I don't think there's anything more profound than to just say it is what it is.
Re:Minify your container by reilly3000 on Wednesday August 03, 2022 @03:47PM (#32335976)
it means... a lot!
Re:Minify your container by AtNightWeCode on Wednesday August 03, 2022 @06:54PM (#32337439)
For compression or similar ratio is used.