Hey everyone! dfx 0.24.0-beta.0 is available for testing. You can find the release notes here:
The most notable feature is support for Motoko’s enhanced orthogonal persistence. For a user-perspective overview what that is, look here. For a technical deep dive, look here. Otherwise ask @luc-blaeser if you have questions about it. EDIT: I stand corrected. Read below for why…
If you’d like to try it out, use the following command:
Just a note on enhanced orthogonal persistence (EOP): The current dfx beta release 0.24.0-beta.0 does not yet include the required moc release 0.13.0 with the support of enhanced orthogonal persistence.
A possibility to try enhanced orthogonal persistence out is to manually install moc 0.13.0 from Release 0.13.0 · dfinity/motoko · GitHub on top of dfx. Or, the easy way :), wait until the next beta release of dfx.
On the bright side, this includes moc 0.12.1, which is a solid one containing the Motoko try/finally feature. Please consult the release notes and also minor changes. Have fun!
If I want to upgrade(which I guess I should wait on), do I need to migrate, or will compiling with the EOP just pick everything up? What about my stable variables? Should I migrate them to heap?
Hi Austin,
Unfortunately, the dfx release 0.24.0 does not include the latest Motoko release that supports EOP. This would be contained in the next beta release of dfx 0.25.0.
EOP would be first released for beta testing locally in dfx, by opting in with the --enhanced-orthogonal-persistence compiler flag. In a few weeks, IC mainnet should be ready to support 64-bit, however, initially, the capacity will be limited to 4GB or so, meaning there is no space gain yet (although super-short constant-time upgrades). Migration of old stable variables to enhanced orthogonal persistence happens automatically. Also, if stable memory was used, this will still be supported in combination of EOP.
I expect that full productive EOP usage still takes some time, a few months, once IC mainnet Wasm64 support is activated and the beta testing phase went successfully. I’ll keep you informed as soon as Motoko EOP is available for beta testing via dfx. I am sorry for the delay.