Comments (2)
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.
Comments added in #70
from clvm_tools.
Related Issues (10)
- Missing tarball on Pypi HOT 6
- version issue in 0.4.3 and test isn't written for setup.py? HOT 2
- how can I deploy my contract to the blockchain?
- Got ModuleNotFoundError: No module named 'clvm.CLVMObject' HOT 5
- Decentralized Identity HOT 1
- `NodePath(-129)` raises an error, while `NodePath(-256)` does not
- Setup on Ubuntu 18.04 HOT 2
- Deeply nested clvm program cannot run due to Windows10's poor stack memory
- Compiler fails sometimes when parameter deconstruction not used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clvm_tools.