Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sta: init at 2016-01-25 #78141

Merged
merged 1 commit into from Feb 18, 2020
Merged

sta: init at 2016-01-25 #78141

merged 1 commit into from Feb 18, 2020

Conversation

infinisil
Copy link
Member

Motivation for this change

Adds sta, which allows easy calculation of stats with the CLI, e.g.

$ cat /dev/random | tr -cd '[:digit:]\n' | head | cut -b-4 | sta
N	min	max	sum	mean	sd	sderr	
9	2	8793	31871	3541.22	3455.11	1151.7
Things done
  • Built and tested on Linux

@mmahut
Copy link
Member

mmahut commented Jan 21, 2020

Fails on darwin.

build flags: SHELL=/nix/store/lah3ca47lhzpqfj33wwn48sp3x7g4l43-bash-4.4-p23/bin/bash
clang++ -DPACKAGE_NAME=\"Sta\" -DPACKAGE_TARNAME=\"sta\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"Sta\ 0.1\" -DPACKAGE_BUGREPORT=\"simon.c.carter@gmail.com\" -DPACKAGE_URL=\"https://github.com/simonccarter/sta\" -I.     -g -O2 -c -o src/main.o src/main.cpp
src/main.cpp:90:49: error: cannot take the address of an rvalue of type 'std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
                        string String = static_cast<ostringstream*>( &(ostringstream() << ii->first) )->str();```

@infinisil
Copy link
Member Author

No idea what the problem is, just disabled darwin for now

@infinisil infinisil merged commit 4aff981 into NixOS:master Feb 18, 2020
@infinisil infinisil deleted the sta branch February 18, 2020 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants