Motoko VeRoniCa retrospective #4333
ggreif
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Observations
Generally a pleasant experience, but I’ve been programming in a mostly functional paradigm.
Compact code.
groupmissing fromArray,List(maybe as*Utils.momodules)Storing the transactions as an immutable reverse temporal sequence is a nice way to
implement the blockchain metaphor.
I have a helper class (
Deduplicate) that holds aSetof visited credit Ids.Time series DB wins with transparency vs. a mutable DB.
Pluggable exchanges
These are actor classes. Currently only VRC/fUSD trading pairs, with a very limited feature set.
Plans are
Hopefully only one routine needs to be changed
Exact interfaces to be determined.
Using:
systemcanister upgradesScaling is needed
Using long linked lists is a no-no! There are no guarantees for tail-recursion elimination in Motoko, so the stack may overflow.
Sharing
post-upgradehook)Future
We’ll need
blob[0](can be emulated by iterator:blob.vals().next())switchcould progressively specialise the scrutinee typeSHA2 (and subtypes) are common in the blockchain world, we should export those interfaces
Beta Was this translation helpful? Give feedback.
All reactions