Difference between revisions of "Silmaril"

From Predictive Chemistry
Jump to: navigation, search
m
Line 28: Line 28:
 
git remote add --track master origin git@github.com:<username>/<project name>.git
 
git remote add --track master origin git@github.com:<username>/<project name>.git
 
echo '"Hello world!"' >hello.sil
 
echo '"Hello world!"' >hello.sil
  +
git commit -am "Initial project."
  +
git push
 
</source>
 
</source>
   
This has created a new project with a simple hello world file. Next, you will need to compile
+
This has created a new project with a simple hello world file.
the project using:
+
Next, you can create a home for the project within the hierarchy
  +
at https://www.parallelscience.com/projects. You can either
  +
ask parallelscience to fetch the code from your github account
  +
or compile the project directly from the command-line using:
   
 
<source lang="bash">
 
<source lang="bash">
sil compile
+
sil compile test.hello/initial
 
</source>
 
</source>
   
 
This will parse the entire commit into sil object code, and sent it to the server.
 
This will parse the entire commit into sil object code, and sent it to the server.
Compilation writes the sil.sha1 file as a side-effect. This file contains the id of the
 
project source, and is used for communicating with the server.
 
   
 
With setup out of the way, it's time to write some sil code!
 
With setup out of the way, it's time to write some sil code!

Revision as of 10:39, 28 July 2017

The Silmaril programming language is built from the ground up for bleeding edge HPC. It has the following, fully automatic, killer features:

  • Git-like source code versioning
  • Cryptographically secure, distributed filesystem storage
  • First-class objects
    • functions
    • types
    • modules (aka. tables / record types / directories / structs / ML "Functors")
  • Extensible primitive operations (JIT C-compilation)
  • Extensible binary object types (i.e. opaque pointers)

This documentation explains how to get up and running with the latest distribution.

To interact with the server, you'll need an rsa key. The process for creating one is easy: <source lang="bash"> mkdir ~/.sil chmod 0700 ~/.sil sil generate "Your Name" "email@example.com" >~/.sil/config </source> This will set up your sil environment with a new identity and server. Next, send your name and public key (from that file) to me by email.

Now, you are ready to create a new sil project! From a new directory, run

<source lang="bash"> git init git remote add --track master origin git@github.com:<username>/<project name>.git echo '"Hello world!"' >hello.sil git commit -am "Initial project." git push </source>

This has created a new project with a simple hello world file. Next, you can create a home for the project within the hierarchy at https://www.parallelscience.com/projects. You can either ask parallelscience to fetch the code from your github account or compile the project directly from the command-line using:

<source lang="bash">

 sil compile test.hello/initial

</source>

This will parse the entire commit into sil object code, and sent it to the server.

With setup out of the way, it's time to write some sil code! You can get started by reading the docs and examples: ([1]).