Class Core

java.lang.Object
convex.core.lang.Core

public class Core extends Object
This class builds the core runtime environment at startup. Core runtime functions are required to implement basic language features such as:
  • Numerics
  • Data structures
  • Interaction with on-chain state and execution context
In general, core functions defined in this class are thin Java wrappers over functions available in the CVM implementation, but also need to account for:
  • Argument checking
  • Exceptional case handling
  • Appropriate juice costs
Where possible, we implement core functions in Convex Lisp itself, see resources/lang/core.cvx "Java is the most distressing thing to hit computing since MS-DOS." - Alan Kay