(C) MUKN 2022, 2023
This fork is for demonstrations and pull requests for the master repository. It attempts to be in a working state and may be self contained regarding upstream compilers such as gerbil
.
Right now, <2023-03-22 Wed>, we need to build our own Gerbil. That takes 15+ minutes on my Thinkpad Yoga so expect a wee bit of a wait.
# Choose whatever directory you want to run from
cd /tmp/ ; rm -rf state-channels
# Clone it! Shallow is fine
git clone --depth=1 https://github.com/drewc/state-channels.git
# This makes a gerbil to compile with that accepts JS
cd state-channels ; ./bin/make
There are 3 different forms of what was built.
./bin/exe
:: A binary executable that runs themp1_1
test with fake sockets../bin/exe | (head -n6 ; tail -n3)
=>
--- PID NAME USER PEER SELF 0h_ HOST1 system (_) _ rl: transfer PR1=>GR1 (dupont 5) (�[31;49mS�[39;49m smith durand)�[31;49m�[39;49m out:
./js/bin/exe
:: The same code as the binary compiled to JavaScript with a Node.js shebang.head -n1 ./js/bin/exe ./js/bin/exe | (head -n6 ; tail -n3)
=>
#!/usr/bin/env node --- PID NAME USER PEER SELF 0h_ HOST1 system (_) _ rl: transfer PR1=>GR1 (dupont 5) (�[31;49mS�[39;49m smith durand)�[31;49m�[39;49m out:
./html/exe.html
:: An HTML version of the JS script. Open that file in a browser and look at the console.head -n3 ./html/exe.html head -n7 ./html/exe.html| tail -n2
=>
<!doctype html> <head><meta charset="utf-8"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><script> // File generated by Gambit v4.9.4 _z = (s) => { var leng = s.length;
git@github.com:drewc/state-channels.git
(defun state-channels/create-new-log ()
(interactive)
(let ((org-static-blog-drafts-directory "~/me/MuKn/src/state-channels/journal"))
(org-static-blog-create-new-draft)))