Commit graph

8254 commits

Author SHA1 Message Date
John Kerl
dc45f80cc4 lumin dependency 2022-01-30 12:08:41 -05:00
John Kerl
2293b40912 Add dependency on github.com/johnkerl/lumin 2022-01-30 12:08:41 -05:00
John Kerl
90c54cdbf0 todo 2022-01-30 12:08:41 -05:00
John Kerl
b31a9560c1 colorization experiment 2022-01-30 12:08:40 -05:00
John Kerl
971255ff2b typofix 2022-01-30 12:06:23 -05:00
Stephen Kitt
1beacbd381
More dead code removal (#905)
Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-30 12:03:41 -05:00
John Kerl
930162c200 add fixed-length option to ngrams 2022-01-29 13:20:08 -05:00
Stephen Kitt
46d013d44f
Remove unreachable code (#903)
These lines are unreachable, all paths above them lead to earlier
returns.

Signed-off-by: Stephen Kitt <steve@sk2.org>

Co-authored-by: John Kerl <kerl.john.r@gmail.com>
2022-01-27 12:23:00 -05:00
Stephen Kitt
d536318ed6
Use int64 wherever "64-bit integer" is assumed (#902)
Miller assumes 64-bit integers, but in Go, the int type varies in size
depending on the architecture: 32-bit architectures have int
equivalent to int32. As a result, the supported range of integer
values is greatly reduced on 32-bit architectures compared to what is
suggested by the documentation.

This patch explicitly uses int64 wherever 64-bit integers are
assumed.

Test cases affected by the behaviour of the random generator are
updated to reflect the new values (the existing seed doesn't produce
the same behaviour since the way random values are generated has
changed).

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-27 12:06:25 -05:00
John Kerl
01859bdaa5 Correctly label latest docs as such 2022-01-27 09:26:36 -05:00
John Kerl
6b1d97ca2f todo 2022-01-26 23:33:13 -05:00
John Kerl
ff23a07f23 Merge branch 'split' 2022-01-26 23:29:23 -05:00
John Kerl
e2aaccf65b Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-26 23:29:20 -05:00
John Kerl
f7ff63124b
mlr split verb (#898)
* mlr split

* regression-test cases

* doc-build artifacts
2022-01-26 23:16:25 -05:00
John Kerl
c8b71779d9 doc-build artifacts 2022-01-26 23:11:24 -05:00
John Kerl
494671ba42 regression-test cases 2022-01-26 23:11:24 -05:00
John Kerl
d9298fd26b mlr split 2022-01-26 23:11:24 -05:00
John Kerl
6583e429f3 Merge branch 'fmtnum-doc' 2022-01-24 22:52:48 -05:00
John Kerl
dad6456022
Clarify source for printf-style formatting (#895) 2022-01-24 22:52:38 -05:00
John Kerl
15f118f5a6 Clarify source for printf-style formatting 2022-01-24 22:47:18 -05:00
John Kerl
3b4963ea3c Merge branch 'main' of github.com:johnkerl/miller 2022-01-24 16:33:34 -05:00
John Kerl
62a50fb9a5 Fix slwin-7-2 -> slwin_7_2 doc info 2022-01-24 16:33:05 -05:00
John Kerl
be92d85907 Fix slwin-7-2 -> slwin_7_2 doc info 2022-01-24 16:31:35 -05:00
John Kerl
d08dcebae4 todo 2022-01-24 07:53:47 -05:00
John Kerl
dedc7ff06f replace - with _ in *.go filenames 2022-01-23 23:22:55 -05:00
John Kerl
b4c50470a2 typofix 2022-01-23 23:18:23 -05:00
John Kerl
cba47ce6ad Merge branch 'sliding-window-averages' 2022-01-23 23:13:42 -05:00
John Kerl
9dd6d9b730 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-23 23:13:35 -05:00
John Kerl
77811a4788
Sliding window averages (#894)
* todo

* Neaten existing DSL sketch

* rebase on #893, and sketch

* code-complete

* build artifacts for previous commit

* replace - with _ in shift and slwin
2022-01-23 23:03:46 -05:00
John Kerl
5c31e36066 replace - with _ in shift and slwin 2022-01-23 22:48:26 -05:00
John Kerl
9fb4e58f9f build artifacts for previous commit 2022-01-23 11:00:21 -05:00
John Kerl
e908f89603 code-complete 2022-01-23 11:00:09 -05:00
John Kerl
2248f11675 rebase on #893, and sketch 2022-01-23 01:23:17 -05:00
John Kerl
0b74c4feef Neaten existing DSL sketch 2022-01-23 00:55:43 -05:00
John Kerl
9d72b0bded todo 2022-01-23 00:55:43 -05:00
John Kerl
cff2a898c4 Merge branch 'shift-lag-shift-lead' 2022-01-23 00:55:27 -05:00
John Kerl
2aacd87601 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-23 00:55:15 -05:00
John Kerl
a2a9118ad8
Implement shift-lead option for mlr step (#893)
* iterating

* stepper-input refactor in prep for sliding-window PR

* window-keeper util class

* integrate window-keeper into step-transformer
2022-01-23 00:54:39 -05:00
John Kerl
57a967200a integrate window-keeper into step-transformer 2022-01-23 00:50:00 -05:00
John Kerl
cd8b714dc8 window-keeper util class 2022-01-21 22:53:52 -05:00
John Kerl
9a43a1dcd5 stepper-input refactor in prep for sliding-window PR 2022-01-21 22:53:52 -05:00
John Kerl
929b23802b iterating 2022-01-21 22:53:52 -05:00
John Kerl
bd0715c6b2 Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-21 22:53:37 -05:00
John Kerl
35bc852cd7 doc-neaten 2022-01-21 09:57:07 -05:00
John Kerl
bc1fa78567 Merge branch 'fix-891' 2022-01-20 13:35:13 -05:00
John Kerl
b6bad96caf
Fix #891 (#892)
* Fix #891

* update tests; artifacts for previous commit
2022-01-20 13:34:58 -05:00
John Kerl
40931ca80f update tests; artifacts for previous commit 2022-01-20 12:42:36 -05:00
John Kerl
7c9b36caf3 Fix #891 2022-01-20 12:38:34 -05:00
John Kerl
50883cd2ce Merge branch 'main' of https://github.com/johnkerl/miller 2022-01-20 09:26:32 -05:00
Jauder Ho
033067e49b
Update .goreleaser.yml (#866)
* Update .goreleaser.yml

Reorg and changes.

- Move release section to the top
- Switch to using dashes instead of underscores for naming and filenames
- Set gomod proxy to true for reproducible builds
- Add archives section to use zip for Windows builds, name Mac builds as macos instead of darwin and also have a top level directory for tar.gz
- Add the ability to build .deb and .rpm as part of the release process

* Update .goreleaser.yml

Disable gomod for goreleaser for now.
2022-01-18 21:57:23 -05:00