News for hackers. Stuff that matters.
Re:Snowpack 2.0 by all-fakes on Wednesday May 27, 2020 @07:37PM (#23331541)
If we're being pedantic,

> Some bundlers may even have O(n^2) complexity: as your project grows, your dev environment gets exponentially slower

that's clearly not exponential!

Re:Snowpack 2.0 by spankalee on Wednesday May 27, 2020 @08:35PM (#23331969)
Yeah, but no one really says "quadratically slower" in the real world, while "exponentially slower" is used by regular non-CS/math/stats people. It's a forgivable inaccuracy.
Re:Snowpack 2.0 by strombofulous on Wednesday May 27, 2020 @08:38PM (#23331988)
If they're referencing Big-O notation, in my opinion it is fair to assume that the people reading it are CS/math/stats people
Re:Snowpack 2.0 by Vervious on Wednesday May 27, 2020 @09:16PM (#23332245)
Exponentially slower is flat out false though in this case
Re:Snowpack 2.0 by XCSme on Wednesday May 27, 2020 @07:44PM (#23331599)
Maybe we are mean and they are right, who knows: they said "exponentially slower", which might be true if somehow executing the instructions of the O(N^2) code runs in O(2^N) time due to CPU/RAM/disk limitations.
Re:Snowpack 2.0 by tomc1985 on Wednesday May 27, 2020 @07:46PM (#23331629)
Huh? n-squared is an exponent
Re:Snowpack 2.0 by whycombagator on Wednesday May 27, 2020 @08:03PM (#23331758)
Sure, but for something to be considered exponential running time it must be <some-constant>^n.

So 2^n would be exponential. However, n^2 is instead quadratic.

Quadratic time complexity is better than exponential.

Here is a useful comparison of the rate of growth for various time complexities[0]

[0] https://stackoverflow.com/a/34517541/3574076

Re:Snowpack 2.0 by dgb23 on Wednesday May 27, 2020 @08:16PM (#23331846)
Quadratic in this specific case, or more generally: polynomial.
Re:Snowpack 2.0 by connor4312 on Wednesday May 27, 2020 @07:50PM (#23331658)
Exponential refers to c^N. N^c is quadratic. Small visualization: https://www.onlinemathlearning.com/image-files/exponential-q...
Re:Snowpack 2.0 by Akangka on Wednesday May 27, 2020 @08:15PM (#23331836)
We call that polynomial, not quadratic.
Re:Snowpack 2.0 by TomMarius on Thursday May 28, 2020 @02:39AM (#23334184)
Both is right, quadratic being subset of polynomial.
Re:Snowpack 2.0 by mrits on Wednesday May 27, 2020 @08:12PM (#23331819)
It doesn't help that most people in journalism use the phrase exponential growth to describe quadratic growth.
Re:Snowpack 2.0 by brokensegue on Wednesday May 27, 2020 @07:50PM (#23331661)
we call that "quadratic". exponential is when the exponent is variable. (unless I'm being whooshed)
Re:Snowpack 2.0 by mabbo on Wednesday May 27, 2020 @07:54PM (#23331685)
No, you're 100% correct.

O(n^[number]) = polynomial, with O(n^2) being quadratic.

O([a number]^n) = exponential.

I guess the authors aren't big on CS fundamentals?

Re:Snowpack 2.0 by tomc1985 on Wednesday May 27, 2020 @07:56PM (#23331707)
Indeed. It's been a while since I've had to so much as think about big O notation and I forgot that quirk. To most folks "exponential" means n^2 or greater
Re:Snowpack 2.0 by recursive on Wednesday May 27, 2020 @08:28PM (#23331917)
Most folks are using the word wrong then.
Re:Snowpack 2.0 by derefr on Wednesday May 27, 2020 @08:12PM (#23331815)
“Superlinear” is the word you’re looking for.
Re:Snowpack 2.0 by Monory on Thursday May 28, 2020 @05:09AM (#23335103)
Superlinear can mean O(n log n) or anything like that, which is smaller than O(n^2).
Re:Snowpack 2.0 by toby on Thursday May 28, 2020 @02:14AM (#23334007)
n^0 is also an exponent. Do you consider constant time to be exponential growth?
Re:Snowpack 2.0 by tomc1985 on Thursday May 28, 2020 @05:59PM (#23343304)
When family talks to me about covid spreading exponentially I am pretty sure they mean n times n, or n^2

Yes we all know the technical definitions with respect to software and algorithmic complexity. But the lack of sympathy/empathy on display with how a common definition of a word can be misconstrued by someone without an academic background in tech is kind of surprising (ok well maybe not so surprising but c'mon folks, we are all human)

Re:Snowpack 2.0 by brokensegue on Thursday May 28, 2020 @06:58PM (#23344028)
disease spread when modeled is actually exponential.

https://en.wikipedia.org/wiki/Basic_reproduction_number#Esti...