HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ryenus

no profile record

comments

ryenus
·قبل 3 سنوات·discuss
Turned out that one was, as you said, a totally unrelated toy language, nothing like this hurl.dev one.
ryenus
·قبل 3 سنوات·discuss
Thanks! ICYMI: GoAWK [1] - A POSIX-compliant AWK interpreter written in Go, with CSV support.

[1]: https://github.com/benhoyt/goawk
ryenus
·قبل 3 سنوات·discuss
Ah good to know, thank you! Meanwhile I found it, it was the awk from Debian 10 that lacked `length(array)`, see the related nvm pr [1].

[1]: https://github.com/nvm-sh/nvm/pull/2917/
ryenus
·قبل 3 سنوات·discuss
Awk is really great, for those knowing nvm [1], I used awk to make `nvm ls-remote` run more than 10 times faster [2] by replacing the related shell script with around 60 lines of awk script [3], and I was quite happy with the improvement.

It's not really a one-liner, neither something big, but one can take that as an example regarding that awk is really not just for one-liners.

Meanwhile having `--csv` support is really nice. I'd also like to see things like a builtin `length` function to be standard.

[1]: https://github.com/nvm-sh/nvm/ [2]: https://github.com/nvm-sh/nvm/pull/2827/ [3]: https://github.com/nvm-sh/nvm/blob/9a769630d7/nvm.sh#L1703-L...
ryenus
·قبل 3 سنوات·discuss
Since you have Zhangye, you might also want to include Dunhuang (https://en.wikipedia.org/wiki/Dunhuang)?

And there's Mogao Caves (https://en.wikipedia.org/wiki/Mogao_Caves) which can't be missed.
ryenus
·قبل 5 سنوات·discuss
Indeed, the following should work with upcoming fish 3.4:

    echo "pwd: $(pwd)"
See https://github.com/fish-shell/fish-shell/pull/8059
ryenus
·قبل 5 سنوات·discuss
Nowadays there's the `--show-current` option:

    git branch --show-current
See https://git-scm.com/docs/git-branch