Commit graph

50 commits

Author SHA1 Message Date
Adam Lesperance
085e831668
The package version must match the major tag version (#1654)
* Update package version

* Update makefile targets

* Update readme packages

* Remaining old packages via rg/sd
2024-09-20 12:10:11 -04:00
John Kerl
bae1daf847
Absent variable on left side of boolean OR (||) expression makes it absent (#1434)
* Absent-handling with short-circuiting operators `&&` and `||`

* add a missing file

* artifacts from make dev

* type-errors

* doc content

* artifacts from make dev
2023-12-02 16:00:05 -05:00
John Kerl
268a96d002
Export library code in pkg/ (#1391)
* Export library code in `pkg/`

* new doc page
2023-09-10 17:15:13 -04:00
John Kerl
077fc3702d more doc-neatens for percentiles on-line help 2023-08-26 16:41:37 -04:00
John Kerl
60b1f1b451
Let mlr help take pre-flags, such as --always-color (#1292)
* Let `mlr help` take pre-flags, such as `--always-color`

* Better on-line help for auxents and terminals

* Support `mlr help flag --foo`
2023-05-15 01:14:59 -04:00
John Kerl
bfc8ab5ce2
Add mlr step -a rprod for running products (#1228)
* mlr step -a rprod

* artifacts from `make dev`

* codespell
2023-03-12 13:32:23 -04:00
John Kerl
262b8b1d42 Make build before any tests (more of #877) 2022-02-06 13:38:01 -05:00
Stephen Kitt
c57a635474
Ensure regression-test has a binary to test (#877)
"make regression-test" assumes that ./mlr is the binary to test. To
ensure that ./mlr is available, make "build" a pre-requisite of
"regression-test"; otherwise "make regression-test" will test whatever
version of mlr is on the PATH if ./mlr doesn't exist.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2022-01-17 16:57:45 -05:00
Brian Fulton-Howard
82b3f7ecdf
Fix Makefile for empty prefix (#839)
* Fix makefile so that bin dir is created if absent

* fix indent
2022-01-08 19:45:19 -05:00
John Kerl
a977617797
Address some staticcheck issues (#823)
* address some staticcheck issues

* address some staticcheck issues

* address some staticcheck issues

* address some staticcheck issues
2022-01-01 14:28:19 -05:00
John Kerl
e10fee0724
Improve type-inference performance (#809)
* To-do items for broader platform/go-version benchmarking

* neaten inferrer API

* extend type-inference unit-test cases

* Add benchmark scripts for comparing compiler versions

* mlr version in addition to mlr --version

* some go-benchmark files for Mac/Linux perf comparisons

* neaten perf-scripts

* merge

* type-scan optimization tests

* type-scan optimization infra

* test new inferrer

* mlr --time option

* include --cpuprofile and --traceprofile in on-line help

* sharpen inferred/deferred-type API distinction

* replace old inferrer with newer/faster

* update docs for new type-inferrer
2021-12-27 00:54:21 -05:00
John Kerl
5e8d3fddd0
Suppress read of .mlrrc during regression tests (#808) 2021-12-26 10:53:19 -05:00
John Kerl
adb2ac8f45 Add staticcheck to Makefile 2021-12-25 12:05:28 -05:00
John Kerl
4260e505d8 Merge branch 'mprof-red-pr' 2021-12-25 12:02:16 -05:00
John Kerl
157e567909
Dedupe field names by default (#794) 2021-12-22 21:07:29 -05:00
John Kerl
99e4a23ac6 typofix in regtest 2021-12-21 22:55:50 -05:00
John Kerl
93862f16f9
update mlr -O behavior for #756 (#788) 2021-12-21 22:40:34 -05:00
John Kerl
7a97c9b868
Performance improvement by JIT type inference (#786)
* JIT mlrval type-interfence: mlrval package

* mlrmap refactor

* complete merge from #779

* iterating

* mlrval/format.go

* mlrval/copy.go

* bifs/arithmetic_test.go

* iterate on bifs/collections_test.go

* mlrval_cmp.go

* mlrval JSON iterate

* iterate applying mlrval refactors to dependent packages

* first clean compile in a long while on this branch

* results of first post-compile profiling

* testing

* bugfix in ofmt formatting

* bugfix in octal-supporess

* go fmt

* neaten

* regression tests all passing
2021-12-20 23:56:04 -05:00
John Kerl
f233923351
Performance improvement: record-batching (#779)
* Rename inputChannel,outputChannel to readerChannel,writerChannel

* Rename inputChannel,outputChannel to readerChannel,writerChannel (#772)

* Start batched-reader API mods

* Singleton-list step for reader-batching at input

* CLI options for records-per-batch and hash-records

* Push channelized-reader logic into DKVP reader

* Push batching logic into chain-transformer, transformers, and channel-writer

* foo

* cmd/mprof and cmd/mprof2

* cmd/mprof3 and cmd/mprof4

* narrowed in on regexp-splitting on IFS/IPS as perf-hit

* neaten

* channelize nidx

* cmd/mprof5

* channelize CSV reader

* channelize NIDX reader

* Dedupe DKVP-reader and NIDX-reader source files

* channelize CSV-lite reader

* channelize XTAB reader

* batchify JSON reader

* channelize GEN pseudo-reader

* scripts for perf-testing on larger files

* merge with main for #776

* Fix record-batching for join and repl

* Fix comment-handling in channelized XTAB reader

* Fix bug found in positional-rename
2021-12-13 00:57:52 -05:00
John Kerl
caecc1c712
Clarify build-from-source steps (#773) 2021-12-07 22:06:32 -05:00
John Kerl
4ddb8ff25c Rename inputChannel,outputChannel to readerChannel,writerChannel (#772) 2021-12-07 08:02:30 -05:00
John Kerl
8e975c9d39
mlr -O regexp bugfix (#767) 2021-12-03 11:24:19 -05:00
John Kerl
2d216556e2 add some unit-test keystroke-savers to Makefile 2021-11-29 23:14:33 -05:00
John Kerl
d9dbb1e92e
Improvements for shebang-script handling (#758)
* Experimental #!/usr/bin/env mlr -s feature

* Allow flags after verbs, for shebang support
2021-11-24 01:15:28 -05:00
John Kerl
6a41f73328 Update webdocs for latest mlr compile 2021-11-19 13:55:57 -05:00
John Kerl
4394819cf8
Approximate-match feature for online help (#754)
* Explicitly support approximate-match help

* Unit tests for exact and approximate help
2021-11-17 23:37:48 -05:00
John Kerl
b14c917a79
Neaten output of mlr stats1 --help (#751) 2021-11-15 07:46:11 -05:00
John Kerl
bc72cd1857
More Go-package restructuring (#748) 2021-11-12 12:49:55 -05:00
John Kerl
227a37f124 minor neaten of ./configure 2021-11-11 19:06:55 -05:00
Stephen Kitt
3423f61bda
Support DESTDIR when installing (#745)
In autoconf-style builds, DESTDIR is used to install to somewhere
other than /; this is used in particular by packaging systems to
"install" to a staging area before archiving the package contents.

See https://www.gnu.org/prep/standards/html_node/DESTDIR.html for the
specification.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2021-11-11 14:47:09 -05:00
John Kerl
e2b6ec2391
Standardize Go-package structure (#746) 2021-11-11 14:15:13 -05:00
John Kerl
0d4fc143ad rename make precommit to make dev 2021-11-11 00:02:24 -05:00
John Kerl
db69402e24 make sure manpage gets updated on make build check install 2021-11-10 10:13:14 -05:00
John Kerl
92bc0f3b00
'make release_tarball' target, Go analog of C 'make distcheck' (#742) 2021-11-10 09:09:49 -05:00
John Kerl
96d2f9e2d3
configure / miller.spec experimenting before 6.0.0 release (#741) 2021-11-09 22:34:25 -05:00
John Kerl
df0e98e668 Merge branch 'emit1' 2021-11-09 14:49:11 -05:00
John Kerl
6fd2382706
emit1 for emitting arbitrary map-valued expressions (#739) 2021-11-09 14:45:10 -05:00
John Kerl
9975d0338b emit1 for emitting arbitrary map-valued expressions 2021-11-09 14:39:35 -05:00
John Kerl
950337fde1
Simplify release & dev build processes (#735) 2021-11-07 23:41:15 -05:00
John Kerl
91def6906f More Miller 6 release prep 2021-11-06 12:57:24 -04:00
John Kerl
c684a7ff2f
Add Makefiles for Go (#732)
* Add Makefiles for Go

* Makefile edits for Windows

* More how-to for CI debug
2021-11-04 11:27:44 -04:00
John Kerl
a2955eab66 prepare for wiz autoconf merge 2015-09-21 22:13:04 -04:00
John Kerl
633c0984b7 manpage usage notes 2015-08-30 14:57:17 -04:00
Eric MSP Veith
4b68e686de Fixed Makefile typos 2015-08-30 19:37:35 +02:00
Eric MSP Veith
4e457e3b6c Added a manpage for mlr 2015-08-30 19:36:12 +02:00
John Kerl
825ea66ec5 doc updates, including separating required from optional external dependencies 2015-08-17 23:25:23 -04:00
John Kerl
a1d117d3b2 HN feedbacks 2015-08-16 2015-08-16 22:39:13 -04:00
Ben Ranker
7049f6b8ed make should not install
`make install` should install.
2015-08-16 12:59:55 -04:00
Ben Ranker
fdd6ac5a6c Don't make docs by default
Docs require checkout and manual install of a tool provided by the
original author. It looks simple, but I don't really want to get into
it.
2015-08-16 12:58:06 -04:00
John Kerl
872665f5f3 top-level makefile 2015-07-21 21:25:04 -04:00