Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asmr-hex/dockerlang
a turing complete language based on docker containers
https://github.com/asmr-hex/dockerlang
Last synced: 1 day ago
JSON representation
a turing complete language based on docker containers
- Host: GitHub
- URL: https://github.com/asmr-hex/dockerlang
- Owner: asmr-hex
- License: mit
- Created: 2018-03-10T01:25:56.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2018-05-10T03:50:45.000Z (over 6 years ago)
- Last Synced: 2024-04-24T08:08:15.809Z (7 months ago)
- Language: Go
- Size: 11.4 MB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dockerlang [![Build Status](https://travis-ci.org/connorwalsh/dockerlang.svg?branch=dev)](https://travis-ci.org/connorwalsh/dockerlang)
a turing complete language based on docker containers
![alt text](https://github.com/connorwalsh/dockerlang/blob/dev/assets/dockerlang_glitch.gif)
## ❦ Contents
- [How to use Dockerlang](#how-to-use-dockerlang)
- [Development guide](#development-guide)---
## ❦ How to use Dockerlang
H e l l o and welcome, you've made it: you're in Dockerlang, a dockerland where everything is docker.
Let us begin! by creating a dockerlang file! The file extension is `.doc`.### Hello, wirld
To print text in Dockerlang, all you have to do is use the `#` symbol, which means printing, followed with the location to print to.
If you want to print to standard out, use `!`, or to print to a string, put a string after the `#`.```dockerlang
(#! "hellow wourld')
```### (In)variables
Variables in Dockerlang are initialized with the `≡` symbol and assigned with `=`.
```dockerlang
(≡ x 0)
(= x 'why")
```Dockerlang doesn't worry about types and neither should you. Be free.
### Control structures
#### Conditions
- `‽` Equal to: `(2 ‽ 3) slashslash False`
- `¿` Not equal to: `(2 ¿ 3) slashslash True`
- `☛` Greater than: `(0 ☛ 1) slashslash False`
- `☚` Leess than `(0 ☚ 1) slashslash True`#### Function declaration
Use the `❦` operator to begin a function. Don't forget to type it, then delete it, then type it again, for best (and most auspicious) results.
---
## ❦ Development guide
Dockerlang is written in Go.
### Setting up your development environment
To get started writing Dockerlang, the first thing you neeed to do is put on some Gamelan music.
You will need to specify what you are listening to in your commits.- Set up your git environment to use the commit template
```bash
git config commit.template .gitmessage
```### Docker commands you may find useful
List docker containers current running:
```bash
docker ps
```List docker networks:
```bash
docker network ls
```Remove all exited docker containers:
```bash
docker rm $(docker ps -a --filter "status=exited" --format {{.ID}})
```## Quick links:
https://docs.google.com/presentation/d/13wHMi0Mb7J9uZ9QnV3a96oC2IrjiCvsC_2Wo_MTDpNE/edit#slide=id.g357f0a1f59_0_16