From 36676c78ccc5c03e80fb1e63bf5ddab1eef4a802 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 23 Jan 2025 12:23:48 +0100 Subject: [PATCH] add neat repl behavior --- README.md | 2 ++ makefile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31af409..51300b3 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ You can save a session to a logfile with tee: fermi | tee -a fermi.log ``` +You can open a model in a tab (for instance in tmux), and in a terminal, run it with `fermi -f model.fermi`. If you then add a new line to the model in the first tab, it will also be processed by the second tab. I don't really know why this happens. + ## Different levels of complexity The mainline code has a bunch of complexity: variables, parenthesis, samples, beta distributions, number of samples, mixtures etc. In the simple/ folder: diff --git a/makefile b/makefile index 182a89b..339b7f8 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,6 @@ run: go run main/fermi.go main/error.go main/pretty.go install: fermi - rm /usr/bin/fermi - rm /usr/bin/f + rm -f /usr/bin/fermi sudo mv fermi /usr/bin/fermi sudo ln -s /usr/bin/fermi /usr/bin/f