This article was first published on RChain Cooperative - Medium
In order to run the rholang snippets in this tutorial, you will need some kind of development environment. This is not an exhaustive guide to rholang development tools or stacks. Rather, it shows a few common basic development environments to get you started.
Pyrofex is developing an up-and-coming integrated development environment called cryptofex. Cryptofex runs natively on windows, mac, and linux/. It offers rholang syntax highlighting and is capable of evaluating rholang code internally or with a running RNode. The IDE also supports ethereum development.
WARNING: As of October 2018, Cryptofex does not report the correct line numbers when you make syntax errors. This can be quite frustrating.
The tried and true way to run rholang code is to start up your own local RNode and use its rholang interpreter. First, you’ll have to install RNode for your platform.
Once RNode is installed, you can run a basic standalone node
$ rnode run -s -n
In a separate terminal, you can use RNode’s eval mode to evaluate code.
$ rnode eval intersection.rho
Evaluating from intersection.rho
Result for intersection.rho:
Deployment cost: CostAccount(39,Cost(1132))
To keep reading, please go to the original article at:
RChain Cooperative - Medium