Giter Site home page Giter Site logo

snowsky / daml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digital-asset/daml

0.0 3.0 0.0 19.05 MB

The DAML smart contract language

Home Page: https://daml.com/

License: Apache License 2.0

Python 9.98% Shell 1.85% Groovy 0.15% PowerShell 0.33% Haskell 25.50% Scala 42.03% Dockerfile 0.05% Perl 0.30% Makefile 0.07% TypeScript 11.62% Java 3.87% JavaScript 0.29% HTML 0.13% Vim Script 0.20% C 0.01% Batchfile 0.01% HCL 0.10% CSS 0.14% Nix 3.36% Ruby 0.01%

daml's Introduction

DAML logo

Copyright 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Welcome to the DAML repository!

This repository hosts all code for the DAML smart contract language, originally created by Digital Asset.

To start using DAML

To download DAML, follow the installation instructions on docs.daml.com. To try out using it, follow the quickstart guide.

If you have questions about how to use DAML or how to build DAML-based solutions, please ask them on StackOverflow using the daml tag.

To start contributing to DAML

We warmly welcome contributions.

1. Clone this repository

git clone [email protected]:digital-asset/daml.git.

2. Set up the DA Development Environment ("dev-env")

dev-env provides dependencies required during the build phase, like Java, Bazel, and Python for some tooling scripts. The code itself is built using Bazel.

Set up dev-env on Linux or macOS

  1. Install Nix: bash <(curl https://nixos.org/nix/install)
  2. Enter dev-env: eval "$(dev-env/bin/dade assist)"

If you don't want to enter dev-env manually each time using eval "$(dev-env/bin/dade assist)", you can also install direnv. This repo already provides a .envrc file, with an option to add more in a .envrc.private file.

Set up dev-env on Windows

We're working on Windows support (for both end users and developers), but it's not ready yet. Sign up to be notified when it is available.

3. Build the source code

Run bazel build //...

This builds the code, and will likely take an hour or more.

Now you've built, rebuilding the code after a change will be much faster because Bazel caches unchanged build artefacts. To read more about Bazel and how to use it, see the Bazel site.

To run the tests, run bazel test //...

4. Contribute!

If you are looking for ideas on how to contribute, please browse our issues.

Caching: build speed and disk space considerations

Bazel has a lot of nice properties, but they come at the cost of frequently rebuilding "the world". To make that bearable, we make extensive use of caching. Most artifacts should be cached in our CDN, which is configured in .bazelrc in this project.

However, even then, you may end up spending a lot of time (and bandwidth!) downloading artifacts from the CDN. To alleviate that, by default, our build will create a subfolder .bazel-cache in this project and keep an on-disk cache. This can take about 10GB at the time of writing.

To disable the disk cache, remove the following lines:

build:linux --disk_cache=.bazel-cache
build:darwin --disk_cache=.bazel-cache

from the .bazelrc file.

If you work with multiple copies of this repository, you can point all of them to the same disk cache by overwriting these configs in either a .bazelrc.local file in each copy, or a ~/.bazelrc file in your home directory.

daml's People

Contributors

moritzkiefer-da avatar flokli avatar bame-da avatar francesco-da avatar zimbatm avatar bethaitman-da avatar gabor-aranyossy avatar garyverhaegen-da avatar leo-da avatar fmota-da avatar akalburgi avatar martin-drhu-da avatar rautenrieth-da avatar twpayne avatar

Watchers

James Cloos avatar Hao avatar  avatar

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.