Giter VIP home page Giter VIP logo

plasma's Introduction

Plasma Language

a new programming language

Plasma is a new programming language for safe and efficent general purpose use. It is a statically typed, side-effect free single assignment language and will have functional programming and concurrent programming features. It will support deterministic parallel execution. For a general overview, please visit https://plasmalang.org/ It is in early development.

It is free software, Copyright (C) 2015-2019 The Plasma Team, distributed mostly under the MIT license, see LICENSE for details.

Dependencies

You will need:

  • A C compiler (C99 on a POSIX.1-2008 environment), I've been testing with GCC. Clang should also work.
  • Mercury. 14.01.1 at a minimum, but a newer 'rotd' version (2018-11-14 is known to work) is recommended for compatibility with newer C compilers and critical if you use musl-based system. There are rumours that newer versions aren't compatible on OS X, but I don't have any solid info.
  • Asciidoc

Mercury installation

The easiest way to install Mercury is to install the .deb packages (on Debian, Ubuntu, etc).

Otherwise download Mercury's source pakcage and follow the installation instructions in the INSTALL file. You'll need at least version 14.01.1, but newer 'rotd' versions have better C compiler and C library support. ROTD 2018-11-14 is known to work on 64bit Linux for Plasma. We've made some notes about grades that may help with choosing which grades you may need. There is also a README.bootstrap file with Mercury bootstrapping information if you wish to do that, it may also provide some additional explaination.

Usage

Make any changes you may need in the Makefile, everything configurable is towards the top of this file.

Use make in the root directory to build the project.

You should get:

  • src/plzc - The plasma compiler, compiles plasma (.p) files to plasma bytecode (.pz)
  • runtime/plzrun - The runtime system, executes plasma bytecode (.pz) files.
  • src/plzasm - The plasma bytecode assembler. This compiles textual bytecode (.pzt) to bytecode (.pz). It is useful for testing the runtime.

There are example plasma programs in examples/. Running make test will execute these programs as part of the test suite to ensure that things are working correctly.

Layout

  • docs - Documentation
  • examples - Example Plasma programs
  • runtime - Runtime system (C code)
  • src - The compiler and other tools
  • tests - The test suite (in addition to some of the files in examples)

Contributing

Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md.

plasma's People

Contributors

drprofesq avatar gertm avatar jeremylwright avatar manu-bhasha avatar paulbone avatar rightfold avatar

Watchers

 avatar  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.