Giter Club home page Giter Club logo

Comments (2)

richardkiss avatar richardkiss commented on July 1, 2024 1

Stage 0 is an assembler for clvm.

Stage 1 was a first attempt at making it possible to write complex code that calls functions by name by adding a opcode bind to the language that allows additional opcodes to be added to the language dynamically, associating a function name with clvm code. An example is the factorial function here: https://github.com/Chia-Network/clvm_tools/blob/main/tests/stage_1/fact-1.txt

Stage 1 turned out to have drawbacks (namely, a second namespace that takes on python-like characteristics through which environment data can too easily be leaked), so it was a dead end. The code is still being maintained, but just barely, and should eventually be removed.

Stage 2 is what we generally call "the Chialisp compiler", and it supports compiling Chialisp into clvm. It adds com and opt (and a few others) as operators to clvm.

In general, you don't want to use non-standard values for operator_lookup when using run_program, and the API will change to reflect this at some point.

from clvm_tools.

richardkiss avatar richardkiss commented on July 1, 2024

Comments added in #70

from clvm_tools.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.