rename to f.go

This commit is contained in:
NunoSempere 2024-06-19 08:30:21 -04:00
parent 4c6fb35ac2
commit 4d146dbcfb
3 changed files with 10 additions and 9 deletions

View File

@ -140,6 +140,8 @@ Note that these sed commands are just hacks, and won't parse e.g., `3.5K` correc
- Joint types - Joint types
- Enums - Enums
- [x] Fix correlation problem, by spinning up a new randomness thing every time some serial computation is done. - [x] Fix correlation problem, by spinning up a new randomness thing every time some serial computation is done.
- [ ] Maintain *both* a more complex thing that's more featureful *and* the more simple multiplication of lognormals thing.
- [ ] Clean up error code. Right now only needed for division
- [ ] Dump samples to file - [ ] Dump samples to file
- [ ] Represent samples/statistics in some other way - [ ] Represent samples/statistics in some other way
- [ ] Perhaps use qsort rather than full sorting - [ ] Perhaps use qsort rather than full sorting

View File

@ -4,8 +4,8 @@ import (
"bufio" "bufio"
"errors" "errors"
"fmt" "fmt"
"git.nunosempere.com/NunoSempere/fermi/sample"
"git.nunosempere.com/NunoSempere/fermi/pretty" "git.nunosempere.com/NunoSempere/fermi/pretty"
"git.nunosempere.com/NunoSempere/fermi/sample"
"math" "math"
"os" "os"
"sort" "sort"
@ -348,8 +348,7 @@ func operateStackWithDist(stack Stack, new_dist Dist, op string) Stack {
func runRepl(stack Stack, reader *bufio.Reader) Stack { func runRepl(stack Stack, reader *bufio.Reader) Stack {
replForLoop:
replForLoop:
for { for {
new_line, _ := reader.ReadString('\n') new_line, _ := reader.ReadString('\n')
words := strings.Split(strings.TrimSpace(new_line), " ") words := strings.Split(strings.TrimSpace(new_line), " ")

View File

@ -1,9 +1,9 @@
run: run:
go run fermi.go go run f.go
build: build:
go build fermi.go go build f.go
install: fermi install: f
sudo mv fermi /usr/bin/fermi sudo mv f /usr/bin/f
sudo ln -s /usr/bin/fermi /usr/bin/f sudo ln -s /usr/bin/f /usr/bin/fermi