Giter VIP home page Giter VIP logo

lucinao540 / concurnas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from concurnas/concurnas

0.0 0.0 0.0 4.35 MB

Concurnas is an open source JVM programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems

Home Page: https://concurnas.com

License: MIT License

TeX 6.41% C++ 4.12% Shell 0.09% Batchfile 0.07% Java 80.23% HTML 0.18% ANTLR 0.36% E 6.35% Eiffel 1.55% Augeas 0.65% C 0.01%

concurnas's Introduction

The Concurnas programming Language

Concurnas is an open source programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems

Authors and major contributors

Found a bug?

  1. Check the existing issues
  2. Talk to us at Concurnas Ltd
  3. Raise an issue

Reporting Security Issues

Please do not report security issues to the public issue tracker. Please send security issues to [email protected].

Want to contribute?

Before starting to work on a feature or a fix, please open an issue to discuss the use case or bug with us. This can save both you and us a lot of time. For any non-trivial change, we'll ask you to create a short design document explaining:

  • Why is this change done? What's the use case?
  • What will the API look like? (For new features)
  • What test cases should it have? What could go wrong?
  • How will it roughly be implemented? (We'll happily provide code pointers to save you time)

This can be done directly inside the GitHub issue or (for large changes) you can share a Google Doc with us.

Contributing

We are friendly to pull requests and the team at Concurnas Ltd. will assist you in anyway we can. In order to protect yourself and other contributors to Concurnas all contributors to Concurnas must formally agree to abide by the Developer's Certificate of Origin, by signing on the bottom of the document.

To contribute:

  1. Fork the Concurnas github repository
  2. Make your changes
  3. *first time contributors: sign contributors.txt by adding your github userid, full name, email address (you can obscure your e-mail, but it must be computable by human), and date.
  4. Commit your changes
  5. Send a pull request
  6. After you have signed once, you don't have to sign future pull requests. We can merge by checking to see your name is in the contributors file.

Code Change Guidelines

All code contributions should contain the following:

  • Appropriate Unit Tests (or modifications of existing tests if they are erroneous)
  • All new and existing unit tests must pass.
  • If appropriate: Updates to the reference manual (we will republish the ebook and update the Concurnas website)

Your code needs to run on all supported Java versions (at least 1.8) and operating systems (Windows and Linux). We will verify this, but here are some pointers that will avoid surprises:

  • Be careful when using features introduced in Java 1.9 or later (modules etc), Concurnas is Java 1.8 compliant.
  • Normalize file paths in tests.
  • Watch out for Linux vs windows non incompatibilities: path separators, newline's etc.

After pull request acceptance we will manage the release process.

Building Concurnas from scratch

The build process for Concurnas is more involved than for typical projects since much of Concurnas itself is written in Concurnas! As such an iterative build is employed which bootstraps us to the point where Concurnas can compile the remaining parts of itself. Luckily for us this iterative build is managed by Gradle.

The following commands can be used in order to build Concurnas from scratch:

Windows

gradlew.bat clean build -x test   

Linux

./gradlew clean build -x test   

It is recommended that one skip the automatic running of tests unless one has a machine which is powerful enough to run them.

This will output a release zip which will look like: Concurnas-1.13.108.zip

Recommended specs for machine to run test suite

  • Min:
    • Java 1.9 for the build and testing
    • 4-core CPU
    • 16GB RAM
    • A GPU - NVIDIA GTX 590
  • Recommended:
    • Java 1.9 for the build
    • Java 1.8 and Java 1.9 - some unit tests behave differently under each version
    • 8-core CPU
    • 32GB RAM
    • A GPU - NVIDIA GTX 1060 3 GB

Developing/building via an IDE

Using an IDE to make changes to Concurnas is recommended.

Development in eclipse

The first time setup of Concurnas for eclipse is quite involved.

Plugins required:

  • ANTLR 4 IDE (0.3.6). (available in eclipse marketplace). Configured as follows:

antlrSetup

Additional plugins recommended:

  • Bytecode Outline (available in eclipse marketplace)

Generating eclipse configuration:

  1. Either:

    ./gradlew eclipse

    or import the project into eclipse as a gradle project.

  2. You may need to force the ANTLR plugin (configured as above) to detect the .g files under src\main\antlr\com\concurnas for the first time by opening them and re-saving them (this will clear up any errors about missing Visitors etc).

  3. You may also need to refresh the gradle build in order to include the ./src_derived directory as a directory containing source code for the build. (right click on build.gradle -> Gradle -> Refresh Gradle Project)

  4. Finally, you may also need to replace the JRE System Library in the project JavaBuild Path. (Java Build Path -> Libraries -> JRE System Library - Remove 1.8 and replace via the "Add Library..." button).

Generating remaining Concurnas Code:

Run the following code in eclipse (after each clean build) in order to complete the build:

  1. Generate the runtime cache:

    com.concurnas.runtimeCache.RuntimeCacheCreator
    
  2. Compile the Concurnas libraries written in Concurnas:

    com.concurnas.build.LibCompilation
    
  3. Compile the unit test helpers written in Concurnas:

    com.concurnas.concc.Concc -d ./bin/test ./tests[com/concurnas/tests/helpers]
    

Running unit tests:

It's recommended that you take the time to setup and run the unit tests within eclipse as it has good JUnit integration and you don't have to switch applications to run them interrupting your work flow. All the unit tests can be run via the following command as a JUnit test suite in eclipse:

	com.concurnas.compiler.AllTests

Specify the contents of the following file as VM arguments in order to run them correctly:

If running on Java 1.8: vmArguments-Java8.txt

If running on Java 9+: vmArguments-Java9.txt

The sandbox unit test:

The sandbox unit test is a nice way of testing Concurnas code end to end, it also provides nice profiling stats on the phases of Concurnas compilation:

  1. Edit this file: bytecodeSandbox.conc

  2. Run this unit test:

    com.concurnas.compiler.bytecode.BytecodeTestJustSandbox
    

With the aforementioned VM arguments specified contingent upon your JDK.

Msi Windows installer

Concurnas makes use of a gradle plugin in order to produce a windows .msi. This plugin stipulates the following dependencies:

Platform Requirement
all Java 8 or higher. Gradle must run with Java 8
Windows Wix Toolset or WixEdit must be installed
Linux Lintian, FakeRoot
on Ubuntu: apt-get install lintian fakeroot
Linux dpkg for creating Debian packages: apt-get install dpkg
Linux rpm for creating RPM packages: apt-get install rpm

A msi may be created with gradle as follows:

gradlew.bat clean build msi -x test   

concurnas's People

Contributors

hgarfer avatar igorperikov avatar jasontatton avatar michaeldesu 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.