"Wasm heap memory, per canister 4GiB" Or has it been increased?

https://internetcomputer.org/docs/building-apps/canister-management/resource-limits claims that

Wasm heap memory, per canister 4GiB

But isn’t WASM64 specifically to overcome this limit and create tera-sized canisters?

Is this limit value outdated?

Currently, the available WASM size is 6 GB, but I think this applies when compiling to wasm64 rather than wasm32. I haven’t used this feature yet.

I ask about heap memory size, not WASM size. What is the maximum heap memory?

Currently 4 GB, once wasm64 is released then it’s gonna be 6 GB.

We switched to stable memory and we use heap only for some computation.

I don’t understand what these words mean. Does it mean that what was stable memory will become heap memory and therefore heap will be growable up to ~1TiB?

What he means is that he switched his project from heap to stable as it’s just a descision you have as a developer;

  • heap has the benefit of being faster and cheaper compared to stable, but has limitations related to storage, plus requires custom logic for persisting between upgrades via pre-/post upgrade
  • Stable is slower, more cycle consuming but doesnt have the storage limitation and remains persistent during upgrades.

I personally use stable storage for larger data, for simple variables that i could just set on init, pre-post upgrade i just heap.