Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
50 days ago
The idea here is that x <= X, y <= Y, but x' + y' <= Z where x' and y' may be (individually) greater than x or y
2 comments
HexDecOctBin
50 days ago
Sure, but how do you prove that you won't end up with `x' + y' > Z` for some value of x' and y'? In practice, it's always easier to prove `x < X, y < Y`.
link
saagarjha
50 days ago
Generally the idea is that all of these are (more or less) easy to prove but the other policy allows for x' and y' to be independent
link
bvrmn
50 days ago
Dynamic stacks with linked granular chunks? It consumes even less memory.
link
saagarjha
50 days ago
Not contiguous
link
bvrmn
50 days ago
Obviously chunk size is larger than class of objects to allocate.
link
saagarjha
50 days ago
This is not always possible
link
bvrmn
49 days ago
Then fixed stack also is not possible for such cases.
link
saagarjha
49 days ago
Sure it is? Stacks are contiguous
link