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
-
Observations
Generally a pleasant experience, but I’ve been programming in a mostly functional paradigm.
Compact code.
group
missing fromArray
,List
(maybe as*Utils.mo
modules)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 aSet
of 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:
system
canister 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-upgrade
hook)Future
We’ll need
blob[0]
(can be emulated by iterator:blob.vals().next()
)switch
could 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