News for hackers. Stuff that matters.
Re:Async Rust doesn't have to be hard by kaba0 on Saturday June 04, 2022 @02:04AM (#31617470)
I may be very wrong here, but the JVM byte code’s method structure explicitly has a stack size and local array max size property, both calculated at compile time. Are they using some heuristic here?
Re:Async Rust doesn't have to be hard by surrealize on Saturday June 04, 2022 @04:12AM (#31618095)
I'd bet that the stack size you refer to doesn't include callees (i.e., the stack used by procedures called by the method in question).
Re:Async Rust doesn't have to be hard by kaba0 on Saturday June 04, 2022 @07:21AM (#31619088)
Oh you are right, Java has two stacks, an operational and a method/function stack. Only the former is calculated ahead of time (and the latter is configurable at runtime).