Hacker Newsnew | past | comments | ask | show | jobs | submit | ryenus's commentslogin

Turned out that one was, as you said, a totally unrelated toy language, nothing like this hurl.dev one.


Thanks! ICYMI: GoAWK [1] - A POSIX-compliant AWK interpreter written in Go, with CSV support.

[1]: https://github.com/benhoyt/goawk


And it can be embedded in your Go programs as well.


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...


But length() is standard POSIX, no? Even length(array) has been approved by POSIX [1] but not yet included in the spec (they're very slow to update the spec for some reason). Both forms have been supported in onetrueawk, Gawk, mawk, and Busybox awk for a long time.

[1] https://www.austingroupbugs.net/view.php?id=1566


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/


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.


Absolutely, Dunhuang is such a crucial component of the Silk Roads. However I am only including the places we have traveled through ourselves, and we were not able to fit in Dunhuang when we were passing through the area.

This Silk Road experience is a project I anticipate working on over the next few years.


Indeed, the following should work with upcoming fish 3.4:

    echo "pwd: $(pwd)"
See https://github.com/fish-shell/fish-shell/pull/8059


Oh awesome, Fish just keeps getting better and better!


Nowadays there's the `--show-current` option:

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


Wow, thank you for mentioning EmEditor, I used to keep it as a must-have app when used Windows, preferred it over UltraEdit, EditPlus etc, good memories. Nowadays it's all vscode though.


  -5/2 -> -2 (ok, rounds down)
Actually this is rounding up, to zero, as -2.5 < -2 < 0


TIL:

> brew cat sets bat as pager if HOMEBREW_BAT is set

And bat is really a nice alternative to cat.


Huh, neat. Though I wonder why they didn't just use $PAGER.


> In fact, Gates is still kicking himself for taking his eyes off the ball and allowing Google to develop Android

And those in Google are probably also kicking themselves for taking their eyes off the ball and allowing Oracle to acquire Sun


Whatever for would google want sun. Java is open source, Solaris and sparc are struggling


Perhaps all the lawsuits (or I guess one lawsuit that has been going on for more than a decade with all the appeals). At this point I'm sure it would have been cheaper to acquire Sun than to drag this out and still potentially face fines in the billions.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: