Better HN
topnewbestaskshowjobs
Log inSign up

ryenus

133 karma · joined Jul 16, 2014 (12y ago) · 71 submissions

Submissions

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

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

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

Indeed, the following should work with upcoming fish 3.4:

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

comment 5y ago · link · parent

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

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

TIL:

> brew cat sets bat as pager if HOMEBREW_BAT is set

And bat is really a nice alternative to cat.

comment 7y ago · link · parent

> 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

comment 7y ago · link · parent

Finally:

* Dark mode is now supported on Mac, and Windows support is on the way.

comment 8y ago · link · parent

Anyone knows which ruby runtime GitHub uses? Ruby MRI or JRuby etc.?

comment 8y ago · link · parent

The issue has only 46 comments at this moment because they have restricted the permission to comment, very nice. I thought there would be hundreds of, otherwise.

BTW, it sucks that existing comments cannot be voted or reacted with emojis, they should know this: https://bugs.chromium.org/p/monorail/issues/detail?id=4248

comment 8y ago · link · parent

Have you managed to configure it to behave similar to iTerm 2 in terms of keyboard shortcuts? Would you please share your config?

One thing is, I don't get its layout, is it possible to create a vertical/horizontal split like what (shift+)cmd+d does in iTerm 2?

comment 8y ago · link · parent

So the RFC comes true https://news.ycombinator.com/item?id=16292883

comment 8y ago · link · parent

The 2015 MBP is still available, though not that obviously: https://www.apple.com/macbook-pro/specs-2015/

comment 8y ago · link · parent

Sourcegraph used to be an online vscode, simply the coolest back then, but seems no more, they suddenly changed direction, possibly due to conflict of interests with Microsoft?

comment 8y ago · link · parent

And one can use Kotlin with Apache Spark, e.g.:

http://tomstechnicalblog.blogspot.hk/2016/11/using-kotlin-la...

20.

IntelliJ IDEA 2018.1 Released(jetbrains.com ↗)

39 points · by ryenus · 8y ago · 4 comments

comment 8y ago · link · parent

The worst decision Google ever made (2011)

http://www.zdnet.com/article/the-worst-decision-google-ever-...

comment 8y ago · link · parent

What about logical diagrams? anything for that?

comment 9y ago · link · parent

Though not so straightforward to find, the 2015 model is still available for purchase:

https://www.apple.com/macbook-pro/specs-2015/

comment 9y ago · link · parent

This is still happening to this day.

They now redirect skype.com to skype.gmw.cn

comment 9y ago · link · parent

So it's a better moment made by the moment team:

https://moment.github.io/luxon/docs/manual/faq/moment.html

Major differences:

  * Immutable
  * Months in Luxon are 1-indexed instead of 0-indexed like in Moment and the native Date type.
  * Localizations and time zones are implemented by the native Intl API (or a polyfill of it), instead of by the library itself.
  * Luxon has both a Duration type and an Interval type. The Interval type is like Twix.
  * Luxon lacks the relative time features of Moment and will until the required facilities are provided by the browser.

comment 9y ago · link · parent

Except Oracle lawyers wouldn't like Java being literally used as part of the name, though I hate to say this.

That's why javaslang was renamed to Vavr: https://github.com/vavr-io/vavr

comment 9y ago · link · parent

or maybe `limo`.

comment 9y ago · link · parent

So it's not about any lawsuit, but one (brought up by you etc.) that related to infringement because of being permitted to use (the GraphQL spec).

That seems to mean if there's a lawsuit with the concerned company, but not related to the permitted use of GraphQL spec, no termination then.

Not a lawyer, though.

123