{"_id":"58e6b422f54a710f0010478b","user":"5612c290c0731b0d00625078","parentDoc":null,"project":"5612c2a00fbdb60d00e4c7d1","version":{"_id":"5612c2a00fbdb60d00e4c7d4","__v":7,"project":"5612c2a00fbdb60d00e4c7d1","createdAt":"2015-10-05T18:34:08.611Z","releaseDate":"2015-10-05T18:34:08.611Z","categories":["5612c2a10fbdb60d00e4c7d5","58e6b64bc397de1b00173c09","58e6b68eb1eece19008b81fe","58e6b6d185ec873100be9734","58f5e5c2616bbb1b00d54c15","58f5eaa74c413f19007a2858","58f767a79c723f19004e1ca9"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.0.1","version":"0.0.1"},"category":{"_id":"58e6b68eb1eece19008b81fe","project":"5612c2a00fbdb60d00e4c7d1","version":"5612c2a00fbdb60d00e4c7d4","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-04-06T21:43:42.570Z","from_sync":false,"order":1,"slug":"api","title":"Lasp"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-04-06T21:33:22.776Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Let's look at how to build and operate the Lasp programming system.\n[block:api-header]\n{\n  \"title\": \"System Requirements\"\n}\n[/block]\nLasp requires that you have:\n\n* Erlang 19 (or, subsequent later release)\n* Redis (for execution of the test suite via `make check`)\n[block:api-header]\n{\n  \"title\": \"Building Lasp\"\n}\n[/block]\nStart, by fetching the Lasp repository from GitHub:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ git clone git:::at:::github.com:lasp-lang/lasp.git\\nCloning into 'lasp'...\\nremote: Counting objects: 16974, done.\\nremote: Compressing objects: 100% (116/116), done.\\nremote: Total 16974 (delta 75), reused 0 (delta 0), pack-reused 16858\\nReceiving objects: 100% (16974/16974), 33.04 MiB | 4.09 MiB/s, done.\\nResolving deltas: 100% (11961/11961), done.\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nThen, compile Lasp (requires Erlang 19+):\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ make\\n/tmp/lasp/rebar3 compile\\n===> Verifying dependencies...\\n[snip]\\n===> Compiling time_compat\\n===> Compiling rand_compat\\n===> Compiling types\\n===> Compiling goldrush\\n===> Compiling lager\\n===> Compiling acceptor_pool\\n===> Compiling partisan\\n===> Compiling riak_dt\\n===> Compiling lasp_support\\n===> Compiling plumtree\\n===> Compiling sext\\n===> Compiling gen_flow\\n===> Compiling lasp\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nFinally, verify that your installation is working correctly.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ make check\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nLasp is provided as an Erlang library, so you just need to open an Erlang shell to begin playing with it.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ make shell\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"How to open a shell, and begin playing around with the Lasp programming system.","slug":"building-lasp","type":"basic","title":"Building Lasp"}

Building Lasp

How to open a shell, and begin playing around with the Lasp programming system.

Let's look at how to build and operate the Lasp programming system. [block:api-header] { "title": "System Requirements" } [/block] Lasp requires that you have: * Erlang 19 (or, subsequent later release) * Redis (for execution of the test suite via `make check`) [block:api-header] { "title": "Building Lasp" } [/block] Start, by fetching the Lasp repository from GitHub: [block:code] { "codes": [ { "code": "$ git clone git@github.com:lasp-lang/lasp.git\nCloning into 'lasp'...\nremote: Counting objects: 16974, done.\nremote: Compressing objects: 100% (116/116), done.\nremote: Total 16974 (delta 75), reused 0 (delta 0), pack-reused 16858\nReceiving objects: 100% (16974/16974), 33.04 MiB | 4.09 MiB/s, done.\nResolving deltas: 100% (11961/11961), done.", "language": "shell" } ] } [/block] Then, compile Lasp (requires Erlang 19+): [block:code] { "codes": [ { "code": "$ make\n/tmp/lasp/rebar3 compile\n===> Verifying dependencies...\n[snip]\n===> Compiling time_compat\n===> Compiling rand_compat\n===> Compiling types\n===> Compiling goldrush\n===> Compiling lager\n===> Compiling acceptor_pool\n===> Compiling partisan\n===> Compiling riak_dt\n===> Compiling lasp_support\n===> Compiling plumtree\n===> Compiling sext\n===> Compiling gen_flow\n===> Compiling lasp", "language": "shell" } ] } [/block] Finally, verify that your installation is working correctly. [block:code] { "codes": [ { "code": "$ make check", "language": "text" } ] } [/block] Lasp is provided as an Erlang library, so you just need to open an Erlang shell to begin playing with it. [block:code] { "codes": [ { "code": "$ make shell", "language": "shell" } ] } [/block]